react-swipe-map 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(I,en){typeof exports=="object"&&typeof module<"u"?en(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],en):(I=typeof globalThis<"u"?globalThis:I||self,en(I.React,I.ReactDOM))})(this,function(I,en){"use strict";var rC=Object.defineProperty;var oC=(I,en,ur)=>en in I?rC(I,en,{enumerable:!0,configurable:!0,writable:!0,value:ur}):I[en]=ur;var q=(I,en,ur)=>(oC(I,typeof en!="symbol"?en+"":en,ur),ur);var ur=document.createElement("style");ur.textContent=`:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.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:rgba(255,255,255,.5)}.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:rgba(255,255,255,.8);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:rgba(255,255,255,.8);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:white;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}}.app-container{width:calc(100vw - 20px);height:calc(100vh - 20px);display:flex;background-color:#f5f5f5;gap:10px;padding:10px}.app-content{width:70%;height:100%}.app-right{width:30%;height:100%;background-color:#fff}.leaflet-sbs-range{position:absolute;top:50%;width:100%;z-index:999}.leaflet-sbs-divider{position:absolute;top:0;bottom:0;left:50%;margin-left:-2px;width:4px;background-color:#fff;pointer-events:none;z-index:999}.leaflet-sbs-range{-webkit-appearance:none;display:inline-block!important;vertical-align:middle;height:0;padding:0;margin:0;border:0;background:rgba(0,0,0,.25);min-width:100px;cursor:pointer;pointer-events:none;z-index:999}.leaflet-sbs-range::-ms-fill-upper{background:transparent}.leaflet-sbs-range::-ms-fill-lower{background:rgba(255,255,255,.25)}.leaflet-sbs-range::-moz-range-track{opacity:0}.leaflet-sbs-range::-ms-track{opacity:0}.leaflet-sbs-range::-ms-tooltip{display:none}.leaflet-sbs-range::-webkit-slider-thumb{-webkit-appearance:none;margin:0;padding:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range::-ms-thumb{margin:0;padding:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range::-moz-range-thumb{padding:0;right:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range:disabled::-moz-range-thumb{cursor:default}.leaflet-sbs-range:disabled::-ms-thumb{cursor:default}.leaflet-sbs-range:disabled::-webkit-slider-thumb{cursor:default}.leaflet-sbs-range:disabled{cursor:default}.leaflet-sbs-range:focus{outline:none!important}.leaflet-sbs-range::-moz-focus-outer{border:0}.switch-map-mode{width:30px;height:30px;background-color:#fff;border-radius:2px;text-align:center;font-size:20px;display:flex;align-items:center;justify-content:center}.switch-map-mode .map-icon{width:25px;height:25px}.select-base-map-button{width:30px;height:30px;background-color:#fff;border-radius:2px;text-align:center;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}
2
- `,document.head.appendChild(ur);function rm(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const f=rm(I);var om=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function im(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var js={exports:{}},Mo={};/**
1
+ (function(fn,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],A):(fn=typeof globalThis<"u"?globalThis:fn||self,A(fn.ReactPersonalCard={},fn.React,fn.ReactDOM))})(this,function(fn,A,Ln){"use strict";var nC=Object.defineProperty;var rC=(fn,A,Ln)=>A in fn?nC(fn,A,{enumerable:!0,configurable:!0,writable:!0,value:Ln}):fn[A]=Ln;var q=(fn,A,Ln)=>(rC(fn,typeof A!="symbol"?A+"":A,Ln),Ln);var Bc=document.createElement("style");Bc.textContent=`.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:rgba(255,255,255,.5)}.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:rgba(255,255,255,.8);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:rgba(255,255,255,.8);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:white;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-sbs-range{position:absolute;top:50%;width:100%;z-index:999}.leaflet-sbs-divider{position:absolute;top:0;bottom:0;left:50%;margin-left:-2px;width:4px;background-color:#fff;pointer-events:none;z-index:999}.leaflet-sbs-range{-webkit-appearance:none;display:inline-block!important;vertical-align:middle;height:0;padding:0;margin:0;border:0;background:rgba(0,0,0,.25);min-width:100px;cursor:pointer;pointer-events:none;z-index:999}.leaflet-sbs-range::-ms-fill-upper{background:transparent}.leaflet-sbs-range::-ms-fill-lower{background:rgba(255,255,255,.25)}.leaflet-sbs-range::-moz-range-track{opacity:0}.leaflet-sbs-range::-ms-track{opacity:0}.leaflet-sbs-range::-ms-tooltip{display:none}.leaflet-sbs-range::-webkit-slider-thumb{-webkit-appearance:none;margin:0;padding:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range::-ms-thumb{margin:0;padding:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range::-moz-range-thumb{padding:0;right:0;background:#fff;height:40px;width:40px;border-radius:20px;cursor:ew-resize;pointer-events:auto;border:1px solid #ddd;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAABlBMVEV9fX3///+Kct39AAAAAnRSTlP/AOW3MEoAAAA9SURBVFjD7dehDQAwDANBZ/+l2wmKoiqR7pHRcaeaCxAIBAL/g7k9JxAIBAKBQCAQCAQC14H+MhAIBE4CD3fOFvGVBzhZAAAAAElFTkSuQmCC);background-position:50% 50%;background-repeat:no-repeat;background-size:40px 40px}.leaflet-sbs-range:disabled::-moz-range-thumb{cursor:default}.leaflet-sbs-range:disabled::-ms-thumb{cursor:default}.leaflet-sbs-range:disabled::-webkit-slider-thumb{cursor:default}.leaflet-sbs-range:disabled{cursor:default}.leaflet-sbs-range:focus{outline:none!important}.leaflet-sbs-range::-moz-focus-outer{border:0}.switch-map-mode{width:30px;height:30px;background-color:#fff;border-radius:2px;text-align:center;font-size:20px;display:flex;align-items:center;justify-content:center}.switch-map-mode .map-icon{width:25px;height:25px}.select-base-map-button{width:30px;height:30px;background-color:#fff;border-radius:2px;text-align:center;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}
2
+ `,document.head.appendChild(Bc);function tm(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const f=tm(A);var nm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ws={exports:{}},Mo={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var zc;function sm(){if(zc)return Mo;zc=1;var e=I,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,g){var m,v={},y=null,C=null;g!==void 0&&(y=""+g),h.key!==void 0&&(y=""+h.key),h.ref!==void 0&&(C=h.ref);for(m in h)o.call(h,m)&&!l.hasOwnProperty(m)&&(v[m]=h[m]);if(d&&d.defaultProps)for(m in h=d.defaultProps,h)v[m]===void 0&&(v[m]=h[m]);return{$$typeof:n,type:d,key:y,ref:C,props:v,_owner:s.current}}return Mo.Fragment=r,Mo.jsx=c,Mo.jsxs=c,Mo}var Lo={};/**
10
+ */var zc;function om(){if(zc)return Mo;zc=1;var e=A,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,h,g){var m,v={},y=null,C=null;g!==void 0&&(y=""+g),h.key!==void 0&&(y=""+h.key),h.ref!==void 0&&(C=h.ref);for(m in h)o.call(h,m)&&!l.hasOwnProperty(m)&&(v[m]=h[m]);if(d&&d.defaultProps)for(m in h=d.defaultProps,h)v[m]===void 0&&(v[m]=h[m]);return{$$typeof:n,type:d,key:y,ref:C,props:v,_owner:s.current}}return Mo.Fragment=r,Mo.jsx=c,Mo.jsxs=c,Mo}var Lo={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,25 +15,25 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var Dc;function am(){return Dc||(Dc=1,process.env.NODE_ENV!=="production"&&function(){var e=I,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),_=Symbol.iterator,x="@@iterator";function b(A){if(A===null||typeof A!="object")return null;var U=_&&A[_]||A[x];return typeof U=="function"?U:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(A){{for(var U=arguments.length,re=new Array(U>1?U-1:0),ue=1;ue<U;ue++)re[ue-1]=arguments[ue];P("error",A,re)}}function P(A,U,re){{var ue=E.ReactDebugCurrentFrame,Ee=ue.getStackAddendum();Ee!==""&&(U+="%s",re=re.concat([Ee]));var ye=re.map(function(ae){return String(ae)});ye.unshift("Warning: "+U),Function.prototype.apply.call(console[A],console,ye)}}var T=!1,M=!1,N=!1,k=!1,R=!1,B;B=Symbol.for("react.module.reference");function z(A){return!!(typeof A=="string"||typeof A=="function"||A===o||A===l||R||A===s||A===g||A===m||k||A===C||T||M||N||typeof A=="object"&&A!==null&&(A.$$typeof===y||A.$$typeof===v||A.$$typeof===c||A.$$typeof===d||A.$$typeof===h||A.$$typeof===B||A.getModuleId!==void 0))}function $(A,U,re){var ue=A.displayName;if(ue)return ue;var Ee=U.displayName||U.name||"";return Ee!==""?re+"("+Ee+")":re}function j(A){return A.displayName||"Context"}function V(A){if(A==null)return null;if(typeof A.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof A=="function")return A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case o:return"Fragment";case r:return"Portal";case l:return"Profiler";case s:return"StrictMode";case g:return"Suspense";case m:return"SuspenseList"}if(typeof A=="object")switch(A.$$typeof){case d:var U=A;return j(U)+".Consumer";case c:var re=A;return j(re._context)+".Provider";case h:return $(A,A.render,"ForwardRef");case v:var ue=A.displayName||null;return ue!==null?ue:V(A.type)||"Memo";case y:{var Ee=A,ye=Ee._payload,ae=Ee._init;try{return V(ae(ye))}catch{return null}}}return null}var W=Object.assign,F=0,X,J,Z,le,G,ie,ne;function de(){}de.__reactDisabledLog=!0;function oe(){{if(F===0){X=console.log,J=console.info,Z=console.warn,le=console.error,G=console.group,ie=console.groupCollapsed,ne=console.groupEnd;var A={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:A,log:A,warn:A,error:A,group:A,groupCollapsed:A,groupEnd:A})}F++}}function ee(){{if(F--,F===0){var A={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},A,{value:X}),info:W({},A,{value:J}),warn:W({},A,{value:Z}),error:W({},A,{value:le}),group:W({},A,{value:G}),groupCollapsed:W({},A,{value:ie}),groupEnd:W({},A,{value:ne})})}F<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=E.ReactCurrentDispatcher,Y;function se(A,U,re){{if(Y===void 0)try{throw Error()}catch(Ee){var ue=Ee.stack.trim().match(/\n( *(at )?)/);Y=ue&&ue[1]||""}return`
19
- `+Y+A}}var fe=!1,xe;{var Se=typeof WeakMap=="function"?WeakMap:Map;xe=new Se}function Te(A,U){if(!A||fe)return"";{var re=xe.get(A);if(re!==void 0)return re}var ue;fe=!0;var Ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ye;ye=K.current,K.current=null,oe();try{if(U){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Ct){ue=Ct}Reflect.construct(A,[],ae)}else{try{ae.call()}catch(Ct){ue=Ct}A.call(ae.prototype)}}else{try{throw Error()}catch(Ct){ue=Ct}A()}}catch(Ct){if(Ct&&ue&&typeof Ct.stack=="string"){for(var pe=Ct.stack.split(`
18
+ */var Dc;function im(){return Dc||(Dc=1,process.env.NODE_ENV!=="production"&&function(){var e=A,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),_=Symbol.iterator,x="@@iterator";function b(T){if(T===null||typeof T!="object")return null;var U=_&&T[_]||T[x];return typeof U=="function"?U:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(T){{for(var U=arguments.length,re=new Array(U>1?U-1:0),ue=1;ue<U;ue++)re[ue-1]=arguments[ue];P("error",T,re)}}function P(T,U,re){{var ue=E.ReactDebugCurrentFrame,Ee=ue.getStackAddendum();Ee!==""&&(U+="%s",re=re.concat([Ee]));var ye=re.map(function(ae){return String(ae)});ye.unshift("Warning: "+U),Function.prototype.apply.call(console[T],console,ye)}}var I=!1,M=!1,k=!1,N=!1,R=!1,B;B=Symbol.for("react.module.reference");function z(T){return!!(typeof T=="string"||typeof T=="function"||T===o||T===l||R||T===s||T===g||T===m||N||T===C||I||M||k||typeof T=="object"&&T!==null&&(T.$$typeof===y||T.$$typeof===v||T.$$typeof===c||T.$$typeof===d||T.$$typeof===h||T.$$typeof===B||T.getModuleId!==void 0))}function $(T,U,re){var ue=T.displayName;if(ue)return ue;var Ee=U.displayName||U.name||"";return Ee!==""?re+"("+Ee+")":re}function j(T){return T.displayName||"Context"}function V(T){if(T==null)return null;if(typeof T.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case o:return"Fragment";case r:return"Portal";case l:return"Profiler";case s:return"StrictMode";case g:return"Suspense";case m:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case d:var U=T;return j(U)+".Consumer";case c:var re=T;return j(re._context)+".Provider";case h:return $(T,T.render,"ForwardRef");case v:var ue=T.displayName||null;return ue!==null?ue:V(T.type)||"Memo";case y:{var Ee=T,ye=Ee._payload,ae=Ee._init;try{return V(ae(ye))}catch{return null}}}return null}var W=Object.assign,F=0,X,J,Z,le,G,ie,ne;function de(){}de.__reactDisabledLog=!0;function oe(){{if(F===0){X=console.log,J=console.info,Z=console.warn,le=console.error,G=console.group,ie=console.groupCollapsed,ne=console.groupEnd;var T={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:T,log:T,warn:T,error:T,group:T,groupCollapsed:T,groupEnd:T})}F++}}function ee(){{if(F--,F===0){var T={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},T,{value:X}),info:W({},T,{value:J}),warn:W({},T,{value:Z}),error:W({},T,{value:le}),group:W({},T,{value:G}),groupCollapsed:W({},T,{value:ie}),groupEnd:W({},T,{value:ne})})}F<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=E.ReactCurrentDispatcher,Y;function se(T,U,re){{if(Y===void 0)try{throw Error()}catch(Ee){var ue=Ee.stack.trim().match(/\n( *(at )?)/);Y=ue&&ue[1]||""}return`
19
+ `+Y+T}}var fe=!1,xe;{var Se=typeof WeakMap=="function"?WeakMap:Map;xe=new Se}function Te(T,U){if(!T||fe)return"";{var re=xe.get(T);if(re!==void 0)return re}var ue;fe=!0;var Ee=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ye;ye=K.current,K.current=null,oe();try{if(U){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(wt){ue=wt}Reflect.construct(T,[],ae)}else{try{ae.call()}catch(wt){ue=wt}T.call(ae.prototype)}}else{try{throw Error()}catch(wt){ue=wt}T()}}catch(wt){if(wt&&ue&&typeof wt.stack=="string"){for(var pe=wt.stack.split(`
20
20
  `),We=ue.stack.split(`
21
- `),Fe=pe.length-1,et=We.length-1;Fe>=1&&et>=0&&pe[Fe]!==We[et];)et--;for(;Fe>=1&&et>=0;Fe--,et--)if(pe[Fe]!==We[et]){if(Fe!==1||et!==1)do if(Fe--,et--,et<0||pe[Fe]!==We[et]){var vt=`
22
- `+pe[Fe].replace(" at new "," at ");return A.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",A.displayName)),typeof A=="function"&&xe.set(A,vt),vt}while(Fe>=1&&et>=0);break}}}finally{fe=!1,K.current=ye,ee(),Error.prepareStackTrace=Ee}var bt=A?A.displayName||A.name:"",Kt=bt?se(bt):"";return typeof A=="function"&&xe.set(A,Kt),Kt}function Ce(A,U,re){return Te(A,!1)}function te(A){var U=A.prototype;return!!(U&&U.isReactComponent)}function we(A,U,re){if(A==null)return"";if(typeof A=="function")return Te(A,te(A));if(typeof A=="string")return se(A);switch(A){case g:return se("Suspense");case m:return se("SuspenseList")}if(typeof A=="object")switch(A.$$typeof){case h:return Ce(A.render);case v:return we(A.type,U,re);case y:{var ue=A,Ee=ue._payload,ye=ue._init;try{return we(ye(Ee),U,re)}catch{}}}return""}var Pe=Object.prototype.hasOwnProperty,Ae={},Ze=E.ReactDebugCurrentFrame;function Be(A){if(A){var U=A._owner,re=we(A.type,A._source,U?U.type:null);Ze.setExtraStackFrame(re)}else Ze.setExtraStackFrame(null)}function nt(A,U,re,ue,Ee){{var ye=Function.call.bind(Pe);for(var ae in A)if(ye(A,ae)){var pe=void 0;try{if(typeof A[ae]!="function"){var We=Error((ue||"React class")+": "+re+" type `"+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[ae]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw We.name="Invariant Violation",We}pe=A[ae](U,ae,ue,re,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Fe){pe=Fe}pe&&!(pe instanceof Error)&&(Be(Ee),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ue||"React class",re,ae,typeof pe),Be(null)),pe instanceof Error&&!(pe.message in Ae)&&(Ae[pe.message]=!0,Be(Ee),S("Failed %s type: %s",re,pe.message),Be(null))}}}var Ge=Array.isArray;function Ke(A){return Ge(A)}function ze(A){{var U=typeof Symbol=="function"&&Symbol.toStringTag,re=U&&A[Symbol.toStringTag]||A.constructor.name||"Object";return re}}function De(A){try{return ot(A),!1}catch{return!0}}function ot(A){return""+A}function Et(A){if(De(A))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ze(A)),ot(A)}var mt=E.ReactCurrentOwner,dt={key:!0,ref:!0,__self:!0,__source:!0},gt,Oe,he;he={};function _e(A){if(Pe.call(A,"ref")){var U=Object.getOwnPropertyDescriptor(A,"ref").get;if(U&&U.isReactWarning)return!1}return A.ref!==void 0}function rt(A){if(Pe.call(A,"key")){var U=Object.getOwnPropertyDescriptor(A,"key").get;if(U&&U.isReactWarning)return!1}return A.key!==void 0}function $e(A,U){if(typeof A.ref=="string"&&mt.current&&U&&mt.current.stateNode!==U){var re=V(mt.current.type);he[re]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V(mt.current.type),A.ref),he[re]=!0)}}function ge(A,U){{var re=function(){gt||(gt=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};re.isReactWarning=!0,Object.defineProperty(A,"key",{get:re,configurable:!0})}}function Qe(A,U){{var re=function(){Oe||(Oe=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};re.isReactWarning=!0,Object.defineProperty(A,"ref",{get:re,configurable:!0})}}var Ve=function(A,U,re,ue,Ee,ye,ae){var pe={$$typeof:n,type:A,key:U,ref:re,props:ae,_owner:ye};return pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.defineProperty(pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe};function Ye(A,U,re,ue,Ee){{var ye,ae={},pe=null,We=null;re!==void 0&&(Et(re),pe=""+re),rt(U)&&(Et(U.key),pe=""+U.key),_e(U)&&(We=U.ref,$e(U,Ee));for(ye in U)Pe.call(U,ye)&&!dt.hasOwnProperty(ye)&&(ae[ye]=U[ye]);if(A&&A.defaultProps){var Fe=A.defaultProps;for(ye in Fe)ae[ye]===void 0&&(ae[ye]=Fe[ye])}if(pe||We){var et=typeof A=="function"?A.displayName||A.name||"Unknown":A;pe&&ge(ae,et),We&&Qe(ae,et)}return Ve(A,pe,We,Ee,ue,mt.current,ae)}}var Nt=E.ReactCurrentOwner,Vt=E.ReactDebugCurrentFrame;function yt(A){if(A){var U=A._owner,re=we(A.type,A._source,U?U.type:null);Vt.setExtraStackFrame(re)}else Vt.setExtraStackFrame(null)}var Pt;Pt=!1;function Rt(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function Je(){{if(Nt.current){var A=V(Nt.current.type);if(A)return`
21
+ `),Fe=pe.length-1,et=We.length-1;Fe>=1&&et>=0&&pe[Fe]!==We[et];)et--;for(;Fe>=1&&et>=0;Fe--,et--)if(pe[Fe]!==We[et]){if(Fe!==1||et!==1)do if(Fe--,et--,et<0||pe[Fe]!==We[et]){var gt=`
22
+ `+pe[Fe].replace(" at new "," at ");return T.displayName&&gt.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",T.displayName)),typeof T=="function"&&xe.set(T,gt),gt}while(Fe>=1&&et>=0);break}}}finally{fe=!1,K.current=ye,ee(),Error.prepareStackTrace=Ee}var yt=T?T.displayName||T.name:"",Gt=yt?se(yt):"";return typeof T=="function"&&xe.set(T,Gt),Gt}function Ce(T,U,re){return Te(T,!1)}function te(T){var U=T.prototype;return!!(U&&U.isReactComponent)}function we(T,U,re){if(T==null)return"";if(typeof T=="function")return Te(T,te(T));if(typeof T=="string")return se(T);switch(T){case g:return se("Suspense");case m:return se("SuspenseList")}if(typeof T=="object")switch(T.$$typeof){case h:return Ce(T.render);case v:return we(T.type,U,re);case y:{var ue=T,Ee=ue._payload,ye=ue._init;try{return we(ye(Ee),U,re)}catch{}}}return""}var Pe=Object.prototype.hasOwnProperty,Ae={},Ze=E.ReactDebugCurrentFrame;function Be(T){if(T){var U=T._owner,re=we(T.type,T._source,U?U.type:null);Ze.setExtraStackFrame(re)}else Ze.setExtraStackFrame(null)}function nt(T,U,re,ue,Ee){{var ye=Function.call.bind(Pe);for(var ae in T)if(ye(T,ae)){var pe=void 0;try{if(typeof T[ae]!="function"){var We=Error((ue||"React class")+": "+re+" type `"+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof T[ae]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw We.name="Invariant Violation",We}pe=T[ae](U,ae,ue,re,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Fe){pe=Fe}pe&&!(pe instanceof Error)&&(Be(Ee),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ue||"React class",re,ae,typeof pe),Be(null)),pe instanceof Error&&!(pe.message in Ae)&&(Ae[pe.message]=!0,Be(Ee),S("Failed %s type: %s",re,pe.message),Be(null))}}}var Ge=Array.isArray;function Ke(T){return Ge(T)}function ze(T){{var U=typeof Symbol=="function"&&Symbol.toStringTag,re=U&&T[Symbol.toStringTag]||T.constructor.name||"Object";return re}}function De(T){try{return ot(T),!1}catch{return!0}}function ot(T){return""+T}function St(T){if(De(T))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ze(T)),ot(T)}var pt=E.ReactCurrentOwner,dt={key:!0,ref:!0,__self:!0,__source:!0},mt,Oe,he;he={};function _e(T){if(Pe.call(T,"ref")){var U=Object.getOwnPropertyDescriptor(T,"ref").get;if(U&&U.isReactWarning)return!1}return T.ref!==void 0}function rt(T){if(Pe.call(T,"key")){var U=Object.getOwnPropertyDescriptor(T,"key").get;if(U&&U.isReactWarning)return!1}return T.key!==void 0}function $e(T,U){if(typeof T.ref=="string"&&pt.current&&U&&pt.current.stateNode!==U){var re=V(pt.current.type);he[re]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V(pt.current.type),T.ref),he[re]=!0)}}function ge(T,U){{var re=function(){mt||(mt=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};re.isReactWarning=!0,Object.defineProperty(T,"key",{get:re,configurable:!0})}}function Qe(T,U){{var re=function(){Oe||(Oe=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",U))};re.isReactWarning=!0,Object.defineProperty(T,"ref",{get:re,configurable:!0})}}var Ve=function(T,U,re,ue,Ee,ye,ae){var pe={$$typeof:n,type:T,key:U,ref:re,props:ae,_owner:ye};return pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.defineProperty(pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ee}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe};function Ye(T,U,re,ue,Ee){{var ye,ae={},pe=null,We=null;re!==void 0&&(St(re),pe=""+re),rt(U)&&(St(U.key),pe=""+U.key),_e(U)&&(We=U.ref,$e(U,Ee));for(ye in U)Pe.call(U,ye)&&!dt.hasOwnProperty(ye)&&(ae[ye]=U[ye]);if(T&&T.defaultProps){var Fe=T.defaultProps;for(ye in Fe)ae[ye]===void 0&&(ae[ye]=Fe[ye])}if(pe||We){var et=typeof T=="function"?T.displayName||T.name||"Unknown":T;pe&&ge(ae,et),We&&Qe(ae,et)}return Ve(T,pe,We,Ee,ue,pt.current,ae)}}var Nt=E.ReactCurrentOwner,Ht=E.ReactDebugCurrentFrame;function vt(T){if(T){var U=T._owner,re=we(T.type,T._source,U?U.type:null);Ht.setExtraStackFrame(re)}else Ht.setExtraStackFrame(null)}var Et;Et=!1;function kt(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function Je(){{if(Nt.current){var T=V(Nt.current.type);if(T)return`
23
23
 
24
- Check the render method of \``+A+"`."}return""}}function on(A){{if(A!==void 0){var U=A.fileName.replace(/^.*[\\\/]/,""),re=A.lineNumber;return`
24
+ Check the render method of \``+T+"`."}return""}}function rn(T){{if(T!==void 0){var U=T.fileName.replace(/^.*[\\\/]/,""),re=T.lineNumber;return`
25
25
 
26
- Check your code at `+U+":"+re+"."}return""}}var mn={};function sn(A){{var U=Je();if(!U){var re=typeof A=="string"?A:A.displayName||A.name;re&&(U=`
26
+ Check your code at `+U+":"+re+"."}return""}}var mn={};function on(T){{var U=Je();if(!U){var re=typeof T=="string"?T:T.displayName||T.name;re&&(U=`
27
27
 
28
- Check the top-level render call using <`+re+">.")}return U}}function ln(A,U){{if(!A._store||A._store.validated||A.key!=null)return;A._store.validated=!0;var re=sn(U);if(mn[re])return;mn[re]=!0;var ue="";A&&A._owner&&A._owner!==Nt.current&&(ue=" It was passed a child from "+V(A._owner.type)+"."),yt(A),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',re,ue),yt(null)}}function cn(A,U){{if(typeof A!="object")return;if(Ke(A))for(var re=0;re<A.length;re++){var ue=A[re];Rt(ue)&&ln(ue,U)}else if(Rt(A))A._store&&(A._store.validated=!0);else if(A){var Ee=b(A);if(typeof Ee=="function"&&Ee!==A.entries)for(var ye=Ee.call(A),ae;!(ae=ye.next()).done;)Rt(ae.value)&&ln(ae.value,U)}}}function un(A){{var U=A.type;if(U==null||typeof U=="string")return;var re;if(typeof U=="function")re=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===h||U.$$typeof===v))re=U.propTypes;else return;if(re){var ue=V(U);nt(re,A.props,"prop",ue,A)}else if(U.PropTypes!==void 0&&!Pt){Pt=!0;var Ee=V(U);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ee||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wt(A){{for(var U=Object.keys(A.props),re=0;re<U.length;re++){var ue=U[re];if(ue!=="children"&&ue!=="key"){yt(A),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),yt(null);break}}A.ref!==null&&(yt(A),S("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var tn={};function Ot(A,U,re,ue,Ee,ye){{var ae=z(A);if(!ae){var pe="";(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var We=on(Ee);We?pe+=We:pe+=Je();var Fe;A===null?Fe="null":Ke(A)?Fe="array":A!==void 0&&A.$$typeof===n?(Fe="<"+(V(A.type)||"Unknown")+" />",pe=" Did you accidentally export a JSX literal instead of a component?"):Fe=typeof A,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fe,pe)}var et=Ye(A,U,re,Ee,ye);if(et==null)return et;if(ae){var vt=U.children;if(vt!==void 0)if(ue)if(Ke(vt)){for(var bt=0;bt<vt.length;bt++)cn(vt[bt],A);Object.freeze&&Object.freeze(vt)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else cn(vt,A)}if(Pe.call(U,"key")){var Kt=V(A),Ct=Object.keys(U).filter(function(br){return br!=="key"}),Qt=Ct.length>0?"{key: someKey, "+Ct.join(": ..., ")+": ...}":"{key: someKey}";if(!tn[Kt+Qt]){var Yt=Ct.length>0?"{"+Ct.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
28
+ Check the top-level render call using <`+re+">.")}return U}}function an(T,U){{if(!T._store||T._store.validated||T.key!=null)return;T._store.validated=!0;var re=on(U);if(mn[re])return;mn[re]=!0;var ue="";T&&T._owner&&T._owner!==Nt.current&&(ue=" It was passed a child from "+V(T._owner.type)+"."),vt(T),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',re,ue),vt(null)}}function ln(T,U){{if(typeof T!="object")return;if(Ke(T))for(var re=0;re<T.length;re++){var ue=T[re];kt(ue)&&an(ue,U)}else if(kt(T))T._store&&(T._store.validated=!0);else if(T){var Ee=b(T);if(typeof Ee=="function"&&Ee!==T.entries)for(var ye=Ee.call(T),ae;!(ae=ye.next()).done;)kt(ae.value)&&an(ae.value,U)}}}function cn(T){{var U=T.type;if(U==null||typeof U=="string")return;var re;if(typeof U=="function")re=U.propTypes;else if(typeof U=="object"&&(U.$$typeof===h||U.$$typeof===v))re=U.propTypes;else return;if(re){var ue=V(U);nt(re,T.props,"prop",ue,T)}else if(U.PropTypes!==void 0&&!Et){Et=!0;var Ee=V(U);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ee||"Unknown")}typeof U.getDefaultProps=="function"&&!U.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Vt(T){{for(var U=Object.keys(T.props),re=0;re<U.length;re++){var ue=U[re];if(ue!=="children"&&ue!=="key"){vt(T),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),vt(null);break}}T.ref!==null&&(vt(T),S("Invalid attribute `ref` supplied to `React.Fragment`."),vt(null))}}var Jt={};function Lt(T,U,re,ue,Ee,ye){{var ae=z(T);if(!ae){var pe="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(pe+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var We=rn(Ee);We?pe+=We:pe+=Je();var Fe;T===null?Fe="null":Ke(T)?Fe="array":T!==void 0&&T.$$typeof===n?(Fe="<"+(V(T.type)||"Unknown")+" />",pe=" Did you accidentally export a JSX literal instead of a component?"):Fe=typeof T,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fe,pe)}var et=Ye(T,U,re,Ee,ye);if(et==null)return et;if(ae){var gt=U.children;if(gt!==void 0)if(ue)if(Ke(gt)){for(var yt=0;yt<gt.length;yt++)ln(gt[yt],T);Object.freeze&&Object.freeze(gt)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ln(gt,T)}if(Pe.call(U,"key")){var Gt=V(T),wt=Object.keys(U).filter(function(br){return br!=="key"}),Kt=wt.length>0?"{key: someKey, "+wt.join(": ..., ")+": ...}":"{key: someKey}";if(!Jt[Gt+Kt]){var Qt=wt.length>0?"{"+wt.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
29
29
  let props = %s;
30
30
  <%s {...props} />
31
31
  React keys must be passed directly to JSX without using spread:
32
32
  let props = %s;
33
- <%s key={someKey} {...props} />`,Qt,Kt,Yt,Kt),tn[Kt+Qt]=!0}}return A===o?Wt(et):un(et),et}}function wt(A,U,re){return Ot(A,U,re,!0)}function ve(A,U,re){return Ot(A,U,re,!1)}var jt=ve,Zt=wt;Lo.Fragment=o,Lo.jsx=jt,Lo.jsxs=Zt}()),Lo}process.env.NODE_ENV==="production"?js.exports=sm():js.exports=am();var ft=js.exports,Sr,Ci=en;if(process.env.NODE_ENV==="production")Sr=Ci.createRoot,Ci.hydrateRoot;else{var Fc=Ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sr=function(e,n){Fc.usingClientEntryPoint=!0;try{return Ci.createRoot(e,n)}finally{Fc.usingClientEntryPoint=!1}}}const iC="";var Zs={exports:{}};/* @preserve
33
+ <%s key={someKey} {...props} />`,Kt,Gt,Qt,Gt),Jt[Gt+Kt]=!0}}return T===o?Vt(et):cn(et),et}}function xt(T,U,re){return Lt(T,U,re,!0)}function ve(T,U,re){return Lt(T,U,re,!1)}var Wt=ve,jt=xt;Lo.Fragment=o,Lo.jsx=Wt,Lo.jsxs=jt}()),Lo}process.env.NODE_ENV==="production"?Ws.exports=om():Ws.exports=im();var Zt=Ws.exports,js={exports:{}};/* @preserve
34
34
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
35
35
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
36
- */(function(e,n){(function(r,o){o(n)})(om,function(r){var o="1.9.4";function s(t){var i,a,u,p;for(a=1,u=arguments.length;a<u;a++){p=arguments[a];for(i in p)t[i]=p[i]}return t}var l=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function c(t,i){var a=Array.prototype.slice;if(t.bind)return t.bind.apply(t,a.call(arguments,1));var u=a.call(arguments,2);return function(){return t.apply(i,u.length?u.concat(a.call(arguments)):arguments)}}var d=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++d),t._leaflet_id}function g(t,i,a){var u,p,w,O;return O=function(){u=!1,p&&(w.apply(a,p),p=!1)},w=function(){u?p=arguments:(t.apply(a,arguments),setTimeout(O,i),u=!0)},w}function m(t,i,a){var u=i[1],p=i[0],w=u-p;return t===u&&a?t:((t-p)%w+w)%w+p}function v(){return!1}function y(t,i){if(i===!1)return t;var a=Math.pow(10,i===void 0?6:i);return Math.round(t*a)/a}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function _(t){return C(t).split(/\s+/)}function x(t,i){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?l(t.options):{});for(var a in i)t.options[a]=i[a];return t.options}function b(t,i,a){var u=[];for(var p in t)u.push(encodeURIComponent(a?p.toUpperCase():p)+"="+encodeURIComponent(t[p]));return(!i||i.indexOf("?")===-1?"?":"&")+u.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function S(t,i){return t.replace(E,function(a,u){var p=i[u];if(p===void 0)throw new Error("No value provided for variable "+a);return typeof p=="function"&&(p=p(i)),p})}var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function T(t,i){for(var a=0;a<t.length;a++)if(t[a]===i)return a;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function N(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var k=0;function R(t){var i=+new Date,a=Math.max(0,16-(i-k));return k=i+a,window.setTimeout(t,a)}var B=window.requestAnimationFrame||N("RequestAnimationFrame")||R,z=window.cancelAnimationFrame||N("CancelAnimationFrame")||N("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function $(t,i,a){if(a&&B===R)t.call(i);else return B.call(window,c(t,i))}function j(t){t&&z.call(window,t)}var V={__proto__:null,extend:s,create:l,bind:c,get lastId(){return d},stamp:h,throttle:g,wrapNum:m,falseFn:v,formatNum:y,trim:C,splitWords:_,setOptions:x,getParamString:b,template:S,isArray:P,indexOf:T,emptyImageUrl:M,requestFn:B,cancelFn:z,requestAnimFrame:$,cancelAnimFrame:j};function W(){}W.extend=function(t){var i=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=i.__super__=this.prototype,u=l(a);u.constructor=i,i.prototype=u;for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&p!=="prototype"&&p!=="__super__"&&(i[p]=this[p]);return t.statics&&s(i,t.statics),t.includes&&(F(t.includes),s.apply(null,[u].concat(t.includes))),s(u,t),delete u.statics,delete u.includes,u.options&&(u.options=a.options?l(a.options):{},s(u.options,t.options)),u._initHooks=[],u.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var w=0,O=u._initHooks.length;w<O;w++)u._initHooks[w].call(this)}},i},W.include=function(t){var i=this.prototype.options;return s(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},W.mergeOptions=function(t){return s(this.prototype.options,t),this},W.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),a=typeof t=="function"?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(a),this};function F(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===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 X={on:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a)}return this},off:function(t,i,a){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var u in t)this._off(u,t[u],i);else{t=_(t);for(var p=arguments.length===1,w=0,O=t.length;w<O;w++)p?this._off(t[w]):this._off(t[w],i,a)}return this},_on:function(t,i,a,u){if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,a)===!1){a===this&&(a=void 0);var p={fn:i,ctx:a};u&&(p.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(p)}},_off:function(t,i,a){var u,p,w;if(this._events&&(u=this._events[t],!!u)){if(arguments.length===1){if(this._firingCount)for(p=0,w=u.length;p<w;p++)u[p].fn=v;delete this._events[t];return}if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}var O=this._listens(t,i,a);if(O!==!1){var D=u[O];this._firingCount&&(D.fn=v,this._events[t]=u=u.slice()),u.splice(O,1)}}},fire:function(t,i,a){if(!this.listens(t,a))return this;var u=s({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var p=this._events[t];if(p){this._firingCount=this._firingCount+1||1;for(var w=0,O=p.length;w<O;w++){var D=p[w],H=D.fn;D.once&&this.off(t,H,D.ctx),H.call(D.ctx||this,u)}this._firingCount--}}return a&&this._propagateEvent(u),this},listens:function(t,i,a,u){typeof t!="string"&&console.warn('"string" type argument expected');var p=i;typeof i!="function"&&(u=!!i,p=void 0,a=void 0);var w=this._events&&this._events[t];if(w&&w.length&&this._listens(t,p,a)!==!1)return!0;if(u){for(var O in this._eventParents)if(this._eventParents[O].listens(t,i,a,u))return!0}return!1},_listens:function(t,i,a){if(!this._events)return!1;var u=this._events[t]||[];if(!i)return!!u.length;a===this&&(a=void 0);for(var p=0,w=u.length;p<w;p++)if(u[p].fn===i&&u[p].ctx===a)return p;return!1},once:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i,!0);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,s({layer:t.target,propagatedFrom:t.target},t),!0)}};X.addEventListener=X.on,X.removeEventListener=X.clearAllEventListeners=X.off,X.addOneTimeEventListener=X.once,X.fireEvent=X.fire,X.hasEventListeners=X.listens;var J=W.extend(X);function Z(t,i,a){this.x=a?Math.round(t):t,this.y=a?Math.round(i):i}var le=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(t){return this.clone()._add(G(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(G(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 Z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new Z(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=le(this.x),this.y=le(this.y),this},distanceTo:function(t){t=G(t);var i=t.x-this.x,a=t.y-this.y;return Math.sqrt(i*i+a*a)},equals:function(t){return t=G(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=G(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 G(t,i,a){return t instanceof Z?t:P(t)?new Z(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new Z(t.x,t.y):new Z(t,i,a)}function ie(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}ie.prototype={extend:function(t){var i,a;if(!t)return this;if(t instanceof Z||typeof t[0]=="number"||"x"in t)i=a=G(t);else if(t=ne(t),i=t.min,a=t.max,!i||!a)return this;return!this.min&&!this.max?(this.min=i.clone(),this.max=a.clone()):(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(a.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(a.y,this.max.y)),this},getCenter:function(t){return G((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return G(this.min.x,this.max.y)},getTopRight:function(){return G(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 i,a;return typeof t[0]=="number"||t instanceof Z?t=G(t):t=ne(t),t instanceof ie?(i=t.min,a=t.max):i=a=t,i.x>=this.min.x&&a.x<=this.max.x&&i.y>=this.min.y&&a.y<=this.max.y},intersects:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>=i.x&&u.x<=a.x,O=p.y>=i.y&&u.y<=a.y;return w&&O},overlaps:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>i.x&&u.x<a.x,O=p.y>i.y&&u.y<a.y;return w&&O},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,a=this.max,u=Math.abs(i.x-a.x)*t,p=Math.abs(i.y-a.y)*t;return ne(G(i.x-u,i.y-p),G(a.x+u,a.y+p))},equals:function(t){return t?(t=ne(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function ne(t,i){return!t||t instanceof ie?t:new ie(t,i)}function de(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}de.prototype={extend:function(t){var i=this._southWest,a=this._northEast,u,p;if(t instanceof ee)u=t,p=t;else if(t instanceof de){if(u=t._southWest,p=t._northEast,!u||!p)return this}else return t?this.extend(K(t)||oe(t)):this;return!i&&!a?(this._southWest=new ee(u.lat,u.lng),this._northEast=new ee(p.lat,p.lng)):(i.lat=Math.min(u.lat,i.lat),i.lng=Math.min(u.lng,i.lng),a.lat=Math.max(p.lat,a.lat),a.lng=Math.max(p.lng,a.lng)),this},pad:function(t){var i=this._southWest,a=this._northEast,u=Math.abs(i.lat-a.lat)*t,p=Math.abs(i.lng-a.lng)*t;return new de(new ee(i.lat-u,i.lng-p),new ee(a.lat+u,a.lng+p))},getCenter:function(){return new ee((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 ee(this.getNorth(),this.getWest())},getSouthEast:function(){return new ee(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 ee||"lat"in t?t=K(t):t=oe(t);var i=this._southWest,a=this._northEast,u,p;return t instanceof de?(u=t.getSouthWest(),p=t.getNorthEast()):u=p=t,u.lat>=i.lat&&p.lat<=a.lat&&u.lng>=i.lng&&p.lng<=a.lng},intersects:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>=i.lat&&u.lat<=a.lat,O=p.lng>=i.lng&&u.lng<=a.lng;return w&&O},overlaps:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>i.lat&&u.lat<a.lat,O=p.lng>i.lng&&u.lng<a.lng;return w&&O},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return t?(t=oe(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function oe(t,i){return t instanceof de?t:new de(t,i)}function ee(t,i,a){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,a!==void 0&&(this.alt=+a)}ee.prototype={equals:function(t,i){if(!t)return!1;t=K(t);var a=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return a<=(i===void 0?1e-9:i)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return se.distance(this,K(t))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,a=i/Math.cos(Math.PI/180*this.lat);return oe([this.lat-i,this.lng-a],[this.lat+i,this.lng+a])},clone:function(){return new ee(this.lat,this.lng,this.alt)}};function K(t,i,a){return t instanceof ee?t:P(t)&&typeof t[0]!="object"?t.length===3?new ee(t[0],t[1],t[2]):t.length===2?new ee(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new ee(t.lat,"lng"in t?t.lng:t.lon,t.alt):i===void 0?null:new ee(t,i,a)}var Y={latLngToPoint:function(t,i){var a=this.projection.project(t),u=this.scale(i);return this.transformation._transform(a,u)},pointToLatLng:function(t,i){var a=this.scale(i),u=this.transformation.untransform(t,a);return this.projection.unproject(u)},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 i=this.projection.bounds,a=this.scale(t),u=this.transformation.transform(i.min,a),p=this.transformation.transform(i.max,a);return new ie(u,p)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?m(t.lng,this.wrapLng,!0):t.lng,a=this.wrapLat?m(t.lat,this.wrapLat,!0):t.lat,u=t.alt;return new ee(a,i,u)},wrapLatLngBounds:function(t){var i=t.getCenter(),a=this.wrapLatLng(i),u=i.lat-a.lat,p=i.lng-a.lng;if(u===0&&p===0)return t;var w=t.getSouthWest(),O=t.getNorthEast(),D=new ee(w.lat-u,w.lng-p),H=new ee(O.lat-u,O.lng-p);return new de(D,H)}},se=s({},Y,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var a=Math.PI/180,u=t.lat*a,p=i.lat*a,w=Math.sin((i.lat-t.lat)*a/2),O=Math.sin((i.lng-t.lng)*a/2),D=w*w+Math.cos(u)*Math.cos(p)*O*O,H=2*Math.atan2(Math.sqrt(D),Math.sqrt(1-D));return this.R*H}}),fe=6378137,xe={R:fe,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,a=this.MAX_LATITUDE,u=Math.max(Math.min(a,t.lat),-a),p=Math.sin(u*i);return new Z(this.R*t.lng*i,this.R*Math.log((1+p)/(1-p))/2)},unproject:function(t){var i=180/Math.PI;return new ee((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=fe*Math.PI;return new ie([-t,-t],[t,t])}()};function Se(t,i,a,u){if(P(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=i,this._c=a,this._d=u}Se.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new Z((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function Te(t,i,a,u){return new Se(t,i,a,u)}var Ce=s({},se,{code:"EPSG:3857",projection:xe,transformation:function(){var t=.5/(Math.PI*xe.R);return Te(t,.5,-t,.5)}()}),te=s({},Ce,{code:"EPSG:900913"});function we(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Pe(t,i){var a="",u,p,w,O,D,H;for(u=0,w=t.length;u<w;u++){for(D=t[u],p=0,O=D.length;p<O;p++)H=D[p],a+=(p?"L":"M")+H.x+" "+H.y;a+=i?ve.svg?"z":"x":""}return a||"M0 0"}var Ae=document.documentElement.style,Ze="ActiveXObject"in window,Be=Ze&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),Ge=wt("webkit"),Ke=wt("android"),ze=wt("android 2")||wt("android 3"),De=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=Ke&&wt("Google")&&De<537&&!("AudioNode"in window),Et=!!window.opera,mt=!nt&&wt("chrome"),dt=wt("gecko")&&!Ge&&!Et&&!Ze,gt=!mt&&wt("safari"),Oe=wt("phantom"),he="OTransition"in Ae,_e=navigator.platform.indexOf("Win")===0,rt=Ze&&"transition"in Ae,$e="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ze,ge="MozPerspective"in Ae,Qe=!window.L_DISABLE_3D&&(rt||$e||ge)&&!he&&!Oe,Ve=typeof orientation<"u"||wt("mobile"),Ye=Ve&&Ge,Nt=Ve&&$e,Vt=!window.PointerEvent&&window.MSPointerEvent,yt=!!(window.PointerEvent||Vt),Pt="ontouchstart"in window||!!window.TouchEvent,Rt=!window.L_NO_TOUCH&&(Pt||yt),Je=Ve&&Et,on=Ve&&dt,mn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,sn=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",v,i),window.removeEventListener("testPassiveEventSupport",v,i)}catch{}return t}(),ln=function(){return!!document.createElement("canvas").getContext}(),cn=!!(document.createElementNS&&we("svg").createSVGRect),un=!!cn&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Wt=!cn&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),tn=navigator.platform.indexOf("Mac")===0,Ot=navigator.platform.indexOf("Linux")===0;function wt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var ve={ie:Ze,ielt9:Be,edge:nt,webkit:Ge,android:Ke,android23:ze,androidStock:ot,opera:Et,chrome:mt,gecko:dt,safari:gt,phantom:Oe,opera12:he,win:_e,ie3d:rt,webkit3d:$e,gecko3d:ge,any3d:Qe,mobile:Ve,mobileWebkit:Ye,mobileWebkit3d:Nt,msPointer:Vt,pointer:yt,touch:Rt,touchNative:Pt,mobileOpera:Je,mobileGecko:on,retina:mn,passiveEvents:sn,canvas:ln,svg:cn,vml:Wt,inlineSvg:un,mac:tn,linux:Ot},jt=ve.msPointer?"MSPointerDown":"pointerdown",Zt=ve.msPointer?"MSPointerMove":"pointermove",A=ve.msPointer?"MSPointerUp":"pointerup",U=ve.msPointer?"MSPointerCancel":"pointercancel",re={touchstart:jt,touchmove:Zt,touchend:A,touchcancel:U},ue={touchstart:Kt,touchmove:bt,touchend:bt,touchcancel:bt},Ee={},ye=!1;function ae(t,i,a){return i==="touchstart"&&vt(),ue[i]?(a=ue[i].bind(this,a),t.addEventListener(re[i],a,!1),a):(console.warn("wrong event specified:",i),v)}function pe(t,i,a){if(!re[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(re[i],a,!1)}function We(t){Ee[t.pointerId]=t}function Fe(t){Ee[t.pointerId]&&(Ee[t.pointerId]=t)}function et(t){delete Ee[t.pointerId]}function vt(){ye||(document.addEventListener(jt,We,!0),document.addEventListener(Zt,Fe,!0),document.addEventListener(A,et,!0),document.addEventListener(U,et,!0),ye=!0)}function bt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var a in Ee)i.touches.push(Ee[a]);i.changedTouches=[i],t(i)}}function Kt(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&nn(i),bt(t,i)}function Ct(t){var i={},a,u;for(u in t)a=t[u],i[u]=a&&a.bind?a.bind(t):a;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Qt=200;function Yt(t,i){t.addEventListener("dblclick",i);var a=0,u;function p(w){if(w.detail!==1){u=w.detail;return}if(!(w.pointerType==="mouse"||w.sourceCapabilities&&!w.sourceCapabilities.firesTouchEvents)){var O=bp(w);if(!(O.some(function(H){return H instanceof HTMLLabelElement&&H.attributes.for})&&!O.some(function(H){return H instanceof HTMLInputElement||H instanceof HTMLSelectElement}))){var D=Date.now();D-a<=Qt?(u++,u===2&&i(Ct(w))):u=1,a=D}}}return t.addEventListener("click",p),{dblclick:i,simDblclick:p}}function br(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}var or=zn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$n=zn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_r=$n==="webkitTransition"||$n==="OTransition"?$n+"End":"transitionend";function wo(t){return typeof t=="string"?document.getElementById(t):t}function Me(t,i){var a=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!a||a==="auto")&&document.defaultView){var u=document.defaultView.getComputedStyle(t,null);a=u?u[i]:null}return a==="auto"?null:a}function ke(t,i,a){var u=document.createElement(t);return u.className=i||"",a&&a.appendChild(u),u}function Ue(t){var i=t.parentNode;i&&i.removeChild(t)}function Tn(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function gn(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function Bn(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function Co(t,i){if(t.classList!==void 0)return t.classList.contains(i);var a=me(t);return a.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(a)}function He(t,i){if(t.classList!==void 0)for(var a=_(i),u=0,p=a.length;u<p;u++)t.classList.add(a[u]);else if(!Co(t,i)){var w=me(t);Fr(t,(w?w+" ":"")+i)}}function St(t,i){t.classList!==void 0?t.classList.remove(i):Fr(t,C((" "+me(t)+" ").replace(" "+i+" "," ")))}function Fr(t,i){t.className.baseVal===void 0?t.className=i:t.className.baseVal=i}function me(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function Ne(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&Xt(t,i)}function Xt(t,i){var a=!1,u="DXImageTransform.Microsoft.Alpha";try{a=t.filters.item(u)}catch{if(i===1)return}i=Math.round(i*100),a?(a.Enabled=i!==100,a.Opacity=i):t.style.filter+=" progid:"+u+"(opacity="+i+")"}function zn(t){for(var i=document.documentElement.style,a=0;a<t.length;a++)if(t[a]in i)return t[a];return!1}function dn(t,i,a){var u=i||new Z(0,0);t.style[or]=(ve.ie3d?"translate("+u.x+"px,"+u.y+"px)":"translate3d("+u.x+"px,"+u.y+"px,0)")+(a?" scale("+a+")":"")}function It(t,i){t._leaflet_pos=i,ve.any3d?dn(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function ir(t){return t._leaflet_pos||new Z(0,0)}var xr,pi,gc;if("onselectstart"in document)xr=function(){je(window,"selectstart",nn)},pi=function(){_t(window,"selectstart",nn)};else{var mi=zn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);xr=function(){if(mi){var t=document.documentElement.style;gc=t[mi],t[mi]="none"}},pi=function(){mi&&(document.documentElement.style[mi]=gc,gc=void 0)}}function vc(){je(window,"dragstart",nn)}function yc(){_t(window,"dragstart",nn)}var Ms,bc;function _c(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Ls(),Ms=t,bc=t.style.outlineStyle,t.style.outlineStyle="none",je(window,"keydown",Ls))}function Ls(){Ms&&(Ms.style.outlineStyle=bc,Ms=void 0,bc=void 0,_t(window,"keydown",Ls))}function vp(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function xc(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var cw={__proto__:null,TRANSFORM:or,TRANSITION:$n,TRANSITION_END:_r,get:wo,getStyle:Me,create:ke,remove:Ue,empty:Tn,toFront:gn,toBack:Bn,hasClass:Co,addClass:He,removeClass:St,setClass:Fr,getClass:me,setOpacity:Ne,testProp:zn,setTransform:dn,setPosition:It,getPosition:ir,get disableTextSelection(){return xr},get enableTextSelection(){return pi},disableImageDrag:vc,enableImageDrag:yc,preventOutline:_c,restoreOutline:Ls,getSizedParentNode:vp,getScale:xc};function je(t,i,a,u){if(i&&typeof i=="object")for(var p in i)Cc(t,p,i[p],a);else{i=_(i);for(var w=0,O=i.length;w<O;w++)Cc(t,i[w],a,u)}return this}var Wn="_leaflet_events";function _t(t,i,a,u){if(arguments.length===1)yp(t),delete t[Wn];else if(i&&typeof i=="object")for(var p in i)Sc(t,p,i[p],a);else if(i=_(i),arguments.length===2)yp(t,function(D){return T(i,D)!==-1});else for(var w=0,O=i.length;w<O;w++)Sc(t,i[w],a,u);return this}function yp(t,i){for(var a in t[Wn]){var u=a.split(/\d/)[0];(!i||i(u))&&Sc(t,u,null,null,a)}}var wc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Cc(t,i,a,u){var p=i+h(a)+(u?"_"+h(u):"");if(t[Wn]&&t[Wn][p])return this;var w=function(D){return a.call(u||t,D||window.event)},O=w;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?w=ae(t,i,w):ve.touch&&i==="dblclick"?w=Yt(t,w):"addEventListener"in t?i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"?t.addEventListener(wc[i]||i,w,ve.passiveEvents?{passive:!1}:!1):i==="mouseenter"||i==="mouseleave"?(w=function(D){D=D||window.event,Pc(t,D)&&O(D)},t.addEventListener(wc[i],w,!1)):t.addEventListener(i,O,!1):t.attachEvent("on"+i,w),t[Wn]=t[Wn]||{},t[Wn][p]=w}function Sc(t,i,a,u,p){p=p||i+h(a)+(u?"_"+h(u):"");var w=t[Wn]&&t[Wn][p];if(!w)return this;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?pe(t,i,w):ve.touch&&i==="dblclick"?br(t,w):"removeEventListener"in t?t.removeEventListener(wc[i]||i,w,!1):t.detachEvent("on"+i,w),t[Wn][p]=null}function Hr(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ec(t){return Cc(t,"wheel",Hr),this}function gi(t){return je(t,"mousedown touchstart dblclick contextmenu",Hr),t._leaflet_disable_click=!0,this}function nn(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Vr(t){return nn(t),Hr(t),this}function bp(t){if(t.composedPath)return t.composedPath();for(var i=[],a=t.target;a;)i.push(a),a=a.parentNode;return i}function _p(t,i){if(!i)return new Z(t.clientX,t.clientY);var a=xc(i),u=a.boundingClientRect;return new Z((t.clientX-u.left)/a.x-i.clientLeft,(t.clientY-u.top)/a.y-i.clientTop)}var uw=ve.linux&&ve.chrome?window.devicePixelRatio:ve.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function xp(t){return ve.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/uw: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 Pc(t,i){var a=i.relatedTarget;if(!a)return!0;try{for(;a&&a!==t;)a=a.parentNode}catch{return!1}return a!==t}var dw={__proto__:null,on:je,off:_t,stopPropagation:Hr,disableScrollPropagation:Ec,disableClickPropagation:gi,preventDefault:nn,stop:Vr,getPropagationPath:bp,getMousePosition:_p,getWheelDelta:xp,isExternalTarget:Pc,addListener:je,removeListener:_t},wp=J.extend({run:function(t,i,a,u){this.stop(),this._el=t,this._inProgress=!0,this._duration=a||.25,this._easeOutPower=1/Math.max(u||.5,.2),this._startPos=ir(t),this._offset=i.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=$(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,a=this._duration*1e3;i<a?this._runFrame(this._easeOut(i/a),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var a=this._startPos.add(this._offset.multiplyBy(t));i&&a._round(),It(this._el,a),this.fire("step")},_complete:function(){j(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),it=J.extend({options:{crs:Ce,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,i){i=x(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),i.zoom!==void 0&&(this._zoom=this._limitZoom(i.zoom)),i.center&&i.zoom!==void 0&&this.setView(K(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=$n&&ve.any3d&&!ve.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,_r,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,a){if(i=i===void 0?this._zoom:this._limitZoom(i),t=this._limitCenter(K(t),i,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&a!==!0){a.animate!==void 0&&(a.zoom=s({animate:a.animate},a.zoom),a.pan=s({animate:a.animate,duration:a.duration},a.pan));var u=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,a.zoom):this._tryAnimatedPan(t,a.pan);if(u)return clearTimeout(this._sizeTimer),this}return this._resetView(t,i,a.pan&&a.pan.noMoveStart),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,a){var u=this.getZoomScale(i),p=this.getSize().divideBy(2),w=t instanceof Z?t:this.latLngToContainerPoint(t),O=w.subtract(p).multiplyBy(1-1/u),D=this.containerPointToLatLng(p.add(O));return this.setView(D,i,{zoom:a})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():oe(t);var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.getBoundsZoom(t,!1,a.add(u));if(p=typeof i.maxZoom=="number"?Math.min(i.maxZoom,p):p,p===1/0)return{center:t.getCenter(),zoom:p};var w=u.subtract(a).divideBy(2),O=this.project(t.getSouthWest(),p),D=this.project(t.getNorthEast(),p),H=this.unproject(O.add(D).divideBy(2).add(w),p);return{center:H,zoom:p}},fitBounds:function(t,i){if(t=oe(t),!t.isValid())throw new Error("Bounds are not valid.");var a=this._getBoundsCenterZoom(t,i);return this.setView(a.center,a.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=G(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.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 wp,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),i.animate!==!1){He(this._mapPane,"leaflet-pan-anim");var a=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,a,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,a){if(a=a||{},a.animate===!1||!ve.any3d)return this.setView(t,i,a);this._stop();var u=this.project(this.getCenter()),p=this.project(t),w=this.getSize(),O=this._zoom;t=K(t),i=i===void 0?O:i;var D=Math.max(w.x,w.y),H=D*this.getZoomScale(O,i),Q=p.distanceTo(u)||1,be=1.42,Re=be*be;function Xe(zt){var Ws=zt?-1:1,Jw=zt?H:D,eC=H*H-D*D+Ws*Re*Re*Q*Q,tC=2*Jw*Re*Q,Bc=eC/tC,nm=Math.sqrt(Bc*Bc+1)-Bc,nC=nm<1e-9?-18:Math.log(nm);return nC}function fn(zt){return(Math.exp(zt)-Math.exp(-zt))/2}function Jt(zt){return(Math.exp(zt)+Math.exp(-zt))/2}function Mn(zt){return fn(zt)/Jt(zt)}var vn=Xe(0);function Ao(zt){return D*(Jt(vn)/Jt(vn+be*zt))}function Kw(zt){return D*(Jt(vn)*Mn(vn+be*zt)-fn(vn))/Re}function Qw(zt){return 1-Math.pow(1-zt,1.5)}var Yw=Date.now(),em=(Xe(1)-vn)/be,Xw=a.duration?1e3*a.duration:1e3*em*.8;function tm(){var zt=(Date.now()-Yw)/Xw,Ws=Qw(zt)*em;zt<=1?(this._flyToFrame=$(tm,this),this._move(this.unproject(u.add(p.subtract(u).multiplyBy(Kw(Ws)/Q)),O),this.getScaleZoom(D/Ao(Ws),O),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}return this._moveStart(!0,a.noMoveStart),tm.call(this),this},flyToBounds:function(t,i){var a=this._getBoundsCenterZoom(t,i);return this.flyTo(a.center,a.zoom,i)},setMaxBounds:function(t){return t=oe(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 i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var a=this.getCenter(),u=this._limitCenter(a,this._zoom,oe(t));return a.equals(u)||this.panTo(u,i),this._enforcingBounds=!1,this},panInside:function(t,i){i=i||{};var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.project(this.getCenter()),w=this.project(t),O=this.getPixelBounds(),D=ne([O.min.add(a),O.max.subtract(u)]),H=D.getSize();if(!D.contains(w)){this._enforcingBounds=!0;var Q=w.subtract(D.getCenter()),be=D.extend(w).getSize().subtract(H);p.x+=Q.x<0?-be.x:be.x,p.y+=Q.y<0?-be.y:be.y,this.panTo(this.unproject(p),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=s({animate:!1,pan:!0},t===!0?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),u=i.divideBy(2).round(),p=a.divideBy(2).round(),w=u.subtract(p);return!w.x&&!w.y?this:(t.animate&&t.pan?this.panBy(w):(t.pan&&this._rawPanBy(w),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,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=s({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=c(this._handleGeolocationResponse,this),a=c(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,a,t):navigator.geolocation.getCurrentPosition(i,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 i=t.code,a=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+a+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,a=t.coords.longitude,u=new ee(i,a),p=u.toBounds(t.coords.accuracy*2),w=this._locateOptions;if(w.setView){var O=this.getBoundsZoom(p);this.setView(u,w.maxZoom?Math.min(O,w.maxZoom):O)}var D={latlng:u,bounds:p,timestamp:t.timestamp};for(var H in t.coords)typeof t.coords[H]=="number"&&(D[H]=t.coords[H]);this.fire("locationfound",D)}},addHandler:function(t,i){if(!i)return this;var a=this[t]=new i(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(),Ue(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(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)Ue(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var a="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),u=ke("div",a,i||this._mapPane);return t&&(this._panes[t]=u),u},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(),i=this.unproject(t.getBottomLeft()),a=this.unproject(t.getTopRight());return new de(i,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,i,a){t=oe(t),a=G(a||[0,0]);var u=this.getZoom()||0,p=this.getMinZoom(),w=this.getMaxZoom(),O=t.getNorthWest(),D=t.getSouthEast(),H=this.getSize().subtract(a),Q=ne(this.project(D,u),this.project(O,u)).getSize(),be=ve.any3d?this.options.zoomSnap:1,Re=H.x/Q.x,Xe=H.y/Q.y,fn=i?Math.max(Re,Xe):Math.min(Re,Xe);return u=this.getScaleZoom(fn,u),be&&(u=Math.round(u/(be/100))*(be/100),u=i?Math.ceil(u/be)*be:Math.floor(u/be)*be),Math.max(p,Math.min(w,u))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var a=this._getTopLeftPoint(t,i);return new ie(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,i){var a=this.options.crs;return i=i===void 0?this._zoom:i,a.scale(t)/a.scale(i)},getScaleZoom:function(t,i){var a=this.options.crs;i=i===void 0?this._zoom:i;var u=a.zoom(t*a.scale(i));return isNaN(u)?1/0:u},project:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(K(t),i)},unproject:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(G(t),i)},layerPointToLatLng:function(t){var i=G(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(K(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(K(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(oe(t))},distance:function(t,i){return this.options.crs.distance(K(t),K(i))},containerPointToLayerPoint:function(t){return G(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return G(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(G(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(t)))},mouseEventToContainerPoint:function(t){return _p(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 i=this._container=wo(t);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");je(i,"scroll",this._onScroll,this),this._containerId=h(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ve.any3d,He(t,"leaflet-container"+(ve.touch?" leaflet-touch":"")+(ve.retina?" leaflet-retina":"")+(ve.ielt9?" leaflet-oldie":"")+(ve.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=Me(t,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="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),It(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(He(t.markerPane,"leaflet-zoom-hide"),He(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,a){It(this._mapPane,new Z(0,0));var u=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var p=this._zoom!==i;this._moveStart(p,a)._move(t,i)._moveEnd(p),this.fire("viewreset"),u&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,a,u){i===void 0&&(i=this._zoom);var p=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),u?a&&a.pinch&&this.fire("zoom",a):((p||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 j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){It(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[h(this._container)]=this;var i=t?_t:je;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),ve.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=$(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,i){for(var a=[],u,p=i==="mouseout"||i==="mouseover",w=t.target||t.srcElement,O=!1;w;){if(u=this._targets[h(w)],u&&(i==="click"||i==="preclick")&&this._draggableMoved(u)){O=!0;break}if(u&&u.listens(i,!0)&&(p&&!Pc(w,t)||(a.push(u),p))||w===this._container)break;w=w.parentNode}return!a.length&&!O&&!p&&this.listens(i,!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 i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(i))){var a=t.type;a==="mousedown"&&_c(i),this._fireDOMEvent(t,a)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,a){if(t.type==="click"){var u=s({},t);u.type="preclick",this._fireDOMEvent(u,u.type,a)}var p=this._findEventTargets(t,i);if(a){for(var w=[],O=0;O<a.length;O++)a[O].listens(i,!0)&&w.push(a[O]);p=w.concat(p)}if(p.length){i==="contextmenu"&&nn(t);var D=p[0],H={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var Q=D.getLatLng&&(!D._radius||D._radius<=10);H.containerPoint=Q?this.latLngToContainerPoint(D.getLatLng()):this.mouseEventToContainerPoint(t),H.layerPoint=this.containerPointToLayerPoint(H.containerPoint),H.latlng=Q?D.getLatLng():this.layerPointToLatLng(H.layerPoint)}for(O=0;O<p.length;O++)if(p[O].fire(i,H,!0),H.originalEvent._stopped||p[O].options.bubblingMouseEvents===!1&&T(this._mouseEvents,i)!==-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,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return ir(this._mapPane)||new Z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var a=t&&i!==void 0?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return a.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var a=this.getSize()._divideBy(2);return this.project(t,i)._subtract(a)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return this.project(t,i)._subtract(u)},_latLngBoundsToNewLayerBounds:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return ne([this.project(t.getSouthWest(),i)._subtract(u),this.project(t.getNorthWest(),i)._subtract(u),this.project(t.getSouthEast(),i)._subtract(u),this.project(t.getNorthEast(),i)._subtract(u)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,a){if(!a)return t;var u=this.project(t,i),p=this.getSize().divideBy(2),w=new ie(u.subtract(p),u.add(p)),O=this._getBoundsOffset(w,a,i);return Math.abs(O.x)<=1&&Math.abs(O.y)<=1?t:this.unproject(u.add(O),i)},_limitOffset:function(t,i){if(!i)return t;var a=this.getPixelBounds(),u=new ie(a.min.add(t),a.max.add(t));return t.add(this._getBoundsOffset(u,i))},_getBoundsOffset:function(t,i,a){var u=ne(this.project(i.getNorthEast(),a),this.project(i.getSouthWest(),a)),p=u.min.subtract(t.min),w=u.max.subtract(t.max),O=this._rebound(p.x,-w.x),D=this._rebound(p.y,-w.y);return new Z(O,D)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),a=this.getMaxZoom(),u=ve.any3d?this.options.zoomSnap:1;return u&&(t=Math.round(t/u)*u),Math.max(i,Math.min(a,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){St(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var a=this._getCenterOffset(t)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(a)?!1:(this.panBy(a,i),!0)},_createAnimProxy:function(){var t=this._proxy=ke("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(i){var a=or,u=this._proxy.style[a];dn(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),u===this._proxy.style[a]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ue(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();dn(this._proxy,this.project(t,i),this.getZoomScale(i,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,i,a){if(this._animatingZoom)return!0;if(a=a||{},!this._zoomAnimated||a.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var u=this.getZoomScale(i),p=this._getCenterOffset(t)._divideBy(1-1/u);return a.animate!==!0&&!this.getSize().contains(p)?!1:($(function(){this._moveStart(!0,a.noMoveStart||!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,a,u){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,He(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:u}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&St(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 fw(t,i){return new it(t,i)}var Dn=W.extend({options:{position:"topright"},initialize:function(t){x(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),a=this.getPosition(),u=t._controlCorners[a];return He(i,"leaflet-control"),a.indexOf("bottom")!==-1?u.insertBefore(i,u.firstChild):u.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ue(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()}}),vi=function(t){return new Dn(t)};it.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",a=this._controlContainer=ke("div",i+"control-container",this._container);function u(p,w){var O=i+p+" "+i+w;t[p+w]=ke("div",O,a)}u("top","left"),u("top","right"),u("bottom","left"),u("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Ue(this._controlCorners[t]);Ue(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Cp=Dn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,a,u){return a<u?-1:u<a?1:0}},initialize:function(t,i,a){x(this,a),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var u in t)this._addLayer(t[u],u);for(u in i)this._addLayer(i[u],u,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Dn.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,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(h(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){He(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?(He(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):St(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return St(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=ke("div",t),a=this.options.collapsed;i.setAttribute("aria-haspopup",!0),gi(i),Ec(i);var u=this._section=ke("section",t+"-list");a&&(this._map.on("click",this.collapse,this),je(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var p=this._layersLink=ke("a",t+"-toggle",i);p.href="#",p.title="Layers",p.setAttribute("role","button"),je(p,{keydown:function(w){w.keyCode===13&&this._expandSafely()},click:function(w){nn(w),this._expandSafely()}},this),a||this.expand(),this._baseLayersList=ke("div",t+"-base",u),this._separator=ke("div",t+"-separator",u),this._overlaysList=ke("div",t+"-overlays",u),i.appendChild(u)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,a){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:a}),this.options.sortLayers&&this._layers.sort(c(function(u,p){return this.options.sortFunction(u.layer,p.layer,u.name,p.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Tn(this._baseLayersList),Tn(this._overlaysList),this._layerControlInputs=[];var t,i,a,u,p=0;for(a=0;a<this._layers.length;a++)u=this._layers[a],this._addItem(u),i=i||u.overlay,t=t||!u.overlay,p+=u.overlay?0:1;return this.options.hideSingleBase&&(t=t&&p>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),a=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;a&&this._map.fire(a,i)},_createRadioElement:function(t,i){var a='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",u=document.createElement("div");return u.innerHTML=a,u.firstChild},_addItem:function(t){var i=document.createElement("label"),a=this._map.hasLayer(t.layer),u;t.overlay?(u=document.createElement("input"),u.type="checkbox",u.className="leaflet-control-layers-selector",u.defaultChecked=a):u=this._createRadioElement("leaflet-base-layers_"+h(this),a),this._layerControlInputs.push(u),u.layerId=h(t.layer),je(u,"click",this._onInputClick,this);var p=document.createElement("span");p.innerHTML=" "+t.name;var w=document.createElement("span");i.appendChild(w),w.appendChild(u),w.appendChild(p);var O=t.overlay?this._overlaysList:this._baseLayersList;return O.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,i,a,u=[],p=[];this._handlingClick=!0;for(var w=t.length-1;w>=0;w--)i=t[w],a=this._getLayer(i.layerId).layer,i.checked?u.push(a):i.checked||p.push(a);for(w=0;w<p.length;w++)this._map.hasLayer(p[w])&&this._map.removeLayer(p[w]);for(w=0;w<u.length;w++)this._map.hasLayer(u[w])||this._map.addLayer(u[w]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,i,a,u=this._map.getZoom(),p=t.length-1;p>=0;p--)i=t[p],a=this._getLayer(i.layerId).layer,i.disabled=a.options.minZoom!==void 0&&u<a.options.minZoom||a.options.maxZoom!==void 0&&u>a.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,je(t,"click",nn),this.expand();var i=this;setTimeout(function(){_t(t,"click",nn),i._preventClick=!1})}}),hw=function(t,i,a){return new Cp(t,i,a)},Ic=Dn.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 i="leaflet-control-zoom",a=ke("div",i+" leaflet-bar"),u=this.options;return this._zoomInButton=this._createButton(u.zoomInText,u.zoomInTitle,i+"-in",a,this._zoomIn),this._zoomOutButton=this._createButton(u.zoomOutText,u.zoomOutTitle,i+"-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,i,a,u,p){var w=ke("a",a,u);return w.innerHTML=t,w.href="#",w.title=i,w.setAttribute("role","button"),w.setAttribute("aria-label",i),gi(w),je(w,"click",Vr),je(w,"click",p,this),je(w,"click",this._refocusOnMap,this),w},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";St(this._zoomInButton,i),St(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(He(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(He(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});it.mergeOptions({zoomControl:!0}),it.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ic,this.addControl(this.zoomControl))});var pw=function(t){return new Ic(t)},Sp=Dn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",a=ke("div",i),u=this.options;return this._addScales(u,i+"-line",a),t.on(u.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,i,a){t.metric&&(this._mScale=ke("div",i,a)),t.imperial&&(this._iScale=ke("div",i,a))},_update:function(){var t=this._map,i=t.getSize().y/2,a=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(a)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),a=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,a,i/t)},_updateImperial:function(t){var i=t*3.2808399,a,u,p;i>5280?(a=i/5280,u=this._getRoundNum(a),this._updateScale(this._iScale,u+" mi",u/a)):(p=this._getRoundNum(i),this._updateScale(this._iScale,p+" ft",p/i))},_updateScale:function(t,i,a){t.style.width=Math.round(this.options.maxWidth*a)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),a=t/i;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:1,i*a}}),mw=function(t){return new Sp(t)},gw='<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>',Tc=Dn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ve.inlineSvg?gw+" ":"")+"Leaflet</a>"},initialize:function(t){x(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=ke("div","leaflet-control-attribution"),gi(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].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 i in this._attributions)this._attributions[i]&&t.push(i);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> ')}}});it.mergeOptions({attributionControl:!0}),it.addInitHook(function(){this.options.attributionControl&&new Tc().addTo(this)});var vw=function(t){return new Tc(t)};Dn.Layers=Cp,Dn.Zoom=Ic,Dn.Scale=Sp,Dn.Attribution=Tc,vi.layers=hw,vi.zoom=pw,vi.scale=mw,vi.attribution=vw;var jn=W.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}});jn.addTo=function(t,i){return t.addHandler(i,this),this};var yw={Events:X},Ep=ve.touch?"touchstart mousedown":"mousedown",wr=J.extend({options:{clickTolerance:3},initialize:function(t,i,a,u){x(this,u),this._element=t,this._dragStartTarget=i||t,this._preventOutline=a},enable:function(){this._enabled||(je(this._dragStartTarget,Ep,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(wr._dragging===this&&this.finishDrag(!0),_t(this._dragStartTarget,Ep,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Co(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){wr._dragging===this&&this.finishDrag();return}if(!(wr._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(wr._dragging=this,this._preventOutline&&_c(this._element),vc(),xr(),!this._moving)){this.fire("down");var i=t.touches?t.touches[0]:t,a=vp(this._element);this._startPoint=new Z(i.clientX,i.clientY),this._startPos=ir(this._element),this._parentScale=xc(a);var u=t.type==="mousedown";je(document,u?"mousemove":"touchmove",this._onMove,this),je(document,u?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,a=new Z(i.clientX,i.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,nn(t),this._moved||(this.fire("dragstart"),this._moved=!0,He(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),He(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),It(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){St(document.body,"leaflet-dragging"),this._lastTarget&&(St(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_t(document,"mousemove touchmove",this._onMove,this),_t(document,"mouseup touchend touchcancel",this._onUp,this),yc(),pi();var i=this._moved&&this._moving;this._moving=!1,wr._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Pp(t,i,a){var u,p=[1,4,2,8],w,O,D,H,Q,be,Re,Xe;for(w=0,be=t.length;w<be;w++)t[w]._code=Wr(t[w],i);for(D=0;D<4;D++){for(Re=p[D],u=[],w=0,be=t.length,O=be-1;w<be;O=w++)H=t[w],Q=t[O],H._code&Re?Q._code&Re||(Xe=Os(Q,H,Re,i,a),Xe._code=Wr(Xe,i),u.push(Xe)):(Q._code&Re&&(Xe=Os(Q,H,Re,i,a),Xe._code=Wr(Xe,i),u.push(Xe)),u.push(H));t=u}return t}function Ip(t,i){var a,u,p,w,O,D,H,Q,be;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var Re=K([0,0]),Xe=oe(t),fn=Xe.getNorthWest().distanceTo(Xe.getSouthWest())*Xe.getNorthEast().distanceTo(Xe.getNorthWest());fn<1700&&(Re=Ac(t));var Jt=t.length,Mn=[];for(a=0;a<Jt;a++){var vn=K(t[a]);Mn.push(i.project(K([vn.lat-Re.lat,vn.lng-Re.lng])))}for(D=H=Q=0,a=0,u=Jt-1;a<Jt;u=a++)p=Mn[a],w=Mn[u],O=p.y*w.x-w.y*p.x,H+=(p.x+w.x)*O,Q+=(p.y+w.y)*O,D+=O*3;D===0?be=Mn[0]:be=[H/D,Q/D];var Ao=i.unproject(G(be));return K([Ao.lat+Re.lat,Ao.lng+Re.lng])}function Ac(t){for(var i=0,a=0,u=0,p=0;p<t.length;p++){var w=K(t[p]);i+=w.lat,a+=w.lng,u++}return K([i/u,a/u])}var bw={__proto__:null,clipPolygon:Pp,polygonCenter:Ip,centroid:Ac};function Tp(t,i){if(!i||!t.length)return t.slice();var a=i*i;return t=ww(t,a),t=xw(t,a),t}function Ap(t,i,a){return Math.sqrt(yi(t,i,a,!0))}function _w(t,i,a){return yi(t,i,a)}function xw(t,i){var a=t.length,u=typeof Uint8Array!=void 0+""?Uint8Array:Array,p=new u(a);p[0]=p[a-1]=1,Mc(t,p,i,0,a-1);var w,O=[];for(w=0;w<a;w++)p[w]&&O.push(t[w]);return O}function Mc(t,i,a,u,p){var w=0,O,D,H;for(D=u+1;D<=p-1;D++)H=yi(t[D],t[u],t[p],!0),H>w&&(O=D,w=H);w>a&&(i[O]=1,Mc(t,i,a,u,O),Mc(t,i,a,O,p))}function ww(t,i){for(var a=[t[0]],u=1,p=0,w=t.length;u<w;u++)Cw(t[u],t[p])>i&&(a.push(t[u]),p=u);return p<w-1&&a.push(t[w-1]),a}var Mp;function Lp(t,i,a,u,p){var w=u?Mp:Wr(t,a),O=Wr(i,a),D,H,Q;for(Mp=O;;){if(!(w|O))return[t,i];if(w&O)return!1;D=w||O,H=Os(t,i,D,a,p),Q=Wr(H,a),D===w?(t=H,w=Q):(i=H,O=Q)}}function Os(t,i,a,u,p){var w=i.x-t.x,O=i.y-t.y,D=u.min,H=u.max,Q,be;return a&8?(Q=t.x+w*(H.y-t.y)/O,be=H.y):a&4?(Q=t.x+w*(D.y-t.y)/O,be=D.y):a&2?(Q=H.x,be=t.y+O*(H.x-t.x)/w):a&1&&(Q=D.x,be=t.y+O*(D.x-t.x)/w),new Z(Q,be,p)}function Wr(t,i){var a=0;return t.x<i.min.x?a|=1:t.x>i.max.x&&(a|=2),t.y<i.min.y?a|=4:t.y>i.max.y&&(a|=8),a}function Cw(t,i){var a=i.x-t.x,u=i.y-t.y;return a*a+u*u}function yi(t,i,a,u){var p=i.x,w=i.y,O=a.x-p,D=a.y-w,H=O*O+D*D,Q;return H>0&&(Q=((t.x-p)*O+(t.y-w)*D)/H,Q>1?(p=a.x,w=a.y):Q>0&&(p+=O*Q,w+=D*Q)),O=t.x-p,D=t.y-w,u?O*O+D*D:new Z(p,w)}function An(t){return!P(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Op(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(t)}function kp(t,i){var a,u,p,w,O,D,H,Q;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var be=K([0,0]),Re=oe(t),Xe=Re.getNorthWest().distanceTo(Re.getSouthWest())*Re.getNorthEast().distanceTo(Re.getNorthWest());Xe<1700&&(be=Ac(t));var fn=t.length,Jt=[];for(a=0;a<fn;a++){var Mn=K(t[a]);Jt.push(i.project(K([Mn.lat-be.lat,Mn.lng-be.lng])))}for(a=0,u=0;a<fn-1;a++)u+=Jt[a].distanceTo(Jt[a+1])/2;if(u===0)Q=Jt[0];else for(a=0,w=0;a<fn-1;a++)if(O=Jt[a],D=Jt[a+1],p=O.distanceTo(D),w+=p,w>u){H=(w-u)/p,Q=[D.x-H*(D.x-O.x),D.y-H*(D.y-O.y)];break}var vn=i.unproject(G(Q));return K([vn.lat+be.lat,vn.lng+be.lng])}var Sw={__proto__:null,simplify:Tp,pointToSegmentDistance:Ap,closestPointOnSegment:_w,clipSegment:Lp,_getEdgeIntersection:Os,_getBitCode:Wr,_sqClosestPointOnSegment:yi,isFlat:An,_flat:Op,polylineCenter:kp},Lc={project:function(t){return new Z(t.lng,t.lat)},unproject:function(t){return new ee(t.y,t.x)},bounds:new ie([-180,-90],[180,90])},Oc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ie([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var i=Math.PI/180,a=this.R,u=t.lat*i,p=this.R_MINOR/a,w=Math.sqrt(1-p*p),O=w*Math.sin(u),D=Math.tan(Math.PI/4-u/2)/Math.pow((1-O)/(1+O),w/2);return u=-a*Math.log(Math.max(D,1e-10)),new Z(t.lng*i*a,u)},unproject:function(t){for(var i=180/Math.PI,a=this.R,u=this.R_MINOR/a,p=Math.sqrt(1-u*u),w=Math.exp(-t.y/a),O=Math.PI/2-2*Math.atan(w),D=0,H=.1,Q;D<15&&Math.abs(H)>1e-7;D++)Q=p*Math.sin(O),Q=Math.pow((1-Q)/(1+Q),p/2),H=Math.PI/2-2*Math.atan(w*Q)-O,O+=H;return new ee(O*i,t.x*i/a)}},Ew={__proto__:null,LonLat:Lc,Mercator:Oc,SphericalMercator:xe},Pw=s({},se,{code:"EPSG:3395",projection:Oc,transformation:function(){var t=.5/(Math.PI*Oc.R);return Te(t,.5,-t,.5)}()}),Np=s({},se,{code:"EPSG:4326",projection:Lc,transformation:Te(1/180,1,-1/180,.5)}),Iw=s({},Y,{projection:Lc,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,i){var a=i.lng-t.lng,u=i.lat-t.lat;return Math.sqrt(a*a+u*u)},infinite:!0});Y.Earth=se,Y.EPSG3395=Pw,Y.EPSG3857=Ce,Y.EPSG900913=te,Y.EPSG4326=Np,Y.Simple=Iw;var Fn=J.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[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var a=this.getEvents();i.on(a,this),this.once("remove",function(){i.off(a,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});it.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=h(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var a in this._layers)t.call(i,this._layers[a]);return this},_addLayers:function(t){t=t?P(t)?t:[t]:[];for(var i=0,a=t.length;i<a;i++)this.addLayer(t[i])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=h(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,a=this._getZoomSpan();for(var u in this._zoomBoundLayers){var p=this._zoomBoundLayers[u].options;t=p.minZoom===void 0?t:Math.min(t,p.minZoom),i=p.maxZoom===void 0?i:Math.max(i,p.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,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 So=Fn.extend({initialize:function(t,i){x(this,i),this._layers={};var a,u;if(t)for(a=0,u=t.length;a<u;a++)this.addLayer(t[a])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){var i=typeof t=="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),a,u;for(a in this._layers)u=this._layers[a],u[t]&&u[t].apply(u,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var a in this._layers)t.call(i,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 h(t)}}),Tw=function(t,i){return new So(t,i)},sr=So.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),So.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),So.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 de;for(var i in this._layers){var a=this._layers[i];t.extend(a.getBounds?a.getBounds():a.getLatLng())}return t}}),Aw=function(t,i){return new sr(t,i)},Eo=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){x(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){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 u=this._createImg(a,i&&i.tagName==="IMG"?i:null);return this._setIconStyles(u,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),u},_setIconStyles:function(t,i){var a=this.options,u=a[i+"Size"];typeof u=="number"&&(u=[u,u]);var p=G(u),w=G(i==="shadow"&&a.shadowAnchor||a.iconAnchor||p&&p.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(a.className||""),w&&(t.style.marginLeft=-w.x+"px",t.style.marginTop=-w.y+"px"),p&&(t.style.width=p.x+"px",t.style.height=p.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return ve.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Mw(t){return new Eo(t)}var bi=Eo.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 bi.imagePath!="string"&&(bi.imagePath=this._detectIconPath()),(this.options.imagePath||bi.imagePath)+Eo.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(a,u,p){var w=u.exec(a);return w&&w[p]};return t=i(t,/^url\((['"])?(.+)\1\)$/,2),t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ke("div","leaflet-default-icon-path",document.body),i=Me(t,"background-image")||Me(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i),i)return i;var a=document.querySelector('link[href$="leaflet.css"]');return a?a.href.substring(0,a.href.length-11-1):""}}),Rp=jn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new wr(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),He(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&&St(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,a=i._map,u=this._marker.options.autoPanSpeed,p=this._marker.options.autoPanPadding,w=ir(i._icon),O=a.getPixelBounds(),D=a.getPixelOrigin(),H=ne(O.min._subtract(D).add(p),O.max._subtract(D).subtract(p));if(!H.contains(w)){var Q=G((Math.max(H.max.x,w.x)-H.max.x)/(O.max.x-H.max.x)-(Math.min(H.min.x,w.x)-H.min.x)/(O.min.x-H.min.x),(Math.max(H.max.y,w.y)-H.max.y)/(O.max.y-H.max.y)-(Math.min(H.min.y,w.y)-H.min.y)/(O.min.y-H.min.y)).multiplyBy(u);a.panBy(Q,{animate:!1}),this._draggable._newPos._add(Q),this._draggable._startPos._add(Q),It(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=$(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&&(j(this._panRequest),this._panRequest=$(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,a=i._shadow,u=ir(i._icon),p=i._map.layerPointToLatLng(u);a&&It(a,u),i._latlng=p,t.latlng=p,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){j(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ks=Fn.extend({options:{icon:new bi,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,i){x(this,i),this._latlng=K(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 i=this._latlng;return this._latlng=K(t),this.update(),this.fire("move",{oldLatLng:i,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,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=t.icon.createIcon(this._icon),u=!1;a!==this._icon&&(this._icon&&this._removeIcon(),u=!0,t.title&&(a.title=t.title),a.tagName==="IMG"&&(a.alt=t.alt||"")),He(a,i),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&&je(a,"focus",this._panOnFocus,this);var p=t.icon.createShadow(this._shadow),w=!1;p!==this._shadow&&(this._removeShadow(),w=!0),p&&(He(p,i),p.alt=""),this._shadow=p,t.opacity<1&&this._updateOpacity(),u&&this.getPane().appendChild(this._icon),this._initInteraction(),p&&w&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_t(this._icon,"focus",this._panOnFocus,this),Ue(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ue(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&It(this._icon,t),this._shadow&&It(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 i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(He(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Rp)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Rp(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&&Ne(this._icon,t),this._shadow&&Ne(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,a=i.iconSize?G(i.iconSize):G(0,0),u=i.iconAnchor?G(i.iconAnchor):G(0,0);t.panInside(this._latlng,{paddingTopLeft:u,paddingBottomRight:a.subtract(u)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Lw(t,i){return new ks(t,i)}var Cr=Fn.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 x(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)}}),Ns=Cr.extend({options:{fill:!0,radius:10},initialize:function(t,i){x(this,i),this._latlng=K(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=K(t),this.redraw(),this.fire("move",{oldLatLng:i,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 i=t&&t.radius||this._radius;return Cr.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,a=this._clickTolerance(),u=[t+a,i+a];this._pxBounds=new ie(this._point.subtract(u),this._point.add(u))},_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 Ow(t,i){return new Ns(t,i)}var kc=Ns.extend({initialize:function(t,i,a){if(typeof i=="number"&&(i=s({},a,{radius:i})),x(this,i),this._latlng=K(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 de(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Cr.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,a=this._map,u=a.options.crs;if(u.distance===se.distance){var p=Math.PI/180,w=this._mRadius/se.R/p,O=a.project([i+w,t]),D=a.project([i-w,t]),H=O.add(D).divideBy(2),Q=a.unproject(H).lat,be=Math.acos((Math.cos(w*p)-Math.sin(i*p)*Math.sin(Q*p))/(Math.cos(i*p)*Math.cos(Q*p)))/p;(isNaN(be)||be===0)&&(be=w/Math.cos(Math.PI/180*i)),this._point=H.subtract(a.getPixelOrigin()),this._radius=isNaN(be)?0:H.x-a.project([Q,t-be]).x,this._radiusY=H.y-O.y}else{var Re=u.unproject(u.project(this._latlng).subtract([this._mRadius,0]));this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(Re).x}this._updateBounds()}});function kw(t,i,a){return new kc(t,i,a)}var ar=Cr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){x(this,i),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 i=1/0,a=null,u=yi,p,w,O=0,D=this._parts.length;O<D;O++)for(var H=this._parts[O],Q=1,be=H.length;Q<be;Q++){p=H[Q-1],w=H[Q];var Re=u(t,p,w,!0);Re<i&&(i=Re,a=u(t,p,w))}return a&&(a.distance=Math.sqrt(i)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return kp(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=K(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new de,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],a=An(t),u=0,p=t.length;u<p;u++)a?(i[u]=K(t[u]),this._bounds.extend(i[u])):i[u]=this._convertLatLngs(t[u]);return i},_project:function(){var t=new ie;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(),i=new Z(t,t);this._rawPxBounds&&(this._pxBounds=new ie([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,a){var u=t[0]instanceof ee,p=t.length,w,O;if(u){for(O=[],w=0;w<p;w++)O[w]=this._map.latLngToLayerPoint(t[w]),a.extend(O[w]);i.push(O)}else for(w=0;w<p;w++)this._projectLatlngs(t[w],i,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 i=this._parts,a,u,p,w,O,D,H;for(a=0,p=0,w=this._rings.length;a<w;a++)for(H=this._rings[a],u=0,O=H.length;u<O-1;u++)D=Lp(H[u],H[u+1],t,u,!0),D&&(i[p]=i[p]||[],i[p].push(D[0]),(D[1]!==H[u+1]||u===O-2)&&(i[p].push(D[1]),p++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,a=0,u=t.length;a<u;a++)t[a]=Tp(t[a],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var a,u,p,w,O,D,H=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,w=this._parts.length;a<w;a++)for(D=this._parts[a],u=0,O=D.length,p=O-1;u<O;p=u++)if(!(!i&&u===0)&&Ap(t,D[p],D[u])<=H)return!0;return!1}});function Nw(t,i){return new ar(t,i)}ar._flat=Op;var Po=ar.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 Ip(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=ar.prototype._convertLatLngs.call(this,t),a=i.length;return a>=2&&i[0]instanceof ee&&i[0].equals(i[a-1])&&i.pop(),i},_setLatLngs:function(t){ar.prototype._setLatLngs.call(this,t),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,a=new Z(i,i);if(t=new ie(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 u=0,p=this._rings.length,w;u<p;u++)w=Pp(this._rings[u],t,!0),w.length&&this._parts.push(w)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i=!1,a,u,p,w,O,D,H,Q;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(w=0,H=this._parts.length;w<H;w++)for(a=this._parts[w],O=0,Q=a.length,D=Q-1;O<Q;D=O++)u=a[O],p=a[D],u.y>t.y!=p.y>t.y&&t.x<(p.x-u.x)*(t.y-u.y)/(p.y-u.y)+u.x&&(i=!i);return i||ar.prototype._containsPoint.call(this,t,!0)}});function Rw(t,i){return new Po(t,i)}var lr=sr.extend({initialize:function(t,i){x(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i=P(t)?t:t.features,a,u,p;if(i){for(a=0,u=i.length;a<u;a++)p=i[a],(p.geometries||p.geometry||p.features||p.coordinates)&&this.addData(p);return this}var w=this.options;if(w.filter&&!w.filter(t))return this;var O=Rs(t,w);return O?(O.feature=zs(t),O.defaultOptions=O.options,this.resetStyle(O),w.onEachFeature&&w.onEachFeature(t,O),this.addLayer(O)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=s({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){t.setStyle&&(typeof i=="function"&&(i=i(t.feature)),t.setStyle(i))}});function Rs(t,i){var a=t.type==="Feature"?t.geometry:t,u=a?a.coordinates:null,p=[],w=i&&i.pointToLayer,O=i&&i.coordsToLatLng||Nc,D,H,Q,be;if(!u&&!a)return null;switch(a.type){case"Point":return D=O(u),$p(w,t,D,i);case"MultiPoint":for(Q=0,be=u.length;Q<be;Q++)D=O(u[Q]),p.push($p(w,t,D,i));return new sr(p);case"LineString":case"MultiLineString":return H=$s(u,a.type==="LineString"?0:1,O),new ar(H,i);case"Polygon":case"MultiPolygon":return H=$s(u,a.type==="Polygon"?1:2,O),new Po(H,i);case"GeometryCollection":for(Q=0,be=a.geometries.length;Q<be;Q++){var Re=Rs({geometry:a.geometries[Q],type:"Feature",properties:t.properties},i);Re&&p.push(Re)}return new sr(p);case"FeatureCollection":for(Q=0,be=a.features.length;Q<be;Q++){var Xe=Rs(a.features[Q],i);Xe&&p.push(Xe)}return new sr(p);default:throw new Error("Invalid GeoJSON object.")}}function $p(t,i,a,u){return t?t(i,a):new ks(a,u&&u.markersInheritOptions&&u)}function Nc(t){return new ee(t[1],t[0],t[2])}function $s(t,i,a){for(var u=[],p=0,w=t.length,O;p<w;p++)O=i?$s(t[p],i-1,a):(a||Nc)(t[p]),u.push(O);return u}function Rc(t,i){return t=K(t),t.alt!==void 0?[y(t.lng,i),y(t.lat,i),y(t.alt,i)]:[y(t.lng,i),y(t.lat,i)]}function Bs(t,i,a,u){for(var p=[],w=0,O=t.length;w<O;w++)p.push(i?Bs(t[w],An(t[w])?0:i-1,a,u):Rc(t[w],u));return!i&&a&&p.length>0&&p.push(p[0].slice()),p}function Io(t,i){return t.feature?s({},t.feature,{geometry:i}):zs(i)}function zs(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var $c={toGeoJSON:function(t){return Io(this,{type:"Point",coordinates:Rc(this.getLatLng(),t)})}};ks.include($c),kc.include($c),Ns.include($c),ar.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=Bs(this._latlngs,i?1:0,!1,t);return Io(this,{type:(i?"Multi":"")+"LineString",coordinates:a})}}),Po.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=i&&!An(this._latlngs[0]),u=Bs(this._latlngs,a?2:i?1:0,!0,t);return i||(u=[u]),Io(this,{type:(a?"Multi":"")+"Polygon",coordinates:u})}}),So.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(a){i.push(a.toGeoJSON(t).geometry.coordinates)}),Io(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(t);var a=i==="GeometryCollection",u=[];return this.eachLayer(function(p){if(p.toGeoJSON){var w=p.toGeoJSON(t);if(a)u.push(w.geometry);else{var O=zs(w);O.type==="FeatureCollection"?u.push.apply(u,O.features):u.push(O)}}}),a?Io(this,{geometries:u,type:"GeometryCollection"}):{type:"FeatureCollection",features:u}}});function Bp(t,i){return new lr(t,i)}var $w=Bp,Ds=Fn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,a){this._url=t,this._bounds=oe(i),x(this,a)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(He(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ue(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&&gn(this._image),this},bringToBack:function(){return this._map&&Bn(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=oe(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",i=this._image=t?this._url:ke("img");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onload=c(this.fire,this,"load"),i.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),a=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;dn(this._image,a,i)},_reset:function(){var t=this._image,i=new ie(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),a=i.getSize();It(t,i.min),t.style.width=a.x+"px",t.style.height=a.y+"px"},_updateOpacity:function(){Ne(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()}}),Bw=function(t,i,a){return new Ds(t,i,a)},zp=Ds.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",i=this._image=t?this._url:ke("video");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onloadeddata=c(this.fire,this,"load"),t){for(var a=i.getElementsByTagName("source"),u=[],p=0;p<a.length;p++)u.push(a[p].src);this._url=a.length>0?u:[i.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var w=0;w<this._url.length;w++){var O=ke("source");O.src=this._url[w],i.appendChild(O)}}});function zw(t,i,a){return new zp(t,i,a)}var Dp=Ds.extend({_initImage:function(){var t=this._image=this._url;He(t,"leaflet-image-layer"),this._zoomAnimated&&He(t,"leaflet-zoom-animated"),this.options.className&&He(t,this.options.className),t.onselectstart=v,t.onmousemove=v}});function Dw(t,i,a){return new Dp(t,i,a)}var Zn=Fn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof ee||P(t))?(this._latlng=K(t),x(this,i)):(x(this,t),this._source=i),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&&Ne(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Ne(this._container,1),this.bringToFront(),this.options.interactive&&(He(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Ne(this._container,0),this._removeTimeout=setTimeout(c(Ue,void 0,this._container),200)):Ue(this._container),this.options.interactive&&(St(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=K(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&&gn(this._container),this},bringToBack:function(){return this._map&&Bn(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof sr){i=null;var a=this._source._layers;for(var u in a)if(a[u]._map){i=a[u];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else if(i.getBounds)t=i.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,i=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof i=="string")t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=G(this.options.offset),a=this._getAnchor();this._zoomAnimated?It(this._container,t.add(a)):i=i.add(t).add(a);var u=this._containerBottom=-i.y,p=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=u+"px",this._container.style.left=p+"px"}},_getAnchor:function(){return[0,0]}});it.include({_initOverlay:function(t,i,a,u){var p=i;return p instanceof t||(p=new t(u).setContent(i)),a&&p.setLatLng(a),p}}),Fn.include({_initOverlay:function(t,i,a,u){var p=a;return p instanceof t?(x(p,u),p._source=this):(p=i&&!u?i:new t(u,this),p.setContent(a)),p}});var Fs=Zn.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,Zn.prototype.openOn.call(this,t)},onAdd:function(t){Zn.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Cr||this._source.on("preclick",Hr))},onRemove:function(t){Zn.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Cr||this._source.off("preclick",Hr))},getEvents:function(){var t=Zn.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",i=this._container=ke("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),a=this._wrapper=ke("div",t+"-content-wrapper",i);if(this._contentNode=ke("div",t+"-content",a),gi(i),Ec(this._contentNode),je(i,"contextmenu",Hr),this._tipContainer=ke("div",t+"-tip-container",i),this._tip=ke("div",t+"-tip",this._tipContainer),this.options.closeButton){var u=this._closeButton=ke("a",t+"-close-button",i);u.setAttribute("role","button"),u.setAttribute("aria-label","Close popup"),u.href="#close",u.innerHTML='<span aria-hidden="true">&#215;</span>',je(u,"click",function(p){nn(p),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var a=t.offsetWidth;a=Math.min(a,this.options.maxWidth),a=Math.max(a,this.options.minWidth),i.width=a+1+"px",i.whiteSpace="",i.height="";var u=t.offsetHeight,p=this.options.maxHeight,w="leaflet-popup-scrolled";p&&u>p?(i.height=p+"px",He(t,w)):St(t,w),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),a=this._getAnchor();It(this._container,i.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,i=parseInt(Me(this._container,"marginBottom"),10)||0,a=this._container.offsetHeight+i,u=this._containerWidth,p=new Z(this._containerLeft,-a-this._containerBottom);p._add(ir(this._container));var w=t.layerPointToContainerPoint(p),O=G(this.options.autoPanPadding),D=G(this.options.autoPanPaddingTopLeft||O),H=G(this.options.autoPanPaddingBottomRight||O),Q=t.getSize(),be=0,Re=0;w.x+u+H.x>Q.x&&(be=w.x+u-Q.x+H.x),w.x-be-D.x<0&&(be=w.x-D.x),w.y+a+H.y>Q.y&&(Re=w.y+a-Q.y+H.y),w.y-Re-D.y<0&&(Re=w.y-D.y),(be||Re)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([be,Re]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Fw=function(t,i){return new Fs(t,i)};it.mergeOptions({closePopupOnClick:!0}),it.include({openPopup:function(t,i,a){return this._initOverlay(Fs,t,i,a).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Fn.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Fs,this._popup,t,i),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 sr||(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)){Vr(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof Cr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=i,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Hs=Zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Zn.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){Zn.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=Zn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ke("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,a,u=this._map,p=this._container,w=u.latLngToContainerPoint(u.getCenter()),O=u.layerPointToContainerPoint(t),D=this.options.direction,H=p.offsetWidth,Q=p.offsetHeight,be=G(this.options.offset),Re=this._getAnchor();D==="top"?(i=H/2,a=Q):D==="bottom"?(i=H/2,a=0):D==="center"?(i=H/2,a=Q/2):D==="right"?(i=0,a=Q/2):D==="left"?(i=H,a=Q/2):O.x<w.x?(D="right",i=0,a=Q/2):(D="left",i=H+(be.x+Re.x)*2,a=Q/2),t=t.subtract(G(i,a,!0)).add(be).add(Re),St(p,"leaflet-tooltip-right"),St(p,"leaflet-tooltip-left"),St(p,"leaflet-tooltip-top"),St(p,"leaflet-tooltip-bottom"),He(p,"leaflet-tooltip-"+D),It(p,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Ne(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return G(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Hw=function(t,i){return new Hs(t,i)};it.include({openTooltip:function(t,i,a){return this._initOverlay(Hs,t,i,a).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Fn.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Hs,this._tooltip,t,i),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 i=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[i](a),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof sr||(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 i=typeof t.getElement=="function"&&t.getElement();i&&(je(i,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),je(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&i.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 i=this;this._map.once("moveend",function(){i._openOnceFlag=!1,i._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var i=t.latlng,a,u;this._tooltip.options.sticky&&t.originalEvent&&(a=this._map.mouseEventToContainerPoint(t.originalEvent),u=this._map.containerPointToLayerPoint(a),i=this._map.layerPointToLatLng(u)),this._tooltip.setLatLng(i)}});var Fp=Eo.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),a=this.options;if(a.html instanceof Element?(Tn(i),i.appendChild(a.html)):i.innerHTML=a.html!==!1?a.html:"",a.bgPos){var u=G(a.bgPos);i.style.backgroundPosition=-u.x+"px "+-u.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});function Vw(t){return new Fp(t)}Eo.Default=bi;var _i=Fn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ve.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){x(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Ue(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(gn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Bn(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=g(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 Z?t:new Z(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 i=this.getPane().children,a=-t(-1/0,1/0),u=0,p=i.length,w;u<p;u++)w=i[u].style.zIndex,i[u]!==this._container&&w&&(a=t(a,+w));isFinite(a)&&(this.options.zIndex=a+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ve.ielt9){Ne(this._container,this.options.opacity);var t=+new Date,i=!1,a=!1;for(var u in this._tiles){var p=this._tiles[u];if(!(!p.current||!p.loaded)){var w=Math.min(1,(t-p.loaded)/200);Ne(p.el,w),w<1?i=!0:(p.active?a=!0:this._onOpaqueTile(p),p.active=!0)}}a&&!this._noPrune&&this._pruneTiles(),i&&(j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=ke("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,i=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=i-Math.abs(t-a),this._onUpdateLevel(a)):(Ue(this._levels[a].el),this._removeTilesAtZoom(a),this._onRemoveLevel(a),delete this._levels[a]);var u=this._levels[t],p=this._map;return u||(u=this._levels[t]={},u.el=ke("div","leaflet-tile-container leaflet-zoom-animated",this._container),u.el.style.zIndex=i,u.origin=p.project(p.unproject(p.getPixelOrigin()),t).round(),u.zoom=t,this._setZoomTransform(u,p.getCenter(),p.getZoom()),v(u.el.offsetWidth),this._onCreateLevel(u)),this._level=u,u}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var t,i,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var u=i.coords;this._retainParent(u.x,u.y,u.z,u.z-5)||this._retainChildren(u.x,u.y,u.z,u.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)Ue(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,a,u){var p=Math.floor(t/2),w=Math.floor(i/2),O=a-1,D=new Z(+p,+w);D.z=+O;var H=this._tileCoordsToKey(D),Q=this._tiles[H];return Q&&Q.active?(Q.retain=!0,!0):(Q&&Q.loaded&&(Q.retain=!0),O>u?this._retainParent(p,w,O,u):!1)},_retainChildren:function(t,i,a,u){for(var p=2*t;p<2*t+2;p++)for(var w=2*i;w<2*i+2;w++){var O=new Z(p,w);O.z=a+1;var D=this._tileCoordsToKey(O),H=this._tiles[D];if(H&&H.active){H.retain=!0;continue}else H&&H.loaded&&(H.retain=!0);a+1<u&&this._retainChildren(p,w,a+1,u)}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return i.minNativeZoom!==void 0&&t<i.minNativeZoom?i.minNativeZoom:i.maxNativeZoom!==void 0&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,a,u){var p=Math.round(i);this.options.maxZoom!==void 0&&p>this.options.maxZoom||this.options.minZoom!==void 0&&p<this.options.minZoom?p=void 0:p=this._clampZoom(p);var w=this.options.updateWhenZooming&&p!==this._tileZoom;(!u||w)&&(this._tileZoom=p,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),p!==void 0&&this._update(t),a||this._pruneTiles(),this._noPrune=!!a),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var a in this._levels)this._setZoomTransform(this._levels[a],t,i)},_setZoomTransform:function(t,i,a){var u=this._map.getZoomScale(a,t.zoom),p=t.origin.multiplyBy(u).subtract(this._map._getNewPixelOrigin(i,a)).round();ve.any3d?dn(t.el,p,u):It(t.el,p)},_resetGrid:function(){var t=this._map,i=t.options.crs,a=this._tileSize=this.getTileSize(),u=this._tileZoom,p=this._map.getPixelWorldBounds(this._tileZoom);p&&(this._globalTileRange=this._pxBoundsToTileRange(p)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],u).x/a.x),Math.ceil(t.project([0,i.wrapLng[1]],u).x/a.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],u).y/a.x),Math.ceil(t.project([i.wrapLat[1],0],u).y/a.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var i=this._map,a=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),u=i.getZoomScale(a,this._tileZoom),p=i.project(t,this._tileZoom).floor(),w=i.getSize().divideBy(u*2);return new ie(p.subtract(w),p.add(w))},_update:function(t){var i=this._map;if(i){var a=this._clampZoom(i.getZoom());if(t===void 0&&(t=i.getCenter()),this._tileZoom!==void 0){var u=this._getTiledPixelBounds(t),p=this._pxBoundsToTileRange(u),w=p.getCenter(),O=[],D=this.options.keepBuffer,H=new ie(p.getBottomLeft().subtract([D,-D]),p.getTopRight().add([D,-D]));if(!(isFinite(p.min.x)&&isFinite(p.min.y)&&isFinite(p.max.x)&&isFinite(p.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Q in this._tiles){var be=this._tiles[Q].coords;(be.z!==this._tileZoom||!H.contains(new Z(be.x,be.y)))&&(this._tiles[Q].current=!1)}if(Math.abs(a-this._tileZoom)>1){this._setView(t,a);return}for(var Re=p.min.y;Re<=p.max.y;Re++)for(var Xe=p.min.x;Xe<=p.max.x;Xe++){var fn=new Z(Xe,Re);if(fn.z=this._tileZoom,!!this._isValidTile(fn)){var Jt=this._tiles[this._tileCoordsToKey(fn)];Jt?Jt.current=!0:O.push(fn)}}if(O.sort(function(vn,Ao){return vn.distanceTo(w)-Ao.distanceTo(w)}),O.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Mn=document.createDocumentFragment();for(Xe=0;Xe<O.length;Xe++)this._addTile(O[Xe],Mn);this._level.el.appendChild(Mn)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var a=this._globalTileRange;if(!i.wrapLng&&(t.x<a.min.x||t.x>a.max.x)||!i.wrapLat&&(t.y<a.min.y||t.y>a.max.y))return!1}if(!this.options.bounds)return!0;var u=this._tileCoordsToBounds(t);return oe(this.options.bounds).overlaps(u)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,a=this.getTileSize(),u=t.scaleBy(a),p=u.add(a),w=i.unproject(u,t.z),O=i.unproject(p,t.z);return[w,O]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),a=new de(i[0],i[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 i=t.split(":"),a=new Z(+i[0],+i[1]);return a.z=+i[2],a},_removeTile:function(t){var i=this._tiles[t];i&&(Ue(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){He(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=v,t.onmousemove=v,ve.ielt9&&this.options.opacity<1&&Ne(t,this.options.opacity)},_addTile:function(t,i){var a=this._getTilePos(t),u=this._tileCoordsToKey(t),p=this.createTile(this._wrapCoords(t),c(this._tileReady,this,t));this._initTile(p),this.createTile.length<2&&$(c(this._tileReady,this,t,null,p)),It(p,a),this._tiles[u]={el:p,coords:t,current:!0},i.appendChild(p),this.fire("tileloadstart",{tile:p,coords:t})},_tileReady:function(t,i,a){i&&this.fire("tileerror",{error:i,tile:a,coords:t});var u=this._tileCoordsToKey(t);a=this._tiles[u],a&&(a.loaded=+new Date,this._map._fadeAnimated?(Ne(a.el,0),j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),i||(He(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ve.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new Z(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new ie(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Ww(t){return new _i(t)}var To=_i.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,i=x(this,i),i.detectRetina&&ve.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&i===void 0&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var a=document.createElement("img");return je(a,"load",c(this._tileOnLoad,this,i,a)),je(a,"error",c(this._tileOnError,this,i,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 i={r:ve.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&&(i.y=a),i["-y"]=a}return S(this._url,s(i,this.options))},_tileOnLoad:function(t,i){ve.ielt9?setTimeout(c(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,a){var u=this.options.errorTileUrl;u&&i.getAttribute("src")!==u&&(i.src=u),t(a,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,a=this.options.zoomReverse,u=this.options.zoomOffset;return a&&(t=i-t),t+u},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=v,i.onerror=v,!i.complete)){i.src=M;var a=this._tiles[t].coords;Ue(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:a})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",M),_i.prototype._removeTile.call(this,t)},_tileReady:function(t,i,a){if(!(!this._map||a&&a.getAttribute("src")===M))return _i.prototype._tileReady.call(this,t,i,a)}});function Hp(t,i){return new To(t,i)}var Vp=To.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,i){this._url=t;var a=s({},this.defaultWmsParams);for(var u in i)u in this.options||(a[u]=i[u]);i=x(this,i);var p=i.detectRetina&&ve.retina?2:1,w=this.getTileSize();a.width=w.x*p,a.height=w.y*p,this.wmsParams=a},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,To.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),a=this._crs,u=ne(a.project(i[0]),a.project(i[1])),p=u.min,w=u.max,O=(this._wmsVersion>=1.3&&this._crs===Np?[p.y,p.x,w.y,w.x]:[p.x,p.y,w.x,w.y]).join(","),D=To.prototype.getTileUrl.call(this,t);return D+b(this.wmsParams,D,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+O},setParams:function(t,i){return s(this.wmsParams,t),i||this.redraw(),this}});function jw(t,i){return new Vp(t,i)}To.WMS=Vp,Hp.wms=jw;var cr=Fn.extend({options:{padding:.1},initialize:function(t){x(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),He(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,i){var a=this._map.getZoomScale(i,this._zoom),u=this._map.getSize().multiplyBy(.5+this.options.padding),p=this._map.project(this._center,i),w=u.multiplyBy(-a).add(p).subtract(this._map._getNewPixelOrigin(t,i));ve.any3d?dn(this._container,w,a):It(this._container,w)},_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,i=this._map.getSize(),a=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new ie(a,a.add(i.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Wp=cr.extend({options:{tolerance:0},getEvents:function(){var t=cr.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){cr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this),je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,Ue(this._container),_t(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){cr.prototype._update.call(this);var t=this._bounds,i=this._container,a=t.getSize(),u=ve.retina?2:1;It(i,t.min),i.width=u*a.x,i.height=u*a.y,i.style.width=a.x+"px",i.style.height=a.y+"px",ve.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){cr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,a=i.next,u=i.prev;a?a.prev=u:this._drawLast=u,u?u.next=a:this._drawFirst=a,delete t._order,delete this._layers[h(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 i=t.options.dashArray.split(/[, ]+/),a=[],u,p;for(p=0;p<i.length;p++){if(u=Number(i[p]),isNaN(u))return;a.push(u)}t.options._dashArray=a}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||$(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ie,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_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 i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.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,i=this._redrawBounds;if(this._ctx.save(),i){var a=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,a.x,a.y),this._ctx.clip()}this._drawing=!0;for(var u=this._drawFirst;u;u=u.next)t=u.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var a,u,p,w,O=t._parts,D=O.length,H=this._ctx;if(D){for(H.beginPath(),a=0;a<D;a++){for(u=0,p=O[a].length;u<p;u++)w=O[a][u],H[u?"lineTo":"moveTo"](w.x,w.y);i&&H.closePath()}this._fillStroke(H,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var i=t._point,a=this._ctx,u=Math.max(Math.round(t._radius),1),p=(Math.max(Math.round(t._radiusY),1)||u)/u;p!==1&&(a.save(),a.scale(1,p)),a.beginPath(),a.arc(i.x,i.y/p,u,0,Math.PI*2,!1),p!==1&&a.restore(),this._fillStroke(a,t)}},_fillStroke:function(t,i){var a=i.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(i.options&&i.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 i=this._map.mouseEventToLayerPoint(t),a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(a))&&(u=a);this._fireEvent(u?[u]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(St(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(u=a);u!==this._hoveredLayer&&(this._handleMouseOut(t),u&&(He(this._container,"leaflet-interactive"),this._fireEvent([u],t,"mouseover"),this._hoveredLayer=u)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,a){this._map._fireDOMEvent(i,a||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(a)a.prev=u;else return;u?u.next=a:a&&(this._drawFirst=a),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t)}},_bringToBack:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(u)u.next=a;else return;a?a.prev=u:u&&(this._drawLast=u),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)}}});function jp(t){return ve.canvas?new Wp(t):null}var xi=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">')}}(),Zw={_initContainer:function(){this._container=ke("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(cr.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=xi("shape");He(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=xi("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;Ue(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,a=t._fill,u=t.options,p=t._container;p.stroked=!!u.stroke,p.filled=!!u.fill,u.stroke?(i||(i=t._stroke=xi("stroke")),p.appendChild(i),i.weight=u.weight+"px",i.color=u.color,i.opacity=u.opacity,u.dashArray?i.dashStyle=P(u.dashArray)?u.dashArray.join(" "):u.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=u.lineCap.replace("butt","flat"),i.joinstyle=u.lineJoin):i&&(p.removeChild(i),t._stroke=null),u.fill?(a||(a=t._fill=xi("fill")),p.appendChild(a),a.color=u.fillColor||u.color,a.opacity=u.fillOpacity):a&&(p.removeChild(a),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),a=Math.round(t._radius),u=Math.round(t._radiusY||a);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+a+","+u+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){gn(t._container)},_bringToBack:function(t){Bn(t._container)}},Vs=ve.vml?xi:we,wi=cr.extend({_initContainer:function(){this._container=Vs("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vs("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ue(this._container),_t(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){cr.prototype._update.call(this);var t=this._bounds,i=t.getSize(),a=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,a.setAttribute("width",i.x),a.setAttribute("height",i.y)),It(a,t.min),a.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Vs("path");t.options.className&&He(i,t.options.className),t.options.interactive&&He(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Ue(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,a=t.options;i&&(a.stroke?(i.setAttribute("stroke",a.color),i.setAttribute("stroke-opacity",a.opacity),i.setAttribute("stroke-width",a.weight),i.setAttribute("stroke-linecap",a.lineCap),i.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?i.setAttribute("stroke-dasharray",a.dashArray):i.removeAttribute("stroke-dasharray"),a.dashOffset?i.setAttribute("stroke-dashoffset",a.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),a.fill?(i.setAttribute("fill",a.fillColor||a.color),i.setAttribute("fill-opacity",a.fillOpacity),i.setAttribute("fill-rule",a.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,Pe(t._parts,i))},_updateCircle:function(t){var i=t._point,a=Math.max(Math.round(t._radius),1),u=Math.max(Math.round(t._radiusY),1)||a,p="a"+a+","+u+" 0 1,0 ",w=t._empty()?"M0 0":"M"+(i.x-a)+","+i.y+p+a*2+",0 "+p+-a*2+",0 ";this._setPath(t,w)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){gn(t._path)},_bringToBack:function(t){Bn(t._path)}});ve.vml&&wi.include(Zw);function Zp(t){return ve.svg||ve.vml?new wi(t):null}it.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var i=this._paneRenderers[t];return i===void 0&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&jp(t)||Zp(t)}});var Up=Po.extend({initialize:function(t,i){Po.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=oe(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Uw(t,i){return new Up(t,i)}wi.create=Vs,wi.pointsToPath=Pe,lr.geometryToLayer=Rs,lr.coordsToLatLng=Nc,lr.coordsToLatLngs=$s,lr.latLngToCoords=Rc,lr.latLngsToCoords=Bs,lr.getFeature=Io,lr.asFeature=zs,it.mergeOptions({boxZoom:!0});var qp=jn.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(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_t(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ue(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(),xr(),vc(),this._startPoint=this._map.mouseEventToContainerPoint(t),je(document,{contextmenu:Vr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ke("div","leaflet-zoom-box",this._container),He(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new ie(this._point,this._startPoint),a=i.getSize();It(this._box,i.min),this._box.style.width=a.x+"px",this._box.style.height=a.y+"px"},_finish:function(){this._moved&&(Ue(this._box),St(this._container,"leaflet-crosshair")),pi(),yc(),_t(document,{contextmenu:Vr,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(c(this._resetState,this),0);var i=new de(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});it.addInitHook("addHandler","boxZoom",qp),it.mergeOptions({doubleClickZoom:!0});var Gp=jn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,a=i.getZoom(),u=i.options.zoomDelta,p=t.originalEvent.shiftKey?a-u:a+u;i.options.doubleClickZoom==="center"?i.setZoom(p):i.setZoomAround(t.containerPoint,p)}});it.addInitHook("addHandler","doubleClickZoom",Gp),it.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Kp=jn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new wr(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))}He(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){St(this._map._container,"leaflet-grab"),St(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 i=oe(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.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 i=this._lastTime=+new Date,a=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(a),this._times.push(i),this._prunePositions(i)}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),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),a=this._initialWorldOffset,u=this._draggable._newPos.x,p=(u-i+a)%t+i-a,w=(u+i+a)%t-i-a,O=Math.abs(p+a)<Math.abs(w+a)?p:w;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=O},_onDragEnd:function(t){var i=this._map,a=i.options,u=!a.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),u)i.fire("moveend");else{this._prunePositions(+new Date);var p=this._lastPos.subtract(this._positions[0]),w=(this._lastTime-this._times[0])/1e3,O=a.easeLinearity,D=p.multiplyBy(O/w),H=D.distanceTo([0,0]),Q=Math.min(a.inertiaMaxSpeed,H),be=D.multiplyBy(Q/H),Re=Q/(a.inertiaDeceleration*O),Xe=be.multiplyBy(-Re/2).round();!Xe.x&&!Xe.y?i.fire("moveend"):(Xe=i._limitOffset(Xe,i.options.maxBounds),$(function(){i.panBy(Xe,{duration:Re,easeLinearity:O,noMoveStart:!0,animate:!0})}))}}});it.addInitHook("addHandler","dragging",Kp),it.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Qp=jn.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"),je(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(),_t(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,i=document.documentElement,a=t.scrollTop||i.scrollTop,u=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(u,a)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},a=this.keyCodes,u,p;for(u=0,p=a.left.length;u<p;u++)i[a.left[u]]=[-1*t,0];for(u=0,p=a.right.length;u<p;u++)i[a.right[u]]=[t,0];for(u=0,p=a.down.length;u<p;u++)i[a.down[u]]=[0,t];for(u=0,p=a.up.length;u<p;u++)i[a.up[u]]=[0,-1*t]},_setZoomDelta:function(t){var i=this._zoomKeys={},a=this.keyCodes,u,p;for(u=0,p=a.zoomIn.length;u<p;u++)i[a.zoomIn[u]]=t;for(u=0,p=a.zoomOut.length;u<p;u++)i[a.zoomOut[u]]=-t},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){_t(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i=t.keyCode,a=this._map,u;if(i in this._panKeys){if(!a._panAnim||!a._panAnim._inProgress)if(u=this._panKeys[i],t.shiftKey&&(u=G(u).multiplyBy(3)),a.options.maxBounds&&(u=a._limitOffset(G(u),a.options.maxBounds)),a.options.worldCopyJump){var p=a.wrapLatLng(a.unproject(a.project(a.getCenter()).add(u)));a.panTo(p)}else a.panBy(u)}else if(i in this._zoomKeys)a.setZoom(a.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else if(i===27&&a._popup&&a._popup.options.closeOnEscapeKey)a.closePopup();else return;Vr(t)}}});it.addInitHook("addHandler","keyboard",Qp),it.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Yp=jn.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){_t(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=xp(t),a=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var u=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),u),Vr(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),a=this._map.options.zoomSnap||0;t._stop();var u=this._delta/(this._map.options.wheelPxPerZoomLevel*4),p=4*Math.log(2/(1+Math.exp(-Math.abs(u))))/Math.LN2,w=a?Math.ceil(p/a)*a:p,O=t._limitZoom(i+(this._delta>0?w:-w))-i;this._delta=0,this._startTime=null,O&&(t.options.scrollWheelZoom==="center"?t.setZoom(i+O):t.setZoomAround(this._lastMousePos,i+O))}});it.addInitHook("addHandler","scrollWheelZoom",Yp);var qw=600;it.mergeOptions({tapHold:ve.touchNative&&ve.safari&&ve.mobile,tapTolerance:15});var Xp=jn.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_t(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var i=t.touches[0];this._startPos=this._newPos=new Z(i.clientX,i.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",nn),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),qw),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){_t(document,"touchend",nn),_t(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),_t(document,"touchend touchcancel contextmenu",this._cancel,this),_t(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new Z(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var a=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});a._simulated=!0,i.target.dispatchEvent(a)}});it.addInitHook("addHandler","tapHold",Xp),it.mergeOptions({touchZoom:ve.touch,bounceAtZoomLimits:!0});var Jp=jn.extend({addHooks:function(){He(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){St(this._map._container,"leaflet-touch-zoom"),_t(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming)){var a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(a.add(u)._divideBy(2))),this._startDist=a.distanceTo(u),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),nn(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var i=this._map,a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]),p=a.distanceTo(u)/this._startDist;if(this._zoom=i.getScaleZoom(p,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&p<1||this._zoom>i.getMaxZoom()&&p>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,p===1)return}else{var w=a._add(u)._divideBy(2)._subtract(this._centerPoint);if(p===1&&w.x===0&&w.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(w),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var O=c(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(O,this,!0),nn(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),_t(document,"touchmove",this._onTouchMove,this),_t(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))}});it.addInitHook("addHandler","touchZoom",Jp),it.BoxZoom=qp,it.DoubleClickZoom=Gp,it.Drag=Kp,it.Keyboard=Qp,it.ScrollWheelZoom=Yp,it.TapHold=Xp,it.TouchZoom=Jp,r.Bounds=ie,r.Browser=ve,r.CRS=Y,r.Canvas=Wp,r.Circle=kc,r.CircleMarker=Ns,r.Class=W,r.Control=Dn,r.DivIcon=Fp,r.DivOverlay=Zn,r.DomEvent=dw,r.DomUtil=cw,r.Draggable=wr,r.Evented=J,r.FeatureGroup=sr,r.GeoJSON=lr,r.GridLayer=_i,r.Handler=jn,r.Icon=Eo,r.ImageOverlay=Ds,r.LatLng=ee,r.LatLngBounds=de,r.Layer=Fn,r.LayerGroup=So,r.LineUtil=Sw,r.Map=it,r.Marker=ks,r.Mixin=yw,r.Path=Cr,r.Point=Z,r.PolyUtil=bw,r.Polygon=Po,r.Polyline=ar,r.Popup=Fs,r.PosAnimation=wp,r.Projection=Ew,r.Rectangle=Up,r.Renderer=cr,r.SVG=wi,r.SVGOverlay=Dp,r.TileLayer=To,r.Tooltip=Hs,r.Transformation=Se,r.Util=V,r.VideoOverlay=zp,r.bind=c,r.bounds=ne,r.canvas=jp,r.circle=kw,r.circleMarker=Ow,r.control=vi,r.divIcon=Vw,r.extend=s,r.featureGroup=Aw,r.geoJSON=Bp,r.geoJson=$w,r.gridLayer=Ww,r.icon=Mw,r.imageOverlay=Bw,r.latLng=K,r.latLngBounds=oe,r.layerGroup=Tw,r.map=fw,r.marker=Lw,r.point=G,r.polygon=Rw,r.polyline=Nw,r.popup=Fw,r.rectangle=Uw,r.setOptions=x,r.stamp=h,r.svg=Zp,r.svgOverlay=Dw,r.tileLayer=Hp,r.tooltip=Hw,r.transformation=Te,r.version=o,r.videoOverlay=zw;var Gw=window.L;r.noConflict=function(){return window.L=Gw,this},window.L=r})})(Zs,Zs.exports);var Hc=Zs.exports;const Ut=im(Hc),sC="",aC="",lC="",cC="";var Tt=Hc,Vc,Wc;function jc(e){return"oninput"in e?"input":"change"}function Si(){Vc=this._map.dragging.enabled(),Wc=this._map.tap&&this._map.tap.enabled(),this._map.dragging.disable(),this._map.tap&&this._map.tap.disable()}function Ei(e){this._refocusOnMap(e),Vc&&this._map.dragging.enable(),Wc&&this._map.tap.enable()}function Zc(e){return e==="undefined"?[]:Array.isArray(e)?e:[e]}function lm(){}Tt.Control.SideBySide=Tt.Control.extend({options:{thumbSize:42,padding:0},initialize:function(e,n,r){this.setLeftLayers(e),this.setRightLayers(n),Tt.setOptions(this,r)},getPosition:function(){var e=this._range.value,n=(.5-e)*(2*this.options.padding+this.options.thumbSize);return this._map.getSize().x*e+n},setPosition:lm,includes:Tt.Evented.prototype||Tt.Mixin.Events,addTo:function(e){this.remove(),this._map=e;var n=this._container=Tt.DomUtil.create("div","leaflet-sbs",e._controlContainer);this._divider=Tt.DomUtil.create("div","leaflet-sbs-divider",n);var r=this._range=Tt.DomUtil.create("input","leaflet-sbs-range",n);return r.type="range",r.min=0,r.max=1,r.step="any",r.value=.5,r.style.paddingLeft=r.style.paddingRight=this.options.padding+"px",this._addEvents(),this._updateLayers(),this},remove:function(){return this._map?(this._leftLayer&&(this._leftLayer.getPane().style.clip=""),this._rightLayer&&(this._rightLayer.getPane().style.clip=""),this._removeEvents(),Tt.DomUtil.remove(this._container),this._map=null,this):this},setLeftLayers:function(e){return this._leftLayers=Zc(e),this._updateLayers(),this},setRightLayers:function(e){return this._rightLayers=Zc(e),this._updateLayers(),this},_updateClip:function(){var e=this._map,n=e.containerPointToLayerPoint([0,0]),r=e.containerPointToLayerPoint(e.getSize()),o=n.x+this.getPosition(),s=this.getPosition();this._divider.style.left=s+"px",this.fire("dividermove",{x:s});var l="rect("+[n.y,o,r.y,n.x].join("px,")+"px)",c="rect("+[n.y,r.x,r.y,o].join("px,")+"px)";this._leftLayer&&(this._leftLayer.getPane().style.clip=l),this._rightLayer&&(this._rightLayer.getPane().style.clip=c)},_updateLayers:function(){if(!this._map)return this;var e=this._leftLayer,n=this._rightLayer;this._leftLayer=this._rightLayer=null,this._leftLayers.forEach(function(r){this._map.hasLayer(r)&&(this._leftLayer=r)},this),this._rightLayers.forEach(function(r){this._map.hasLayer(r)&&(this._rightLayer=r)},this),e!==this._leftLayer&&(e&&this.fire("leftlayerremove",{layer:e}),this._leftLayer&&this.fire("leftlayeradd",{layer:this._leftLayer})),n!==this._rightLayer&&(n&&this.fire("rightlayerremove",{layer:n}),this._rightLayer&&this.fire("rightlayeradd",{layer:this._rightLayer})),this._updateClip()},_addEvents:function(){var e=this._range,n=this._map;!n||!e||(n.on("move",this._updateClip,this),n.on("layeradd layerremove",this._updateLayers,this),Tt.DomEvent.on(e,jc(e),this._updateClip,this),Tt.DomEvent.on(e,"touchstart",Si,this),Tt.DomEvent.on(e,"touchend",Ei,this),Tt.DomEvent.on(e,"mousedown",Si,this),Tt.DomEvent.on(e,"mouseup",Ei,this))},_removeEvents:function(){var e=this._range,n=this._map;e&&(Tt.DomEvent.off(e,jc(e),this._updateClip,this),Tt.DomEvent.off(e,"touchstart",Si,this),Tt.DomEvent.off(e,"touchend",Ei,this),Tt.DomEvent.off(e,"mousedown",Si,this),Tt.DomEvent.off(e,"mouseup",Ei,this)),n&&(n.off("layeradd layerremove",this._updateLayers,this),n.off("move",this._updateClip,this))}}),Tt.control.sideBySide=function(e,n,r){return new Tt.Control.SideBySide(e,n,r)},Tt.Control.SideBySide;const Uc=({zoomLevel:e})=>ft.jsx("div",{style:{width:"30px",height:"30px",backgroundColor:"white",borderRadius:"2px",textAlign:"center",fontSize:"20px"},children:e});function ht(e){const n=f.useRef(e);return n.current=e,f.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},[])}function yn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const qc=process.env.NODE_ENV!=="test"&&yn()?f.useLayoutEffect:f.useEffect,an=(e,n)=>{const r=f.useRef(!0);qc(()=>e(r.current),n),qc(()=>(r.current=!1,()=>{r.current=!0}),[])},Us=e=>{const n=f.useRef(!1),[r,o]=f.useState(e);f.useEffect(()=>(n.current=!1,()=>{n.current=!0}),[]);function s(l,c){c&&n.current||o(l)}return[r,s]};function Un(e,n){const[r,o]=I.useState(e),s=n!==void 0?n:r;return an(l=>{l||o(n)},[n]),[s,o]}var qs={exports:{}},at={};/**
36
+ */(function(e,n){(function(r,o){o(n)})(nm,function(r){var o="1.9.4";function s(t){var i,a,u,p;for(a=1,u=arguments.length;a<u;a++){p=arguments[a];for(i in p)t[i]=p[i]}return t}var l=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function c(t,i){var a=Array.prototype.slice;if(t.bind)return t.bind.apply(t,a.call(arguments,1));var u=a.call(arguments,2);return function(){return t.apply(i,u.length?u.concat(a.call(arguments)):arguments)}}var d=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++d),t._leaflet_id}function g(t,i,a){var u,p,w,O;return O=function(){u=!1,p&&(w.apply(a,p),p=!1)},w=function(){u?p=arguments:(t.apply(a,arguments),setTimeout(O,i),u=!0)},w}function m(t,i,a){var u=i[1],p=i[0],w=u-p;return t===u&&a?t:((t-p)%w+w)%w+p}function v(){return!1}function y(t,i){if(i===!1)return t;var a=Math.pow(10,i===void 0?6:i);return Math.round(t*a)/a}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function _(t){return C(t).split(/\s+/)}function x(t,i){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?l(t.options):{});for(var a in i)t.options[a]=i[a];return t.options}function b(t,i,a){var u=[];for(var p in t)u.push(encodeURIComponent(a?p.toUpperCase():p)+"="+encodeURIComponent(t[p]));return(!i||i.indexOf("?")===-1?"?":"&")+u.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function S(t,i){return t.replace(E,function(a,u){var p=i[u];if(p===void 0)throw new Error("No value provided for variable "+a);return typeof p=="function"&&(p=p(i)),p})}var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function I(t,i){for(var a=0;a<t.length;a++)if(t[a]===i)return a;return-1}var M="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function k(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var N=0;function R(t){var i=+new Date,a=Math.max(0,16-(i-N));return N=i+a,window.setTimeout(t,a)}var B=window.requestAnimationFrame||k("RequestAnimationFrame")||R,z=window.cancelAnimationFrame||k("CancelAnimationFrame")||k("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function $(t,i,a){if(a&&B===R)t.call(i);else return B.call(window,c(t,i))}function j(t){t&&z.call(window,t)}var V={__proto__:null,extend:s,create:l,bind:c,get lastId(){return d},stamp:h,throttle:g,wrapNum:m,falseFn:v,formatNum:y,trim:C,splitWords:_,setOptions:x,getParamString:b,template:S,isArray:P,indexOf:I,emptyImageUrl:M,requestFn:B,cancelFn:z,requestAnimFrame:$,cancelAnimFrame:j};function W(){}W.extend=function(t){var i=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},a=i.__super__=this.prototype,u=l(a);u.constructor=i,i.prototype=u;for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&p!=="prototype"&&p!=="__super__"&&(i[p]=this[p]);return t.statics&&s(i,t.statics),t.includes&&(F(t.includes),s.apply(null,[u].concat(t.includes))),s(u,t),delete u.statics,delete u.includes,u.options&&(u.options=a.options?l(a.options):{},s(u.options,t.options)),u._initHooks=[],u.callInitHooks=function(){if(!this._initHooksCalled){a.callInitHooks&&a.callInitHooks.call(this),this._initHooksCalled=!0;for(var w=0,O=u._initHooks.length;w<O;w++)u._initHooks[w].call(this)}},i},W.include=function(t){var i=this.prototype.options;return s(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},W.mergeOptions=function(t){return s(this.prototype.options,t),this},W.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),a=typeof t=="function"?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(a),this};function F(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===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 X={on:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a)}return this},off:function(t,i,a){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var u in t)this._off(u,t[u],i);else{t=_(t);for(var p=arguments.length===1,w=0,O=t.length;w<O;w++)p?this._off(t[w]):this._off(t[w],i,a)}return this},_on:function(t,i,a,u){if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,a)===!1){a===this&&(a=void 0);var p={fn:i,ctx:a};u&&(p.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(p)}},_off:function(t,i,a){var u,p,w;if(this._events&&(u=this._events[t],!!u)){if(arguments.length===1){if(this._firingCount)for(p=0,w=u.length;p<w;p++)u[p].fn=v;delete this._events[t];return}if(typeof i!="function"){console.warn("wrong listener type: "+typeof i);return}var O=this._listens(t,i,a);if(O!==!1){var D=u[O];this._firingCount&&(D.fn=v,this._events[t]=u=u.slice()),u.splice(O,1)}}},fire:function(t,i,a){if(!this.listens(t,a))return this;var u=s({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var p=this._events[t];if(p){this._firingCount=this._firingCount+1||1;for(var w=0,O=p.length;w<O;w++){var D=p[w],H=D.fn;D.once&&this.off(t,H,D.ctx),H.call(D.ctx||this,u)}this._firingCount--}}return a&&this._propagateEvent(u),this},listens:function(t,i,a,u){typeof t!="string"&&console.warn('"string" type argument expected');var p=i;typeof i!="function"&&(u=!!i,p=void 0,a=void 0);var w=this._events&&this._events[t];if(w&&w.length&&this._listens(t,p,a)!==!1)return!0;if(u){for(var O in this._eventParents)if(this._eventParents[O].listens(t,i,a,u))return!0}return!1},_listens:function(t,i,a){if(!this._events)return!1;var u=this._events[t]||[];if(!i)return!!u.length;a===this&&(a=void 0);for(var p=0,w=u.length;p<w;p++)if(u[p].fn===i&&u[p].ctx===a)return p;return!1},once:function(t,i,a){if(typeof t=="object")for(var u in t)this._on(u,t[u],i,!0);else{t=_(t);for(var p=0,w=t.length;p<w;p++)this._on(t[p],i,a,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,s({layer:t.target,propagatedFrom:t.target},t),!0)}};X.addEventListener=X.on,X.removeEventListener=X.clearAllEventListeners=X.off,X.addOneTimeEventListener=X.once,X.fireEvent=X.fire,X.hasEventListeners=X.listens;var J=W.extend(X);function Z(t,i,a){this.x=a?Math.round(t):t,this.y=a?Math.round(i):i}var le=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(t){return this.clone()._add(G(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(G(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 Z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new Z(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=le(this.x),this.y=le(this.y),this},distanceTo:function(t){t=G(t);var i=t.x-this.x,a=t.y-this.y;return Math.sqrt(i*i+a*a)},equals:function(t){return t=G(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=G(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 G(t,i,a){return t instanceof Z?t:P(t)?new Z(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new Z(t.x,t.y):new Z(t,i,a)}function ie(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}ie.prototype={extend:function(t){var i,a;if(!t)return this;if(t instanceof Z||typeof t[0]=="number"||"x"in t)i=a=G(t);else if(t=ne(t),i=t.min,a=t.max,!i||!a)return this;return!this.min&&!this.max?(this.min=i.clone(),this.max=a.clone()):(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(a.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(a.y,this.max.y)),this},getCenter:function(t){return G((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return G(this.min.x,this.max.y)},getTopRight:function(){return G(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 i,a;return typeof t[0]=="number"||t instanceof Z?t=G(t):t=ne(t),t instanceof ie?(i=t.min,a=t.max):i=a=t,i.x>=this.min.x&&a.x<=this.max.x&&i.y>=this.min.y&&a.y<=this.max.y},intersects:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>=i.x&&u.x<=a.x,O=p.y>=i.y&&u.y<=a.y;return w&&O},overlaps:function(t){t=ne(t);var i=this.min,a=this.max,u=t.min,p=t.max,w=p.x>i.x&&u.x<a.x,O=p.y>i.y&&u.y<a.y;return w&&O},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,a=this.max,u=Math.abs(i.x-a.x)*t,p=Math.abs(i.y-a.y)*t;return ne(G(i.x-u,i.y-p),G(a.x+u,a.y+p))},equals:function(t){return t?(t=ne(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function ne(t,i){return!t||t instanceof ie?t:new ie(t,i)}function de(t,i){if(t)for(var a=i?[t,i]:t,u=0,p=a.length;u<p;u++)this.extend(a[u])}de.prototype={extend:function(t){var i=this._southWest,a=this._northEast,u,p;if(t instanceof ee)u=t,p=t;else if(t instanceof de){if(u=t._southWest,p=t._northEast,!u||!p)return this}else return t?this.extend(K(t)||oe(t)):this;return!i&&!a?(this._southWest=new ee(u.lat,u.lng),this._northEast=new ee(p.lat,p.lng)):(i.lat=Math.min(u.lat,i.lat),i.lng=Math.min(u.lng,i.lng),a.lat=Math.max(p.lat,a.lat),a.lng=Math.max(p.lng,a.lng)),this},pad:function(t){var i=this._southWest,a=this._northEast,u=Math.abs(i.lat-a.lat)*t,p=Math.abs(i.lng-a.lng)*t;return new de(new ee(i.lat-u,i.lng-p),new ee(a.lat+u,a.lng+p))},getCenter:function(){return new ee((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 ee(this.getNorth(),this.getWest())},getSouthEast:function(){return new ee(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 ee||"lat"in t?t=K(t):t=oe(t);var i=this._southWest,a=this._northEast,u,p;return t instanceof de?(u=t.getSouthWest(),p=t.getNorthEast()):u=p=t,u.lat>=i.lat&&p.lat<=a.lat&&u.lng>=i.lng&&p.lng<=a.lng},intersects:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>=i.lat&&u.lat<=a.lat,O=p.lng>=i.lng&&u.lng<=a.lng;return w&&O},overlaps:function(t){t=oe(t);var i=this._southWest,a=this._northEast,u=t.getSouthWest(),p=t.getNorthEast(),w=p.lat>i.lat&&u.lat<a.lat,O=p.lng>i.lng&&u.lng<a.lng;return w&&O},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return t?(t=oe(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function oe(t,i){return t instanceof de?t:new de(t,i)}function ee(t,i,a){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,a!==void 0&&(this.alt=+a)}ee.prototype={equals:function(t,i){if(!t)return!1;t=K(t);var a=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return a<=(i===void 0?1e-9:i)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return se.distance(this,K(t))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,a=i/Math.cos(Math.PI/180*this.lat);return oe([this.lat-i,this.lng-a],[this.lat+i,this.lng+a])},clone:function(){return new ee(this.lat,this.lng,this.alt)}};function K(t,i,a){return t instanceof ee?t:P(t)&&typeof t[0]!="object"?t.length===3?new ee(t[0],t[1],t[2]):t.length===2?new ee(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new ee(t.lat,"lng"in t?t.lng:t.lon,t.alt):i===void 0?null:new ee(t,i,a)}var Y={latLngToPoint:function(t,i){var a=this.projection.project(t),u=this.scale(i);return this.transformation._transform(a,u)},pointToLatLng:function(t,i){var a=this.scale(i),u=this.transformation.untransform(t,a);return this.projection.unproject(u)},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 i=this.projection.bounds,a=this.scale(t),u=this.transformation.transform(i.min,a),p=this.transformation.transform(i.max,a);return new ie(u,p)},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?m(t.lng,this.wrapLng,!0):t.lng,a=this.wrapLat?m(t.lat,this.wrapLat,!0):t.lat,u=t.alt;return new ee(a,i,u)},wrapLatLngBounds:function(t){var i=t.getCenter(),a=this.wrapLatLng(i),u=i.lat-a.lat,p=i.lng-a.lng;if(u===0&&p===0)return t;var w=t.getSouthWest(),O=t.getNorthEast(),D=new ee(w.lat-u,w.lng-p),H=new ee(O.lat-u,O.lng-p);return new de(D,H)}},se=s({},Y,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var a=Math.PI/180,u=t.lat*a,p=i.lat*a,w=Math.sin((i.lat-t.lat)*a/2),O=Math.sin((i.lng-t.lng)*a/2),D=w*w+Math.cos(u)*Math.cos(p)*O*O,H=2*Math.atan2(Math.sqrt(D),Math.sqrt(1-D));return this.R*H}}),fe=6378137,xe={R:fe,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,a=this.MAX_LATITUDE,u=Math.max(Math.min(a,t.lat),-a),p=Math.sin(u*i);return new Z(this.R*t.lng*i,this.R*Math.log((1+p)/(1-p))/2)},unproject:function(t){var i=180/Math.PI;return new ee((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=fe*Math.PI;return new ie([-t,-t],[t,t])}()};function Se(t,i,a,u){if(P(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=i,this._c=a,this._d=u}Se.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return i=i||1,t.x=i*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return i=i||1,new Z((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function Te(t,i,a,u){return new Se(t,i,a,u)}var Ce=s({},se,{code:"EPSG:3857",projection:xe,transformation:function(){var t=.5/(Math.PI*xe.R);return Te(t,.5,-t,.5)}()}),te=s({},Ce,{code:"EPSG:900913"});function we(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Pe(t,i){var a="",u,p,w,O,D,H;for(u=0,w=t.length;u<w;u++){for(D=t[u],p=0,O=D.length;p<O;p++)H=D[p],a+=(p?"L":"M")+H.x+" "+H.y;a+=i?ve.svg?"z":"x":""}return a||"M0 0"}var Ae=document.documentElement.style,Ze="ActiveXObject"in window,Be=Ze&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),Ge=xt("webkit"),Ke=xt("android"),ze=xt("android 2")||xt("android 3"),De=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=Ke&&xt("Google")&&De<537&&!("AudioNode"in window),St=!!window.opera,pt=!nt&&xt("chrome"),dt=xt("gecko")&&!Ge&&!St&&!Ze,mt=!pt&&xt("safari"),Oe=xt("phantom"),he="OTransition"in Ae,_e=navigator.platform.indexOf("Win")===0,rt=Ze&&"transition"in Ae,$e="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ze,ge="MozPerspective"in Ae,Qe=!window.L_DISABLE_3D&&(rt||$e||ge)&&!he&&!Oe,Ve=typeof orientation<"u"||xt("mobile"),Ye=Ve&&Ge,Nt=Ve&&$e,Ht=!window.PointerEvent&&window.MSPointerEvent,vt=!!(window.PointerEvent||Ht),Et="ontouchstart"in window||!!window.TouchEvent,kt=!window.L_NO_TOUCH&&(Et||vt),Je=Ve&&St,rn=Ve&&dt,mn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,on=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",v,i),window.removeEventListener("testPassiveEventSupport",v,i)}catch{}return t}(),an=function(){return!!document.createElement("canvas").getContext}(),ln=!!(document.createElementNS&&we("svg").createSVGRect),cn=!!ln&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Vt=!ln&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&typeof i.adj=="object"}catch{return!1}}(),Jt=navigator.platform.indexOf("Mac")===0,Lt=navigator.platform.indexOf("Linux")===0;function xt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var ve={ie:Ze,ielt9:Be,edge:nt,webkit:Ge,android:Ke,android23:ze,androidStock:ot,opera:St,chrome:pt,gecko:dt,safari:mt,phantom:Oe,opera12:he,win:_e,ie3d:rt,webkit3d:$e,gecko3d:ge,any3d:Qe,mobile:Ve,mobileWebkit:Ye,mobileWebkit3d:Nt,msPointer:Ht,pointer:vt,touch:kt,touchNative:Et,mobileOpera:Je,mobileGecko:rn,retina:mn,passiveEvents:on,canvas:an,svg:ln,vml:Vt,inlineSvg:cn,mac:Jt,linux:Lt},Wt=ve.msPointer?"MSPointerDown":"pointerdown",jt=ve.msPointer?"MSPointerMove":"pointermove",T=ve.msPointer?"MSPointerUp":"pointerup",U=ve.msPointer?"MSPointerCancel":"pointercancel",re={touchstart:Wt,touchmove:jt,touchend:T,touchcancel:U},ue={touchstart:Gt,touchmove:yt,touchend:yt,touchcancel:yt},Ee={},ye=!1;function ae(t,i,a){return i==="touchstart"&&gt(),ue[i]?(a=ue[i].bind(this,a),t.addEventListener(re[i],a,!1),a):(console.warn("wrong event specified:",i),v)}function pe(t,i,a){if(!re[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(re[i],a,!1)}function We(t){Ee[t.pointerId]=t}function Fe(t){Ee[t.pointerId]&&(Ee[t.pointerId]=t)}function et(t){delete Ee[t.pointerId]}function gt(){ye||(document.addEventListener(Wt,We,!0),document.addEventListener(jt,Fe,!0),document.addEventListener(T,et,!0),document.addEventListener(U,et,!0),ye=!0)}function yt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){i.touches=[];for(var a in Ee)i.touches.push(Ee[a]);i.changedTouches=[i],t(i)}}function Gt(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&en(i),yt(t,i)}function wt(t){var i={},a,u;for(u in t)a=t[u],i[u]=a&&a.bind?a.bind(t):a;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Kt=200;function Qt(t,i){t.addEventListener("dblclick",i);var a=0,u;function p(w){if(w.detail!==1){u=w.detail;return}if(!(w.pointerType==="mouse"||w.sourceCapabilities&&!w.sourceCapabilities.firesTouchEvents)){var O=vp(w);if(!(O.some(function(H){return H instanceof HTMLLabelElement&&H.attributes.for})&&!O.some(function(H){return H instanceof HTMLInputElement||H instanceof HTMLSelectElement}))){var D=Date.now();D-a<=Kt?(u++,u===2&&i(wt(w))):u=1,a=D}}}return t.addEventListener("click",p),{dblclick:i,simDblclick:p}}function br(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}var ir=Dn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Bn=Dn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_r=Bn==="webkitTransition"||Bn==="OTransition"?Bn+"End":"transitionend";function wo(t){return typeof t=="string"?document.getElementById(t):t}function Me(t,i){var a=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!a||a==="auto")&&document.defaultView){var u=document.defaultView.getComputedStyle(t,null);a=u?u[i]:null}return a==="auto"?null:a}function Ne(t,i,a){var u=document.createElement(t);return u.className=i||"",a&&a.appendChild(u),u}function Ue(t){var i=t.parentNode;i&&i.removeChild(t)}function Tn(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function gn(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function zn(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function Co(t,i){if(t.classList!==void 0)return t.classList.contains(i);var a=me(t);return a.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(a)}function He(t,i){if(t.classList!==void 0)for(var a=_(i),u=0,p=a.length;u<p;u++)t.classList.add(a[u]);else if(!Co(t,i)){var w=me(t);Dr(t,(w?w+" ":"")+i)}}function Ct(t,i){t.classList!==void 0?t.classList.remove(i):Dr(t,C((" "+me(t)+" ").replace(" "+i+" "," ")))}function Dr(t,i){t.className.baseVal===void 0?t.className=i:t.className.baseVal=i}function me(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function ke(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&Yt(t,i)}function Yt(t,i){var a=!1,u="DXImageTransform.Microsoft.Alpha";try{a=t.filters.item(u)}catch{if(i===1)return}i=Math.round(i*100),a?(a.Enabled=i!==100,a.Opacity=i):t.style.filter+=" progid:"+u+"(opacity="+i+")"}function Dn(t){for(var i=document.documentElement.style,a=0;a<t.length;a++)if(t[a]in i)return t[a];return!1}function un(t,i,a){var u=i||new Z(0,0);t.style[ir]=(ve.ie3d?"translate("+u.x+"px,"+u.y+"px)":"translate3d("+u.x+"px,"+u.y+"px,0)")+(a?" scale("+a+")":"")}function Pt(t,i){t._leaflet_pos=i,ve.any3d?un(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function sr(t){return t._leaflet_pos||new Z(0,0)}var xr,pi,mc;if("onselectstart"in document)xr=function(){je(window,"selectstart",en)},pi=function(){bt(window,"selectstart",en)};else{var mi=Dn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);xr=function(){if(mi){var t=document.documentElement.style;mc=t[mi],t[mi]="none"}},pi=function(){mi&&(document.documentElement.style[mi]=mc,mc=void 0)}}function gc(){je(window,"dragstart",en)}function vc(){bt(window,"dragstart",en)}var As,yc;function bc(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Ms(),As=t,yc=t.style.outlineStyle,t.style.outlineStyle="none",je(window,"keydown",Ms))}function Ms(){As&&(As.style.outlineStyle=yc,As=void 0,yc=void 0,bt(window,"keydown",Ms))}function mp(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function _c(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var lw={__proto__:null,TRANSFORM:ir,TRANSITION:Bn,TRANSITION_END:_r,get:wo,getStyle:Me,create:Ne,remove:Ue,empty:Tn,toFront:gn,toBack:zn,hasClass:Co,addClass:He,removeClass:Ct,setClass:Dr,getClass:me,setOpacity:ke,testProp:Dn,setTransform:un,setPosition:Pt,getPosition:sr,get disableTextSelection(){return xr},get enableTextSelection(){return pi},disableImageDrag:gc,enableImageDrag:vc,preventOutline:bc,restoreOutline:Ms,getSizedParentNode:mp,getScale:_c};function je(t,i,a,u){if(i&&typeof i=="object")for(var p in i)wc(t,p,i[p],a);else{i=_(i);for(var w=0,O=i.length;w<O;w++)wc(t,i[w],a,u)}return this}var jn="_leaflet_events";function bt(t,i,a,u){if(arguments.length===1)gp(t),delete t[jn];else if(i&&typeof i=="object")for(var p in i)Cc(t,p,i[p],a);else if(i=_(i),arguments.length===2)gp(t,function(D){return I(i,D)!==-1});else for(var w=0,O=i.length;w<O;w++)Cc(t,i[w],a,u);return this}function gp(t,i){for(var a in t[jn]){var u=a.split(/\d/)[0];(!i||i(u))&&Cc(t,u,null,null,a)}}var xc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function wc(t,i,a,u){var p=i+h(a)+(u?"_"+h(u):"");if(t[jn]&&t[jn][p])return this;var w=function(D){return a.call(u||t,D||window.event)},O=w;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?w=ae(t,i,w):ve.touch&&i==="dblclick"?w=Qt(t,w):"addEventListener"in t?i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"?t.addEventListener(xc[i]||i,w,ve.passiveEvents?{passive:!1}:!1):i==="mouseenter"||i==="mouseleave"?(w=function(D){D=D||window.event,Ec(t,D)&&O(D)},t.addEventListener(xc[i],w,!1)):t.addEventListener(i,O,!1):t.attachEvent("on"+i,w),t[jn]=t[jn]||{},t[jn][p]=w}function Cc(t,i,a,u,p){p=p||i+h(a)+(u?"_"+h(u):"");var w=t[jn]&&t[jn][p];if(!w)return this;!ve.touchNative&&ve.pointer&&i.indexOf("touch")===0?pe(t,i,w):ve.touch&&i==="dblclick"?br(t,w):"removeEventListener"in t?t.removeEventListener(xc[i]||i,w,!1):t.detachEvent("on"+i,w),t[jn][p]=null}function Fr(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Sc(t){return wc(t,"wheel",Fr),this}function gi(t){return je(t,"mousedown touchstart dblclick contextmenu",Fr),t._leaflet_disable_click=!0,this}function en(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Hr(t){return en(t),Fr(t),this}function vp(t){if(t.composedPath)return t.composedPath();for(var i=[],a=t.target;a;)i.push(a),a=a.parentNode;return i}function yp(t,i){if(!i)return new Z(t.clientX,t.clientY);var a=_c(i),u=a.boundingClientRect;return new Z((t.clientX-u.left)/a.x-i.clientLeft,(t.clientY-u.top)/a.y-i.clientTop)}var cw=ve.linux&&ve.chrome?window.devicePixelRatio:ve.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function bp(t){return ve.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/cw: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 Ec(t,i){var a=i.relatedTarget;if(!a)return!0;try{for(;a&&a!==t;)a=a.parentNode}catch{return!1}return a!==t}var uw={__proto__:null,on:je,off:bt,stopPropagation:Fr,disableScrollPropagation:Sc,disableClickPropagation:gi,preventDefault:en,stop:Hr,getPropagationPath:vp,getMousePosition:yp,getWheelDelta:bp,isExternalTarget:Ec,addListener:je,removeListener:bt},_p=J.extend({run:function(t,i,a,u){this.stop(),this._el=t,this._inProgress=!0,this._duration=a||.25,this._easeOutPower=1/Math.max(u||.5,.2),this._startPos=sr(t),this._offset=i.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=$(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,a=this._duration*1e3;i<a?this._runFrame(this._easeOut(i/a),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var a=this._startPos.add(this._offset.multiplyBy(t));i&&a._round(),Pt(this._el,a),this.fire("step")},_complete:function(){j(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),it=J.extend({options:{crs:Ce,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,i){i=x(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),i.zoom!==void 0&&(this._zoom=this._limitZoom(i.zoom)),i.center&&i.zoom!==void 0&&this.setView(K(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Bn&&ve.any3d&&!ve.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,_r,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,a){if(i=i===void 0?this._zoom:this._limitZoom(i),t=this._limitCenter(K(t),i,this.options.maxBounds),a=a||{},this._stop(),this._loaded&&!a.reset&&a!==!0){a.animate!==void 0&&(a.zoom=s({animate:a.animate},a.zoom),a.pan=s({animate:a.animate,duration:a.duration},a.pan));var u=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,a.zoom):this._tryAnimatedPan(t,a.pan);if(u)return clearTimeout(this._sizeTimer),this}return this._resetView(t,i,a.pan&&a.pan.noMoveStart),this},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){return t=t||(ve.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,a){var u=this.getZoomScale(i),p=this.getSize().divideBy(2),w=t instanceof Z?t:this.latLngToContainerPoint(t),O=w.subtract(p).multiplyBy(1-1/u),D=this.containerPointToLatLng(p.add(O));return this.setView(D,i,{zoom:a})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():oe(t);var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.getBoundsZoom(t,!1,a.add(u));if(p=typeof i.maxZoom=="number"?Math.min(i.maxZoom,p):p,p===1/0)return{center:t.getCenter(),zoom:p};var w=u.subtract(a).divideBy(2),O=this.project(t.getSouthWest(),p),D=this.project(t.getNorthEast(),p),H=this.unproject(O.add(D).divideBy(2).add(w),p);return{center:H,zoom:p}},fitBounds:function(t,i){if(t=oe(t),!t.isValid())throw new Error("Bounds are not valid.");var a=this._getBoundsCenterZoom(t,i);return this.setView(a.center,a.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(t=G(t).round(),i=i||{},!t.x&&!t.y)return this.fire("moveend");if(i.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 _p,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),i.animate!==!1){He(this._mapPane,"leaflet-pan-anim");var a=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,a,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,a){if(a=a||{},a.animate===!1||!ve.any3d)return this.setView(t,i,a);this._stop();var u=this.project(this.getCenter()),p=this.project(t),w=this.getSize(),O=this._zoom;t=K(t),i=i===void 0?O:i;var D=Math.max(w.x,w.y),H=D*this.getZoomScale(O,i),Q=p.distanceTo(u)||1,be=1.42,Re=be*be;function Xe(Bt){var Vs=Bt?-1:1,Xw=Bt?H:D,Jw=H*H-D*D+Vs*Re*Re*Q*Q,eC=2*Xw*Re*Q,$c=Jw/eC,em=Math.sqrt($c*$c+1)-$c,tC=em<1e-9?-18:Math.log(em);return tC}function dn(Bt){return(Math.exp(Bt)-Math.exp(-Bt))/2}function Xt(Bt){return(Math.exp(Bt)+Math.exp(-Bt))/2}function Mn(Bt){return dn(Bt)/Xt(Bt)}var vn=Xe(0);function Ao(Bt){return D*(Xt(vn)/Xt(vn+be*Bt))}function Gw(Bt){return D*(Xt(vn)*Mn(vn+be*Bt)-dn(vn))/Re}function Kw(Bt){return 1-Math.pow(1-Bt,1.5)}var Qw=Date.now(),Xp=(Xe(1)-vn)/be,Yw=a.duration?1e3*a.duration:1e3*Xp*.8;function Jp(){var Bt=(Date.now()-Qw)/Yw,Vs=Kw(Bt)*Xp;Bt<=1?(this._flyToFrame=$(Jp,this),this._move(this.unproject(u.add(p.subtract(u).multiplyBy(Gw(Vs)/Q)),O),this.getScaleZoom(D/Ao(Vs),O),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}return this._moveStart(!0,a.noMoveStart),Jp.call(this),this},flyToBounds:function(t,i){var a=this._getBoundsCenterZoom(t,i);return this.flyTo(a.center,a.zoom,i)},setMaxBounds:function(t){return t=oe(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 i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var a=this.getCenter(),u=this._limitCenter(a,this._zoom,oe(t));return a.equals(u)||this.panTo(u,i),this._enforcingBounds=!1,this},panInside:function(t,i){i=i||{};var a=G(i.paddingTopLeft||i.padding||[0,0]),u=G(i.paddingBottomRight||i.padding||[0,0]),p=this.project(this.getCenter()),w=this.project(t),O=this.getPixelBounds(),D=ne([O.min.add(a),O.max.subtract(u)]),H=D.getSize();if(!D.contains(w)){this._enforcingBounds=!0;var Q=w.subtract(D.getCenter()),be=D.extend(w).getSize().subtract(H);p.x+=Q.x<0?-be.x:be.x,p.y+=Q.y<0?-be.y:be.y,this.panTo(this.unproject(p),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=s({animate:!1,pan:!0},t===!0?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var a=this.getSize(),u=i.divideBy(2).round(),p=a.divideBy(2).round(),w=u.subtract(p);return!w.x&&!w.y?this:(t.animate&&t.pan?this.panBy(w):(t.pan&&this._rawPanBy(w),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,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=s({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=c(this._handleGeolocationResponse,this),a=c(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,a,t):navigator.geolocation.getCurrentPosition(i,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 i=t.code,a=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+a+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,a=t.coords.longitude,u=new ee(i,a),p=u.toBounds(t.coords.accuracy*2),w=this._locateOptions;if(w.setView){var O=this.getBoundsZoom(p);this.setView(u,w.maxZoom?Math.min(O,w.maxZoom):O)}var D={latlng:u,bounds:p,timestamp:t.timestamp};for(var H in t.coords)typeof t.coords[H]=="number"&&(D[H]=t.coords[H]);this.fire("locationfound",D)}},addHandler:function(t,i){if(!i)return this;var a=this[t]=new i(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(),Ue(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(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)Ue(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var a="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),u=Ne("div",a,i||this._mapPane);return t&&(this._panes[t]=u),u},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(),i=this.unproject(t.getBottomLeft()),a=this.unproject(t.getTopRight());return new de(i,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,i,a){t=oe(t),a=G(a||[0,0]);var u=this.getZoom()||0,p=this.getMinZoom(),w=this.getMaxZoom(),O=t.getNorthWest(),D=t.getSouthEast(),H=this.getSize().subtract(a),Q=ne(this.project(D,u),this.project(O,u)).getSize(),be=ve.any3d?this.options.zoomSnap:1,Re=H.x/Q.x,Xe=H.y/Q.y,dn=i?Math.max(Re,Xe):Math.min(Re,Xe);return u=this.getScaleZoom(dn,u),be&&(u=Math.round(u/(be/100))*(be/100),u=i?Math.ceil(u/be)*be:Math.floor(u/be)*be),Math.max(p,Math.min(w,u))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var a=this._getTopLeftPoint(t,i);return new ie(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,i){var a=this.options.crs;return i=i===void 0?this._zoom:i,a.scale(t)/a.scale(i)},getScaleZoom:function(t,i){var a=this.options.crs;i=i===void 0?this._zoom:i;var u=a.zoom(t*a.scale(i));return isNaN(u)?1/0:u},project:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.latLngToPoint(K(t),i)},unproject:function(t,i){return i=i===void 0?this._zoom:i,this.options.crs.pointToLatLng(G(t),i)},layerPointToLatLng:function(t){var i=G(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(K(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(K(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(oe(t))},distance:function(t,i){return this.options.crs.distance(K(t),K(i))},containerPointToLayerPoint:function(t){return G(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return G(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(G(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(t)))},mouseEventToContainerPoint:function(t){return yp(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 i=this._container=wo(t);if(i){if(i._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");je(i,"scroll",this._onScroll,this),this._containerId=h(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ve.any3d,He(t,"leaflet-container"+(ve.touch?" leaflet-touch":"")+(ve.retina?" leaflet-retina":"")+(ve.ielt9?" leaflet-oldie":"")+(ve.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=Me(t,"position");i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="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),Pt(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(He(t.markerPane,"leaflet-zoom-hide"),He(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,a){Pt(this._mapPane,new Z(0,0));var u=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var p=this._zoom!==i;this._moveStart(p,a)._move(t,i)._moveEnd(p),this.fire("viewreset"),u&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,a,u){i===void 0&&(i=this._zoom);var p=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),u?a&&a.pinch&&this.fire("zoom",a):((p||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 j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Pt(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[h(this._container)]=this;var i=t?bt:je;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),ve.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=$(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,i){for(var a=[],u,p=i==="mouseout"||i==="mouseover",w=t.target||t.srcElement,O=!1;w;){if(u=this._targets[h(w)],u&&(i==="click"||i==="preclick")&&this._draggableMoved(u)){O=!0;break}if(u&&u.listens(i,!0)&&(p&&!Ec(w,t)||(a.push(u),p))||w===this._container)break;w=w.parentNode}return!a.length&&!O&&!p&&this.listens(i,!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 i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(i))){var a=t.type;a==="mousedown"&&bc(i),this._fireDOMEvent(t,a)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,a){if(t.type==="click"){var u=s({},t);u.type="preclick",this._fireDOMEvent(u,u.type,a)}var p=this._findEventTargets(t,i);if(a){for(var w=[],O=0;O<a.length;O++)a[O].listens(i,!0)&&w.push(a[O]);p=w.concat(p)}if(p.length){i==="contextmenu"&&en(t);var D=p[0],H={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var Q=D.getLatLng&&(!D._radius||D._radius<=10);H.containerPoint=Q?this.latLngToContainerPoint(D.getLatLng()):this.mouseEventToContainerPoint(t),H.layerPoint=this.containerPointToLayerPoint(H.containerPoint),H.latlng=Q?D.getLatLng():this.layerPointToLatLng(H.layerPoint)}for(O=0;O<p.length;O++)if(p[O].fire(i,H,!0),H.originalEvent._stopped||p[O].options.bubblingMouseEvents===!1&&I(this._mouseEvents,i)!==-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,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return sr(this._mapPane)||new Z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var a=t&&i!==void 0?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return a.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var a=this.getSize()._divideBy(2);return this.project(t,i)._subtract(a)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return this.project(t,i)._subtract(u)},_latLngBoundsToNewLayerBounds:function(t,i,a){var u=this._getNewPixelOrigin(a,i);return ne([this.project(t.getSouthWest(),i)._subtract(u),this.project(t.getNorthWest(),i)._subtract(u),this.project(t.getSouthEast(),i)._subtract(u),this.project(t.getNorthEast(),i)._subtract(u)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,a){if(!a)return t;var u=this.project(t,i),p=this.getSize().divideBy(2),w=new ie(u.subtract(p),u.add(p)),O=this._getBoundsOffset(w,a,i);return Math.abs(O.x)<=1&&Math.abs(O.y)<=1?t:this.unproject(u.add(O),i)},_limitOffset:function(t,i){if(!i)return t;var a=this.getPixelBounds(),u=new ie(a.min.add(t),a.max.add(t));return t.add(this._getBoundsOffset(u,i))},_getBoundsOffset:function(t,i,a){var u=ne(this.project(i.getNorthEast(),a),this.project(i.getSouthWest(),a)),p=u.min.subtract(t.min),w=u.max.subtract(t.max),O=this._rebound(p.x,-w.x),D=this._rebound(p.y,-w.y);return new Z(O,D)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),a=this.getMaxZoom(),u=ve.any3d?this.options.zoomSnap:1;return u&&(t=Math.round(t/u)*u),Math.max(i,Math.min(a,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ct(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var a=this._getCenterOffset(t)._trunc();return(i&&i.animate)!==!0&&!this.getSize().contains(a)?!1:(this.panBy(a,i),!0)},_createAnimProxy:function(){var t=this._proxy=Ne("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(i){var a=ir,u=this._proxy.style[a];un(this._proxy,this.project(i.center,i.zoom),this.getZoomScale(i.zoom,1)),u===this._proxy.style[a]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ue(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();un(this._proxy,this.project(t,i),this.getZoomScale(i,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,i,a){if(this._animatingZoom)return!0;if(a=a||{},!this._zoomAnimated||a.animate===!1||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var u=this.getZoomScale(i),p=this._getCenterOffset(t)._divideBy(1-1/u);return a.animate!==!0&&!this.getSize().contains(p)?!1:($(function(){this._moveStart(!0,a.noMoveStart||!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,a,u){this._mapPane&&(a&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,He(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:u}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ct(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 dw(t,i){return new it(t,i)}var Fn=W.extend({options:{position:"topright"},initialize:function(t){x(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),a=this.getPosition(),u=t._controlCorners[a];return He(i,"leaflet-control"),a.indexOf("bottom")!==-1?u.insertBefore(i,u.firstChild):u.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ue(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()}}),vi=function(t){return new Fn(t)};it.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",a=this._controlContainer=Ne("div",i+"control-container",this._container);function u(p,w){var O=i+p+" "+i+w;t[p+w]=Ne("div",O,a)}u("top","left"),u("top","right"),u("bottom","left"),u("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Ue(this._controlCorners[t]);Ue(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xp=Fn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,a,u){return a<u?-1:u<a?1:0}},initialize:function(t,i,a){x(this,a),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var u in t)this._addLayer(t[u],u);for(u in i)this._addLayer(i[u],u,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Fn.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,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(h(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){He(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?(He(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Ct(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ct(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=Ne("div",t),a=this.options.collapsed;i.setAttribute("aria-haspopup",!0),gi(i),Sc(i);var u=this._section=Ne("section",t+"-list");a&&(this._map.on("click",this.collapse,this),je(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var p=this._layersLink=Ne("a",t+"-toggle",i);p.href="#",p.title="Layers",p.setAttribute("role","button"),je(p,{keydown:function(w){w.keyCode===13&&this._expandSafely()},click:function(w){en(w),this._expandSafely()}},this),a||this.expand(),this._baseLayersList=Ne("div",t+"-base",u),this._separator=Ne("div",t+"-separator",u),this._overlaysList=Ne("div",t+"-overlays",u),i.appendChild(u)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,a){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:a}),this.options.sortLayers&&this._layers.sort(c(function(u,p){return this.options.sortFunction(u.layer,p.layer,u.name,p.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Tn(this._baseLayersList),Tn(this._overlaysList),this._layerControlInputs=[];var t,i,a,u,p=0;for(a=0;a<this._layers.length;a++)u=this._layers[a],this._addItem(u),i=i||u.overlay,t=t||!u.overlay,p+=u.overlay?0:1;return this.options.hideSingleBase&&(t=t&&p>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),a=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;a&&this._map.fire(a,i)},_createRadioElement:function(t,i){var a='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",u=document.createElement("div");return u.innerHTML=a,u.firstChild},_addItem:function(t){var i=document.createElement("label"),a=this._map.hasLayer(t.layer),u;t.overlay?(u=document.createElement("input"),u.type="checkbox",u.className="leaflet-control-layers-selector",u.defaultChecked=a):u=this._createRadioElement("leaflet-base-layers_"+h(this),a),this._layerControlInputs.push(u),u.layerId=h(t.layer),je(u,"click",this._onInputClick,this);var p=document.createElement("span");p.innerHTML=" "+t.name;var w=document.createElement("span");i.appendChild(w),w.appendChild(u),w.appendChild(p);var O=t.overlay?this._overlaysList:this._baseLayersList;return O.appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,i,a,u=[],p=[];this._handlingClick=!0;for(var w=t.length-1;w>=0;w--)i=t[w],a=this._getLayer(i.layerId).layer,i.checked?u.push(a):i.checked||p.push(a);for(w=0;w<p.length;w++)this._map.hasLayer(p[w])&&this._map.removeLayer(p[w]);for(w=0;w<u.length;w++)this._map.hasLayer(u[w])||this._map.addLayer(u[w]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,i,a,u=this._map.getZoom(),p=t.length-1;p>=0;p--)i=t[p],a=this._getLayer(i.layerId).layer,i.disabled=a.options.minZoom!==void 0&&u<a.options.minZoom||a.options.maxZoom!==void 0&&u>a.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,je(t,"click",en),this.expand();var i=this;setTimeout(function(){bt(t,"click",en),i._preventClick=!1})}}),fw=function(t,i,a){return new xp(t,i,a)},Pc=Fn.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 i="leaflet-control-zoom",a=Ne("div",i+" leaflet-bar"),u=this.options;return this._zoomInButton=this._createButton(u.zoomInText,u.zoomInTitle,i+"-in",a,this._zoomIn),this._zoomOutButton=this._createButton(u.zoomOutText,u.zoomOutTitle,i+"-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,i,a,u,p){var w=Ne("a",a,u);return w.innerHTML=t,w.href="#",w.title=i,w.setAttribute("role","button"),w.setAttribute("aria-label",i),gi(w),je(w,"click",Hr),je(w,"click",p,this),je(w,"click",this._refocusOnMap,this),w},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";Ct(this._zoomInButton,i),Ct(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(He(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(He(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});it.mergeOptions({zoomControl:!0}),it.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Pc,this.addControl(this.zoomControl))});var hw=function(t){return new Pc(t)},wp=Fn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",a=Ne("div",i),u=this.options;return this._addScales(u,i+"-line",a),t.on(u.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,i,a){t.metric&&(this._mScale=Ne("div",i,a)),t.imperial&&(this._iScale=Ne("div",i,a))},_update:function(){var t=this._map,i=t.getSize().y/2,a=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(a)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),a=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,a,i/t)},_updateImperial:function(t){var i=t*3.2808399,a,u,p;i>5280?(a=i/5280,u=this._getRoundNum(a),this._updateScale(this._iScale,u+" mi",u/a)):(p=this._getRoundNum(i),this._updateScale(this._iScale,p+" ft",p/i))},_updateScale:function(t,i,a){t.style.width=Math.round(this.options.maxWidth*a)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),a=t/i;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:1,i*a}}),pw=function(t){return new wp(t)},mw='<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>',Ic=Fn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ve.inlineSvg?mw+" ":"")+"Leaflet</a>"},initialize:function(t){x(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=Ne("div","leaflet-control-attribution"),gi(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].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 i in this._attributions)this._attributions[i]&&t.push(i);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> ')}}});it.mergeOptions({attributionControl:!0}),it.addInitHook(function(){this.options.attributionControl&&new Ic().addTo(this)});var gw=function(t){return new Ic(t)};Fn.Layers=xp,Fn.Zoom=Pc,Fn.Scale=wp,Fn.Attribution=Ic,vi.layers=fw,vi.zoom=hw,vi.scale=pw,vi.attribution=gw;var Zn=W.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}});Zn.addTo=function(t,i){return t.addHandler(i,this),this};var vw={Events:X},Cp=ve.touch?"touchstart mousedown":"mousedown",wr=J.extend({options:{clickTolerance:3},initialize:function(t,i,a,u){x(this,u),this._element=t,this._dragStartTarget=i||t,this._preventOutline=a},enable:function(){this._enabled||(je(this._dragStartTarget,Cp,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(wr._dragging===this&&this.finishDrag(!0),bt(this._dragStartTarget,Cp,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Co(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){wr._dragging===this&&this.finishDrag();return}if(!(wr._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(wr._dragging=this,this._preventOutline&&bc(this._element),gc(),xr(),!this._moving)){this.fire("down");var i=t.touches?t.touches[0]:t,a=mp(this._element);this._startPoint=new Z(i.clientX,i.clientY),this._startPos=sr(this._element),this._parentScale=_c(a);var u=t.type==="mousedown";je(document,u?"mousemove":"touchmove",this._onMove,this),je(document,u?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,a=new Z(i.clientX,i.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,en(t),this._moved||(this.fire("dragstart"),this._moved=!0,He(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),He(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),Pt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Ct(document.body,"leaflet-dragging"),this._lastTarget&&(Ct(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),bt(document,"mousemove touchmove",this._onMove,this),bt(document,"mouseup touchend touchcancel",this._onUp,this),vc(),pi();var i=this._moved&&this._moving;this._moving=!1,wr._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function Sp(t,i,a){var u,p=[1,4,2,8],w,O,D,H,Q,be,Re,Xe;for(w=0,be=t.length;w<be;w++)t[w]._code=Vr(t[w],i);for(D=0;D<4;D++){for(Re=p[D],u=[],w=0,be=t.length,O=be-1;w<be;O=w++)H=t[w],Q=t[O],H._code&Re?Q._code&Re||(Xe=Ls(Q,H,Re,i,a),Xe._code=Vr(Xe,i),u.push(Xe)):(Q._code&Re&&(Xe=Ls(Q,H,Re,i,a),Xe._code=Vr(Xe,i),u.push(Xe)),u.push(H));t=u}return t}function Ep(t,i){var a,u,p,w,O,D,H,Q,be;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var Re=K([0,0]),Xe=oe(t),dn=Xe.getNorthWest().distanceTo(Xe.getSouthWest())*Xe.getNorthEast().distanceTo(Xe.getNorthWest());dn<1700&&(Re=Tc(t));var Xt=t.length,Mn=[];for(a=0;a<Xt;a++){var vn=K(t[a]);Mn.push(i.project(K([vn.lat-Re.lat,vn.lng-Re.lng])))}for(D=H=Q=0,a=0,u=Xt-1;a<Xt;u=a++)p=Mn[a],w=Mn[u],O=p.y*w.x-w.y*p.x,H+=(p.x+w.x)*O,Q+=(p.y+w.y)*O,D+=O*3;D===0?be=Mn[0]:be=[H/D,Q/D];var Ao=i.unproject(G(be));return K([Ao.lat+Re.lat,Ao.lng+Re.lng])}function Tc(t){for(var i=0,a=0,u=0,p=0;p<t.length;p++){var w=K(t[p]);i+=w.lat,a+=w.lng,u++}return K([i/u,a/u])}var yw={__proto__:null,clipPolygon:Sp,polygonCenter:Ep,centroid:Tc};function Pp(t,i){if(!i||!t.length)return t.slice();var a=i*i;return t=xw(t,a),t=_w(t,a),t}function Ip(t,i,a){return Math.sqrt(yi(t,i,a,!0))}function bw(t,i,a){return yi(t,i,a)}function _w(t,i){var a=t.length,u=typeof Uint8Array!=void 0+""?Uint8Array:Array,p=new u(a);p[0]=p[a-1]=1,Ac(t,p,i,0,a-1);var w,O=[];for(w=0;w<a;w++)p[w]&&O.push(t[w]);return O}function Ac(t,i,a,u,p){var w=0,O,D,H;for(D=u+1;D<=p-1;D++)H=yi(t[D],t[u],t[p],!0),H>w&&(O=D,w=H);w>a&&(i[O]=1,Ac(t,i,a,u,O),Ac(t,i,a,O,p))}function xw(t,i){for(var a=[t[0]],u=1,p=0,w=t.length;u<w;u++)ww(t[u],t[p])>i&&(a.push(t[u]),p=u);return p<w-1&&a.push(t[w-1]),a}var Tp;function Ap(t,i,a,u,p){var w=u?Tp:Vr(t,a),O=Vr(i,a),D,H,Q;for(Tp=O;;){if(!(w|O))return[t,i];if(w&O)return!1;D=w||O,H=Ls(t,i,D,a,p),Q=Vr(H,a),D===w?(t=H,w=Q):(i=H,O=Q)}}function Ls(t,i,a,u,p){var w=i.x-t.x,O=i.y-t.y,D=u.min,H=u.max,Q,be;return a&8?(Q=t.x+w*(H.y-t.y)/O,be=H.y):a&4?(Q=t.x+w*(D.y-t.y)/O,be=D.y):a&2?(Q=H.x,be=t.y+O*(H.x-t.x)/w):a&1&&(Q=D.x,be=t.y+O*(D.x-t.x)/w),new Z(Q,be,p)}function Vr(t,i){var a=0;return t.x<i.min.x?a|=1:t.x>i.max.x&&(a|=2),t.y<i.min.y?a|=4:t.y>i.max.y&&(a|=8),a}function ww(t,i){var a=i.x-t.x,u=i.y-t.y;return a*a+u*u}function yi(t,i,a,u){var p=i.x,w=i.y,O=a.x-p,D=a.y-w,H=O*O+D*D,Q;return H>0&&(Q=((t.x-p)*O+(t.y-w)*D)/H,Q>1?(p=a.x,w=a.y):Q>0&&(p+=O*Q,w+=D*Q)),O=t.x-p,D=t.y-w,u?O*O+D*D:new Z(p,w)}function An(t){return!P(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Mp(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(t)}function Lp(t,i){var a,u,p,w,O,D,H,Q;if(!t||t.length===0)throw new Error("latlngs not passed");An(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var be=K([0,0]),Re=oe(t),Xe=Re.getNorthWest().distanceTo(Re.getSouthWest())*Re.getNorthEast().distanceTo(Re.getNorthWest());Xe<1700&&(be=Tc(t));var dn=t.length,Xt=[];for(a=0;a<dn;a++){var Mn=K(t[a]);Xt.push(i.project(K([Mn.lat-be.lat,Mn.lng-be.lng])))}for(a=0,u=0;a<dn-1;a++)u+=Xt[a].distanceTo(Xt[a+1])/2;if(u===0)Q=Xt[0];else for(a=0,w=0;a<dn-1;a++)if(O=Xt[a],D=Xt[a+1],p=O.distanceTo(D),w+=p,w>u){H=(w-u)/p,Q=[D.x-H*(D.x-O.x),D.y-H*(D.y-O.y)];break}var vn=i.unproject(G(Q));return K([vn.lat+be.lat,vn.lng+be.lng])}var Cw={__proto__:null,simplify:Pp,pointToSegmentDistance:Ip,closestPointOnSegment:bw,clipSegment:Ap,_getEdgeIntersection:Ls,_getBitCode:Vr,_sqClosestPointOnSegment:yi,isFlat:An,_flat:Mp,polylineCenter:Lp},Mc={project:function(t){return new Z(t.lng,t.lat)},unproject:function(t){return new ee(t.y,t.x)},bounds:new ie([-180,-90],[180,90])},Lc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ie([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var i=Math.PI/180,a=this.R,u=t.lat*i,p=this.R_MINOR/a,w=Math.sqrt(1-p*p),O=w*Math.sin(u),D=Math.tan(Math.PI/4-u/2)/Math.pow((1-O)/(1+O),w/2);return u=-a*Math.log(Math.max(D,1e-10)),new Z(t.lng*i*a,u)},unproject:function(t){for(var i=180/Math.PI,a=this.R,u=this.R_MINOR/a,p=Math.sqrt(1-u*u),w=Math.exp(-t.y/a),O=Math.PI/2-2*Math.atan(w),D=0,H=.1,Q;D<15&&Math.abs(H)>1e-7;D++)Q=p*Math.sin(O),Q=Math.pow((1-Q)/(1+Q),p/2),H=Math.PI/2-2*Math.atan(w*Q)-O,O+=H;return new ee(O*i,t.x*i/a)}},Sw={__proto__:null,LonLat:Mc,Mercator:Lc,SphericalMercator:xe},Ew=s({},se,{code:"EPSG:3395",projection:Lc,transformation:function(){var t=.5/(Math.PI*Lc.R);return Te(t,.5,-t,.5)}()}),Op=s({},se,{code:"EPSG:4326",projection:Mc,transformation:Te(1/180,1,-1/180,.5)}),Pw=s({},Y,{projection:Mc,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,i){var a=i.lng-t.lng,u=i.lat-t.lat;return Math.sqrt(a*a+u*u)},infinite:!0});Y.Earth=se,Y.EPSG3395=Ew,Y.EPSG3857=Ce,Y.EPSG900913=te,Y.EPSG4326=Op,Y.Simple=Pw;var Hn=J.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[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var a=this.getEvents();i.on(a,this),this.once("remove",function(){i.off(a,this)},this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});it.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=h(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var a in this._layers)t.call(i,this._layers[a]);return this},_addLayers:function(t){t=t?P(t)?t:[t]:[];for(var i=0,a=t.length;i<a;i++)this.addLayer(t[i])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=h(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,a=this._getZoomSpan();for(var u in this._zoomBoundLayers){var p=this._zoomBoundLayers[u].options;t=p.minZoom===void 0?t:Math.min(t,p.minZoom),i=p.maxZoom===void 0?i:Math.max(i,p.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,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 So=Hn.extend({initialize:function(t,i){x(this,i),this._layers={};var a,u;if(t)for(a=0,u=t.length;a<u;a++)this.addLayer(t[a])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){var i=typeof t=="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),a,u;for(a in this._layers)u=this._layers[a],u[t]&&u[t].apply(u,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var a in this._layers)t.call(i,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 h(t)}}),Iw=function(t,i){return new So(t,i)},ar=So.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),So.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),So.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 de;for(var i in this._layers){var a=this._layers[i];t.extend(a.getBounds?a.getBounds():a.getLatLng())}return t}}),Tw=function(t,i){return new ar(t,i)},Eo=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){x(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){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 u=this._createImg(a,i&&i.tagName==="IMG"?i:null);return this._setIconStyles(u,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),u},_setIconStyles:function(t,i){var a=this.options,u=a[i+"Size"];typeof u=="number"&&(u=[u,u]);var p=G(u),w=G(i==="shadow"&&a.shadowAnchor||a.iconAnchor||p&&p.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(a.className||""),w&&(t.style.marginLeft=-w.x+"px",t.style.marginTop=-w.y+"px"),p&&(t.style.width=p.x+"px",t.style.height=p.y+"px")},_createImg:function(t,i){return i=i||document.createElement("img"),i.src=t,i},_getIconUrl:function(t){return ve.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Aw(t){return new Eo(t)}var bi=Eo.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 bi.imagePath!="string"&&(bi.imagePath=this._detectIconPath()),(this.options.imagePath||bi.imagePath)+Eo.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(a,u,p){var w=u.exec(a);return w&&w[p]};return t=i(t,/^url\((['"])?(.+)\1\)$/,2),t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Ne("div","leaflet-default-icon-path",document.body),i=Me(t,"background-image")||Me(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i),i)return i;var a=document.querySelector('link[href$="leaflet.css"]');return a?a.href.substring(0,a.href.length-11-1):""}}),Np=Zn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new wr(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),He(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&&Ct(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,a=i._map,u=this._marker.options.autoPanSpeed,p=this._marker.options.autoPanPadding,w=sr(i._icon),O=a.getPixelBounds(),D=a.getPixelOrigin(),H=ne(O.min._subtract(D).add(p),O.max._subtract(D).subtract(p));if(!H.contains(w)){var Q=G((Math.max(H.max.x,w.x)-H.max.x)/(O.max.x-H.max.x)-(Math.min(H.min.x,w.x)-H.min.x)/(O.min.x-H.min.x),(Math.max(H.max.y,w.y)-H.max.y)/(O.max.y-H.max.y)-(Math.min(H.min.y,w.y)-H.min.y)/(O.min.y-H.min.y)).multiplyBy(u);a.panBy(Q,{animate:!1}),this._draggable._newPos._add(Q),this._draggable._startPos._add(Q),Pt(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=$(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&&(j(this._panRequest),this._panRequest=$(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,a=i._shadow,u=sr(i._icon),p=i._map.layerPointToLatLng(u);a&&Pt(a,u),i._latlng=p,t.latlng=p,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){j(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Os=Hn.extend({options:{icon:new bi,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,i){x(this,i),this._latlng=K(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 i=this._latlng;return this._latlng=K(t),this.update(),this.fire("move",{oldLatLng:i,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,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),a=t.icon.createIcon(this._icon),u=!1;a!==this._icon&&(this._icon&&this._removeIcon(),u=!0,t.title&&(a.title=t.title),a.tagName==="IMG"&&(a.alt=t.alt||"")),He(a,i),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&&je(a,"focus",this._panOnFocus,this);var p=t.icon.createShadow(this._shadow),w=!1;p!==this._shadow&&(this._removeShadow(),w=!0),p&&(He(p,i),p.alt=""),this._shadow=p,t.opacity<1&&this._updateOpacity(),u&&this.getPane().appendChild(this._icon),this._initInteraction(),p&&w&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(this._icon,"focus",this._panOnFocus,this),Ue(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ue(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Pt(this._icon,t),this._shadow&&Pt(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 i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(He(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Np)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Np(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&&ke(this._icon,t),this._shadow&&ke(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,a=i.iconSize?G(i.iconSize):G(0,0),u=i.iconAnchor?G(i.iconAnchor):G(0,0);t.panInside(this._latlng,{paddingTopLeft:u,paddingBottomRight:a.subtract(u)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Mw(t,i){return new Os(t,i)}var Cr=Hn.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 x(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)}}),Ns=Cr.extend({options:{fill:!0,radius:10},initialize:function(t,i){x(this,i),this._latlng=K(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=K(t),this.redraw(),this.fire("move",{oldLatLng:i,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 i=t&&t.radius||this._radius;return Cr.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,a=this._clickTolerance(),u=[t+a,i+a];this._pxBounds=new ie(this._point.subtract(u),this._point.add(u))},_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 Lw(t,i){return new Ns(t,i)}var Oc=Ns.extend({initialize:function(t,i,a){if(typeof i=="number"&&(i=s({},a,{radius:i})),x(this,i),this._latlng=K(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 de(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Cr.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,a=this._map,u=a.options.crs;if(u.distance===se.distance){var p=Math.PI/180,w=this._mRadius/se.R/p,O=a.project([i+w,t]),D=a.project([i-w,t]),H=O.add(D).divideBy(2),Q=a.unproject(H).lat,be=Math.acos((Math.cos(w*p)-Math.sin(i*p)*Math.sin(Q*p))/(Math.cos(i*p)*Math.cos(Q*p)))/p;(isNaN(be)||be===0)&&(be=w/Math.cos(Math.PI/180*i)),this._point=H.subtract(a.getPixelOrigin()),this._radius=isNaN(be)?0:H.x-a.project([Q,t-be]).x,this._radiusY=H.y-O.y}else{var Re=u.unproject(u.project(this._latlng).subtract([this._mRadius,0]));this._point=a.latLngToLayerPoint(this._latlng),this._radius=this._point.x-a.latLngToLayerPoint(Re).x}this._updateBounds()}});function Ow(t,i,a){return new Oc(t,i,a)}var lr=Cr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){x(this,i),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 i=1/0,a=null,u=yi,p,w,O=0,D=this._parts.length;O<D;O++)for(var H=this._parts[O],Q=1,be=H.length;Q<be;Q++){p=H[Q-1],w=H[Q];var Re=u(t,p,w,!0);Re<i&&(i=Re,a=u(t,p,w))}return a&&(a.distance=Math.sqrt(i)),a},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Lp(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=K(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new de,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],a=An(t),u=0,p=t.length;u<p;u++)a?(i[u]=K(t[u]),this._bounds.extend(i[u])):i[u]=this._convertLatLngs(t[u]);return i},_project:function(){var t=new ie;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(),i=new Z(t,t);this._rawPxBounds&&(this._pxBounds=new ie([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,a){var u=t[0]instanceof ee,p=t.length,w,O;if(u){for(O=[],w=0;w<p;w++)O[w]=this._map.latLngToLayerPoint(t[w]),a.extend(O[w]);i.push(O)}else for(w=0;w<p;w++)this._projectLatlngs(t[w],i,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 i=this._parts,a,u,p,w,O,D,H;for(a=0,p=0,w=this._rings.length;a<w;a++)for(H=this._rings[a],u=0,O=H.length;u<O-1;u++)D=Ap(H[u],H[u+1],t,u,!0),D&&(i[p]=i[p]||[],i[p].push(D[0]),(D[1]!==H[u+1]||u===O-2)&&(i[p].push(D[1]),p++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,a=0,u=t.length;a<u;a++)t[a]=Pp(t[a],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var a,u,p,w,O,D,H=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,w=this._parts.length;a<w;a++)for(D=this._parts[a],u=0,O=D.length,p=O-1;u<O;p=u++)if(!(!i&&u===0)&&Ip(t,D[p],D[u])<=H)return!0;return!1}});function Nw(t,i){return new lr(t,i)}lr._flat=Mp;var Po=lr.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 Ep(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=lr.prototype._convertLatLngs.call(this,t),a=i.length;return a>=2&&i[0]instanceof ee&&i[0].equals(i[a-1])&&i.pop(),i},_setLatLngs:function(t){lr.prototype._setLatLngs.call(this,t),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,a=new Z(i,i);if(t=new ie(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 u=0,p=this._rings.length,w;u<p;u++)w=Sp(this._rings[u],t,!0),w.length&&this._parts.push(w)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i=!1,a,u,p,w,O,D,H,Q;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(w=0,H=this._parts.length;w<H;w++)for(a=this._parts[w],O=0,Q=a.length,D=Q-1;O<Q;D=O++)u=a[O],p=a[D],u.y>t.y!=p.y>t.y&&t.x<(p.x-u.x)*(t.y-u.y)/(p.y-u.y)+u.x&&(i=!i);return i||lr.prototype._containsPoint.call(this,t,!0)}});function kw(t,i){return new Po(t,i)}var cr=ar.extend({initialize:function(t,i){x(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i=P(t)?t:t.features,a,u,p;if(i){for(a=0,u=i.length;a<u;a++)p=i[a],(p.geometries||p.geometry||p.features||p.coordinates)&&this.addData(p);return this}var w=this.options;if(w.filter&&!w.filter(t))return this;var O=ks(t,w);return O?(O.feature=Bs(t),O.defaultOptions=O.options,this.resetStyle(O),w.onEachFeature&&w.onEachFeature(t,O),this.addLayer(O)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=s({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(i){this._setLayerStyle(i,t)},this)},_setLayerStyle:function(t,i){t.setStyle&&(typeof i=="function"&&(i=i(t.feature)),t.setStyle(i))}});function ks(t,i){var a=t.type==="Feature"?t.geometry:t,u=a?a.coordinates:null,p=[],w=i&&i.pointToLayer,O=i&&i.coordsToLatLng||Nc,D,H,Q,be;if(!u&&!a)return null;switch(a.type){case"Point":return D=O(u),kp(w,t,D,i);case"MultiPoint":for(Q=0,be=u.length;Q<be;Q++)D=O(u[Q]),p.push(kp(w,t,D,i));return new ar(p);case"LineString":case"MultiLineString":return H=Rs(u,a.type==="LineString"?0:1,O),new lr(H,i);case"Polygon":case"MultiPolygon":return H=Rs(u,a.type==="Polygon"?1:2,O),new Po(H,i);case"GeometryCollection":for(Q=0,be=a.geometries.length;Q<be;Q++){var Re=ks({geometry:a.geometries[Q],type:"Feature",properties:t.properties},i);Re&&p.push(Re)}return new ar(p);case"FeatureCollection":for(Q=0,be=a.features.length;Q<be;Q++){var Xe=ks(a.features[Q],i);Xe&&p.push(Xe)}return new ar(p);default:throw new Error("Invalid GeoJSON object.")}}function kp(t,i,a,u){return t?t(i,a):new Os(a,u&&u.markersInheritOptions&&u)}function Nc(t){return new ee(t[1],t[0],t[2])}function Rs(t,i,a){for(var u=[],p=0,w=t.length,O;p<w;p++)O=i?Rs(t[p],i-1,a):(a||Nc)(t[p]),u.push(O);return u}function kc(t,i){return t=K(t),t.alt!==void 0?[y(t.lng,i),y(t.lat,i),y(t.alt,i)]:[y(t.lng,i),y(t.lat,i)]}function $s(t,i,a,u){for(var p=[],w=0,O=t.length;w<O;w++)p.push(i?$s(t[w],An(t[w])?0:i-1,a,u):kc(t[w],u));return!i&&a&&p.length>0&&p.push(p[0].slice()),p}function Io(t,i){return t.feature?s({},t.feature,{geometry:i}):Bs(i)}function Bs(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Rc={toGeoJSON:function(t){return Io(this,{type:"Point",coordinates:kc(this.getLatLng(),t)})}};Os.include(Rc),Oc.include(Rc),Ns.include(Rc),lr.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=$s(this._latlngs,i?1:0,!1,t);return Io(this,{type:(i?"Multi":"")+"LineString",coordinates:a})}}),Po.include({toGeoJSON:function(t){var i=!An(this._latlngs),a=i&&!An(this._latlngs[0]),u=$s(this._latlngs,a?2:i?1:0,!0,t);return i||(u=[u]),Io(this,{type:(a?"Multi":"")+"Polygon",coordinates:u})}}),So.include({toMultiPoint:function(t){var i=[];return this.eachLayer(function(a){i.push(a.toGeoJSON(t).geometry.coordinates)}),Io(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint")return this.toMultiPoint(t);var a=i==="GeometryCollection",u=[];return this.eachLayer(function(p){if(p.toGeoJSON){var w=p.toGeoJSON(t);if(a)u.push(w.geometry);else{var O=Bs(w);O.type==="FeatureCollection"?u.push.apply(u,O.features):u.push(O)}}}),a?Io(this,{geometries:u,type:"GeometryCollection"}):{type:"FeatureCollection",features:u}}});function Rp(t,i){return new cr(t,i)}var Rw=Rp,zs=Hn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,a){this._url=t,this._bounds=oe(i),x(this,a)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(He(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ue(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&&gn(this._image),this},bringToBack:function(){return this._map&&zn(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=oe(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",i=this._image=t?this._url:Ne("img");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onload=c(this.fire,this,"load"),i.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=i.src;return}i.src=this._url,i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),a=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;un(this._image,a,i)},_reset:function(){var t=this._image,i=new ie(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),a=i.getSize();Pt(t,i.min),t.style.width=a.x+"px",t.style.height=a.y+"px"},_updateOpacity:function(){ke(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()}}),$w=function(t,i,a){return new zs(t,i,a)},$p=zs.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",i=this._image=t?this._url:Ne("video");if(He(i,"leaflet-image-layer"),this._zoomAnimated&&He(i,"leaflet-zoom-animated"),this.options.className&&He(i,this.options.className),i.onselectstart=v,i.onmousemove=v,i.onloadeddata=c(this.fire,this,"load"),t){for(var a=i.getElementsByTagName("source"),u=[],p=0;p<a.length;p++)u.push(a[p].src);this._url=a.length>0?u:[i.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var w=0;w<this._url.length;w++){var O=Ne("source");O.src=this._url[w],i.appendChild(O)}}});function Bw(t,i,a){return new $p(t,i,a)}var Bp=zs.extend({_initImage:function(){var t=this._image=this._url;He(t,"leaflet-image-layer"),this._zoomAnimated&&He(t,"leaflet-zoom-animated"),this.options.className&&He(t,this.options.className),t.onselectstart=v,t.onmousemove=v}});function zw(t,i,a){return new Bp(t,i,a)}var Un=Hn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof ee||P(t))?(this._latlng=K(t),x(this,i)):(x(this,t),this._source=i),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&&ke(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ke(this._container,1),this.bringToFront(),this.options.interactive&&(He(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ke(this._container,0),this._removeTimeout=setTimeout(c(Ue,void 0,this._container),200)):Ue(this._container),this.options.interactive&&(Ct(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=K(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&&gn(this._container),this},bringToBack:function(){return this._map&&zn(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof ar){i=null;var a=this._source._layers;for(var u in a)if(a[u]._map){i=a[u];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else if(i.getBounds)t=i.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,i=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof i=="string")t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=G(this.options.offset),a=this._getAnchor();this._zoomAnimated?Pt(this._container,t.add(a)):i=i.add(t).add(a);var u=this._containerBottom=-i.y,p=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=u+"px",this._container.style.left=p+"px"}},_getAnchor:function(){return[0,0]}});it.include({_initOverlay:function(t,i,a,u){var p=i;return p instanceof t||(p=new t(u).setContent(i)),a&&p.setLatLng(a),p}}),Hn.include({_initOverlay:function(t,i,a,u){var p=a;return p instanceof t?(x(p,u),p._source=this):(p=i&&!u?i:new t(u,this),p.setContent(a)),p}});var Ds=Un.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,Un.prototype.openOn.call(this,t)},onAdd:function(t){Un.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Cr||this._source.on("preclick",Fr))},onRemove:function(t){Un.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Cr||this._source.off("preclick",Fr))},getEvents:function(){var t=Un.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",i=this._container=Ne("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),a=this._wrapper=Ne("div",t+"-content-wrapper",i);if(this._contentNode=Ne("div",t+"-content",a),gi(i),Sc(this._contentNode),je(i,"contextmenu",Fr),this._tipContainer=Ne("div",t+"-tip-container",i),this._tip=Ne("div",t+"-tip",this._tipContainer),this.options.closeButton){var u=this._closeButton=Ne("a",t+"-close-button",i);u.setAttribute("role","button"),u.setAttribute("aria-label","Close popup"),u.href="#close",u.innerHTML='<span aria-hidden="true">&#215;</span>',je(u,"click",function(p){en(p),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var a=t.offsetWidth;a=Math.min(a,this.options.maxWidth),a=Math.max(a,this.options.minWidth),i.width=a+1+"px",i.whiteSpace="",i.height="";var u=t.offsetHeight,p=this.options.maxHeight,w="leaflet-popup-scrolled";p&&u>p?(i.height=p+"px",He(t,w)):Ct(t,w),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),a=this._getAnchor();Pt(this._container,i.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,i=parseInt(Me(this._container,"marginBottom"),10)||0,a=this._container.offsetHeight+i,u=this._containerWidth,p=new Z(this._containerLeft,-a-this._containerBottom);p._add(sr(this._container));var w=t.layerPointToContainerPoint(p),O=G(this.options.autoPanPadding),D=G(this.options.autoPanPaddingTopLeft||O),H=G(this.options.autoPanPaddingBottomRight||O),Q=t.getSize(),be=0,Re=0;w.x+u+H.x>Q.x&&(be=w.x+u-Q.x+H.x),w.x-be-D.x<0&&(be=w.x-D.x),w.y+a+H.y>Q.y&&(Re=w.y+a-Q.y+H.y),w.y-Re-D.y<0&&(Re=w.y-D.y),(be||Re)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([be,Re]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Dw=function(t,i){return new Ds(t,i)};it.mergeOptions({closePopupOnClick:!0}),it.include({openPopup:function(t,i,a){return this._initOverlay(Ds,t,i,a).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Hn.include({bindPopup:function(t,i){return this._popup=this._initOverlay(Ds,this._popup,t,i),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 ar||(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)){Hr(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof Cr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=i,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Fs=Un.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Un.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){Un.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=Un.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ne("div",i),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,a,u=this._map,p=this._container,w=u.latLngToContainerPoint(u.getCenter()),O=u.layerPointToContainerPoint(t),D=this.options.direction,H=p.offsetWidth,Q=p.offsetHeight,be=G(this.options.offset),Re=this._getAnchor();D==="top"?(i=H/2,a=Q):D==="bottom"?(i=H/2,a=0):D==="center"?(i=H/2,a=Q/2):D==="right"?(i=0,a=Q/2):D==="left"?(i=H,a=Q/2):O.x<w.x?(D="right",i=0,a=Q/2):(D="left",i=H+(be.x+Re.x)*2,a=Q/2),t=t.subtract(G(i,a,!0)).add(be).add(Re),Ct(p,"leaflet-tooltip-right"),Ct(p,"leaflet-tooltip-left"),Ct(p,"leaflet-tooltip-top"),Ct(p,"leaflet-tooltip-bottom"),He(p,"leaflet-tooltip-"+D),Pt(p,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ke(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return G(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Fw=function(t,i){return new Fs(t,i)};it.include({openTooltip:function(t,i,a){return this._initOverlay(Fs,t,i,a).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Hn.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Fs,this._tooltip,t,i),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 i=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[i](a),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof ar||(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 i=typeof t.getElement=="function"&&t.getElement();i&&(je(i,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),je(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement=="function"&&t.getElement();i&&i.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 i=this;this._map.once("moveend",function(){i._openOnceFlag=!1,i._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var i=t.latlng,a,u;this._tooltip.options.sticky&&t.originalEvent&&(a=this._map.mouseEventToContainerPoint(t.originalEvent),u=this._map.containerPointToLayerPoint(a),i=this._map.layerPointToLatLng(u)),this._tooltip.setLatLng(i)}});var zp=Eo.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),a=this.options;if(a.html instanceof Element?(Tn(i),i.appendChild(a.html)):i.innerHTML=a.html!==!1?a.html:"",a.bgPos){var u=G(a.bgPos);i.style.backgroundPosition=-u.x+"px "+-u.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});function Hw(t){return new zp(t)}Eo.Default=bi;var _i=Hn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ve.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){x(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Ue(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(gn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(zn(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=g(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 Z?t:new Z(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 i=this.getPane().children,a=-t(-1/0,1/0),u=0,p=i.length,w;u<p;u++)w=i[u].style.zIndex,i[u]!==this._container&&w&&(a=t(a,+w));isFinite(a)&&(this.options.zIndex=a+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ve.ielt9){ke(this._container,this.options.opacity);var t=+new Date,i=!1,a=!1;for(var u in this._tiles){var p=this._tiles[u];if(!(!p.current||!p.loaded)){var w=Math.min(1,(t-p.loaded)/200);ke(p.el,w),w<1?i=!0:(p.active?a=!0:this._onOpaqueTile(p),p.active=!0)}}a&&!this._noPrune&&this._pruneTiles(),i&&(j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=Ne("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,i=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=i-Math.abs(t-a),this._onUpdateLevel(a)):(Ue(this._levels[a].el),this._removeTilesAtZoom(a),this._onRemoveLevel(a),delete this._levels[a]);var u=this._levels[t],p=this._map;return u||(u=this._levels[t]={},u.el=Ne("div","leaflet-tile-container leaflet-zoom-animated",this._container),u.el.style.zIndex=i,u.origin=p.project(p.unproject(p.getPixelOrigin()),t).round(),u.zoom=t,this._setZoomTransform(u,p.getCenter(),p.getZoom()),v(u.el.offsetWidth),this._onCreateLevel(u)),this._level=u,u}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var t,i,a=this._map.getZoom();if(a>this.options.maxZoom||a<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)i=this._tiles[t],i.retain=i.current;for(t in this._tiles)if(i=this._tiles[t],i.current&&!i.active){var u=i.coords;this._retainParent(u.x,u.y,u.z,u.z-5)||this._retainChildren(u.x,u.y,u.z,u.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)Ue(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,a,u){var p=Math.floor(t/2),w=Math.floor(i/2),O=a-1,D=new Z(+p,+w);D.z=+O;var H=this._tileCoordsToKey(D),Q=this._tiles[H];return Q&&Q.active?(Q.retain=!0,!0):(Q&&Q.loaded&&(Q.retain=!0),O>u?this._retainParent(p,w,O,u):!1)},_retainChildren:function(t,i,a,u){for(var p=2*t;p<2*t+2;p++)for(var w=2*i;w<2*i+2;w++){var O=new Z(p,w);O.z=a+1;var D=this._tileCoordsToKey(O),H=this._tiles[D];if(H&&H.active){H.retain=!0;continue}else H&&H.loaded&&(H.retain=!0);a+1<u&&this._retainChildren(p,w,a+1,u)}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return i.minNativeZoom!==void 0&&t<i.minNativeZoom?i.minNativeZoom:i.maxNativeZoom!==void 0&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,a,u){var p=Math.round(i);this.options.maxZoom!==void 0&&p>this.options.maxZoom||this.options.minZoom!==void 0&&p<this.options.minZoom?p=void 0:p=this._clampZoom(p);var w=this.options.updateWhenZooming&&p!==this._tileZoom;(!u||w)&&(this._tileZoom=p,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),p!==void 0&&this._update(t),a||this._pruneTiles(),this._noPrune=!!a),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var a in this._levels)this._setZoomTransform(this._levels[a],t,i)},_setZoomTransform:function(t,i,a){var u=this._map.getZoomScale(a,t.zoom),p=t.origin.multiplyBy(u).subtract(this._map._getNewPixelOrigin(i,a)).round();ve.any3d?un(t.el,p,u):Pt(t.el,p)},_resetGrid:function(){var t=this._map,i=t.options.crs,a=this._tileSize=this.getTileSize(),u=this._tileZoom,p=this._map.getPixelWorldBounds(this._tileZoom);p&&(this._globalTileRange=this._pxBoundsToTileRange(p)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],u).x/a.x),Math.ceil(t.project([0,i.wrapLng[1]],u).x/a.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],u).y/a.x),Math.ceil(t.project([i.wrapLat[1],0],u).y/a.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var i=this._map,a=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),u=i.getZoomScale(a,this._tileZoom),p=i.project(t,this._tileZoom).floor(),w=i.getSize().divideBy(u*2);return new ie(p.subtract(w),p.add(w))},_update:function(t){var i=this._map;if(i){var a=this._clampZoom(i.getZoom());if(t===void 0&&(t=i.getCenter()),this._tileZoom!==void 0){var u=this._getTiledPixelBounds(t),p=this._pxBoundsToTileRange(u),w=p.getCenter(),O=[],D=this.options.keepBuffer,H=new ie(p.getBottomLeft().subtract([D,-D]),p.getTopRight().add([D,-D]));if(!(isFinite(p.min.x)&&isFinite(p.min.y)&&isFinite(p.max.x)&&isFinite(p.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Q in this._tiles){var be=this._tiles[Q].coords;(be.z!==this._tileZoom||!H.contains(new Z(be.x,be.y)))&&(this._tiles[Q].current=!1)}if(Math.abs(a-this._tileZoom)>1){this._setView(t,a);return}for(var Re=p.min.y;Re<=p.max.y;Re++)for(var Xe=p.min.x;Xe<=p.max.x;Xe++){var dn=new Z(Xe,Re);if(dn.z=this._tileZoom,!!this._isValidTile(dn)){var Xt=this._tiles[this._tileCoordsToKey(dn)];Xt?Xt.current=!0:O.push(dn)}}if(O.sort(function(vn,Ao){return vn.distanceTo(w)-Ao.distanceTo(w)}),O.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Mn=document.createDocumentFragment();for(Xe=0;Xe<O.length;Xe++)this._addTile(O[Xe],Mn);this._level.el.appendChild(Mn)}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var a=this._globalTileRange;if(!i.wrapLng&&(t.x<a.min.x||t.x>a.max.x)||!i.wrapLat&&(t.y<a.min.y||t.y>a.max.y))return!1}if(!this.options.bounds)return!0;var u=this._tileCoordsToBounds(t);return oe(this.options.bounds).overlaps(u)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,a=this.getTileSize(),u=t.scaleBy(a),p=u.add(a),w=i.unproject(u,t.z),O=i.unproject(p,t.z);return[w,O]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),a=new de(i[0],i[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 i=t.split(":"),a=new Z(+i[0],+i[1]);return a.z=+i[2],a},_removeTile:function(t){var i=this._tiles[t];i&&(Ue(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){He(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=v,t.onmousemove=v,ve.ielt9&&this.options.opacity<1&&ke(t,this.options.opacity)},_addTile:function(t,i){var a=this._getTilePos(t),u=this._tileCoordsToKey(t),p=this.createTile(this._wrapCoords(t),c(this._tileReady,this,t));this._initTile(p),this.createTile.length<2&&$(c(this._tileReady,this,t,null,p)),Pt(p,a),this._tiles[u]={el:p,coords:t,current:!0},i.appendChild(p),this.fire("tileloadstart",{tile:p,coords:t})},_tileReady:function(t,i,a){i&&this.fire("tileerror",{error:i,tile:a,coords:t});var u=this._tileCoordsToKey(t);a=this._tiles[u],a&&(a.loaded=+new Date,this._map._fadeAnimated?(ke(a.el,0),j(this._fadeFrame),this._fadeFrame=$(this._updateOpacity,this)):(a.active=!0,this._pruneTiles()),i||(He(a.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:a.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ve.ielt9||!this._map._fadeAnimated?$(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new Z(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new ie(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Vw(t){return new _i(t)}var To=_i.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,i=x(this,i),i.detectRetina&&ve.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),typeof i.subdomains=="string"&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&i===void 0&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var a=document.createElement("img");return je(a,"load",c(this._tileOnLoad,this,i,a)),je(a,"error",c(this._tileOnError,this,i,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 i={r:ve.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&&(i.y=a),i["-y"]=a}return S(this._url,s(i,this.options))},_tileOnLoad:function(t,i){ve.ielt9?setTimeout(c(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,a){var u=this.options.errorTileUrl;u&&i.getAttribute("src")!==u&&(i.src=u),t(a,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,a=this.options.zoomReverse,u=this.options.zoomOffset;return a&&(t=i-t),t+u},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(i=this._tiles[t].el,i.onload=v,i.onerror=v,!i.complete)){i.src=M;var a=this._tiles[t].coords;Ue(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:a})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",M),_i.prototype._removeTile.call(this,t)},_tileReady:function(t,i,a){if(!(!this._map||a&&a.getAttribute("src")===M))return _i.prototype._tileReady.call(this,t,i,a)}});function Dp(t,i){return new To(t,i)}var Fp=To.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,i){this._url=t;var a=s({},this.defaultWmsParams);for(var u in i)u in this.options||(a[u]=i[u]);i=x(this,i);var p=i.detectRetina&&ve.retina?2:1,w=this.getTileSize();a.width=w.x*p,a.height=w.y*p,this.wmsParams=a},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,To.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),a=this._crs,u=ne(a.project(i[0]),a.project(i[1])),p=u.min,w=u.max,O=(this._wmsVersion>=1.3&&this._crs===Op?[p.y,p.x,w.y,w.x]:[p.x,p.y,w.x,w.y]).join(","),D=To.prototype.getTileUrl.call(this,t);return D+b(this.wmsParams,D,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+O},setParams:function(t,i){return s(this.wmsParams,t),i||this.redraw(),this}});function Ww(t,i){return new Fp(t,i)}To.WMS=Fp,Dp.wms=Ww;var ur=Hn.extend({options:{padding:.1},initialize:function(t){x(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),He(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,i){var a=this._map.getZoomScale(i,this._zoom),u=this._map.getSize().multiplyBy(.5+this.options.padding),p=this._map.project(this._center,i),w=u.multiplyBy(-a).add(p).subtract(this._map._getNewPixelOrigin(t,i));ve.any3d?un(this._container,w,a):Pt(this._container,w)},_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,i=this._map.getSize(),a=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new ie(a,a.add(i.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hp=ur.extend({options:{tolerance:0},getEvents:function(){var t=ur.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ur.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this),je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,Ue(this._container),bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var i in this._layers)t=this._layers[i],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ur.prototype._update.call(this);var t=this._bounds,i=this._container,a=t.getSize(),u=ve.retina?2:1;Pt(i,t.min),i.width=u*a.x,i.height=u*a.y,i.style.width=a.x+"px",i.style.height=a.y+"px",ve.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){ur.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,a=i.next,u=i.prev;a?a.prev=u:this._drawLast=u,u?u.next=a:this._drawFirst=a,delete t._order,delete this._layers[h(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 i=t.options.dashArray.split(/[, ]+/),a=[],u,p;for(p=0;p<i.length;p++){if(u=Number(i[p]),isNaN(u))return;a.push(u)}t.options._dashArray=a}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||$(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ie,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_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 i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.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,i=this._redrawBounds;if(this._ctx.save(),i){var a=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,a.x,a.y),this._ctx.clip()}this._drawing=!0;for(var u=this._drawFirst;u;u=u.next)t=u.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var a,u,p,w,O=t._parts,D=O.length,H=this._ctx;if(D){for(H.beginPath(),a=0;a<D;a++){for(u=0,p=O[a].length;u<p;u++)w=O[a][u],H[u?"lineTo":"moveTo"](w.x,w.y);i&&H.closePath()}this._fillStroke(H,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var i=t._point,a=this._ctx,u=Math.max(Math.round(t._radius),1),p=(Math.max(Math.round(t._radiusY),1)||u)/u;p!==1&&(a.save(),a.scale(1,p)),a.beginPath(),a.arc(i.x,i.y/p,u,0,Math.PI*2,!1),p!==1&&a.restore(),this._fillStroke(a,t)}},_fillStroke:function(t,i){var a=i.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(i.options&&i.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 i=this._map.mouseEventToLayerPoint(t),a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(a))&&(u=a);this._fireEvent(u?[u]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(Ct(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var a,u,p=this._drawFirst;p;p=p.next)a=p.layer,a.options.interactive&&a._containsPoint(i)&&(u=a);u!==this._hoveredLayer&&(this._handleMouseOut(t),u&&(He(this._container,"leaflet-interactive"),this._fireEvent([u],t,"mouseover"),this._hoveredLayer=u)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,i,a){this._map._fireDOMEvent(i,a||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(a)a.prev=u;else return;u?u.next=a:a&&(this._drawFirst=a),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t)}},_bringToBack:function(t){var i=t._order;if(i){var a=i.next,u=i.prev;if(u)u.next=a;else return;a?a.prev=u:u&&(this._drawLast=u),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t)}}});function Vp(t){return ve.canvas?new Hp(t):null}var xi=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">')}}(),jw={_initContainer:function(){this._container=Ne("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ur.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=xi("shape");He(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=xi("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;Ue(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,a=t._fill,u=t.options,p=t._container;p.stroked=!!u.stroke,p.filled=!!u.fill,u.stroke?(i||(i=t._stroke=xi("stroke")),p.appendChild(i),i.weight=u.weight+"px",i.color=u.color,i.opacity=u.opacity,u.dashArray?i.dashStyle=P(u.dashArray)?u.dashArray.join(" "):u.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=u.lineCap.replace("butt","flat"),i.joinstyle=u.lineJoin):i&&(p.removeChild(i),t._stroke=null),u.fill?(a||(a=t._fill=xi("fill")),p.appendChild(a),a.color=u.fillColor||u.color,a.opacity=u.fillOpacity):a&&(p.removeChild(a),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),a=Math.round(t._radius),u=Math.round(t._radiusY||a);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+a+","+u+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){gn(t._container)},_bringToBack:function(t){zn(t._container)}},Hs=ve.vml?xi:we,wi=ur.extend({_initContainer:function(){this._container=Hs("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Hs("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ue(this._container),bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ur.prototype._update.call(this);var t=this._bounds,i=t.getSize(),a=this._container;(!this._svgSize||!this._svgSize.equals(i))&&(this._svgSize=i,a.setAttribute("width",i.x),a.setAttribute("height",i.y)),Pt(a,t.min),a.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=Hs("path");t.options.className&&He(i,t.options.className),t.options.interactive&&He(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Ue(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,a=t.options;i&&(a.stroke?(i.setAttribute("stroke",a.color),i.setAttribute("stroke-opacity",a.opacity),i.setAttribute("stroke-width",a.weight),i.setAttribute("stroke-linecap",a.lineCap),i.setAttribute("stroke-linejoin",a.lineJoin),a.dashArray?i.setAttribute("stroke-dasharray",a.dashArray):i.removeAttribute("stroke-dasharray"),a.dashOffset?i.setAttribute("stroke-dashoffset",a.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),a.fill?(i.setAttribute("fill",a.fillColor||a.color),i.setAttribute("fill-opacity",a.fillOpacity),i.setAttribute("fill-rule",a.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,Pe(t._parts,i))},_updateCircle:function(t){var i=t._point,a=Math.max(Math.round(t._radius),1),u=Math.max(Math.round(t._radiusY),1)||a,p="a"+a+","+u+" 0 1,0 ",w=t._empty()?"M0 0":"M"+(i.x-a)+","+i.y+p+a*2+",0 "+p+-a*2+",0 ";this._setPath(t,w)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){gn(t._path)},_bringToBack:function(t){zn(t._path)}});ve.vml&&wi.include(jw);function Wp(t){return ve.svg||ve.vml?new wi(t):null}it.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var i=this._paneRenderers[t];return i===void 0&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&Vp(t)||Wp(t)}});var jp=Po.extend({initialize:function(t,i){Po.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=oe(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Zw(t,i){return new jp(t,i)}wi.create=Hs,wi.pointsToPath=Pe,cr.geometryToLayer=ks,cr.coordsToLatLng=Nc,cr.coordsToLatLngs=Rs,cr.latLngToCoords=kc,cr.latLngsToCoords=$s,cr.getFeature=Io,cr.asFeature=Bs,it.mergeOptions({boxZoom:!0});var Zp=Zn.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(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ue(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(),xr(),gc(),this._startPoint=this._map.mouseEventToContainerPoint(t),je(document,{contextmenu:Hr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Ne("div","leaflet-zoom-box",this._container),He(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new ie(this._point,this._startPoint),a=i.getSize();Pt(this._box,i.min),this._box.style.width=a.x+"px",this._box.style.height=a.y+"px"},_finish:function(){this._moved&&(Ue(this._box),Ct(this._container,"leaflet-crosshair")),pi(),vc(),bt(document,{contextmenu:Hr,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(c(this._resetState,this),0);var i=new de(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});it.addInitHook("addHandler","boxZoom",Zp),it.mergeOptions({doubleClickZoom:!0});var Up=Zn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,a=i.getZoom(),u=i.options.zoomDelta,p=t.originalEvent.shiftKey?a-u:a+u;i.options.doubleClickZoom==="center"?i.setZoom(p):i.setZoomAround(t.containerPoint,p)}});it.addInitHook("addHandler","doubleClickZoom",Up),it.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var qp=Zn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new wr(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))}He(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ct(this._map._container,"leaflet-grab"),Ct(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 i=oe(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.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 i=this._lastTime=+new Date,a=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(a),this._times.push(i),this._prunePositions(i)}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),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),a=this._initialWorldOffset,u=this._draggable._newPos.x,p=(u-i+a)%t+i-a,w=(u+i+a)%t-i-a,O=Math.abs(p+a)<Math.abs(w+a)?p:w;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=O},_onDragEnd:function(t){var i=this._map,a=i.options,u=!a.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),u)i.fire("moveend");else{this._prunePositions(+new Date);var p=this._lastPos.subtract(this._positions[0]),w=(this._lastTime-this._times[0])/1e3,O=a.easeLinearity,D=p.multiplyBy(O/w),H=D.distanceTo([0,0]),Q=Math.min(a.inertiaMaxSpeed,H),be=D.multiplyBy(Q/H),Re=Q/(a.inertiaDeceleration*O),Xe=be.multiplyBy(-Re/2).round();!Xe.x&&!Xe.y?i.fire("moveend"):(Xe=i._limitOffset(Xe,i.options.maxBounds),$(function(){i.panBy(Xe,{duration:Re,easeLinearity:O,noMoveStart:!0,animate:!0})}))}}});it.addInitHook("addHandler","dragging",qp),it.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Gp=Zn.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"),je(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(),bt(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,i=document.documentElement,a=t.scrollTop||i.scrollTop,u=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(u,a)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},a=this.keyCodes,u,p;for(u=0,p=a.left.length;u<p;u++)i[a.left[u]]=[-1*t,0];for(u=0,p=a.right.length;u<p;u++)i[a.right[u]]=[t,0];for(u=0,p=a.down.length;u<p;u++)i[a.down[u]]=[0,t];for(u=0,p=a.up.length;u<p;u++)i[a.up[u]]=[0,-1*t]},_setZoomDelta:function(t){var i=this._zoomKeys={},a=this.keyCodes,u,p;for(u=0,p=a.zoomIn.length;u<p;u++)i[a.zoomIn[u]]=t;for(u=0,p=a.zoomOut.length;u<p;u++)i[a.zoomOut[u]]=-t},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i=t.keyCode,a=this._map,u;if(i in this._panKeys){if(!a._panAnim||!a._panAnim._inProgress)if(u=this._panKeys[i],t.shiftKey&&(u=G(u).multiplyBy(3)),a.options.maxBounds&&(u=a._limitOffset(G(u),a.options.maxBounds)),a.options.worldCopyJump){var p=a.wrapLatLng(a.unproject(a.project(a.getCenter()).add(u)));a.panTo(p)}else a.panBy(u)}else if(i in this._zoomKeys)a.setZoom(a.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else if(i===27&&a._popup&&a._popup.options.closeOnEscapeKey)a.closePopup();else return;Hr(t)}}});it.addInitHook("addHandler","keyboard",Gp),it.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Kp=Zn.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=bp(t),a=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var u=Math.max(a-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),u),Hr(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),a=this._map.options.zoomSnap||0;t._stop();var u=this._delta/(this._map.options.wheelPxPerZoomLevel*4),p=4*Math.log(2/(1+Math.exp(-Math.abs(u))))/Math.LN2,w=a?Math.ceil(p/a)*a:p,O=t._limitZoom(i+(this._delta>0?w:-w))-i;this._delta=0,this._startTime=null,O&&(t.options.scrollWheelZoom==="center"?t.setZoom(i+O):t.setZoomAround(this._lastMousePos,i+O))}});it.addInitHook("addHandler","scrollWheelZoom",Kp);var Uw=600;it.mergeOptions({tapHold:ve.touchNative&&ve.safari&&ve.mobile,tapTolerance:15});var Qp=Zn.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var i=t.touches[0];this._startPos=this._newPos=new Z(i.clientX,i.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",en),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))},this),Uw),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){bt(document,"touchend",en),bt(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new Z(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var a=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});a._simulated=!0,i.target.dispatchEvent(a)}});it.addInitHook("addHandler","tapHold",Qp),it.mergeOptions({touchZoom:ve.touch,bounceAtZoomLimits:!0});var Yp=Zn.extend({addHooks:function(){He(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ct(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming)){var a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),i.options.touchZoom!=="center"&&(this._pinchStartLatLng=i.containerPointToLatLng(a.add(u)._divideBy(2))),this._startDist=a.distanceTo(u),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),en(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var i=this._map,a=i.mouseEventToContainerPoint(t.touches[0]),u=i.mouseEventToContainerPoint(t.touches[1]),p=a.distanceTo(u)/this._startDist;if(this._zoom=i.getScaleZoom(p,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&p<1||this._zoom>i.getMaxZoom()&&p>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.touchZoom==="center"){if(this._center=this._startLatLng,p===1)return}else{var w=a._add(u)._divideBy(2)._subtract(this._centerPoint);if(p===1&&w.x===0&&w.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(w),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var O=c(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=$(O,this,!0),en(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),bt(document,"touchmove",this._onTouchMove,this),bt(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))}});it.addInitHook("addHandler","touchZoom",Yp),it.BoxZoom=Zp,it.DoubleClickZoom=Up,it.Drag=qp,it.Keyboard=Gp,it.ScrollWheelZoom=Kp,it.TapHold=Qp,it.TouchZoom=Yp,r.Bounds=ie,r.Browser=ve,r.CRS=Y,r.Canvas=Hp,r.Circle=Oc,r.CircleMarker=Ns,r.Class=W,r.Control=Fn,r.DivIcon=zp,r.DivOverlay=Un,r.DomEvent=uw,r.DomUtil=lw,r.Draggable=wr,r.Evented=J,r.FeatureGroup=ar,r.GeoJSON=cr,r.GridLayer=_i,r.Handler=Zn,r.Icon=Eo,r.ImageOverlay=zs,r.LatLng=ee,r.LatLngBounds=de,r.Layer=Hn,r.LayerGroup=So,r.LineUtil=Cw,r.Map=it,r.Marker=Os,r.Mixin=vw,r.Path=Cr,r.Point=Z,r.PolyUtil=yw,r.Polygon=Po,r.Polyline=lr,r.Popup=Ds,r.PosAnimation=_p,r.Projection=Sw,r.Rectangle=jp,r.Renderer=ur,r.SVG=wi,r.SVGOverlay=Bp,r.TileLayer=To,r.Tooltip=Fs,r.Transformation=Se,r.Util=V,r.VideoOverlay=$p,r.bind=c,r.bounds=ne,r.canvas=Vp,r.circle=Ow,r.circleMarker=Lw,r.control=vi,r.divIcon=Hw,r.extend=s,r.featureGroup=Tw,r.geoJSON=Rp,r.geoJson=Rw,r.gridLayer=Vw,r.icon=Aw,r.imageOverlay=$w,r.latLng=K,r.latLngBounds=oe,r.layerGroup=Iw,r.map=dw,r.marker=Mw,r.point=G,r.polygon=kw,r.polyline=Nw,r.popup=Dw,r.rectangle=Zw,r.setOptions=x,r.stamp=h,r.svg=Wp,r.svgOverlay=zw,r.tileLayer=Dp,r.tooltip=Fw,r.transformation=Te,r.version=o,r.videoOverlay=Bw;var qw=window.L;r.noConflict=function(){return window.L=qw,this},window.L=r})})(js,js.exports);var Fc=js.exports;const tn=rm(Fc),oC="",iC="",sC="";var It=Fc,Hc,Vc;function Wc(e){return"oninput"in e?"input":"change"}function Ci(){Hc=this._map.dragging.enabled(),Vc=this._map.tap&&this._map.tap.enabled(),this._map.dragging.disable(),this._map.tap&&this._map.tap.disable()}function Si(e){this._refocusOnMap(e),Hc&&this._map.dragging.enable(),Vc&&this._map.tap.enable()}function jc(e){return e==="undefined"?[]:Array.isArray(e)?e:[e]}function sm(){}It.Control.SideBySide=It.Control.extend({options:{thumbSize:42,padding:0},initialize:function(e,n,r){this.setLeftLayers(e),this.setRightLayers(n),It.setOptions(this,r)},getPosition:function(){var e=this._range.value,n=(.5-e)*(2*this.options.padding+this.options.thumbSize);return this._map.getSize().x*e+n},setPosition:sm,includes:It.Evented.prototype||It.Mixin.Events,addTo:function(e){this.remove(),this._map=e;var n=this._container=It.DomUtil.create("div","leaflet-sbs",e._controlContainer);this._divider=It.DomUtil.create("div","leaflet-sbs-divider",n);var r=this._range=It.DomUtil.create("input","leaflet-sbs-range",n);return r.type="range",r.min=0,r.max=1,r.step="any",r.value=.5,r.style.paddingLeft=r.style.paddingRight=this.options.padding+"px",this._addEvents(),this._updateLayers(),this},remove:function(){return this._map?(this._leftLayer&&(this._leftLayer.getPane().style.clip=""),this._rightLayer&&(this._rightLayer.getPane().style.clip=""),this._removeEvents(),It.DomUtil.remove(this._container),this._map=null,this):this},setLeftLayers:function(e){return this._leftLayers=jc(e),this._updateLayers(),this},setRightLayers:function(e){return this._rightLayers=jc(e),this._updateLayers(),this},_updateClip:function(){var e=this._map,n=e.containerPointToLayerPoint([0,0]),r=e.containerPointToLayerPoint(e.getSize()),o=n.x+this.getPosition(),s=this.getPosition();this._divider.style.left=s+"px",this.fire("dividermove",{x:s});var l="rect("+[n.y,o,r.y,n.x].join("px,")+"px)",c="rect("+[n.y,r.x,r.y,o].join("px,")+"px)";this._leftLayer&&(this._leftLayer.getPane().style.clip=l),this._rightLayer&&(this._rightLayer.getPane().style.clip=c)},_updateLayers:function(){if(!this._map)return this;var e=this._leftLayer,n=this._rightLayer;this._leftLayer=this._rightLayer=null,this._leftLayers.forEach(function(r){this._map.hasLayer(r)&&(this._leftLayer=r)},this),this._rightLayers.forEach(function(r){this._map.hasLayer(r)&&(this._rightLayer=r)},this),e!==this._leftLayer&&(e&&this.fire("leftlayerremove",{layer:e}),this._leftLayer&&this.fire("leftlayeradd",{layer:this._leftLayer})),n!==this._rightLayer&&(n&&this.fire("rightlayerremove",{layer:n}),this._rightLayer&&this.fire("rightlayeradd",{layer:this._rightLayer})),this._updateClip()},_addEvents:function(){var e=this._range,n=this._map;!n||!e||(n.on("move",this._updateClip,this),n.on("layeradd layerremove",this._updateLayers,this),It.DomEvent.on(e,Wc(e),this._updateClip,this),It.DomEvent.on(e,"touchstart",Ci,this),It.DomEvent.on(e,"touchend",Si,this),It.DomEvent.on(e,"mousedown",Ci,this),It.DomEvent.on(e,"mouseup",Si,this))},_removeEvents:function(){var e=this._range,n=this._map;e&&(It.DomEvent.off(e,Wc(e),this._updateClip,this),It.DomEvent.off(e,"touchstart",Ci,this),It.DomEvent.off(e,"touchend",Si,this),It.DomEvent.off(e,"mousedown",Ci,this),It.DomEvent.off(e,"mouseup",Si,this)),n&&(n.off("layeradd layerremove",this._updateLayers,this),n.off("move",this._updateClip,this))}}),It.control.sideBySide=function(e,n,r){return new It.Control.SideBySide(e,n,r)},It.Control.SideBySide;const Zc=({zoomLevel:e})=>Zt.jsx("div",{style:{width:"30px",height:"30px",backgroundColor:"white",borderRadius:"2px",textAlign:"center",fontSize:"20px"},children:e});function ft(e){const n=f.useRef(e);return n.current=e,f.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},[])}function yn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Uc=process.env.NODE_ENV!=="test"&&yn()?f.useLayoutEffect:f.useEffect,sn=(e,n)=>{const r=f.useRef(!0);Uc(()=>e(r.current),n),Uc(()=>(r.current=!1,()=>{r.current=!0}),[])},Zs=e=>{const n=f.useRef(!1),[r,o]=f.useState(e);f.useEffect(()=>(n.current=!1,()=>{n.current=!0}),[]);function s(l,c){c&&n.current||o(l)}return[r,s]};function qn(e,n){const[r,o]=A.useState(e),s=n!==void 0?n:r;return sn(l=>{l||o(n)},[n]),[s,o]}var Us={exports:{}},at={};/**
37
37
  * @license React
38
38
  * react-is.production.min.js
39
39
  *
@@ -41,7 +41,7 @@ React keys must be passed directly to JSX without using spread:
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var Gc;function cm(){if(Gc)return at;Gc=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function x(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case e:switch(b=b.type,b){case r:case s:case o:case g:case m:return b;default:switch(b=b&&b.$$typeof,b){case d:case c:case h:case y:case v:case l:return b;default:return E}}case n:return E}}}return at.ContextConsumer=c,at.ContextProvider=l,at.Element=e,at.ForwardRef=h,at.Fragment=r,at.Lazy=y,at.Memo=v,at.Portal=n,at.Profiler=s,at.StrictMode=o,at.Suspense=g,at.SuspenseList=m,at.isAsyncMode=function(){return!1},at.isConcurrentMode=function(){return!1},at.isContextConsumer=function(b){return x(b)===c},at.isContextProvider=function(b){return x(b)===l},at.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},at.isForwardRef=function(b){return x(b)===h},at.isFragment=function(b){return x(b)===r},at.isLazy=function(b){return x(b)===y},at.isMemo=function(b){return x(b)===v},at.isPortal=function(b){return x(b)===n},at.isProfiler=function(b){return x(b)===s},at.isStrictMode=function(b){return x(b)===o},at.isSuspense=function(b){return x(b)===g},at.isSuspenseList=function(b){return x(b)===m},at.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===s||b===o||b===g||b===m||b===C||typeof b=="object"&&b!==null&&(b.$$typeof===y||b.$$typeof===v||b.$$typeof===l||b.$$typeof===c||b.$$typeof===h||b.$$typeof===_||b.getModuleId!==void 0)},at.typeOf=x,at}var lt={};/**
44
+ */var qc;function am(){if(qc)return at;qc=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function x(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case e:switch(b=b.type,b){case r:case s:case o:case g:case m:return b;default:switch(b=b&&b.$$typeof,b){case d:case c:case h:case y:case v:case l:return b;default:return E}}case n:return E}}}return at.ContextConsumer=c,at.ContextProvider=l,at.Element=e,at.ForwardRef=h,at.Fragment=r,at.Lazy=y,at.Memo=v,at.Portal=n,at.Profiler=s,at.StrictMode=o,at.Suspense=g,at.SuspenseList=m,at.isAsyncMode=function(){return!1},at.isConcurrentMode=function(){return!1},at.isContextConsumer=function(b){return x(b)===c},at.isContextProvider=function(b){return x(b)===l},at.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},at.isForwardRef=function(b){return x(b)===h},at.isFragment=function(b){return x(b)===r},at.isLazy=function(b){return x(b)===y},at.isMemo=function(b){return x(b)===v},at.isPortal=function(b){return x(b)===n},at.isProfiler=function(b){return x(b)===s},at.isStrictMode=function(b){return x(b)===o},at.isSuspense=function(b){return x(b)===g},at.isSuspenseList=function(b){return x(b)===m},at.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===s||b===o||b===g||b===m||b===C||typeof b=="object"&&b!==null&&(b.$$typeof===y||b.$$typeof===v||b.$$typeof===l||b.$$typeof===c||b.$$typeof===h||b.$$typeof===_||b.getModuleId!==void 0)},at.typeOf=x,at}var lt={};/**
45
45
  * @license React
46
46
  * react-is.development.js
47
47
  *
@@ -49,13 +49,13 @@ React keys must be passed directly to JSX without using spread:
49
49
  *
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
- */var Kc;function um(){return Kc||(Kc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),_=!1,x=!1,b=!1,E=!1,S=!1,P;P=Symbol.for("react.module.reference");function T(te){return!!(typeof te=="string"||typeof te=="function"||te===r||te===s||S||te===o||te===g||te===m||E||te===C||_||x||b||typeof te=="object"&&te!==null&&(te.$$typeof===y||te.$$typeof===v||te.$$typeof===l||te.$$typeof===c||te.$$typeof===h||te.$$typeof===P||te.getModuleId!==void 0))}function M(te){if(typeof te=="object"&&te!==null){var we=te.$$typeof;switch(we){case e:var Pe=te.type;switch(Pe){case r:case s:case o:case g:case m:return Pe;default:var Ae=Pe&&Pe.$$typeof;switch(Ae){case d:case c:case h:case y:case v:case l:return Ae;default:return we}}case n:return we}}}var N=c,k=l,R=e,B=h,z=r,$=y,j=v,V=n,W=s,F=o,X=g,J=m,Z=!1,le=!1;function G(te){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(te){return le||(le=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(te){return M(te)===c}function de(te){return M(te)===l}function oe(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function ee(te){return M(te)===h}function K(te){return M(te)===r}function Y(te){return M(te)===y}function se(te){return M(te)===v}function fe(te){return M(te)===n}function xe(te){return M(te)===s}function Se(te){return M(te)===o}function Te(te){return M(te)===g}function Ce(te){return M(te)===m}lt.ContextConsumer=N,lt.ContextProvider=k,lt.Element=R,lt.ForwardRef=B,lt.Fragment=z,lt.Lazy=$,lt.Memo=j,lt.Portal=V,lt.Profiler=W,lt.StrictMode=F,lt.Suspense=X,lt.SuspenseList=J,lt.isAsyncMode=G,lt.isConcurrentMode=ie,lt.isContextConsumer=ne,lt.isContextProvider=de,lt.isElement=oe,lt.isForwardRef=ee,lt.isFragment=K,lt.isLazy=Y,lt.isMemo=se,lt.isPortal=fe,lt.isProfiler=xe,lt.isStrictMode=Se,lt.isSuspense=Te,lt.isSuspenseList=Ce,lt.isValidElementType=T,lt.typeOf=M}()),lt}process.env.NODE_ENV==="production"?qs.exports=cm():qs.exports=um();var Gs=qs.exports;function Pi(e,n,r){const o=f.useRef({});return(!("value"in o.current)||r(o.current.condition,n))&&(o.current.value=e(),o.current.condition=n),o.current.value}const dm=Symbol.for("react.element"),fm=Symbol.for("react.transitional.element"),hm=Symbol.for("react.fragment");function Qc(e){return e&&typeof e=="object"&&(e.$$typeof===dm||e.$$typeof===fm)&&e.type===hm}const pm=Number(I.version.split(".")[0]),mm=(e,n)=>{typeof e=="function"?e(n):typeof e=="object"&&e&&"current"in e&&(e.current=n)},Er=(...e)=>{const n=e.filter(Boolean);return n.length<=1?n[0]:r=>{e.forEach(o=>{mm(o,r)})}},jr=(...e)=>Pi(()=>Er(...e),e,(n,r)=>n.length!==r.length||n.every((o,s)=>o!==r[s])),Pr=e=>{var r,o;if(!e)return!1;if(Ks(e)&&pm>=19)return!0;const n=Gs.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((r=n.prototype)!=null&&r.render)&&n.$$typeof!==Gs.ForwardRef||typeof e=="function"&&!((o=e.prototype)!=null&&o.render)&&e.$$typeof!==Gs.ForwardRef)};function Ks(e){return I.isValidElement(e)&&!Qc(e)}const gm=e=>Ks(e)&&Pr(e),dr=e=>{if(e&&Ks(e)){const n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function Ln(e,n){let r=e;for(let o=0;o<n.length;o+=1){if(r==null)return;r=r[n[o]]}return r}function Yc(e,n,r,o){if(!n.length)return r;const[s,...l]=n;let c;return!e&&typeof s=="number"?c=[]:Array.isArray(e)?c=[...e]:c={...e},o&&r===void 0&&l.length===1?delete c[s][l[0]]:c[s]=Yc(c[s],l,r,o),c}function Cn(e,n,r,o=!1){return n.length&&o&&r===void 0&&!Ln(e,n.slice(0,-1))?e:Yc(e,n,r,o)}function vm(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Xc(e){return Array.isArray(e)?[]:{}}const ym=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Jc(e,n={}){const{prepareArray:r}=n,o=r||(()=>[]);let s=Xc(e[0]);return e.forEach(l=>{function c(d,h){const g=new Set(h),m=Ln(l,d),v=Array.isArray(m);if(v||vm(m)){if(!g.has(m)){g.add(m);const y=Ln(s,d);v?s=Cn(s,d,o(y,m)):(!y||typeof y!="object")&&(s=Cn(s,d,Xc(m))),ym(m).forEach(C=>{Object.getOwnPropertyDescriptor(m,C).enumerable&&c([...d,C],g)})}}else s=Cn(s,d,m)}c([])}),s}function Zr(...e){return Jc(e)}let Qs={};const Ys=[],bm=e=>{Ys.push(e)};function Oo(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const r=Ys.reduce((o,s)=>s(o??"","warning"),n);r&&console.error(`Warning: ${r}`)}}function _m(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const r=Ys.reduce((o,s)=>s(o??"","note"),n);r&&console.warn(`Note: ${r}`)}}function xm(){Qs={}}function eu(e,n,r){!n&&!Qs[r]&&(e(!1,r),Qs[r]=!0)}function ct(e,n){eu(Oo,e,n)}function wm(e,n){eu(_m,e,n)}ct.preMessage=bm,ct.resetWarned=xm,ct.noteOnce=wm;function Sn(e,n){const r=Object.assign({},e);return Array.isArray(n)&&n.forEach(o=>{delete r[o]}),r}function qn(e,n={}){let r=[];return I.Children.forEach(e,o=>{o==null&&!n.keepEmpty||(Array.isArray(o)?r=r.concat(qn(o)):Qc(o)&&o.props?r=r.concat(qn(o.props.children,n)):r.push(o))}),r}function tu(){}const{resetWarned:Cm}=ct;let Gn=null;function Sm(){Gn=null,Cm()}let nu=tu;process.env.NODE_ENV!=="production"&&(nu=(e,n,r)=>{ct(e,`[antd: ${n}] ${r}`),process.env.NODE_ENV==="test"&&Sm()});const Xs=nu,ru=f.createContext({}),hn=process.env.NODE_ENV!=="production"?e=>{const{strict:n}=f.useContext(ru),r=(o,s,l)=>{if(!o)if(n===!1&&s==="deprecated"){const c=Gn;Gn||(Gn={}),Gn[e]=Gn[e]||[],Gn[e].includes(l||"")||Gn[e].push(l||""),c||console.warn("[antd] There exists deprecated usage in your code:",Gn)}else process.env.NODE_ENV!=="production"&&Xs(o,e,l)};return r.deprecated=(o,s,l,c="")=>{r(o,"deprecated",`\`${s}\` is deprecated. Please use \`${l}\` instead.${c?` ${c}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=tu,e};function Ur(e){return e instanceof HTMLElement||e instanceof SVGElement}function Js(e){return e&&typeof e=="object"&&Ur(e.nativeElement)?e.nativeElement:Ur(e)?e:null}const ea=f.createContext(null);function Em({children:e,onBatchResize:n}){const r=f.useRef(0),o=f.useRef([]),s=f.useContext(ea),l=f.useCallback((c,d,h)=>{r.current+=1;const g=r.current;o.current.push({size:c,element:d,data:h}),Promise.resolve().then(()=>{g===r.current&&(n==null||n(o.current),o.current=[])}),s==null||s(c,d,h)},[n,s]);return f.createElement(ea.Provider,{value:l},e)}const Kn=new Map;function ou(e){e.forEach(n=>{var o;const{target:r}=n;(o=Kn.get(r))==null||o.forEach(s=>s(r))})}let ta;function iu(){return ta||(ta=new ResizeObserver(ou)),ta}process.env.NODE_ENV,process.env.NODE_ENV;function Pm(e,n){Kn.has(e)||(Kn.set(e,new Set),iu().observe(e)),Kn.get(e).add(n)}function Im(e,n){Kn.has(e)&&(Kn.get(e).delete(n),Kn.get(e).size||(iu().unobserve(e),Kn.delete(e)))}function su(e,n,r,o){const s=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=ht(d=>{const{width:h,height:g}=d.getBoundingClientRect(),{offsetWidth:m,offsetHeight:v}=d,y=Math.floor(h),C=Math.floor(g);if(s.current.width!==y||s.current.height!==C||s.current.offsetWidth!==m||s.current.offsetHeight!==v){const _={width:y,height:C,offsetWidth:m,offsetHeight:v};s.current=_;const x=m===Math.round(h)?h:m,b=v===Math.round(g)?g:v,E={..._,offsetWidth:x,offsetHeight:b};o==null||o(E,d),Promise.resolve().then(()=>{r==null||r(E,d)})}}),c=typeof n=="function";f.useEffect(()=>{const d=c?n():n;return d&&e&&Pm(d,l),()=>{d&&Im(d,l)}},[e,c?0:n])}function Tm(e,n){const{children:r,disabled:o,onResize:s,data:l}=e,c=f.useRef(null),d=f.useContext(ea),h=typeof r=="function",g=h?r(c):r,m=!h&&f.isValidElement(g)&&Pr(g),v=m?dr(g):null,y=jr(v,c),C=()=>Js(c.current);return f.useImperativeHandle(n,()=>C()),su(!o,C,s,(_,x)=>{d==null||d(_,x,l)}),m?f.cloneElement(g,{ref:y}):g}const au=f.forwardRef(Tm);process.env.NODE_ENV!=="production"&&(au.displayName="SingleObserver");function na(){return na=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},na.apply(this,arguments)}const Am="rc-observer-key";function Mm(e,n){const{children:r}=e,o=typeof r=="function"?[r]:qn(r);return process.env.NODE_ENV!=="production"&&(o.length>1?Oo(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&Oo(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((s,l)=>{const c=(s==null?void 0:s.key)||`${Am}-${l}`;return f.createElement(au,na({},e,{key:c,ref:l===0?n:void 0}),s)})}const ko=f.forwardRef(Mm);process.env.NODE_ENV!=="production"&&(ko.displayName="ResizeObserver"),ko.Collection=Em;function lu(e){var n,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(r=lu(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ce(){for(var e,n,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(n=lu(e))&&(o&&(o+=" "),o+=n);return o}function ra(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function Lm(e){if(Array.isArray(e))return ra(e)}function Om(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cu(e,n){if(e){if(typeof e=="string")return ra(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ra(e,n):void 0}}function km(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bn(e){return Lm(e)||Om(e)||cu(e)||km()}let uu=e=>+setTimeout(e,16),du=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(uu=e=>window.requestAnimationFrame(e),du=e=>window.cancelAnimationFrame(e));let fu=0;const Ii=new Map;function hu(e){Ii.delete(e)}const qt=(e,n=1)=>{fu+=1;const r=fu;function o(s){if(s===0)hu(r),e();else{const l=uu(()=>{o(s-1)});Ii.set(r,l)}}return o(n),r};qt.cancel=e=>{const n=Ii.get(e);return hu(e),du(n)},process.env.NODE_ENV!=="production"&&(qt.ids=()=>Ii);const Ti="ant",oa="anticon",Nm=(e,n)=>n||(e?`${Ti}-${e}`:Ti),kt=f.createContext({getPrefixCls:Nm,iconPrefixCls:oa}),pu={};function qr(e){const n=f.useContext(kt),{getPrefixCls:r,direction:o,getPopupContainer:s,renderEmpty:l}=n,c=n[e];return{classNames:pu,styles:pu,...c,getPrefixCls:r,direction:o,getPopupContainer:s,renderEmpty:l}}function No(e){for(var n=0,r,o=0,s=e.length;s>=4;++o,s-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(s){case 3:n^=(e.charCodeAt(o+2)&255)<<16;case 2:n^=(e.charCodeAt(o+1)&255)<<8;case 1:n^=e.charCodeAt(o)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}function Rm(e,n){if(!e)return!1;if(e.contains)return e.contains(n);let r=n;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}const mu="data-rc-order",gu="data-rc-priority",$m="rc-util-key",ia=new Map;function vu({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:$m}function Ai(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Bm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sa(e){return Array.from((ia.get(e)||e).children).filter(n=>n.tagName==="STYLE")}function yu(e,n={}){if(!yn())return null;const{csp:r,prepend:o,priority:s=0}=n,l=Bm(o),c=l==="prependQueue",d=document.createElement("style");d.setAttribute(mu,l),c&&s&&d.setAttribute(gu,`${s}`),r!=null&&r.nonce&&(d.nonce=r==null?void 0:r.nonce),d.innerHTML=e;const h=Ai(n),{firstChild:g}=h;if(o){if(c){const m=(n.styles||sa(h)).filter(v=>{if(!["prepend","prependQueue"].includes(v.getAttribute(mu)))return!1;const y=Number(v.getAttribute(gu)||0);return s>=y});if(m.length)return h.insertBefore(d,m[m.length-1].nextSibling),d}h.insertBefore(d,g)}else h.appendChild(d);return d}function bu(e,n={}){let{styles:r}=n;return r||(r=sa(Ai(n))),r.find(o=>o.getAttribute(vu(n))===e)}function Ro(e,n={}){const r=bu(e,n);r&&Ai(n).removeChild(r)}function zm(e,n){const r=ia.get(e);if(!r||!Rm(document,r)){const o=yu("",n),{parentNode:s}=o;ia.set(e,s),e.removeChild(o)}}function fr(e,n,r={}){var h,g,m;const o=Ai(r),s=sa(o),l={...r,styles:s};zm(o,l);const c=bu(n,l);if(c)return(h=l.csp)!=null&&h.nonce&&c.nonce!==((g=l.csp)==null?void 0:g.nonce)&&(c.nonce=(m=l.csp)==null?void 0:m.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const d=yu(e,l);return d.setAttribute(vu(l),n),d}function $o(e,n,r=!1){const o=new Set;function s(l,c,d=1){const h=o.has(l);if(ct(!h,"Warning: There may be circular references"),h)return!1;if(l===c)return!0;if(r&&d>1)return!1;o.add(l);const g=d+1;if(Array.isArray(l)){if(!Array.isArray(c)||l.length!==c.length)return!1;for(let m=0;m<l.length;m++)if(!s(l[m],c[m],g))return!1;return!0}if(l&&c&&typeof l=="object"&&typeof c=="object"){const m=Object.keys(l);return m.length!==Object.keys(c).length?!1:m.every(v=>s(l[v],c[v],g))}return!1}return s(e,n)}const Dm="%";function aa(e){return e.join(Dm)}let _u=0;class Fm{constructor(n){q(this,"instanceId");q(this,"cache",new Map);q(this,"updateTimes",new Map);q(this,"extracted",new Set);this.instanceId=n}get(n){return this.opGet(aa(n))}opGet(n){return this.cache.get(n)||null}update(n,r){return this.opUpdate(aa(n),r)}opUpdate(n,r){const o=this.cache.get(n),s=r(o);s===null?(this.cache.delete(n),this.updateTimes.delete(n)):(this.cache.set(n,s),this.updateTimes.set(n,_u),_u+=1)}}const la="data-token-hash",Qn="data-css-hash",Hm="data-cache-path",Yn="__cssinjs_instance__";function Vm(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const n=document.body.querySelectorAll(`style[${Qn}]`)||[],{firstChild:r}=document.head;Array.from(n).forEach(s=>{s[Yn]||(s[Yn]=e),s[Yn]===e&&document.head.insertBefore(s,r)});const o={};Array.from(document.querySelectorAll(`style[${Qn}]`)).forEach(s=>{var c;const l=s.getAttribute(Qn);o[l]?s[Yn]===e&&((c=s.parentNode)==null||c.removeChild(s)):o[l]=!0})}return new Fm(e)}const Bo=f.createContext({hashPriority:"low",cache:Vm(),defaultCache:!0,autoPrefix:!1});function Wm(e,n){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}const xo=class xo{constructor(){q(this,"cache");q(this,"keys");q(this,"cacheCallTimes");this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(n,r=!1){let o={map:this.cache};return n.forEach(s=>{var l;o?o=(l=o==null?void 0:o.map)==null?void 0:l.get(s):o=void 0}),o!=null&&o.value&&r&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(n){var r;return(r=this.internalGet(n,!0))==null?void 0:r[0]}has(n){return!!this.internalGet(n)}set(n,r){if(!this.has(n)){if(this.size()+1>xo.MAX_CACHE_SIZE+xo.MAX_CACHE_OFFSET){const[s]=this.keys.reduce((l,c)=>{const[,d]=l;return this.internalGet(c)[1]<d?[c,this.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]);this.delete(s)}this.keys.push(n)}let o=this.cache;n.forEach((s,l)=>{if(l===n.length-1)o.set(s,{value:[r,this.cacheCallTimes++]});else{const c=o.get(s);c?c.map||(c.map=new Map):o.set(s,{map:new Map}),o=o.get(s).map}})}deleteByPath(n,r){var l;const o=n.get(r[0]);if(r.length===1)return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(l=o.value)==null?void 0:l[0];const s=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),s}delete(n){if(this.has(n))return this.keys=this.keys.filter(r=>!Wm(r,n)),this.deleteByPath(this.cache,n)}};q(xo,"MAX_CACHE_SIZE",20),q(xo,"MAX_CACHE_OFFSET",5);let ca=xo,xu=0;class wu{constructor(n){q(this,"derivatives");q(this,"id");this.derivatives=Array.isArray(n)?n:[n],this.id=xu,n.length===0&&Oo(n.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),xu+=1}getDerivativeToken(n){return this.derivatives.reduce((r,o)=>o(n,r),void 0)}}const ua=new ca;function da(e){const n=Array.isArray(e)?e:[e];return ua.has(n)||ua.set(n,new wu(n)),ua.get(n)}const jm=new WeakMap,fa={};function Zm(e,n){let r=jm;for(let o=0;o<n.length;o+=1){const s=n[o];r.has(s)||r.set(s,new WeakMap),r=r.get(s)}return r.has(fa)||r.set(fa,e()),r.get(fa)}const Cu=new WeakMap;function zo(e){let n=Cu.get(e)||"";return n||(Object.keys(e).forEach(r=>{const o=e[r];n+=r,o instanceof wu?n+=o.id:o&&typeof o=="object"?n+=zo(o):n+=o}),n=No(n),Cu.set(e,n)),n}function Um(e,n){return No(`${n}_${zo(e)}`)}const ha=yn();function Le(e){return typeof e=="number"?`${e}px`:e}function Su(e){const{hashCls:n,hashPriority:r="low"}=e||{};if(!n)return"";const o=`.${n}`;return r==="low"?`:where(${o})`:o}const qm=e=>e!=null,Mi=(e,n="")=>`--${n?`${n}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),Gm=(e,n,r)=>{const{hashCls:o,hashPriority:s="low"}=r||{};return Object.keys(e).length?`${Su({hashCls:o,hashPriority:s})}.${n}${r!=null&&r.scope?`.${r.scope}`:""}{${Object.entries(e).map(([l,c])=>`${l}:${c};`).join("")}}`:""},Eu=(e,n,r)=>{const{hashCls:o,hashPriority:s="low",prefix:l,unitless:c,ignore:d,preserve:h}=r||{},g={},m={};return Object.entries(e).forEach(([v,y])=>{if(h!=null&&h[v])m[v]=y;else if((typeof y=="string"||typeof y=="number")&&!(d!=null&&d[v])){const C=Mi(v,l);g[C]=typeof y=="number"&&!(c!=null&&c[v])?`${y}px`:String(y),m[v]=`var(${C})`}}),[m,Gm(g,n,{scope:r==null?void 0:r.scope,hashCls:o,hashPriority:s})]};function Km(){return!1}let pa=!1;function Qm(){return pa}const Ym=process.env.NODE_ENV==="production"?Km:Qm;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(e&&typeof e.webpackHotUpdate=="function"){const n=e.webpackHotUpdate;e.webpackHotUpdate=(...r)=>(pa=!0,setTimeout(()=>{pa=!1},0),n(...r))}}const Li=new Map;function ma(e,n,r,o,s){const{cache:l}=f.useContext(Bo),c=[e,...n],d=aa(c),h=Ym(),g=y=>{l.opUpdate(d,C=>{const[_=0,x]=C||[void 0,void 0];let b=x;process.env.NODE_ENV!=="production"&&x&&h&&(o==null||o(b,h),b=null);const E=b||r(),S=[_,E];return y?y(S):S})};f.useMemo(()=>{g()},[d]);let m=l.opGet(d);process.env.NODE_ENV!=="production"&&!m&&(g(),m=l.opGet(d));const v=m[1];return I.useInsertionEffect(()=>(g(([y,C])=>[y+1,C]),Li.has(d)||(s==null||s(v),Li.set(d,!0),Promise.resolve().then(()=>{Li.delete(d)})),()=>{l.opUpdate(d,y=>{const[C=0,_]=y||[];return C-1===0?(o==null||o(_,!1),Li.delete(d),null):[C-1,_]})}),[d]),v}const Xm={},Jm=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Ir=new Map;function eg(e){Ir.set(e,(Ir.get(e)||0)+1)}function tg(e,n){typeof document<"u"&&document.querySelectorAll(`style[${la}="${e}"]`).forEach(o=>{var s;o[Yn]===n&&((s=o.parentNode)==null||s.removeChild(o))})}const ng=-1;function rg(e,n){Ir.set(e,(Ir.get(e)||0)-1);const r=new Set;Ir.forEach((o,s)=>{o<=0&&r.add(s)}),Ir.size-r.size>ng&&r.forEach(o=>{tg(o,n),Ir.delete(o)})}const og=(e,n,r,o)=>{let l={...r.getDerivativeToken(e),...n};return o&&(l=o(l)),l},ig="token";function sg(e,n,r){const{cache:{instanceId:o},container:s,hashPriority:l}=I.useContext(Bo),{salt:c="",override:d=Xm,formatToken:h,getComputedToken:g,cssVar:m}=r,v=Zm(()=>Object.assign({},...n),n),y=zo(v),C=zo(d),_=zo(m);return ma(ig,[c,e.id,y,C,_],()=>{const b=g?g(v,d,e):og(v,d,e,h),E={...b},S=`${c}_${m.prefix}`,P=No(S),T=`${Jm}-${P}`;E._tokenKey=Um(E,S);const[M,N]=Eu(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve,hashPriority:l,hashCls:m.hashed?T:void 0});return M._hashId=P,eg(m.key),[M,T,E,N,m.key]},([,,,,b])=>{rg(b,o)},([,,,b,E])=>{if(!b)return;const S=fr(b,No(`css-var-${E}`),{mark:Qn,prepend:"queue",attachTo:s,priority:-999});S[Yn]=o,S.setAttribute(la,E)})}var ag={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xt="-ms-",Do="-moz-",st="-webkit-",Pu="comm",ga="rule",va="decl",lg="@import",cg="@namespace",Iu="@keyframes",ug="@layer",Tu=Math.abs,ya=String.fromCharCode,ba=Object.assign;function dg(e,n){return Dt(e,0)^45?(((n<<2^Dt(e,0))<<2^Dt(e,1))<<2^Dt(e,2))<<2^Dt(e,3):0}function Au(e){return e.trim()}function Xn(e,n){return(e=n.exec(e))?e[0]:e}function qe(e,n,r){return e.replace(n,r)}function Oi(e,n,r){return e.indexOf(n,r)}function Dt(e,n){return e.charCodeAt(n)|0}function Tr(e,n,r){return e.slice(n,r)}function On(e){return e.length}function Mu(e){return e.length}function Fo(e,n){return n.push(e),e}function fg(e,n){return e.map(n).join("")}function Lu(e,n){return e.filter(function(r){return!Xn(r,n)})}var ki=1,Gr=1,Ou=0,En=0,$t=0,Kr="";function Ni(e,n,r,o,s,l,c,d){return{value:e,root:n,parent:r,type:o,props:s,children:l,line:ki,column:Gr,length:c,return:"",siblings:d}}function hr(e,n){return ba(Ni("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},n)}function Qr(e){for(;e.root;)e=hr(e.root,{children:[e]});Fo(e,e.siblings)}function hg(){return $t}function pg(){return $t=En>0?Dt(Kr,--En):0,Gr--,$t===10&&(Gr=1,ki--),$t}function kn(){return $t=En<Ou?Dt(Kr,En++):0,Gr++,$t===10&&(Gr=1,ki++),$t}function pr(){return Dt(Kr,En)}function Ri(){return En}function $i(e,n){return Tr(Kr,e,n)}function Ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mg(e){return ki=Gr=1,Ou=On(Kr=e),En=0,[]}function gg(e){return Kr="",e}function _a(e){return Au($i(En-1,xa(e===91?e+2:e===40?e+1:e)))}function vg(e){for(;($t=pr())&&$t<33;)kn();return Ho(e)>2||Ho($t)>3?"":" "}function yg(e,n){for(;--n&&kn()&&!($t<48||$t>102||$t>57&&$t<65||$t>70&&$t<97););return $i(e,Ri()+(n<6&&pr()==32&&kn()==32))}function xa(e){for(;kn();)switch($t){case e:return En;case 34:case 39:e!==34&&e!==39&&xa($t);break;case 40:e===41&&xa(e);break;case 92:kn();break}return En}function bg(e,n){for(;kn()&&e+$t!==47+10;)if(e+$t===42+42&&pr()===47)break;return"/*"+$i(n,En-1)+"*"+ya(e===47?e:kn())}function _g(e){for(;!Ho(pr());)kn();return $i(e,En)}function ku(e){return gg(Bi("",null,null,null,[""],e=mg(e),0,[0],e))}function Bi(e,n,r,o,s,l,c,d,h){for(var g=0,m=0,v=c,y=0,C=0,_=0,x=1,b=1,E=1,S=0,P="",T=s,M=l,N=o,k=P;b;)switch(_=S,S=kn()){case 40:if(_!=108&&Dt(k,v-1)==58){Oi(k+=qe(_a(S),"&","&\f"),"&\f",Tu(g?d[g-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:k+=_a(S);break;case 9:case 10:case 13:case 32:k+=vg(_);break;case 92:k+=yg(Ri()-1,7);continue;case 47:switch(pr()){case 42:case 47:Fo(xg(bg(kn(),Ri()),n,r,h),h),(Ho(_||1)==5||Ho(pr()||1)==5)&&On(k)&&Tr(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*x:d[g++]=On(k)*E;case 125*x:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+m:E==-1&&(k=qe(k,/\f/g,"")),C>0&&(On(k)-v||x===0&&_===47)&&Fo(C>32?Ru(k+";",o,r,v-1,h):Ru(qe(k," ","")+";",o,r,v-2,h),h);break;case 59:k+=";";default:if(Fo(N=Nu(k,n,r,g,m,s,d,P,T=[],M=[],v,l),l),S===123)if(m===0)Bi(k,n,N,N,T,l,v,d,M);else{switch(y){case 99:if(Dt(k,3)===110)break;case 108:if(Dt(k,2)===97)break;default:m=0;case 100:case 109:case 115:}m?Bi(e,N,N,o&&Fo(Nu(e,N,N,0,0,s,d,P,s,T=[],v,M),M),s,M,v,d,o?T:M):Bi(k,N,N,N,[""],M,0,d,M)}}g=m=C=0,x=E=1,P=k="",v=c;break;case 58:v=1+On(k),C=_;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&pg()==125)continue}switch(k+=ya(S),S*x){case 38:E=m>0?1:(k+="\f",-1);break;case 44:d[g++]=(On(k)-1)*E,E=1;break;case 64:pr()===45&&(k+=_a(kn())),y=pr(),m=v=On(P=k+=_g(Ri())),S++;break;case 45:_===45&&On(k)==2&&(x=0)}}return l}function Nu(e,n,r,o,s,l,c,d,h,g,m,v){for(var y=s-1,C=s===0?l:[""],_=Mu(C),x=0,b=0,E=0;x<o;++x)for(var S=0,P=Tr(e,y+1,y=Tu(b=c[x])),T=e;S<_;++S)(T=Au(b>0?C[S]+" "+P:qe(P,/&\f/g,C[S])))&&(h[E++]=T);return Ni(e,n,r,s===0?ga:d,h,g,m,v)}function xg(e,n,r,o){return Ni(e,n,r,Pu,ya(hg()),Tr(e,2,-2),0,o)}function Ru(e,n,r,o,s){return Ni(e,n,r,va,Tr(e,0,o),Tr(e,o+1,-1),o,s)}function $u(e,n,r){switch(dg(e,n)){case 5103:return st+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return st+e+e;case 4855:return st+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Do+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return st+e+Do+e+xt+e+e;case 5936:switch(Dt(e,n+11)){case 114:return st+e+xt+qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+xt+qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+xt+qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return st+e+xt+e+e;case 6165:return st+e+xt+"flex-"+e+e;case 5187:return st+e+qe(e,/(\w+).+(:[^]+)/,st+"box-$1$2"+xt+"flex-$1$2")+e;case 5443:return st+e+xt+"flex-item-"+qe(e,/flex-|-self/g,"")+(Xn(e,/flex-|baseline/)?"":xt+"grid-row-"+qe(e,/flex-|-self/g,""))+e;case 4675:return st+e+xt+"flex-line-pack"+qe(e,/align-content|flex-|-self/g,"")+e;case 5548:return st+e+xt+qe(e,"shrink","negative")+e;case 5292:return st+e+xt+qe(e,"basis","preferred-size")+e;case 6060:return st+"box-"+qe(e,"-grow","")+st+e+xt+qe(e,"grow","positive")+e;case 4554:return st+qe(e,/([^-])(transform)/g,"$1"+st+"$2")+e;case 6187:return qe(qe(qe(e,/(zoom-|grab)/,st+"$1"),/(image-set)/,st+"$1"),e,"")+e;case 5495:case 3959:return qe(e,/(image-set\([^]*)/,st+"$1$`$1");case 4968:return qe(qe(e,/(.+:)(flex-)?(.*)/,st+"box-pack:$3"+xt+"flex-pack:$3"),/space-between/,"justify")+st+e+e;case 4200:if(!Xn(e,/flex-|baseline/))return xt+"grid-column-align"+Tr(e,n)+e;break;case 2592:case 3360:return xt+qe(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,s){return n=s,Xn(o.props,/grid-\w+-end/)})?~Oi(e+(r=r[n].value),"span",0)?e:xt+qe(e,"-start","")+e+xt+"grid-row-span:"+(~Oi(r,"span",0)?Xn(r,/\d+/):+Xn(r,/\d+/)-+Xn(e,/\d+/))+";":xt+qe(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Xn(o.props,/grid-\w+-start/)})?e:xt+qe(qe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return qe(e,/(.+)-inline(.+)/,st+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(On(e)-1-n>6)switch(Dt(e,n+1)){case 109:if(Dt(e,n+4)!==45)break;case 102:return qe(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+Do+(Dt(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~Oi(e,"stretch",0)?$u(qe(e,"stretch","fill-available"),n,r)+e:e}break;case 5152:case 5920:return qe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,l,c,d,h,g){return xt+s+":"+l+g+(c?xt+s+"-span:"+(d?h:+h-+l)+g:"")+e});case 4949:if(Dt(e,n+6)===121)return qe(e,":",":"+st)+e;break;case 6444:switch(Dt(e,Dt(e,14)===45?18:11)){case 120:return qe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+st+(Dt(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+xt+"$2box$3")+e;case 100:return qe(e,":",":"+xt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return qe(e,"scroll-","scroll-snap-")+e}return e}function Vo(e,n){for(var r="",o=0;o<e.length;o++)r+=n(e[o],o,e,n)||"";return r}function Bu(e,n,r,o){switch(e.type){case ug:if(e.children.length)break;case lg:case cg:case va:return e.return=e.return||e.value;case Pu:return"";case Iu:return e.return=e.value+"{"+Vo(e.children,o)+"}";case ga:if(!On(e.value=e.props.join(",")))return""}return On(r=Vo(e.children,o))?e.return=e.value+"{"+r+"}":""}function wg(e){var n=Mu(e);return function(r,o,s,l){for(var c="",d=0;d<n;d++)c+=e[d](r,o,s,l)||"";return c}}function Cg(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case va:e.return=$u(e.value,e.length,r);return;case Iu:return Vo([hr(e,{value:qe(e.value,"@","@"+st)})],o);case ga:if(e.length)return fg(r=e.props,function(s){switch(Xn(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Qr(hr(e,{props:[qe(s,/:(read-\w+)/,":"+Do+"$1")]})),Qr(hr(e,{props:[s]})),ba(e,{props:Lu(r,o)});break;case"::placeholder":Qr(hr(e,{props:[qe(s,/:(plac\w+)/,":"+st+"input-$1")]})),Qr(hr(e,{props:[qe(s,/:(plac\w+)/,":"+Do+"$1")]})),Qr(hr(e,{props:[qe(s,/:(plac\w+)/,xt+"input-$1")]})),Qr(hr(e,{props:[s]})),ba(e,{props:Lu(r,o)});break}return""})}}function zu(e,n){const{path:r,parentSelectors:o}=n;ct(!1,`[Ant Design CSS-in-JS] ${r?`Error in ${r}: `:""}${e}${o.length?` Selector: ${o.join(" | ")}`:""}`)}const Sg=(e,n,r)=>{if(e==="content"){const o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof n!="string"||["normal","none","initial","inherit","unset"].indexOf(n)===-1&&!o.test(n)&&!n.startsWith("var(")&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&zu(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${n}"'\`.`,r)}},Eg=(e,n,r)=>{e==="animation"&&r.hashId&&n!=="none"&&zu(`You seem to be using hashed animation '${n}', in which case 'animationName' with Keyframe as value is recommended.`,r)},Du="data-ant-cssinjs-cache-path",Fu="_FILE_STYLE__";let Ar,Hu=!0;function Pg(){var e;if(!Ar&&(Ar={},yn())){const n=document.createElement("div");n.className=Du,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);let r=getComputedStyle(n).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(s=>{const[l,c]=s.split(":");Ar[l]=c});const o=document.querySelector(`style[${Du}]`);o&&(Hu=!1,(e=o.parentNode)==null||e.removeChild(o)),document.body.removeChild(n)}}function Ig(e){return Pg(),!!Ar[e]}function Tg(e){const n=Ar[e];let r=null;if(n&&yn())if(Hu)r=Fu;else{const o=document.querySelector(`style[${Qn}="${Ar[e]}"]`);o?r=o.innerHTML:delete Ar[e]}return[r,n]}const Vu="_skip_check_",Wu="_multi_value_";function wa(e,n){return(n?Vo(ku(e),wg([Cg,Bu])):Vo(ku(e),Bu)).replace(/\{%%%\:[^;];}/g,";")}function Ag(e){return typeof e=="object"&&e&&(Vu in e||Wu in e)}function ju(e,n,r="high"){if(!n)return e;const o=Su({hashCls:n,hashPriority:r});return e.split(",").map(l=>{var g;const c=l.trim().split(/\s+/);let d=c[0]||"";const h=((g=d.match(/^\w+/))==null?void 0:g[0])||"";return d=`${h}${o}${d.slice(h.length)}`,[d,...c.slice(1)].join(" ")}).join(",")}const Ca=(e,n={},{root:r,injectHash:o,parentSelectors:s}={root:!0,parentSelectors:[]})=>{const{hashId:l,layer:c,path:d,hashPriority:h,transformers:g=[],linters:m=[]}=n;let v="",y={};function C(b){const E=b.getName(l);if(!y[E]){const[S]=Ca(b.style,n,{root:!1,parentSelectors:s});y[E]=`@keyframes ${b.getName(l)}${S}`}}function _(b,E=[]){return b.forEach(S=>{Array.isArray(S)?_(S,E):S&&E.push(S)}),E}return _(Array.isArray(e)?e:[e]).forEach(b=>{const E=typeof b=="string"&&!r?{}:b;if(typeof E=="string")v+=`${E}
54
- `;else if(E._keyframe)C(E);else{const S=g.reduce((P,T)=>{var M;return((M=T==null?void 0:T.visit)==null?void 0:M.call(T,P))||P},E);Object.keys(S).forEach(P=>{const T=S[P];if(typeof T=="object"&&T&&(P!=="animationName"||!T._keyframe)&&!Ag(T)){let M=!1,N=P.trim(),k=!1;(r||o)&&l?N.startsWith("@")?M=!0:N==="&"?N=ju("",l,h):N=ju(P,l,h):r&&!l&&(N==="&"||N==="")&&(N="",k=!0);const[R,B]=Ca(T,n,{root:k,injectHash:M,parentSelectors:[...s,N]});y={...y,...B},v+=`${N}${R}`}else{let M=function(k,R){process.env.NODE_ENV!=="production"&&(typeof T!="object"||!(T!=null&&T[Vu]))&&[Sg,Eg,...m].forEach($=>$(k,R,{path:d,hashId:l,parentSelectors:s}));const B=k.replace(/[A-Z]/g,$=>`-${$.toLowerCase()}`);let z=R;!ag[k]&&typeof z=="number"&&z!==0&&(z=`${z}px`),k==="animationName"&&(R!=null&&R._keyframe)&&(C(R),z=R.getName(l)),v+=`${B}:${z};`};const N=(T==null?void 0:T.value)??T;typeof T=="object"&&(T!=null&&T[Wu])&&Array.isArray(N)?N.forEach(k=>{M(P,k)}):qm(N)&&M(P,N)}})}}),r?c&&(v&&(v=`@layer ${c.name} {${v}}`),c.dependencies&&(y[`@layer ${c.name}`]=c.dependencies.map(b=>`@layer ${b}, ${c.name};`).join(`
55
- `))):v=`{${v}}`,[v,y]};function Zu(e,n){return No(`${e.join("%")}${n}`)}const Mg="style";function Sa(e,n){const{path:r,hashId:o,layer:s,nonce:l,clientOnly:c,order:d=0}=e,{mock:h,hashPriority:g,container:m,transformers:v,linters:y,cache:C,layer:_,autoPrefix:x}=f.useContext(Bo),b=[o||""];_&&b.push("layer"),b.push(...r);let E=ha;process.env.NODE_ENV!=="production"&&h!==void 0&&(E=h==="client"),ma(Mg,b,()=>{const S=b.join("|");if(Ig(S)){const[R,B]=Tg(S);if(R)return[R,B,{},c,d]}const P=n(),[T,M]=Ca(P,{hashId:o,hashPriority:g,layer:_?s:void 0,path:r.join("-"),transformers:v,linters:y}),N=wa(T,x||!1),k=Zu(b,N);return[N,k,M,c,d]},(S,P)=>{const[,T]=S;P&&ha&&Ro(T,{mark:Qn,attachTo:m})},S=>{const[P,T,M,,N]=S;if(E&&P!==Fu){const k={mark:Qn,prepend:_?!1:"queue",attachTo:m,priority:N},R=typeof l=="function"?l():l;R&&(k.csp={nonce:R});const B=[],z=[];Object.keys(M).forEach(j=>{j.startsWith("@layer")?B.push(j):z.push(j)}),B.forEach(j=>{fr(wa(M[j],x||!1),`_layer-${j}`,{...k,prepend:!0})});const $=fr(P,T,k);$[Yn]=C.instanceId,process.env.NODE_ENV!=="production"&&$.setAttribute(Hm,b.join("|")),z.forEach(j=>{fr(wa(M[j],x||!1),`_effect-${j}`,k)})}})}const Lg="cssVar",Og=(e,n)=>{const{key:r,prefix:o,unitless:s,ignore:l,token:c,hashId:d,scope:h=""}=e,{cache:{instanceId:g},container:m,hashPriority:v}=I.useContext(Bo),{_tokenKey:y}=c,C=[...e.path,r,h,y];return ma(Lg,C,()=>{const x=n(),[b,E]=Eu(x,r,{prefix:o,unitless:s,ignore:l,scope:h,hashPriority:v,hashCls:d}),S=Zu(C,E);return[b,E,S,r]},([,,x])=>{ha&&Ro(x,{mark:Qn,attachTo:m})},([,x,b])=>{if(!x)return;const E=fr(x,b,{mark:Qn,prepend:"queue",attachTo:m,priority:-999});E[Yn]=g,E.setAttribute(la,r)})};class ut{constructor(n,r){q(this,"name");q(this,"style");q(this,"_keyframe",!0);this.name=n,this.style=r}getName(n=""){return n?`${n}-${this.name}`:this.name}}function Yr(e){return e.notSplit=!0,e}Yr(["borderTop","borderBottom"]),Yr(["borderTop"]),Yr(["borderBottom"]),Yr(["borderLeft","borderRight"]),Yr(["borderLeft"]),Yr(["borderRight"]);function Bt(e){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Bt(e)}function kg(e){if(Array.isArray(e))return e}function Ng(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,s,l,c,d=[],h=!0,g=!1;try{if(l=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;h=!1}else for(;!(h=(o=l.call(r)).done)&&(d.push(o.value),d.length!==n);h=!0);}catch(m){g=!0,s=m}finally{try{if(!h&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(g)throw s}}return d}}function Rg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uu(e,n){return kg(e)||Ng(e,n)||cu(e,n)||Rg()}function $g(e,n){if(Bt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,n||"default");if(Bt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function qu(e){var n=$g(e,"string");return Bt(n)=="symbol"?n:n+""}function Ft(e,n,r){return(n=qu(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Gu(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function At(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Gu(Object(r),!0).forEach(function(o){Ft(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gu(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Mr(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Ku(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,qu(o.key),o)}}function Lr(e,n,r){return n&&Ku(e.prototype,n),r&&Ku(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Or(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wo(e,n){return Wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Wo(e,n)}function Ea(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Wo(e,n)}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jo(e)}function Pa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pa=function(){return!!e})()}function Bg(e,n){if(n&&(Bt(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Or(e)}function Ia(e){var n=Pa();return function(){var r,o=jo(e);if(n){var s=jo(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return Bg(this,r)}}var Qu=Lr(function e(){Mr(this,e)}),Yu="CALC_UNIT",zg=new RegExp(Yu,"g");function Ta(e){return typeof e=="number"?"".concat(e).concat(Yu):e}var Dg=function(e){Ea(r,e);var n=Ia(r);function r(o,s){var l;Mr(this,r),l=n.call(this),Ft(Or(l),"result",""),Ft(Or(l),"unitlessCssVar",void 0),Ft(Or(l),"lowPriority",void 0);var c=Bt(o);return l.unitlessCssVar=s,o instanceof r?l.result="(".concat(o.result,")"):c==="number"?l.result=Ta(o):c==="string"&&(l.result=o),l}return Lr(r,[{key:"add",value:function(s){return s instanceof r?this.result="".concat(this.result," + ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," + ").concat(Ta(s))),this.lowPriority=!0,this}},{key:"sub",value:function(s){return s instanceof r?this.result="".concat(this.result," - ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," - ").concat(Ta(s))),this.lowPriority=!0,this}},{key:"mul",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof r?this.result="".concat(this.result," * ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," * ").concat(s)),this.lowPriority=!1,this}},{key:"div",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof r?this.result="".concat(this.result," / ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," / ").concat(s)),this.lowPriority=!1,this}},{key:"getResult",value:function(s){return this.lowPriority||s?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(s){var l=this,c=s||{},d=c.unit,h=!0;return typeof d=="boolean"?h=d:Array.from(this.unitlessCssVar).some(function(g){return l.result.includes(g)})&&(h=!1),this.result=this.result.replace(zg,h?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Qu),Fg=function(e){Ea(r,e);var n=Ia(r);function r(o){var s;return Mr(this,r),s=n.call(this),Ft(Or(s),"result",0),o instanceof r?s.result=o.result:typeof o=="number"&&(s.result=o),s}return Lr(r,[{key:"add",value:function(s){return s instanceof r?this.result+=s.result:typeof s=="number"&&(this.result+=s),this}},{key:"sub",value:function(s){return s instanceof r?this.result-=s.result:typeof s=="number"&&(this.result-=s),this}},{key:"mul",value:function(s){return s instanceof r?this.result*=s.result:typeof s=="number"&&(this.result*=s),this}},{key:"div",value:function(s){return s instanceof r?this.result/=s.result:typeof s=="number"&&(this.result/=s),this}},{key:"equal",value:function(){return this.result}}]),r}(Qu),Hg=function(n,r){var o=n==="css"?Dg:Fg;return function(s){return new o(s,r)}},Xu=function(n,r){return"".concat([r,n.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ju(e,n,r,o){var s=At({},n[e]);if(o!=null&&o.deprecatedTokens){var l=o.deprecatedTokens;l.forEach(function(d){var h=Uu(d,2),g=h[0],m=h[1];if(process.env.NODE_ENV!=="production"&&ct(!(s!=null&&s[g]),"Component Token `".concat(String(g),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(m),"` instead.")),s!=null&&s[g]||s!=null&&s[m]){var v;(v=s[m])!==null&&v!==void 0||(s[m]=s==null?void 0:s[g])}})}var c=At(At({},r),s);return Object.keys(c).forEach(function(d){c[d]===n[d]&&delete c[d]}),c}var ed=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Aa=!0;function _n(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!ed)return Object.assign.apply(Object,[{}].concat(n));Aa=!1;var o={};return n.forEach(function(s){if(Bt(s)==="object"){var l=Object.keys(s);l.forEach(function(c){Object.defineProperty(o,c,{configurable:!0,enumerable:!0,get:function(){return s[c]}})})}}),Aa=!0,o}var td={};function Vg(){}var Wg=function(n){var r,o=n,s=Vg;return ed&&typeof Proxy<"u"&&(r=new Set,o=new Proxy(n,{get:function(c,d){if(Aa){var h;(h=r)===null||h===void 0||h.add(d)}return c[d]}}),s=function(c,d){var h;td[c]={global:Array.from(r),component:At(At({},(h=td[c])===null||h===void 0?void 0:h.component),d)}}),{token:o,keys:r,flush:s}};function nd(e,n,r){if(typeof r=="function"){var o;return r(_n(n,(o=n[e])!==null&&o!==void 0?o:{}))}return r??{}}function jg(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return"max(".concat(o.map(function(l){return Le(l)}).join(","),")")},min:function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return"min(".concat(o.map(function(l){return Le(l)}).join(","),")")}}}var Zg=1e3*60*10,Ug=function(){function e(){Mr(this,e),Ft(this,"map",new Map),Ft(this,"objectIDMap",new WeakMap),Ft(this,"nextID",0),Ft(this,"lastAccessBeat",new Map),Ft(this,"accessBeat",0)}return Lr(e,[{key:"set",value:function(r,o){this.clear();var s=this.getCompositeKey(r);this.map.set(s,o),this.lastAccessBeat.set(s,Date.now())}},{key:"get",value:function(r){var o=this.getCompositeKey(r),s=this.map.get(o);return this.lastAccessBeat.set(o,Date.now()),this.accessBeat+=1,s}},{key:"getCompositeKey",value:function(r){var o=this,s=r.map(function(l){return l&&Bt(l)==="object"?"obj_".concat(o.getObjectID(l)):"".concat(Bt(l),"_").concat(l)});return s.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var o=this.nextID;return this.objectIDMap.set(r,o),this.nextID+=1,o}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var o=Date.now();this.lastAccessBeat.forEach(function(s,l){o-s>Zg&&(r.map.delete(l),r.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e}(),rd=new Ug;function qg(e,n){return I.useMemo(function(){var r=rd.get(n);if(r)return r;var o=e();return rd.set(n,o),o},n)}var Gg=function(){return{}};function Kg(e){var n=e.useCSP,r=n===void 0?Gg:n,o=e.useToken,s=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function h(y,C,_,x){var b=Array.isArray(y)?y[0]:y;function E(R){return"".concat(String(b)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var S=(x==null?void 0:x.unitless)||{},P=typeof d=="function"?d(y):{},T=At(At({},P),{},Ft({},E("zIndexPopup"),!0));Object.keys(S).forEach(function(R){T[E(R)]=S[R]});var M=At(At({},x),{},{unitless:T,prefixToken:E}),N=m(y,C,_,M),k=g(b,_,M);return function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,z=N(R,B),$=k(B);return[z,$]}}function g(y,C,_){var x=_.unitless,b=_.prefixToken,E=_.ignore;return function(S){var P=o(),T=P.cssVar,M=P.realToken;return Og({path:[y],prefix:T.prefix,key:T.key,unitless:x,ignore:E,token:M,scope:S},function(){var N=nd(y,M,C),k=Ju(y,M,N,{deprecatedTokens:_==null?void 0:_.deprecatedTokens});return N&&Object.keys(N).forEach(function(R){k[b(R)]=k[R],delete k[R]}),k}),T==null?void 0:T.key}}function m(y,C,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(y)?y:[y,y],E=Uu(b,1),S=E[0],P=b.join("-"),T=e.layer||{name:"antd"};return function(M){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,k=o(),R=k.theme,B=k.realToken,z=k.hashId,$=k.token,j=k.cssVar,V=k.zeroRuntime,W=I.useMemo(function(){return V},[]);if(W)return z;var F=s(),X=F.rootPrefixCls,J=F.iconPrefixCls,Z=r(),le="css",G=qg(function(){var ee=new Set;return Object.keys(x.unitless||{}).forEach(function(K){ee.add(Mi(K,j.prefix)),ee.add(Mi(K,Xu(S,j.prefix)))}),Hg(le,ee)},[le,S,j==null?void 0:j.prefix]),ie=jg(le),ne=ie.max,de=ie.min,oe={theme:R,token:$,hashId:z,nonce:function(){return Z.nonce},clientOnly:x.clientOnly,layer:T,order:x.order||-999};return typeof l=="function"&&Sa(At(At({},oe),{},{clientOnly:!1,path:["Shared",X]}),function(){return l($,{prefix:{rootPrefixCls:X,iconPrefixCls:J},csp:Z})}),Sa(At(At({},oe),{},{path:[P,M,J]}),function(){if(x.injectStyle===!1)return[];var ee=Wg($),K=ee.token,Y=ee.flush,se=nd(S,B,_),fe=".".concat(M),xe=Ju(S,B,se,{deprecatedTokens:x.deprecatedTokens});se&&Bt(se)==="object"&&Object.keys(se).forEach(function(te){se[te]="var(".concat(Mi(te,Xu(S,j.prefix)),")")});var Se=_n(K,{componentCls:fe,prefixCls:M,iconCls:".".concat(J),antCls:".".concat(X),calc:G,max:ne,min:de},se),Te=C(Se,{hashId:z,prefixCls:M,rootPrefixCls:X,iconPrefixCls:J});Y(S,xe);var Ce=typeof c=="function"?c(Se,M,N,x.resetFont):null;return[x.resetStyle===!1?null:Ce,Te]}),z}}function v(y,C,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=m(y,C,_,At({resetStyle:!1,order:-998},x)),E=function(P){var T=P.prefixCls,M=P.rootCls,N=M===void 0?T:M;return b(T,N),null};return process.env.NODE_ENV!=="production"&&(E.displayName="SubStyle_".concat(String(Array.isArray(y)?y.join("."):y))),E}return{genStyleHooks:h,genSubStyleComponent:v,genComponentStyleHook:m}}const kr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function zi(e){return(e+8)/e}function Qg(e){const n=Array.from({length:10}).map((r,o)=>{const s=o-1,l=e*Math.E**(s/5),c=o>1?Math.floor(l):Math.ceil(l);return Math.floor(c/2)*2});return n[1]=e,n.map(r=>({size:r,lineHeight:zi(r)}))}const Yg="6.2.3",od={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Zo={...od,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
52
+ */var Gc;function lm(){return Gc||(Gc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),_=!1,x=!1,b=!1,E=!1,S=!1,P;P=Symbol.for("react.module.reference");function I(te){return!!(typeof te=="string"||typeof te=="function"||te===r||te===s||S||te===o||te===g||te===m||E||te===C||_||x||b||typeof te=="object"&&te!==null&&(te.$$typeof===y||te.$$typeof===v||te.$$typeof===l||te.$$typeof===c||te.$$typeof===h||te.$$typeof===P||te.getModuleId!==void 0))}function M(te){if(typeof te=="object"&&te!==null){var we=te.$$typeof;switch(we){case e:var Pe=te.type;switch(Pe){case r:case s:case o:case g:case m:return Pe;default:var Ae=Pe&&Pe.$$typeof;switch(Ae){case d:case c:case h:case y:case v:case l:return Ae;default:return we}}case n:return we}}}var k=c,N=l,R=e,B=h,z=r,$=y,j=v,V=n,W=s,F=o,X=g,J=m,Z=!1,le=!1;function G(te){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ie(te){return le||(le=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ne(te){return M(te)===c}function de(te){return M(te)===l}function oe(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function ee(te){return M(te)===h}function K(te){return M(te)===r}function Y(te){return M(te)===y}function se(te){return M(te)===v}function fe(te){return M(te)===n}function xe(te){return M(te)===s}function Se(te){return M(te)===o}function Te(te){return M(te)===g}function Ce(te){return M(te)===m}lt.ContextConsumer=k,lt.ContextProvider=N,lt.Element=R,lt.ForwardRef=B,lt.Fragment=z,lt.Lazy=$,lt.Memo=j,lt.Portal=V,lt.Profiler=W,lt.StrictMode=F,lt.Suspense=X,lt.SuspenseList=J,lt.isAsyncMode=G,lt.isConcurrentMode=ie,lt.isContextConsumer=ne,lt.isContextProvider=de,lt.isElement=oe,lt.isForwardRef=ee,lt.isFragment=K,lt.isLazy=Y,lt.isMemo=se,lt.isPortal=fe,lt.isProfiler=xe,lt.isStrictMode=Se,lt.isSuspense=Te,lt.isSuspenseList=Ce,lt.isValidElementType=I,lt.typeOf=M}()),lt}process.env.NODE_ENV==="production"?Us.exports=am():Us.exports=lm();var qs=Us.exports;function Ei(e,n,r){const o=f.useRef({});return(!("value"in o.current)||r(o.current.condition,n))&&(o.current.value=e(),o.current.condition=n),o.current.value}const cm=Symbol.for("react.element"),um=Symbol.for("react.transitional.element"),dm=Symbol.for("react.fragment");function Kc(e){return e&&typeof e=="object"&&(e.$$typeof===cm||e.$$typeof===um)&&e.type===dm}const fm=Number(A.version.split(".")[0]),hm=(e,n)=>{typeof e=="function"?e(n):typeof e=="object"&&e&&"current"in e&&(e.current=n)},Sr=(...e)=>{const n=e.filter(Boolean);return n.length<=1?n[0]:r=>{e.forEach(o=>{hm(o,r)})}},Wr=(...e)=>Ei(()=>Sr(...e),e,(n,r)=>n.length!==r.length||n.every((o,s)=>o!==r[s])),Er=e=>{var r,o;if(!e)return!1;if(Gs(e)&&fm>=19)return!0;const n=qs.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((r=n.prototype)!=null&&r.render)&&n.$$typeof!==qs.ForwardRef||typeof e=="function"&&!((o=e.prototype)!=null&&o.render)&&e.$$typeof!==qs.ForwardRef)};function Gs(e){return A.isValidElement(e)&&!Kc(e)}const pm=e=>Gs(e)&&Er(e),dr=e=>{if(e&&Gs(e)){const n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};function On(e,n){let r=e;for(let o=0;o<n.length;o+=1){if(r==null)return;r=r[n[o]]}return r}function Qc(e,n,r,o){if(!n.length)return r;const[s,...l]=n;let c;return!e&&typeof s=="number"?c=[]:Array.isArray(e)?c=[...e]:c={...e},o&&r===void 0&&l.length===1?delete c[s][l[0]]:c[s]=Qc(c[s],l,r,o),c}function Cn(e,n,r,o=!1){return n.length&&o&&r===void 0&&!On(e,n.slice(0,-1))?e:Qc(e,n,r,o)}function mm(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Yc(e){return Array.isArray(e)?[]:{}}const gm=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xc(e,n={}){const{prepareArray:r}=n,o=r||(()=>[]);let s=Yc(e[0]);return e.forEach(l=>{function c(d,h){const g=new Set(h),m=On(l,d),v=Array.isArray(m);if(v||mm(m)){if(!g.has(m)){g.add(m);const y=On(s,d);v?s=Cn(s,d,o(y,m)):(!y||typeof y!="object")&&(s=Cn(s,d,Yc(m))),gm(m).forEach(C=>{Object.getOwnPropertyDescriptor(m,C).enumerable&&c([...d,C],g)})}}else s=Cn(s,d,m)}c([])}),s}function jr(...e){return Xc(e)}let Ks={};const Qs=[],vm=e=>{Qs.push(e)};function Oo(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const r=Qs.reduce((o,s)=>s(o??"","warning"),n);r&&console.error(`Warning: ${r}`)}}function ym(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const r=Qs.reduce((o,s)=>s(o??"","note"),n);r&&console.warn(`Note: ${r}`)}}function bm(){Ks={}}function Jc(e,n,r){!n&&!Ks[r]&&(e(!1,r),Ks[r]=!0)}function ct(e,n){Jc(Oo,e,n)}function _m(e,n){Jc(ym,e,n)}ct.preMessage=vm,ct.resetWarned=bm,ct.noteOnce=_m;function Sn(e,n){const r=Object.assign({},e);return Array.isArray(n)&&n.forEach(o=>{delete r[o]}),r}function Gn(e,n={}){let r=[];return A.Children.forEach(e,o=>{o==null&&!n.keepEmpty||(Array.isArray(o)?r=r.concat(Gn(o)):Kc(o)&&o.props?r=r.concat(Gn(o.props.children,n)):r.push(o))}),r}function eu(){}const{resetWarned:xm}=ct;let Kn=null;function wm(){Kn=null,xm()}let tu=eu;process.env.NODE_ENV!=="production"&&(tu=(e,n,r)=>{ct(e,`[antd: ${n}] ${r}`),process.env.NODE_ENV==="test"&&wm()});const Ys=tu,nu=f.createContext({}),hn=process.env.NODE_ENV!=="production"?e=>{const{strict:n}=f.useContext(nu),r=(o,s,l)=>{if(!o)if(n===!1&&s==="deprecated"){const c=Kn;Kn||(Kn={}),Kn[e]=Kn[e]||[],Kn[e].includes(l||"")||Kn[e].push(l||""),c||console.warn("[antd] There exists deprecated usage in your code:",Kn)}else process.env.NODE_ENV!=="production"&&Ys(o,e,l)};return r.deprecated=(o,s,l,c="")=>{r(o,"deprecated",`\`${s}\` is deprecated. Please use \`${l}\` instead.${c?` ${c}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=eu,e};function Zr(e){return e instanceof HTMLElement||e instanceof SVGElement}function Xs(e){return e&&typeof e=="object"&&Zr(e.nativeElement)?e.nativeElement:Zr(e)?e:null}const Js=f.createContext(null);function Cm({children:e,onBatchResize:n}){const r=f.useRef(0),o=f.useRef([]),s=f.useContext(Js),l=f.useCallback((c,d,h)=>{r.current+=1;const g=r.current;o.current.push({size:c,element:d,data:h}),Promise.resolve().then(()=>{g===r.current&&(n==null||n(o.current),o.current=[])}),s==null||s(c,d,h)},[n,s]);return f.createElement(Js.Provider,{value:l},e)}const Qn=new Map;function ru(e){e.forEach(n=>{var o;const{target:r}=n;(o=Qn.get(r))==null||o.forEach(s=>s(r))})}let ea;function ou(){return ea||(ea=new ResizeObserver(ru)),ea}process.env.NODE_ENV,process.env.NODE_ENV;function Sm(e,n){Qn.has(e)||(Qn.set(e,new Set),ou().observe(e)),Qn.get(e).add(n)}function Em(e,n){Qn.has(e)&&(Qn.get(e).delete(n),Qn.get(e).size||(ou().unobserve(e),Qn.delete(e)))}function iu(e,n,r,o){const s=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=ft(d=>{const{width:h,height:g}=d.getBoundingClientRect(),{offsetWidth:m,offsetHeight:v}=d,y=Math.floor(h),C=Math.floor(g);if(s.current.width!==y||s.current.height!==C||s.current.offsetWidth!==m||s.current.offsetHeight!==v){const _={width:y,height:C,offsetWidth:m,offsetHeight:v};s.current=_;const x=m===Math.round(h)?h:m,b=v===Math.round(g)?g:v,E={..._,offsetWidth:x,offsetHeight:b};o==null||o(E,d),Promise.resolve().then(()=>{r==null||r(E,d)})}}),c=typeof n=="function";f.useEffect(()=>{const d=c?n():n;return d&&e&&Sm(d,l),()=>{d&&Em(d,l)}},[e,c?0:n])}function Pm(e,n){const{children:r,disabled:o,onResize:s,data:l}=e,c=f.useRef(null),d=f.useContext(Js),h=typeof r=="function",g=h?r(c):r,m=!h&&f.isValidElement(g)&&Er(g),v=m?dr(g):null,y=Wr(v,c),C=()=>Xs(c.current);return f.useImperativeHandle(n,()=>C()),iu(!o,C,s,(_,x)=>{d==null||d(_,x,l)}),m?f.cloneElement(g,{ref:y}):g}const su=f.forwardRef(Pm);process.env.NODE_ENV!=="production"&&(su.displayName="SingleObserver");function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ta.apply(this,arguments)}const Im="rc-observer-key";function Tm(e,n){const{children:r}=e,o=typeof r=="function"?[r]:Gn(r);return process.env.NODE_ENV!=="production"&&(o.length>1?Oo(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&Oo(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((s,l)=>{const c=(s==null?void 0:s.key)||`${Im}-${l}`;return f.createElement(su,ta({},e,{key:c,ref:l===0?n:void 0}),s)})}const No=f.forwardRef(Tm);process.env.NODE_ENV!=="production"&&(No.displayName="ResizeObserver"),No.Collection=Cm;function au(e){var n,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(r=au(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ce(){for(var e,n,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(n=au(e))&&(o&&(o+=" "),o+=n);return o}function na(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);r<n;r++)o[r]=e[r];return o}function Am(e){if(Array.isArray(e))return na(e)}function Mm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lu(e,n){if(e){if(typeof e=="string")return na(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?na(e,n):void 0}}function Lm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
53
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bn(e){return Am(e)||Mm(e)||lu(e)||Lm()}let cu=e=>+setTimeout(e,16),uu=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(cu=e=>window.requestAnimationFrame(e),uu=e=>window.cancelAnimationFrame(e));let du=0;const Pi=new Map;function fu(e){Pi.delete(e)}const Ut=(e,n=1)=>{du+=1;const r=du;function o(s){if(s===0)fu(r),e();else{const l=cu(()=>{o(s-1)});Pi.set(r,l)}}return o(n),r};Ut.cancel=e=>{const n=Pi.get(e);return fu(e),uu(n)},process.env.NODE_ENV!=="production"&&(Ut.ids=()=>Pi);const Ii="ant",ra="anticon",Om=(e,n)=>n||(e?`${Ii}-${e}`:Ii),Ot=f.createContext({getPrefixCls:Om,iconPrefixCls:ra}),hu={};function Ur(e){const n=f.useContext(Ot),{getPrefixCls:r,direction:o,getPopupContainer:s,renderEmpty:l}=n,c=n[e];return{classNames:hu,styles:hu,...c,getPrefixCls:r,direction:o,getPopupContainer:s,renderEmpty:l}}function ko(e){for(var n=0,r,o=0,s=e.length;s>=4;++o,s-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(s){case 3:n^=(e.charCodeAt(o+2)&255)<<16;case 2:n^=(e.charCodeAt(o+1)&255)<<8;case 1:n^=e.charCodeAt(o)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}function Nm(e,n){if(!e)return!1;if(e.contains)return e.contains(n);let r=n;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}const pu="data-rc-order",mu="data-rc-priority",km="rc-util-key",oa=new Map;function gu({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:km}function Ti(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Rm(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ia(e){return Array.from((oa.get(e)||e).children).filter(n=>n.tagName==="STYLE")}function vu(e,n={}){if(!yn())return null;const{csp:r,prepend:o,priority:s=0}=n,l=Rm(o),c=l==="prependQueue",d=document.createElement("style");d.setAttribute(pu,l),c&&s&&d.setAttribute(mu,`${s}`),r!=null&&r.nonce&&(d.nonce=r==null?void 0:r.nonce),d.innerHTML=e;const h=Ti(n),{firstChild:g}=h;if(o){if(c){const m=(n.styles||ia(h)).filter(v=>{if(!["prepend","prependQueue"].includes(v.getAttribute(pu)))return!1;const y=Number(v.getAttribute(mu)||0);return s>=y});if(m.length)return h.insertBefore(d,m[m.length-1].nextSibling),d}h.insertBefore(d,g)}else h.appendChild(d);return d}function yu(e,n={}){let{styles:r}=n;return r||(r=ia(Ti(n))),r.find(o=>o.getAttribute(gu(n))===e)}function Ro(e,n={}){const r=yu(e,n);r&&Ti(n).removeChild(r)}function $m(e,n){const r=oa.get(e);if(!r||!Nm(document,r)){const o=vu("",n),{parentNode:s}=o;oa.set(e,s),e.removeChild(o)}}function fr(e,n,r={}){var h,g,m;const o=Ti(r),s=ia(o),l={...r,styles:s};$m(o,l);const c=yu(n,l);if(c)return(h=l.csp)!=null&&h.nonce&&c.nonce!==((g=l.csp)==null?void 0:g.nonce)&&(c.nonce=(m=l.csp)==null?void 0:m.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const d=vu(e,l);return d.setAttribute(gu(l),n),d}function $o(e,n,r=!1){const o=new Set;function s(l,c,d=1){const h=o.has(l);if(ct(!h,"Warning: There may be circular references"),h)return!1;if(l===c)return!0;if(r&&d>1)return!1;o.add(l);const g=d+1;if(Array.isArray(l)){if(!Array.isArray(c)||l.length!==c.length)return!1;for(let m=0;m<l.length;m++)if(!s(l[m],c[m],g))return!1;return!0}if(l&&c&&typeof l=="object"&&typeof c=="object"){const m=Object.keys(l);return m.length!==Object.keys(c).length?!1:m.every(v=>s(l[v],c[v],g))}return!1}return s(e,n)}const Bm="%";function sa(e){return e.join(Bm)}let bu=0;class zm{constructor(n){q(this,"instanceId");q(this,"cache",new Map);q(this,"updateTimes",new Map);q(this,"extracted",new Set);this.instanceId=n}get(n){return this.opGet(sa(n))}opGet(n){return this.cache.get(n)||null}update(n,r){return this.opUpdate(sa(n),r)}opUpdate(n,r){const o=this.cache.get(n),s=r(o);s===null?(this.cache.delete(n),this.updateTimes.delete(n)):(this.cache.set(n,s),this.updateTimes.set(n,bu),bu+=1)}}const aa="data-token-hash",Yn="data-css-hash",Dm="data-cache-path",Xn="__cssinjs_instance__";function Fm(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const n=document.body.querySelectorAll(`style[${Yn}]`)||[],{firstChild:r}=document.head;Array.from(n).forEach(s=>{s[Xn]||(s[Xn]=e),s[Xn]===e&&document.head.insertBefore(s,r)});const o={};Array.from(document.querySelectorAll(`style[${Yn}]`)).forEach(s=>{var c;const l=s.getAttribute(Yn);o[l]?s[Xn]===e&&((c=s.parentNode)==null||c.removeChild(s)):o[l]=!0})}return new zm(e)}const Bo=f.createContext({hashPriority:"low",cache:Fm(),defaultCache:!0,autoPrefix:!1});function Hm(e,n){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}const xo=class xo{constructor(){q(this,"cache");q(this,"keys");q(this,"cacheCallTimes");this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(n,r=!1){let o={map:this.cache};return n.forEach(s=>{var l;o?o=(l=o==null?void 0:o.map)==null?void 0:l.get(s):o=void 0}),o!=null&&o.value&&r&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(n){var r;return(r=this.internalGet(n,!0))==null?void 0:r[0]}has(n){return!!this.internalGet(n)}set(n,r){if(!this.has(n)){if(this.size()+1>xo.MAX_CACHE_SIZE+xo.MAX_CACHE_OFFSET){const[s]=this.keys.reduce((l,c)=>{const[,d]=l;return this.internalGet(c)[1]<d?[c,this.internalGet(c)[1]]:l},[this.keys[0],this.cacheCallTimes]);this.delete(s)}this.keys.push(n)}let o=this.cache;n.forEach((s,l)=>{if(l===n.length-1)o.set(s,{value:[r,this.cacheCallTimes++]});else{const c=o.get(s);c?c.map||(c.map=new Map):o.set(s,{map:new Map}),o=o.get(s).map}})}deleteByPath(n,r){var l;const o=n.get(r[0]);if(r.length===1)return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(l=o.value)==null?void 0:l[0];const s=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),s}delete(n){if(this.has(n))return this.keys=this.keys.filter(r=>!Hm(r,n)),this.deleteByPath(this.cache,n)}};q(xo,"MAX_CACHE_SIZE",20),q(xo,"MAX_CACHE_OFFSET",5);let la=xo,_u=0;class xu{constructor(n){q(this,"derivatives");q(this,"id");this.derivatives=Array.isArray(n)?n:[n],this.id=_u,n.length===0&&Oo(n.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),_u+=1}getDerivativeToken(n){return this.derivatives.reduce((r,o)=>o(n,r),void 0)}}const ca=new la;function ua(e){const n=Array.isArray(e)?e:[e];return ca.has(n)||ca.set(n,new xu(n)),ca.get(n)}const Vm=new WeakMap,da={};function Wm(e,n){let r=Vm;for(let o=0;o<n.length;o+=1){const s=n[o];r.has(s)||r.set(s,new WeakMap),r=r.get(s)}return r.has(da)||r.set(da,e()),r.get(da)}const wu=new WeakMap;function zo(e){let n=wu.get(e)||"";return n||(Object.keys(e).forEach(r=>{const o=e[r];n+=r,o instanceof xu?n+=o.id:o&&typeof o=="object"?n+=zo(o):n+=o}),n=ko(n),wu.set(e,n)),n}function jm(e,n){return ko(`${n}_${zo(e)}`)}const fa=yn();function Le(e){return typeof e=="number"?`${e}px`:e}function Cu(e){const{hashCls:n,hashPriority:r="low"}=e||{};if(!n)return"";const o=`.${n}`;return r==="low"?`:where(${o})`:o}const Zm=e=>e!=null,Ai=(e,n="")=>`--${n?`${n}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),Um=(e,n,r)=>{const{hashCls:o,hashPriority:s="low"}=r||{};return Object.keys(e).length?`${Cu({hashCls:o,hashPriority:s})}.${n}${r!=null&&r.scope?`.${r.scope}`:""}{${Object.entries(e).map(([l,c])=>`${l}:${c};`).join("")}}`:""},Su=(e,n,r)=>{const{hashCls:o,hashPriority:s="low",prefix:l,unitless:c,ignore:d,preserve:h}=r||{},g={},m={};return Object.entries(e).forEach(([v,y])=>{if(h!=null&&h[v])m[v]=y;else if((typeof y=="string"||typeof y=="number")&&!(d!=null&&d[v])){const C=Ai(v,l);g[C]=typeof y=="number"&&!(c!=null&&c[v])?`${y}px`:String(y),m[v]=`var(${C})`}}),[m,Um(g,n,{scope:r==null?void 0:r.scope,hashCls:o,hashPriority:s})]};function qm(){return!1}let ha=!1;function Gm(){return ha}const Km=process.env.NODE_ENV==="production"?qm:Gm;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(e&&typeof e.webpackHotUpdate=="function"){const n=e.webpackHotUpdate;e.webpackHotUpdate=(...r)=>(ha=!0,setTimeout(()=>{ha=!1},0),n(...r))}}const Mi=new Map;function pa(e,n,r,o,s){const{cache:l}=f.useContext(Bo),c=[e,...n],d=sa(c),h=Km(),g=y=>{l.opUpdate(d,C=>{const[_=0,x]=C||[void 0,void 0];let b=x;process.env.NODE_ENV!=="production"&&x&&h&&(o==null||o(b,h),b=null);const E=b||r(),S=[_,E];return y?y(S):S})};f.useMemo(()=>{g()},[d]);let m=l.opGet(d);process.env.NODE_ENV!=="production"&&!m&&(g(),m=l.opGet(d));const v=m[1];return A.useInsertionEffect(()=>(g(([y,C])=>[y+1,C]),Mi.has(d)||(s==null||s(v),Mi.set(d,!0),Promise.resolve().then(()=>{Mi.delete(d)})),()=>{l.opUpdate(d,y=>{const[C=0,_]=y||[];return C-1===0?(o==null||o(_,!1),Mi.delete(d),null):[C-1,_]})}),[d]),v}const Qm={},Ym=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Pr=new Map;function Xm(e){Pr.set(e,(Pr.get(e)||0)+1)}function Jm(e,n){typeof document<"u"&&document.querySelectorAll(`style[${aa}="${e}"]`).forEach(o=>{var s;o[Xn]===n&&((s=o.parentNode)==null||s.removeChild(o))})}const eg=-1;function tg(e,n){Pr.set(e,(Pr.get(e)||0)-1);const r=new Set;Pr.forEach((o,s)=>{o<=0&&r.add(s)}),Pr.size-r.size>eg&&r.forEach(o=>{Jm(o,n),Pr.delete(o)})}const ng=(e,n,r,o)=>{let l={...r.getDerivativeToken(e),...n};return o&&(l=o(l)),l},rg="token";function og(e,n,r){const{cache:{instanceId:o},container:s,hashPriority:l}=A.useContext(Bo),{salt:c="",override:d=Qm,formatToken:h,getComputedToken:g,cssVar:m}=r,v=Wm(()=>Object.assign({},...n),n),y=zo(v),C=zo(d),_=zo(m);return pa(rg,[c,e.id,y,C,_],()=>{const b=g?g(v,d,e):ng(v,d,e,h),E={...b},S=`${c}_${m.prefix}`,P=ko(S),I=`${Ym}-${P}`;E._tokenKey=jm(E,S);const[M,k]=Su(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve,hashPriority:l,hashCls:m.hashed?I:void 0});return M._hashId=P,Xm(m.key),[M,I,E,k,m.key]},([,,,,b])=>{tg(b,o)},([,,,b,E])=>{if(!b)return;const S=fr(b,ko(`css-var-${E}`),{mark:Yn,prepend:"queue",attachTo:s,priority:-999});S[Xn]=o,S.setAttribute(aa,E)})}var ig={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_t="-ms-",Do="-moz-",st="-webkit-",Eu="comm",ma="rule",ga="decl",sg="@import",ag="@namespace",Pu="@keyframes",lg="@layer",Iu=Math.abs,va=String.fromCharCode,ya=Object.assign;function cg(e,n){return zt(e,0)^45?(((n<<2^zt(e,0))<<2^zt(e,1))<<2^zt(e,2))<<2^zt(e,3):0}function Tu(e){return e.trim()}function Jn(e,n){return(e=n.exec(e))?e[0]:e}function qe(e,n,r){return e.replace(n,r)}function Li(e,n,r){return e.indexOf(n,r)}function zt(e,n){return e.charCodeAt(n)|0}function Ir(e,n,r){return e.slice(n,r)}function Nn(e){return e.length}function Au(e){return e.length}function Fo(e,n){return n.push(e),e}function ug(e,n){return e.map(n).join("")}function Mu(e,n){return e.filter(function(r){return!Jn(r,n)})}var Oi=1,qr=1,Lu=0,En=0,Rt=0,Gr="";function Ni(e,n,r,o,s,l,c,d){return{value:e,root:n,parent:r,type:o,props:s,children:l,line:Oi,column:qr,length:c,return:"",siblings:d}}function hr(e,n){return ya(Ni("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},n)}function Kr(e){for(;e.root;)e=hr(e.root,{children:[e]});Fo(e,e.siblings)}function dg(){return Rt}function fg(){return Rt=En>0?zt(Gr,--En):0,qr--,Rt===10&&(qr=1,Oi--),Rt}function kn(){return Rt=En<Lu?zt(Gr,En++):0,qr++,Rt===10&&(qr=1,Oi++),Rt}function pr(){return zt(Gr,En)}function ki(){return En}function Ri(e,n){return Ir(Gr,e,n)}function Ho(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hg(e){return Oi=qr=1,Lu=Nn(Gr=e),En=0,[]}function pg(e){return Gr="",e}function ba(e){return Tu(Ri(En-1,_a(e===91?e+2:e===40?e+1:e)))}function mg(e){for(;(Rt=pr())&&Rt<33;)kn();return Ho(e)>2||Ho(Rt)>3?"":" "}function gg(e,n){for(;--n&&kn()&&!(Rt<48||Rt>102||Rt>57&&Rt<65||Rt>70&&Rt<97););return Ri(e,ki()+(n<6&&pr()==32&&kn()==32))}function _a(e){for(;kn();)switch(Rt){case e:return En;case 34:case 39:e!==34&&e!==39&&_a(Rt);break;case 40:e===41&&_a(e);break;case 92:kn();break}return En}function vg(e,n){for(;kn()&&e+Rt!==47+10;)if(e+Rt===42+42&&pr()===47)break;return"/*"+Ri(n,En-1)+"*"+va(e===47?e:kn())}function yg(e){for(;!Ho(pr());)kn();return Ri(e,En)}function Ou(e){return pg($i("",null,null,null,[""],e=hg(e),0,[0],e))}function $i(e,n,r,o,s,l,c,d,h){for(var g=0,m=0,v=c,y=0,C=0,_=0,x=1,b=1,E=1,S=0,P="",I=s,M=l,k=o,N=P;b;)switch(_=S,S=kn()){case 40:if(_!=108&&zt(N,v-1)==58){Li(N+=qe(ba(S),"&","&\f"),"&\f",Iu(g?d[g-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:N+=ba(S);break;case 9:case 10:case 13:case 32:N+=mg(_);break;case 92:N+=gg(ki()-1,7);continue;case 47:switch(pr()){case 42:case 47:Fo(bg(vg(kn(),ki()),n,r,h),h),(Ho(_||1)==5||Ho(pr()||1)==5)&&Nn(N)&&Ir(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*x:d[g++]=Nn(N)*E;case 125*x:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+m:E==-1&&(N=qe(N,/\f/g,"")),C>0&&(Nn(N)-v||x===0&&_===47)&&Fo(C>32?ku(N+";",o,r,v-1,h):ku(qe(N," ","")+";",o,r,v-2,h),h);break;case 59:N+=";";default:if(Fo(k=Nu(N,n,r,g,m,s,d,P,I=[],M=[],v,l),l),S===123)if(m===0)$i(N,n,k,k,I,l,v,d,M);else{switch(y){case 99:if(zt(N,3)===110)break;case 108:if(zt(N,2)===97)break;default:m=0;case 100:case 109:case 115:}m?$i(e,k,k,o&&Fo(Nu(e,k,k,0,0,s,d,P,s,I=[],v,M),M),s,M,v,d,o?I:M):$i(N,k,k,k,[""],M,0,d,M)}}g=m=C=0,x=E=1,P=N="",v=c;break;case 58:v=1+Nn(N),C=_;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&fg()==125)continue}switch(N+=va(S),S*x){case 38:E=m>0?1:(N+="\f",-1);break;case 44:d[g++]=(Nn(N)-1)*E,E=1;break;case 64:pr()===45&&(N+=ba(kn())),y=pr(),m=v=Nn(P=N+=yg(ki())),S++;break;case 45:_===45&&Nn(N)==2&&(x=0)}}return l}function Nu(e,n,r,o,s,l,c,d,h,g,m,v){for(var y=s-1,C=s===0?l:[""],_=Au(C),x=0,b=0,E=0;x<o;++x)for(var S=0,P=Ir(e,y+1,y=Iu(b=c[x])),I=e;S<_;++S)(I=Tu(b>0?C[S]+" "+P:qe(P,/&\f/g,C[S])))&&(h[E++]=I);return Ni(e,n,r,s===0?ma:d,h,g,m,v)}function bg(e,n,r,o){return Ni(e,n,r,Eu,va(dg()),Ir(e,2,-2),0,o)}function ku(e,n,r,o,s){return Ni(e,n,r,ga,Ir(e,0,o),Ir(e,o+1,-1),o,s)}function Ru(e,n,r){switch(cg(e,n)){case 5103:return st+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return st+e+e;case 4855:return st+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Do+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return st+e+Do+e+_t+e+e;case 5936:switch(zt(e,n+11)){case 114:return st+e+_t+qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+_t+qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+_t+qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return st+e+_t+e+e;case 6165:return st+e+_t+"flex-"+e+e;case 5187:return st+e+qe(e,/(\w+).+(:[^]+)/,st+"box-$1$2"+_t+"flex-$1$2")+e;case 5443:return st+e+_t+"flex-item-"+qe(e,/flex-|-self/g,"")+(Jn(e,/flex-|baseline/)?"":_t+"grid-row-"+qe(e,/flex-|-self/g,""))+e;case 4675:return st+e+_t+"flex-line-pack"+qe(e,/align-content|flex-|-self/g,"")+e;case 5548:return st+e+_t+qe(e,"shrink","negative")+e;case 5292:return st+e+_t+qe(e,"basis","preferred-size")+e;case 6060:return st+"box-"+qe(e,"-grow","")+st+e+_t+qe(e,"grow","positive")+e;case 4554:return st+qe(e,/([^-])(transform)/g,"$1"+st+"$2")+e;case 6187:return qe(qe(qe(e,/(zoom-|grab)/,st+"$1"),/(image-set)/,st+"$1"),e,"")+e;case 5495:case 3959:return qe(e,/(image-set\([^]*)/,st+"$1$`$1");case 4968:return qe(qe(e,/(.+:)(flex-)?(.*)/,st+"box-pack:$3"+_t+"flex-pack:$3"),/space-between/,"justify")+st+e+e;case 4200:if(!Jn(e,/flex-|baseline/))return _t+"grid-column-align"+Ir(e,n)+e;break;case 2592:case 3360:return _t+qe(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(o,s){return n=s,Jn(o.props,/grid-\w+-end/)})?~Li(e+(r=r[n].value),"span",0)?e:_t+qe(e,"-start","")+e+_t+"grid-row-span:"+(~Li(r,"span",0)?Jn(r,/\d+/):+Jn(r,/\d+/)-+Jn(e,/\d+/))+";":_t+qe(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(o){return Jn(o.props,/grid-\w+-start/)})?e:_t+qe(qe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return qe(e,/(.+)-inline(.+)/,st+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Nn(e)-1-n>6)switch(zt(e,n+1)){case 109:if(zt(e,n+4)!==45)break;case 102:return qe(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+Do+(zt(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~Li(e,"stretch",0)?Ru(qe(e,"stretch","fill-available"),n,r)+e:e}break;case 5152:case 5920:return qe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,l,c,d,h,g){return _t+s+":"+l+g+(c?_t+s+"-span:"+(d?h:+h-+l)+g:"")+e});case 4949:if(zt(e,n+6)===121)return qe(e,":",":"+st)+e;break;case 6444:switch(zt(e,zt(e,14)===45?18:11)){case 120:return qe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+st+(zt(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+_t+"$2box$3")+e;case 100:return qe(e,":",":"+_t)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return qe(e,"scroll-","scroll-snap-")+e}return e}function Vo(e,n){for(var r="",o=0;o<e.length;o++)r+=n(e[o],o,e,n)||"";return r}function $u(e,n,r,o){switch(e.type){case lg:if(e.children.length)break;case sg:case ag:case ga:return e.return=e.return||e.value;case Eu:return"";case Pu:return e.return=e.value+"{"+Vo(e.children,o)+"}";case ma:if(!Nn(e.value=e.props.join(",")))return""}return Nn(r=Vo(e.children,o))?e.return=e.value+"{"+r+"}":""}function _g(e){var n=Au(e);return function(r,o,s,l){for(var c="",d=0;d<n;d++)c+=e[d](r,o,s,l)||"";return c}}function xg(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case ga:e.return=Ru(e.value,e.length,r);return;case Pu:return Vo([hr(e,{value:qe(e.value,"@","@"+st)})],o);case ma:if(e.length)return ug(r=e.props,function(s){switch(Jn(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Kr(hr(e,{props:[qe(s,/:(read-\w+)/,":"+Do+"$1")]})),Kr(hr(e,{props:[s]})),ya(e,{props:Mu(r,o)});break;case"::placeholder":Kr(hr(e,{props:[qe(s,/:(plac\w+)/,":"+st+"input-$1")]})),Kr(hr(e,{props:[qe(s,/:(plac\w+)/,":"+Do+"$1")]})),Kr(hr(e,{props:[qe(s,/:(plac\w+)/,_t+"input-$1")]})),Kr(hr(e,{props:[s]})),ya(e,{props:Mu(r,o)});break}return""})}}function Bu(e,n){const{path:r,parentSelectors:o}=n;ct(!1,`[Ant Design CSS-in-JS] ${r?`Error in ${r}: `:""}${e}${o.length?` Selector: ${o.join(" | ")}`:""}`)}const wg=(e,n,r)=>{if(e==="content"){const o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof n!="string"||["normal","none","initial","inherit","unset"].indexOf(n)===-1&&!o.test(n)&&!n.startsWith("var(")&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&Bu(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${n}"'\`.`,r)}},Cg=(e,n,r)=>{e==="animation"&&r.hashId&&n!=="none"&&Bu(`You seem to be using hashed animation '${n}', in which case 'animationName' with Keyframe as value is recommended.`,r)},zu="data-ant-cssinjs-cache-path",Du="_FILE_STYLE__";let Tr,Fu=!0;function Sg(){var e;if(!Tr&&(Tr={},yn())){const n=document.createElement("div");n.className=zu,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);let r=getComputedStyle(n).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(s=>{const[l,c]=s.split(":");Tr[l]=c});const o=document.querySelector(`style[${zu}]`);o&&(Fu=!1,(e=o.parentNode)==null||e.removeChild(o)),document.body.removeChild(n)}}function Eg(e){return Sg(),!!Tr[e]}function Pg(e){const n=Tr[e];let r=null;if(n&&yn())if(Fu)r=Du;else{const o=document.querySelector(`style[${Yn}="${Tr[e]}"]`);o?r=o.innerHTML:delete Tr[e]}return[r,n]}const Hu="_skip_check_",Vu="_multi_value_";function xa(e,n){return(n?Vo(Ou(e),_g([xg,$u])):Vo(Ou(e),$u)).replace(/\{%%%\:[^;];}/g,";")}function Ig(e){return typeof e=="object"&&e&&(Hu in e||Vu in e)}function Wu(e,n,r="high"){if(!n)return e;const o=Cu({hashCls:n,hashPriority:r});return e.split(",").map(l=>{var g;const c=l.trim().split(/\s+/);let d=c[0]||"";const h=((g=d.match(/^\w+/))==null?void 0:g[0])||"";return d=`${h}${o}${d.slice(h.length)}`,[d,...c.slice(1)].join(" ")}).join(",")}const wa=(e,n={},{root:r,injectHash:o,parentSelectors:s}={root:!0,parentSelectors:[]})=>{const{hashId:l,layer:c,path:d,hashPriority:h,transformers:g=[],linters:m=[]}=n;let v="",y={};function C(b){const E=b.getName(l);if(!y[E]){const[S]=wa(b.style,n,{root:!1,parentSelectors:s});y[E]=`@keyframes ${b.getName(l)}${S}`}}function _(b,E=[]){return b.forEach(S=>{Array.isArray(S)?_(S,E):S&&E.push(S)}),E}return _(Array.isArray(e)?e:[e]).forEach(b=>{const E=typeof b=="string"&&!r?{}:b;if(typeof E=="string")v+=`${E}
54
+ `;else if(E._keyframe)C(E);else{const S=g.reduce((P,I)=>{var M;return((M=I==null?void 0:I.visit)==null?void 0:M.call(I,P))||P},E);Object.keys(S).forEach(P=>{const I=S[P];if(typeof I=="object"&&I&&(P!=="animationName"||!I._keyframe)&&!Ig(I)){let M=!1,k=P.trim(),N=!1;(r||o)&&l?k.startsWith("@")?M=!0:k==="&"?k=Wu("",l,h):k=Wu(P,l,h):r&&!l&&(k==="&"||k==="")&&(k="",N=!0);const[R,B]=wa(I,n,{root:N,injectHash:M,parentSelectors:[...s,k]});y={...y,...B},v+=`${k}${R}`}else{let M=function(N,R){process.env.NODE_ENV!=="production"&&(typeof I!="object"||!(I!=null&&I[Hu]))&&[wg,Cg,...m].forEach($=>$(N,R,{path:d,hashId:l,parentSelectors:s}));const B=N.replace(/[A-Z]/g,$=>`-${$.toLowerCase()}`);let z=R;!ig[N]&&typeof z=="number"&&z!==0&&(z=`${z}px`),N==="animationName"&&(R!=null&&R._keyframe)&&(C(R),z=R.getName(l)),v+=`${B}:${z};`};const k=(I==null?void 0:I.value)??I;typeof I=="object"&&(I!=null&&I[Vu])&&Array.isArray(k)?k.forEach(N=>{M(P,N)}):Zm(k)&&M(P,k)}})}}),r?c&&(v&&(v=`@layer ${c.name} {${v}}`),c.dependencies&&(y[`@layer ${c.name}`]=c.dependencies.map(b=>`@layer ${b}, ${c.name};`).join(`
55
+ `))):v=`{${v}}`,[v,y]};function ju(e,n){return ko(`${e.join("%")}${n}`)}const Tg="style";function Ca(e,n){const{path:r,hashId:o,layer:s,nonce:l,clientOnly:c,order:d=0}=e,{mock:h,hashPriority:g,container:m,transformers:v,linters:y,cache:C,layer:_,autoPrefix:x}=f.useContext(Bo),b=[o||""];_&&b.push("layer"),b.push(...r);let E=fa;process.env.NODE_ENV!=="production"&&h!==void 0&&(E=h==="client"),pa(Tg,b,()=>{const S=b.join("|");if(Eg(S)){const[R,B]=Pg(S);if(R)return[R,B,{},c,d]}const P=n(),[I,M]=wa(P,{hashId:o,hashPriority:g,layer:_?s:void 0,path:r.join("-"),transformers:v,linters:y}),k=xa(I,x||!1),N=ju(b,k);return[k,N,M,c,d]},(S,P)=>{const[,I]=S;P&&fa&&Ro(I,{mark:Yn,attachTo:m})},S=>{const[P,I,M,,k]=S;if(E&&P!==Du){const N={mark:Yn,prepend:_?!1:"queue",attachTo:m,priority:k},R=typeof l=="function"?l():l;R&&(N.csp={nonce:R});const B=[],z=[];Object.keys(M).forEach(j=>{j.startsWith("@layer")?B.push(j):z.push(j)}),B.forEach(j=>{fr(xa(M[j],x||!1),`_layer-${j}`,{...N,prepend:!0})});const $=fr(P,I,N);$[Xn]=C.instanceId,process.env.NODE_ENV!=="production"&&$.setAttribute(Dm,b.join("|")),z.forEach(j=>{fr(xa(M[j],x||!1),`_effect-${j}`,N)})}})}const Ag="cssVar",Mg=(e,n)=>{const{key:r,prefix:o,unitless:s,ignore:l,token:c,hashId:d,scope:h=""}=e,{cache:{instanceId:g},container:m,hashPriority:v}=A.useContext(Bo),{_tokenKey:y}=c,C=[...e.path,r,h,y];return pa(Ag,C,()=>{const x=n(),[b,E]=Su(x,r,{prefix:o,unitless:s,ignore:l,scope:h,hashPriority:v,hashCls:d}),S=ju(C,E);return[b,E,S,r]},([,,x])=>{fa&&Ro(x,{mark:Yn,attachTo:m})},([,x,b])=>{if(!x)return;const E=fr(x,b,{mark:Yn,prepend:"queue",attachTo:m,priority:-999});E[Xn]=g,E.setAttribute(aa,r)})};class ut{constructor(n,r){q(this,"name");q(this,"style");q(this,"_keyframe",!0);this.name=n,this.style=r}getName(n=""){return n?`${n}-${this.name}`:this.name}}function Qr(e){return e.notSplit=!0,e}Qr(["borderTop","borderBottom"]),Qr(["borderTop"]),Qr(["borderBottom"]),Qr(["borderLeft","borderRight"]),Qr(["borderLeft"]),Qr(["borderRight"]);function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$t(e)}function Lg(e){if(Array.isArray(e))return e}function Og(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o,s,l,c,d=[],h=!0,g=!1;try{if(l=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;h=!1}else for(;!(h=(o=l.call(r)).done)&&(d.push(o.value),d.length!==n);h=!0);}catch(m){g=!0,s=m}finally{try{if(!h&&r.return!=null&&(c=r.return(),Object(c)!==c))return}finally{if(g)throw s}}return d}}function Ng(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zu(e,n){return Lg(e)||Og(e,n)||lu(e,n)||Ng()}function kg(e,n){if($t(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,n||"default");if($t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Uu(e){var n=kg(e,"string");return $t(n)=="symbol"?n:n+""}function Dt(e,n,r){return(n=Uu(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function qu(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function Tt(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?qu(Object(r),!0).forEach(function(o){Dt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qu(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Ar(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Gu(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Uu(o.key),o)}}function Mr(e,n,r){return n&&Gu(e.prototype,n),r&&Gu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wo(e,n){return Wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Wo(e,n)}function Sa(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Wo(e,n)}function jo(e){return jo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jo(e)}function Ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ea=function(){return!!e})()}function Rg(e,n){if(n&&($t(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lr(e)}function Pa(e){var n=Ea();return function(){var r,o=jo(e);if(n){var s=jo(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return Rg(this,r)}}var Ku=Mr(function e(){Ar(this,e)}),Qu="CALC_UNIT",$g=new RegExp(Qu,"g");function Ia(e){return typeof e=="number"?"".concat(e).concat(Qu):e}var Bg=function(e){Sa(r,e);var n=Pa(r);function r(o,s){var l;Ar(this,r),l=n.call(this),Dt(Lr(l),"result",""),Dt(Lr(l),"unitlessCssVar",void 0),Dt(Lr(l),"lowPriority",void 0);var c=$t(o);return l.unitlessCssVar=s,o instanceof r?l.result="(".concat(o.result,")"):c==="number"?l.result=Ia(o):c==="string"&&(l.result=o),l}return Mr(r,[{key:"add",value:function(s){return s instanceof r?this.result="".concat(this.result," + ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," + ").concat(Ia(s))),this.lowPriority=!0,this}},{key:"sub",value:function(s){return s instanceof r?this.result="".concat(this.result," - ").concat(s.getResult()):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," - ").concat(Ia(s))),this.lowPriority=!0,this}},{key:"mul",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof r?this.result="".concat(this.result," * ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," * ").concat(s)),this.lowPriority=!1,this}},{key:"div",value:function(s){return this.lowPriority&&(this.result="(".concat(this.result,")")),s instanceof r?this.result="".concat(this.result," / ").concat(s.getResult(!0)):(typeof s=="number"||typeof s=="string")&&(this.result="".concat(this.result," / ").concat(s)),this.lowPriority=!1,this}},{key:"getResult",value:function(s){return this.lowPriority||s?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(s){var l=this,c=s||{},d=c.unit,h=!0;return typeof d=="boolean"?h=d:Array.from(this.unitlessCssVar).some(function(g){return l.result.includes(g)})&&(h=!1),this.result=this.result.replace($g,h?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Ku),zg=function(e){Sa(r,e);var n=Pa(r);function r(o){var s;return Ar(this,r),s=n.call(this),Dt(Lr(s),"result",0),o instanceof r?s.result=o.result:typeof o=="number"&&(s.result=o),s}return Mr(r,[{key:"add",value:function(s){return s instanceof r?this.result+=s.result:typeof s=="number"&&(this.result+=s),this}},{key:"sub",value:function(s){return s instanceof r?this.result-=s.result:typeof s=="number"&&(this.result-=s),this}},{key:"mul",value:function(s){return s instanceof r?this.result*=s.result:typeof s=="number"&&(this.result*=s),this}},{key:"div",value:function(s){return s instanceof r?this.result/=s.result:typeof s=="number"&&(this.result/=s),this}},{key:"equal",value:function(){return this.result}}]),r}(Ku),Dg=function(n,r){var o=n==="css"?Bg:zg;return function(s){return new o(s,r)}},Yu=function(n,r){return"".concat([r,n.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Xu(e,n,r,o){var s=Tt({},n[e]);if(o!=null&&o.deprecatedTokens){var l=o.deprecatedTokens;l.forEach(function(d){var h=Zu(d,2),g=h[0],m=h[1];if(process.env.NODE_ENV!=="production"&&ct(!(s!=null&&s[g]),"Component Token `".concat(String(g),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(m),"` instead.")),s!=null&&s[g]||s!=null&&s[m]){var v;(v=s[m])!==null&&v!==void 0||(s[m]=s==null?void 0:s[g])}})}var c=Tt(Tt({},r),s);return Object.keys(c).forEach(function(d){c[d]===n[d]&&delete c[d]}),c}var Ju=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Ta=!0;function _n(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!Ju)return Object.assign.apply(Object,[{}].concat(n));Ta=!1;var o={};return n.forEach(function(s){if($t(s)==="object"){var l=Object.keys(s);l.forEach(function(c){Object.defineProperty(o,c,{configurable:!0,enumerable:!0,get:function(){return s[c]}})})}}),Ta=!0,o}var ed={};function Fg(){}var Hg=function(n){var r,o=n,s=Fg;return Ju&&typeof Proxy<"u"&&(r=new Set,o=new Proxy(n,{get:function(c,d){if(Ta){var h;(h=r)===null||h===void 0||h.add(d)}return c[d]}}),s=function(c,d){var h;ed[c]={global:Array.from(r),component:Tt(Tt({},(h=ed[c])===null||h===void 0?void 0:h.component),d)}}),{token:o,keys:r,flush:s}};function td(e,n,r){if(typeof r=="function"){var o;return r(_n(n,(o=n[e])!==null&&o!==void 0?o:{}))}return r??{}}function Vg(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return"max(".concat(o.map(function(l){return Le(l)}).join(","),")")},min:function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return"min(".concat(o.map(function(l){return Le(l)}).join(","),")")}}}var Wg=1e3*60*10,jg=function(){function e(){Ar(this,e),Dt(this,"map",new Map),Dt(this,"objectIDMap",new WeakMap),Dt(this,"nextID",0),Dt(this,"lastAccessBeat",new Map),Dt(this,"accessBeat",0)}return Mr(e,[{key:"set",value:function(r,o){this.clear();var s=this.getCompositeKey(r);this.map.set(s,o),this.lastAccessBeat.set(s,Date.now())}},{key:"get",value:function(r){var o=this.getCompositeKey(r),s=this.map.get(o);return this.lastAccessBeat.set(o,Date.now()),this.accessBeat+=1,s}},{key:"getCompositeKey",value:function(r){var o=this,s=r.map(function(l){return l&&$t(l)==="object"?"obj_".concat(o.getObjectID(l)):"".concat($t(l),"_").concat(l)});return s.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var o=this.nextID;return this.objectIDMap.set(r,o),this.nextID+=1,o}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var o=Date.now();this.lastAccessBeat.forEach(function(s,l){o-s>Wg&&(r.map.delete(l),r.lastAccessBeat.delete(l))}),this.accessBeat=0}}}]),e}(),nd=new jg;function Zg(e,n){return A.useMemo(function(){var r=nd.get(n);if(r)return r;var o=e();return nd.set(n,o),o},n)}var Ug=function(){return{}};function qg(e){var n=e.useCSP,r=n===void 0?Ug:n,o=e.useToken,s=e.usePrefix,l=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function h(y,C,_,x){var b=Array.isArray(y)?y[0]:y;function E(R){return"".concat(String(b)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var S=(x==null?void 0:x.unitless)||{},P=typeof d=="function"?d(y):{},I=Tt(Tt({},P),{},Dt({},E("zIndexPopup"),!0));Object.keys(S).forEach(function(R){I[E(R)]=S[R]});var M=Tt(Tt({},x),{},{unitless:I,prefixToken:E}),k=m(y,C,_,M),N=g(b,_,M);return function(R){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,z=k(R,B),$=N(B);return[z,$]}}function g(y,C,_){var x=_.unitless,b=_.prefixToken,E=_.ignore;return function(S){var P=o(),I=P.cssVar,M=P.realToken;return Mg({path:[y],prefix:I.prefix,key:I.key,unitless:x,ignore:E,token:M,scope:S},function(){var k=td(y,M,C),N=Xu(y,M,k,{deprecatedTokens:_==null?void 0:_.deprecatedTokens});return k&&Object.keys(k).forEach(function(R){N[b(R)]=N[R],delete N[R]}),N}),I==null?void 0:I.key}}function m(y,C,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(y)?y:[y,y],E=Zu(b,1),S=E[0],P=b.join("-"),I=e.layer||{name:"antd"};return function(M){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,N=o(),R=N.theme,B=N.realToken,z=N.hashId,$=N.token,j=N.cssVar,V=N.zeroRuntime,W=A.useMemo(function(){return V},[]);if(W)return z;var F=s(),X=F.rootPrefixCls,J=F.iconPrefixCls,Z=r(),le="css",G=Zg(function(){var ee=new Set;return Object.keys(x.unitless||{}).forEach(function(K){ee.add(Ai(K,j.prefix)),ee.add(Ai(K,Yu(S,j.prefix)))}),Dg(le,ee)},[le,S,j==null?void 0:j.prefix]),ie=Vg(le),ne=ie.max,de=ie.min,oe={theme:R,token:$,hashId:z,nonce:function(){return Z.nonce},clientOnly:x.clientOnly,layer:I,order:x.order||-999};return typeof l=="function"&&Ca(Tt(Tt({},oe),{},{clientOnly:!1,path:["Shared",X]}),function(){return l($,{prefix:{rootPrefixCls:X,iconPrefixCls:J},csp:Z})}),Ca(Tt(Tt({},oe),{},{path:[P,M,J]}),function(){if(x.injectStyle===!1)return[];var ee=Hg($),K=ee.token,Y=ee.flush,se=td(S,B,_),fe=".".concat(M),xe=Xu(S,B,se,{deprecatedTokens:x.deprecatedTokens});se&&$t(se)==="object"&&Object.keys(se).forEach(function(te){se[te]="var(".concat(Ai(te,Yu(S,j.prefix)),")")});var Se=_n(K,{componentCls:fe,prefixCls:M,iconCls:".".concat(J),antCls:".".concat(X),calc:G,max:ne,min:de},se),Te=C(Se,{hashId:z,prefixCls:M,rootPrefixCls:X,iconPrefixCls:J});Y(S,xe);var Ce=typeof c=="function"?c(Se,M,k,x.resetFont):null;return[x.resetStyle===!1?null:Ce,Te]}),z}}function v(y,C,_){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=m(y,C,_,Tt({resetStyle:!1,order:-998},x)),E=function(P){var I=P.prefixCls,M=P.rootCls,k=M===void 0?I:M;return b(I,k),null};return process.env.NODE_ENV!=="production"&&(E.displayName="SubStyle_".concat(String(Array.isArray(y)?y.join("."):y))),E}return{genStyleHooks:h,genSubStyleComponent:v,genComponentStyleHook:m}}const Or=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Bi(e){return(e+8)/e}function Gg(e){const n=Array.from({length:10}).map((r,o)=>{const s=o-1,l=e*Math.E**(s/5),c=o>1?Math.floor(l):Math.ceil(l);return Math.floor(c/2)*2});return n[1]=e,n.map(r=>({size:r,lineHeight:Bi(r)}))}const Kg="6.2.3",rd={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Zo={...rd,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
57
57
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
58
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},Xg={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Gt=Math.round;function Ma(e,n){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)o[s]=n(o[s]||0,r[s]||"",s);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const id=(e,n,r)=>r===0?e:e/100;function Uo(e,n){const r=n||255;return e>r?r:e<0?0:e}class Mt{constructor(n){q(this,"isValid",!0);q(this,"r",0);q(this,"g",0);q(this,"b",0);q(this,"a",1);q(this,"_h");q(this,"_hsl_s");q(this,"_hsv_s");q(this,"_l");q(this,"_v");q(this,"_max");q(this,"_min");q(this,"_brightness");function r(o){return o[0]in n&&o[1]in n&&o[2]in n}if(n)if(typeof n=="string"){let s=function(l){return o.startsWith(l)};const o=n.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(s("rgb"))this.fromRgbString(o);else if(s("hsl"))this.fromHslString(o);else if(s("hsv")||s("hsb"))this.fromHsvString(o);else{const l=Xg[o.toLowerCase()];l&&this.fromHexString(parseInt(l,36).toString(16).padStart(6,"0"))}}else if(n instanceof Mt)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this._h=n._h,this._hsl_s=n._hsl_s,this._hsv_s=n._hsv_s,this._l=n._l,this._v=n._v;else if(r("rgb"))this.r=Uo(n.r),this.g=Uo(n.g),this.b=Uo(n.b),this.a=typeof n.a=="number"?Uo(n.a,1):1;else if(r("hsl"))this.fromHsl(n);else if(r("hsv"))this.fromHsv(n);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(n))}setR(n){return this._sc("r",n)}setG(n){return this._sc("g",n)}setB(n){return this._sc("b",n)}setA(n){return this._sc("a",n,1)}setHue(n){const r=this.toHsv();return r.h=n,this._c(r)}getLuminance(){function n(l){const c=l/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const r=n(this.r),o=n(this.g),s=n(this.b);return .2126*r+.7152*o+.0722*s}getHue(){if(typeof this._h>"u"){const n=this.getMax()-this.getMin();n===0?this._h=0:this._h=Gt(60*(this.r===this.getMax()?(this.g-this.b)/n+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/n+2:(this.r-this.g)/n+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const n=this.getMax()-this.getMin();n===0?this._hsv_s=0:this._hsv_s=n/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const n=this.getMax()-this.getMin();if(n===0)this._hsl_s=0;else{const r=this.getLightness();this._hsl_s=n/255/(1-Math.abs(2*r-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(n=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()-n/100;return s<0&&(s=0),this._c({h:r,s:o,l:s,a:this.a})}lighten(n=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()+n/100;return s>1&&(s=1),this._c({h:r,s:o,l:s,a:this.a})}mix(n,r=50){const o=this._c(n),s=r/100,l=d=>(o[d]-this[d])*s+this[d],c={r:Gt(l("r")),g:Gt(l("g")),b:Gt(l("b")),a:Gt(l("a")*100)/100};return this._c(c)}tint(n=10){return this.mix({r:255,g:255,b:255,a:1},n)}shade(n=10){return this.mix({r:0,g:0,b:0,a:1},n)}onBackground(n){const r=this._c(n),o=this.a+r.a*(1-this.a),s=l=>Gt((this[l]*this.a+r[l]*r.a*(1-this.a))/o);return this._c({r:s("r"),g:s("g"),b:s("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}clone(){return this._c(this)}toHexString(){let n="#";const r=(this.r||0).toString(16);n+=r.length===2?r:"0"+r;const o=(this.g||0).toString(16);n+=o.length===2?o:"0"+o;const s=(this.b||0).toString(16);if(n+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=Gt(this.a*255).toString(16);n+=l.length===2?l:"0"+l}return n}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const n=this.getHue(),r=Gt(this.getHSLSaturation()*100),o=Gt(this.getLightness()*100);return this.a!==1?`hsla(${n},${r}%,${o}%,${this.a})`:`hsl(${n},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(n,r,o){const s=this.clone();return s[n]=Uo(r,o),s}_c(n){return new this.constructor(n)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(n){const r=n.replace("#","");function o(s,l){return parseInt(r[s]+r[l||s],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:n,s:r,l:o,a:s}){const l=(n%360+360)%360;if(this._h=l,this._hsl_s=r,this._l=o,this.a=typeof s=="number"?s:1,r<=0){const C=Gt(o*255);this.r=C,this.g=C,this.b=C;return}let c=0,d=0,h=0;const g=l/60,m=(1-Math.abs(2*o-1))*r,v=m*(1-Math.abs(g%2-1));g>=0&&g<1?(c=m,d=v):g>=1&&g<2?(c=v,d=m):g>=2&&g<3?(d=m,h=v):g>=3&&g<4?(d=v,h=m):g>=4&&g<5?(c=v,h=m):g>=5&&g<6&&(c=m,h=v);const y=o-m/2;this.r=Gt((c+y)*255),this.g=Gt((d+y)*255),this.b=Gt((h+y)*255)}fromHsv({h:n,s:r,v:o,a:s}){const l=(n%360+360)%360;this._h=l,this._hsv_s=r,this._v=o,this.a=typeof s=="number"?s:1;const c=Gt(o*255);if(this.r=c,this.g=c,this.b=c,r<=0)return;const d=l/60,h=Math.floor(d),g=d-h,m=Gt(o*(1-r)*255),v=Gt(o*(1-r*g)*255),y=Gt(o*(1-r*(1-g))*255);switch(h){case 0:this.g=y,this.b=m;break;case 1:this.r=v,this.b=m;break;case 2:this.r=m,this.b=y;break;case 3:this.r=m,this.g=v;break;case 4:this.r=y,this.g=m;break;case 5:default:this.g=m,this.b=v;break}}fromHsvString(n){const r=Ma(n,id);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(n){const r=Ma(n,id);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(n){const r=Ma(n,(o,s)=>s.includes("%")?Gt(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}const Di=2,sd=.16,Jg=.05,ev=.05,tv=.15,ad=5,ld=4,nv=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function cd(e,n,r){let o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-Di*n:Math.round(e.h)+Di*n:o=r?Math.round(e.h)+Di*n:Math.round(e.h)-Di*n,o<0?o+=360:o>=360&&(o-=360),o}function ud(e,n,r){if(e.h===0&&e.s===0)return e.s;let o;return r?o=e.s-sd*n:n===ld?o=e.s+sd:o=e.s+Jg*n,o>1&&(o=1),r&&n===ad&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function dd(e,n,r){let o;return r?o=e.v+ev*n:o=e.v-tv*n,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function La(e,n={}){const r=[],o=new Mt(e),s=o.toHsv();for(let l=ad;l>0;l-=1){const c=new Mt({h:cd(s,l,!0),s:ud(s,l,!0),v:dd(s,l,!0)});r.push(c)}r.push(o);for(let l=1;l<=ld;l+=1){const c=new Mt({h:cd(s,l),s:ud(s,l),v:dd(s,l)});r.push(c)}return n.theme==="dark"?nv.map(({index:l,amount:c})=>new Mt(n.backgroundColor||"#141414").mix(r[l],c).toHexString()):r.map(l=>l.toHexString())}const Oa={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ka=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];ka.primary=ka[5];const Na=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Na.primary=Na[5];const Ra=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ra.primary=Ra[5];const $a=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$a.primary=$a[5];const Ba=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ba.primary=Ba[5];const za=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];za.primary=za[5];const Da=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Da.primary=Da[5];const Fa=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Fa.primary=Fa[5];const Fi=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fi.primary=Fi[5];const Ha=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ha.primary=Ha[5];const Va=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Va.primary=Va[5];const Wa=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Wa.primary=Wa[5];const ja=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ja.primary=ja[5];const Za={red:ka,volcano:Na,orange:Ra,gold:$a,yellow:Ba,lime:za,green:Da,cyan:Fa,blue:Fi,geekblue:Ha,purple:Va,magenta:Wa,grey:ja};function rv(e,{generateColorPalettes:n,generateNeutralColorPalettes:r}){const{colorSuccess:o,colorWarning:s,colorError:l,colorInfo:c,colorPrimary:d,colorBgBase:h,colorTextBase:g}=e,m=n(d),v=n(o),y=n(s),C=n(l),_=n(c),x=r(h,g),b=e.colorLink||e.colorInfo,E=n(b),S=new Mt(C[1]).mix(new Mt(C[3]),50).toHexString();return{...x,colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:S,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:_[1],colorInfoBgHover:_[2],colorInfoBorder:_[3],colorInfoBorderHover:_[4],colorInfoHover:_[4],colorInfo:_[6],colorInfoActive:_[7],colorInfoTextHover:_[8],colorInfoText:_[9],colorInfoTextActive:_[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],colorBgMask:new Mt("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const ov=e=>{let n=e,r=e,o=e,s=e;return e<6&&e>=5?n=e+1:e<16&&e>=6?n=e+2:e>=16&&(n=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?s=4:e>=8&&(s=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:r,borderRadiusLG:n,borderRadiusOuter:s}};function iv(e){const{motionUnit:n,motionBase:r,borderRadius:o,lineWidth:s}=e;return{motionDurationFast:`${(r+n).toFixed(1)}s`,motionDurationMid:`${(r+n*2).toFixed(1)}s`,motionDurationSlow:`${(r+n*3).toFixed(1)}s`,lineWidthBold:s+1,...ov(o)}}const sv=e=>{const{controlHeight:n}=e;return{controlHeightSM:n*.75,controlHeightXS:n*.5,controlHeightLG:n*1.25}},av=e=>{const n=Qg(e),r=n.map(m=>m.size),o=n.map(m=>m.lineHeight),s=r[1],l=r[0],c=r[2],d=o[1],h=o[0],g=o[2];return{fontSizeSM:l,fontSize:s,fontSizeLG:c,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:d,lineHeightLG:g,lineHeightSM:h,fontHeight:Math.round(d*s),fontHeightLG:Math.round(g*c),fontHeightSM:Math.round(h*l),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function lv(e){const{sizeUnit:n,sizeStep:r}=e;return{sizeXXL:n*(r+8),sizeXL:n*(r+4),sizeLG:n*(r+2),sizeMD:n*(r+1),sizeMS:n*r,size:n*r,sizeSM:n*(r-1),sizeXS:n*(r-2),sizeXXS:n*(r-3)}}const Pn=(e,n)=>new Mt(e).setA(n).toRgbString(),Xr=(e,n)=>new Mt(e).darken(n).toHexString(),cv=e=>{const n=La(e);return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[4],6:n[5],7:n[6],8:n[4],9:n[5],10:n[6]}},uv=(e,n)=>{const r=e||"#fff",o=n||"#000";return{colorBgBase:r,colorTextBase:o,colorText:Pn(o,.88),colorTextSecondary:Pn(o,.65),colorTextTertiary:Pn(o,.45),colorTextQuaternary:Pn(o,.25),colorFill:Pn(o,.15),colorFillSecondary:Pn(o,.06),colorFillTertiary:Pn(o,.04),colorFillQuaternary:Pn(o,.02),colorBgSolid:Pn(o,1),colorBgSolidHover:Pn(o,.75),colorBgSolidActive:Pn(o,.95),colorBgLayout:Xr(r,4),colorBgContainer:Xr(r,0),colorBgElevated:Xr(r,0),colorBgSpotlight:Pn(o,.85),colorBgBlur:"transparent",colorBorder:Xr(r,15),colorBorderDisabled:Xr(r,15),colorBorderSecondary:Xr(r,6)}};function dv(e){Oa.pink=Oa.magenta,Za.pink=Za.magenta;const n=Object.keys(od).map(r=>{const o=e[r]===Oa[r]?Za[r]:La(e[r]);return Array.from({length:10},()=>1).reduce((s,l,c)=>(s[`${r}-${c+1}`]=o[c],s[`${r}${c+1}`]=o[c],s),{})}).reduce((r,o)=>(r={...r,...o},r),{});return{...e,...n,...rv(e,{generateColorPalettes:cv,generateNeutralColorPalettes:uv}),...av(e.fontSize),...lv(e),...sv(e),...iv(e)}}const fd=da(dv),Ua={token:Zo,override:{override:Zo},hashed:!0},hd=I.createContext(Ua);function qa(e){return e>=0&&e<=255}function qo(e,n){const{r,g:o,b:s,a:l}=new Mt(e).toRgb();if(l<1)return e;const{r:c,g:d,b:h}=new Mt(n).toRgb();for(let g=.01;g<=1;g+=.01){const m=Math.round((r-c*(1-g))/g),v=Math.round((o-d*(1-g))/g),y=Math.round((s-h*(1-g))/g);if(qa(m)&&qa(v)&&qa(y))return new Mt({r:m,g:v,b:y,a:Math.round(g*100)/100}).toRgbString()}return new Mt({r,g:o,b:s,a:1}).toRgbString()}function fv(e){const{override:n,...r}=e,o={...n};Object.keys(Zo).forEach(y=>{delete o[y]});const s={...r,...o},l=480,c=576,d=768,h=992,g=1200,m=1600;if(s.motion===!1){const y="0s";s.motionDurationFast=y,s.motionDurationMid=y,s.motionDurationSlow=y}return{...s,colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:qo(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:qo(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:qo(s.colorWarningBg,s.colorBgContainer),fontSizeIcon:s.fontSizeSM,lineWidthFocus:s.lineWidth*3,lineWidth:s.lineWidth,controlOutlineWidth:s.lineWidth*2,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:qo(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:`
58
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},Qg={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},qt=Math.round;function Aa(e,n){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=r.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)o[s]=n(o[s]||0,r[s]||"",s);return r[3]?o[3]=r[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const od=(e,n,r)=>r===0?e:e/100;function Uo(e,n){const r=n||255;return e>r?r:e<0?0:e}class At{constructor(n){q(this,"isValid",!0);q(this,"r",0);q(this,"g",0);q(this,"b",0);q(this,"a",1);q(this,"_h");q(this,"_hsl_s");q(this,"_hsv_s");q(this,"_l");q(this,"_v");q(this,"_max");q(this,"_min");q(this,"_brightness");function r(o){return o[0]in n&&o[1]in n&&o[2]in n}if(n)if(typeof n=="string"){let s=function(l){return o.startsWith(l)};const o=n.trim();if(/^#?[A-F\d]{3,8}$/i.test(o))this.fromHexString(o);else if(s("rgb"))this.fromRgbString(o);else if(s("hsl"))this.fromHslString(o);else if(s("hsv")||s("hsb"))this.fromHsvString(o);else{const l=Qg[o.toLowerCase()];l&&this.fromHexString(parseInt(l,36).toString(16).padStart(6,"0"))}}else if(n instanceof At)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this._h=n._h,this._hsl_s=n._hsl_s,this._hsv_s=n._hsv_s,this._l=n._l,this._v=n._v;else if(r("rgb"))this.r=Uo(n.r),this.g=Uo(n.g),this.b=Uo(n.b),this.a=typeof n.a=="number"?Uo(n.a,1):1;else if(r("hsl"))this.fromHsl(n);else if(r("hsv"))this.fromHsv(n);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(n))}setR(n){return this._sc("r",n)}setG(n){return this._sc("g",n)}setB(n){return this._sc("b",n)}setA(n){return this._sc("a",n,1)}setHue(n){const r=this.toHsv();return r.h=n,this._c(r)}getLuminance(){function n(l){const c=l/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const r=n(this.r),o=n(this.g),s=n(this.b);return .2126*r+.7152*o+.0722*s}getHue(){if(typeof this._h>"u"){const n=this.getMax()-this.getMin();n===0?this._h=0:this._h=qt(60*(this.r===this.getMax()?(this.g-this.b)/n+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/n+2:(this.r-this.g)/n+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const n=this.getMax()-this.getMin();n===0?this._hsv_s=0:this._hsv_s=n/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const n=this.getMax()-this.getMin();if(n===0)this._hsl_s=0;else{const r=this.getLightness();this._hsl_s=n/255/(1-Math.abs(2*r-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(n=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()-n/100;return s<0&&(s=0),this._c({h:r,s:o,l:s,a:this.a})}lighten(n=10){const r=this.getHue(),o=this.getSaturation();let s=this.getLightness()+n/100;return s>1&&(s=1),this._c({h:r,s:o,l:s,a:this.a})}mix(n,r=50){const o=this._c(n),s=r/100,l=d=>(o[d]-this[d])*s+this[d],c={r:qt(l("r")),g:qt(l("g")),b:qt(l("b")),a:qt(l("a")*100)/100};return this._c(c)}tint(n=10){return this.mix({r:255,g:255,b:255,a:1},n)}shade(n=10){return this.mix({r:0,g:0,b:0,a:1},n)}onBackground(n){const r=this._c(n),o=this.a+r.a*(1-this.a),s=l=>qt((this[l]*this.a+r[l]*r.a*(1-this.a))/o);return this._c({r:s("r"),g:s("g"),b:s("b"),a:o})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}clone(){return this._c(this)}toHexString(){let n="#";const r=(this.r||0).toString(16);n+=r.length===2?r:"0"+r;const o=(this.g||0).toString(16);n+=o.length===2?o:"0"+o;const s=(this.b||0).toString(16);if(n+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const l=qt(this.a*255).toString(16);n+=l.length===2?l:"0"+l}return n}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const n=this.getHue(),r=qt(this.getHSLSaturation()*100),o=qt(this.getLightness()*100);return this.a!==1?`hsla(${n},${r}%,${o}%,${this.a})`:`hsl(${n},${r}%,${o}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(n,r,o){const s=this.clone();return s[n]=Uo(r,o),s}_c(n){return new this.constructor(n)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(n){const r=n.replace("#","");function o(s,l){return parseInt(r[s]+r[l||s],16)}r.length<6?(this.r=o(0),this.g=o(1),this.b=o(2),this.a=r[3]?o(3)/255:1):(this.r=o(0,1),this.g=o(2,3),this.b=o(4,5),this.a=r[6]?o(6,7)/255:1)}fromHsl({h:n,s:r,l:o,a:s}){const l=(n%360+360)%360;if(this._h=l,this._hsl_s=r,this._l=o,this.a=typeof s=="number"?s:1,r<=0){const C=qt(o*255);this.r=C,this.g=C,this.b=C;return}let c=0,d=0,h=0;const g=l/60,m=(1-Math.abs(2*o-1))*r,v=m*(1-Math.abs(g%2-1));g>=0&&g<1?(c=m,d=v):g>=1&&g<2?(c=v,d=m):g>=2&&g<3?(d=m,h=v):g>=3&&g<4?(d=v,h=m):g>=4&&g<5?(c=v,h=m):g>=5&&g<6&&(c=m,h=v);const y=o-m/2;this.r=qt((c+y)*255),this.g=qt((d+y)*255),this.b=qt((h+y)*255)}fromHsv({h:n,s:r,v:o,a:s}){const l=(n%360+360)%360;this._h=l,this._hsv_s=r,this._v=o,this.a=typeof s=="number"?s:1;const c=qt(o*255);if(this.r=c,this.g=c,this.b=c,r<=0)return;const d=l/60,h=Math.floor(d),g=d-h,m=qt(o*(1-r)*255),v=qt(o*(1-r*g)*255),y=qt(o*(1-r*(1-g))*255);switch(h){case 0:this.g=y,this.b=m;break;case 1:this.r=v,this.b=m;break;case 2:this.r=m,this.b=y;break;case 3:this.r=m,this.g=v;break;case 4:this.r=y,this.g=m;break;case 5:default:this.g=m,this.b=v;break}}fromHsvString(n){const r=Aa(n,od);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(n){const r=Aa(n,od);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(n){const r=Aa(n,(o,s)=>s.includes("%")?qt(o/100*255):o);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}const zi=2,id=.16,Yg=.05,Xg=.05,Jg=.15,sd=5,ad=4,ev=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ld(e,n,r){let o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=r?Math.round(e.h)-zi*n:Math.round(e.h)+zi*n:o=r?Math.round(e.h)+zi*n:Math.round(e.h)-zi*n,o<0?o+=360:o>=360&&(o-=360),o}function cd(e,n,r){if(e.h===0&&e.s===0)return e.s;let o;return r?o=e.s-id*n:n===ad?o=e.s+id:o=e.s+Yg*n,o>1&&(o=1),r&&n===sd&&o>.1&&(o=.1),o<.06&&(o=.06),Math.round(o*100)/100}function ud(e,n,r){let o;return r?o=e.v+Xg*n:o=e.v-Jg*n,o=Math.max(0,Math.min(1,o)),Math.round(o*100)/100}function Ma(e,n={}){const r=[],o=new At(e),s=o.toHsv();for(let l=sd;l>0;l-=1){const c=new At({h:ld(s,l,!0),s:cd(s,l,!0),v:ud(s,l,!0)});r.push(c)}r.push(o);for(let l=1;l<=ad;l+=1){const c=new At({h:ld(s,l),s:cd(s,l),v:ud(s,l)});r.push(c)}return n.theme==="dark"?ev.map(({index:l,amount:c})=>new At(n.backgroundColor||"#141414").mix(r[l],c).toHexString()):r.map(l=>l.toHexString())}const La={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Oa=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Oa.primary=Oa[5];const Na=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Na.primary=Na[5];const ka=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ka.primary=ka[5];const Ra=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ra.primary=Ra[5];const $a=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];$a.primary=$a[5];const Ba=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ba.primary=Ba[5];const za=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];za.primary=za[5];const Da=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Da.primary=Da[5];const Di=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Di.primary=Di[5];const Fa=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Fa.primary=Fa[5];const Ha=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ha.primary=Ha[5];const Va=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Va.primary=Va[5];const Wa=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Wa.primary=Wa[5];const ja={red:Oa,volcano:Na,orange:ka,gold:Ra,yellow:$a,lime:Ba,green:za,cyan:Da,blue:Di,geekblue:Fa,purple:Ha,magenta:Va,grey:Wa};function tv(e,{generateColorPalettes:n,generateNeutralColorPalettes:r}){const{colorSuccess:o,colorWarning:s,colorError:l,colorInfo:c,colorPrimary:d,colorBgBase:h,colorTextBase:g}=e,m=n(d),v=n(o),y=n(s),C=n(l),_=n(c),x=r(h,g),b=e.colorLink||e.colorInfo,E=n(b),S=new At(C[1]).mix(new At(C[3]),50).toHexString();return{...x,colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:S,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:_[1],colorInfoBgHover:_[2],colorInfoBorder:_[3],colorInfoBorderHover:_[4],colorInfoHover:_[4],colorInfo:_[6],colorInfoActive:_[7],colorInfoTextHover:_[8],colorInfoText:_[9],colorInfoTextActive:_[10],colorLinkHover:E[4],colorLink:E[6],colorLinkActive:E[7],colorBgMask:new At("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const nv=e=>{let n=e,r=e,o=e,s=e;return e<6&&e>=5?n=e+1:e<16&&e>=6?n=e+2:e>=16&&(n=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?s=4:e>=8&&(s=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:r,borderRadiusLG:n,borderRadiusOuter:s}};function rv(e){const{motionUnit:n,motionBase:r,borderRadius:o,lineWidth:s}=e;return{motionDurationFast:`${(r+n).toFixed(1)}s`,motionDurationMid:`${(r+n*2).toFixed(1)}s`,motionDurationSlow:`${(r+n*3).toFixed(1)}s`,lineWidthBold:s+1,...nv(o)}}const ov=e=>{const{controlHeight:n}=e;return{controlHeightSM:n*.75,controlHeightXS:n*.5,controlHeightLG:n*1.25}},iv=e=>{const n=Gg(e),r=n.map(m=>m.size),o=n.map(m=>m.lineHeight),s=r[1],l=r[0],c=r[2],d=o[1],h=o[0],g=o[2];return{fontSizeSM:l,fontSize:s,fontSizeLG:c,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:d,lineHeightLG:g,lineHeightSM:h,fontHeight:Math.round(d*s),fontHeightLG:Math.round(g*c),fontHeightSM:Math.round(h*l),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function sv(e){const{sizeUnit:n,sizeStep:r}=e;return{sizeXXL:n*(r+8),sizeXL:n*(r+4),sizeLG:n*(r+2),sizeMD:n*(r+1),sizeMS:n*r,size:n*r,sizeSM:n*(r-1),sizeXS:n*(r-2),sizeXXS:n*(r-3)}}const Pn=(e,n)=>new At(e).setA(n).toRgbString(),Yr=(e,n)=>new At(e).darken(n).toHexString(),av=e=>{const n=Ma(e);return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[4],6:n[5],7:n[6],8:n[4],9:n[5],10:n[6]}},lv=(e,n)=>{const r=e||"#fff",o=n||"#000";return{colorBgBase:r,colorTextBase:o,colorText:Pn(o,.88),colorTextSecondary:Pn(o,.65),colorTextTertiary:Pn(o,.45),colorTextQuaternary:Pn(o,.25),colorFill:Pn(o,.15),colorFillSecondary:Pn(o,.06),colorFillTertiary:Pn(o,.04),colorFillQuaternary:Pn(o,.02),colorBgSolid:Pn(o,1),colorBgSolidHover:Pn(o,.75),colorBgSolidActive:Pn(o,.95),colorBgLayout:Yr(r,4),colorBgContainer:Yr(r,0),colorBgElevated:Yr(r,0),colorBgSpotlight:Pn(o,.85),colorBgBlur:"transparent",colorBorder:Yr(r,15),colorBorderDisabled:Yr(r,15),colorBorderSecondary:Yr(r,6)}};function cv(e){La.pink=La.magenta,ja.pink=ja.magenta;const n=Object.keys(rd).map(r=>{const o=e[r]===La[r]?ja[r]:Ma(e[r]);return Array.from({length:10},()=>1).reduce((s,l,c)=>(s[`${r}-${c+1}`]=o[c],s[`${r}${c+1}`]=o[c],s),{})}).reduce((r,o)=>(r={...r,...o},r),{});return{...e,...n,...tv(e,{generateColorPalettes:av,generateNeutralColorPalettes:lv}),...iv(e.fontSize),...sv(e),...ov(e),...rv(e)}}const dd=ua(cv),Za={token:Zo,override:{override:Zo},hashed:!0},fd=A.createContext(Za);function Ua(e){return e>=0&&e<=255}function qo(e,n){const{r,g:o,b:s,a:l}=new At(e).toRgb();if(l<1)return e;const{r:c,g:d,b:h}=new At(n).toRgb();for(let g=.01;g<=1;g+=.01){const m=Math.round((r-c*(1-g))/g),v=Math.round((o-d*(1-g))/g),y=Math.round((s-h*(1-g))/g);if(Ua(m)&&Ua(v)&&Ua(y))return new At({r:m,g:v,b:y,a:Math.round(g*100)/100}).toRgbString()}return new At({r,g:o,b:s,a:1}).toRgbString()}function uv(e){const{override:n,...r}=e,o={...n};Object.keys(Zo).forEach(y=>{delete o[y]});const s={...r,...o},l=480,c=576,d=768,h=992,g=1200,m=1600;if(s.motion===!1){const y="0s";s.motionDurationFast=y,s.motionDurationMid=y,s.motionDurationSlow=y}return{...s,colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:qo(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:qo(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:qo(s.colorWarningBg,s.colorBgContainer),fontSizeIcon:s.fontSizeSM,lineWidthFocus:s.lineWidth*3,lineWidth:s.lineWidth,controlOutlineWidth:s.lineWidth*2,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:qo(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:`
59
59
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
60
60
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
61
61
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
@@ -68,9 +68,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
68
68
  0 1px 6px -1px rgba(0, 0, 0, 0.02),
69
69
  0 2px 4px 0 rgba(0, 0, 0, 0.02)
70
70
  `,screenXS:l,screenXSMin:l,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:d-1,screenMD:d,screenMDMin:d,screenMDMax:h-1,screenLG:h,screenLGMin:h,screenLGMax:g-1,screenXL:g,screenXLMin:g,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
71
- 0 1px 2px -2px ${new Mt("rgba(0, 0, 0, 0.16)").toRgbString()},
72
- 0 3px 6px 0 ${new Mt("rgba(0, 0, 0, 0.12)").toRgbString()},
73
- 0 5px 12px 4px ${new Mt("rgba(0, 0, 0, 0.09)").toRgbString()}
71
+ 0 1px 2px -2px ${new At("rgba(0, 0, 0, 0.16)").toRgbString()},
72
+ 0 3px 6px 0 ${new At("rgba(0, 0, 0, 0.12)").toRgbString()},
73
+ 0 5px 12px 4px ${new At("rgba(0, 0, 0, 0.09)").toRgbString()}
74
74
  `,boxShadowDrawerRight:`
75
75
  -6px 0 16px 0 rgba(0, 0, 0, 0.08),
76
76
  -3px 0 6px -4px rgba(0, 0, 0, 0.12),
@@ -87,7 +87,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
87
87
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
88
88
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
89
89
  0 -9px 28px 8px rgba(0, 0, 0, 0.05)
90
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...o}}const pd={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},hv={motionBase:!0,motionUnit:!0},pv={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},md=(e,n,r)=>{const o=r.getDerivativeToken(e),{override:s,...l}=n;let c={...o,override:s};return c=fv(c),l&&Object.entries(l).forEach(([d,h])=>{const{theme:g,...m}=h;let v=m;g&&(v=md({...c,...m},{override:m},g)),c[d]=v}),c};function mr(){const{token:e,hashed:n,theme:r,override:o,cssVar:s,zeroRuntime:l}=I.useContext(hd),c={prefix:(s==null?void 0:s.prefix)??"ant",key:(s==null?void 0:s.key)??"css-var-root"},d=`${Yg}-${n||""}`,h=r||fd,[g,m,v]=sg(h,[Zo,e],{salt:d,override:o,getComputedToken:md,cssVar:{...c,unitless:pd,ignore:hv,preserve:pv}});return[h,v,n?m:"",g,c,!!l]}const mv={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Jr=(e,n=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:n?"inherit":e.fontFamily}),Ga=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),gd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gv=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),vv=(e,n,r,o)=>{const s=`[class^="${n}"], [class*=" ${n}"]`,l=r?`.${r}`:s,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return o!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...d,...c,[s]:c}}},Ka=(e,n)=>({outline:`${Le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:n??1,transition:"outline-offset 0s, outline 0s"}),Qa=(e,n)=>({"&:focus-visible":Ka(e,n)}),vd=e=>({[`.${e}`]:{...Ga(),[`.${e} .${e}-icon`]:{display:"block"}}}),{genStyleHooks:Hn,genComponentStyleHook:yv,genSubStyleComponent:bv}=Kg({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=I.useContext(kt);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,n,r,o,s,l]=mr();return{theme:e,realToken:n,hashId:r,token:o,cssVar:s,zeroRuntime:l}},useCSP:()=>{const{csp:e}=I.useContext(kt);return e??{}},getResetStyles:(e,n)=>{const r=gv(e);return[r,{"&":r},vd((n==null?void 0:n.prefix.iconPrefixCls)??oa)]},getCommonStyle:vv,getCompUnitless:()=>pd}),gr=(e,n)=>{const r=`--${e.replace(/\./g,"")}-${n}-`;return[l=>`${r}${l}`,(l,c)=>c?`var(${r}${l}, ${c})`:`var(${r}${l})`]};function _v(e,n){return kr.reduce((r,o)=>{const s=e[`${o}1`],l=e[`${o}3`],c=e[`${o}6`],d=e[`${o}7`];return{...r,...n(o,{lightColor:s,lightBorderColor:l,darkColor:c,textColor:d})}},{})}const xv=(e,n)=>{const[r,o]=mr();return Sa({theme:r,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>n==null?void 0:n.nonce,layer:{name:"antd"}},()=>vd(e))},Ya=I.createContext({});function yd(e){var n;return(n=e==null?void 0:e.getRootNode)==null?void 0:n.call(e)}function wv(e){return yd(e)instanceof ShadowRoot}function Hi(e){return wv(e)?yd(e):null}function Cv(e){return e.replace(/-(.)/g,(n,r)=>r.toUpperCase())}function Sv(e,n){ct(e,`[@ant-design/icons] ${n}`)}function bd(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function _d(e={}){return Object.keys(e).reduce((n,r)=>{const o=e[r];switch(r){case"class":n.className=o,delete n.class;break;default:delete n[r],n[Cv(r)]=o}return n},{})}function Xa(e,n,r){return r?I.createElement(e.tag,{key:n,..._d(e.attrs),...r},(e.children||[]).map((o,s)=>Xa(o,`${n}-${e.tag}-${s}`))):I.createElement(e.tag,{key:n,..._d(e.attrs)},(e.children||[]).map((o,s)=>Xa(o,`${n}-${e.tag}-${s}`)))}function xd(e){return La(e)[0]}function wd(e){return e?Array.isArray(e)?e:[e]:[]}const Ev=`
90
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...o}}const hd={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},dv={motionBase:!0,motionUnit:!0},fv={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},pd=(e,n,r)=>{const o=r.getDerivativeToken(e),{override:s,...l}=n;let c={...o,override:s};return c=uv(c),l&&Object.entries(l).forEach(([d,h])=>{const{theme:g,...m}=h;let v=m;g&&(v=pd({...c,...m},{override:m},g)),c[d]=v}),c};function mr(){const{token:e,hashed:n,theme:r,override:o,cssVar:s,zeroRuntime:l}=A.useContext(fd),c={prefix:(s==null?void 0:s.prefix)??"ant",key:(s==null?void 0:s.key)??"css-var-root"},d=`${Kg}-${n||""}`,h=r||dd,[g,m,v]=og(h,[Zo,e],{salt:d,override:o,getComputedToken:pd,cssVar:{...c,unitless:hd,ignore:dv,preserve:fv}});return[h,v,n?m:"",g,c,!!l]}const hv={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xr=(e,n=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:n?"inherit":e.fontFamily}),qa=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),md=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),pv=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),mv=(e,n,r,o)=>{const s=`[class^="${n}"], [class*=" ${n}"]`,l=r?`.${r}`:s,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return o!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[l]:{...d,...c,[s]:c}}},Ga=(e,n)=>({outline:`${Le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:n??1,transition:"outline-offset 0s, outline 0s"}),Ka=(e,n)=>({"&:focus-visible":Ga(e,n)}),gd=e=>({[`.${e}`]:{...qa(),[`.${e} .${e}-icon`]:{display:"block"}}}),{genStyleHooks:Vn,genComponentStyleHook:gv,genSubStyleComponent:vv}=qg({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=A.useContext(Ot);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,n,r,o,s,l]=mr();return{theme:e,realToken:n,hashId:r,token:o,cssVar:s,zeroRuntime:l}},useCSP:()=>{const{csp:e}=A.useContext(Ot);return e??{}},getResetStyles:(e,n)=>{const r=pv(e);return[r,{"&":r},gd((n==null?void 0:n.prefix.iconPrefixCls)??ra)]},getCommonStyle:mv,getCompUnitless:()=>hd}),gr=(e,n)=>{const r=`--${e.replace(/\./g,"")}-${n}-`;return[l=>`${r}${l}`,(l,c)=>c?`var(${r}${l}, ${c})`:`var(${r}${l})`]};function yv(e,n){return Or.reduce((r,o)=>{const s=e[`${o}1`],l=e[`${o}3`],c=e[`${o}6`],d=e[`${o}7`];return{...r,...n(o,{lightColor:s,lightBorderColor:l,darkColor:c,textColor:d})}},{})}const bv=(e,n)=>{const[r,o]=mr();return Ca({theme:r,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>n==null?void 0:n.nonce,layer:{name:"antd"}},()=>gd(e))},Qa=A.createContext({});function vd(e){var n;return(n=e==null?void 0:e.getRootNode)==null?void 0:n.call(e)}function _v(e){return vd(e)instanceof ShadowRoot}function Fi(e){return _v(e)?vd(e):null}function xv(e){return e.replace(/-(.)/g,(n,r)=>r.toUpperCase())}function wv(e,n){ct(e,`[@ant-design/icons] ${n}`)}function yd(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function bd(e={}){return Object.keys(e).reduce((n,r)=>{const o=e[r];switch(r){case"class":n.className=o,delete n.class;break;default:delete n[r],n[xv(r)]=o}return n},{})}function Ya(e,n,r){return r?A.createElement(e.tag,{key:n,...bd(e.attrs),...r},(e.children||[]).map((o,s)=>Ya(o,`${n}-${e.tag}-${s}`))):A.createElement(e.tag,{key:n,...bd(e.attrs)},(e.children||[]).map((o,s)=>Ya(o,`${n}-${e.tag}-${s}`)))}function _d(e){return Ma(e)[0]}function xd(e){return e?Array.isArray(e)?e:[e]:[]}const Cv=`
91
91
  .anticon {
92
92
  display: inline-flex;
93
93
  align-items: center;
@@ -143,49 +143,49 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
143
143
  transform: rotate(360deg);
144
144
  }
145
145
  }
146
- `,Pv=e=>{const{csp:n,prefixCls:r,layer:o}=I.useContext(Ya);let s=Ev;r&&(s=s.replace(/anticon/g,r)),o&&(s=`@layer ${o} {
146
+ `,Sv=e=>{const{csp:n,prefixCls:r,layer:o}=A.useContext(Qa);let s=Cv;r&&(s=s.replace(/anticon/g,r)),o&&(s=`@layer ${o} {
147
147
  ${s}
148
- }`),I.useEffect(()=>{const l=e.current,c=Hi(l);fr(s,"@ant-design-icons",{prepend:!o,csp:n,attachTo:c})},[])},Go={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Iv({primaryColor:e,secondaryColor:n}){Go.primaryColor=e,Go.secondaryColor=n||xd(e),Go.calculated=!!n}function Tv(){return{...Go}}const Vi=e=>{const{icon:n,className:r,onClick:o,style:s,primaryColor:l,secondaryColor:c,...d}=e,h=f.useRef(null);let g=Go;if(l&&(g={primaryColor:l,secondaryColor:c||xd(l)}),Pv(h),Sv(bd(n),`icon should be icon definiton, but got ${n}`),!bd(n))return null;let m=n;return m&&typeof m.icon=="function"&&(m={...m,icon:m.icon(g.primaryColor,g.secondaryColor)}),Xa(m.icon,`svg-${m.name}`,{className:r,onClick:o,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...d,ref:h})};Vi.displayName="IconReact",Vi.getTwoToneColors=Tv,Vi.setTwoToneColors=Iv;const Ja=Vi;function Cd(e){const[n,r]=wd(e);return Ja.setTwoToneColors({primaryColor:n,secondaryColor:r})}function Av(){const e=Ja.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function el(){return el=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},el.apply(this,arguments)}Cd(Fi.primary);const Wi=f.forwardRef((e,n)=>{const{className:r,icon:o,spin:s,rotate:l,tabIndex:c,onClick:d,twoToneColor:h,...g}=e,{prefixCls:m="anticon",rootClassName:v}=f.useContext(Ya),y=ce(v,m,{[`${m}-${o.name}`]:!!o.name,[`${m}-spin`]:!!s||o.name==="loading"},r);let C=c;C===void 0&&d&&(C=-1);const _=l?{msTransform:`rotate(${l}deg)`,transform:`rotate(${l}deg)`}:void 0,[x,b]=wd(h);return f.createElement("span",el({role:"img","aria-label":o.name},g,{ref:n,tabIndex:C,onClick:d,className:y}),f.createElement(Ja,{icon:o,primaryColor:x,secondaryColor:b,style:_}))});Wi.getTwoToneColor=Av,Wi.setTwoToneColor=Cd,process.env.NODE_ENV!=="production"&&(Wi.displayName="AntdIcon");const Ko=Wi,Sd=f.createContext({});function Mv({children:e,...n}){return f.createElement(Sd.Provider,{value:n},e)}function Lv(e){const[,n]=f.useReducer(l=>l+1,0),r=f.useRef(e),o=ht(()=>r.current),s=ht(l=>{r.current=typeof l=="function"?l(r.current):l,n()});return[o,s]}const Jn="none",ji="appear",Zi="enter",Ui="leave",Ed="none",Nn="prepare",eo="start",to="active",tl="end",Pd="prepared";function Id(e,n){const r={};return r[e.toLowerCase()]=n.toLowerCase(),r[`Webkit${e}`]=`webkit${n}`,r[`Moz${e}`]=`moz${n}`,r[`ms${e}`]=`MS${n}`,r[`O${e}`]=`o${n.toLowerCase()}`,r}function Ov(e,n){const r={animationend:Id("Animation","AnimationEnd"),transitionend:Id("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete r.animationend.animation,"TransitionEvent"in n||delete r.transitionend.transition),r}const kv=Ov(yn(),typeof window<"u"?window:{});let Td={};yn()&&({style:Td}=document.createElement("div"));const qi={};function Ad(e){if(qi[e])return qi[e];const n=kv[e];if(n){const r=Object.keys(n),o=r.length;for(let s=0;s<o;s+=1){const l=r[s];if(Object.prototype.hasOwnProperty.call(n,l)&&l in Td)return qi[e]=n[l],qi[e]}}return""}const Md=Ad("animationend"),Ld=Ad("transitionend"),Nv=!!(Md&&Ld),Od=Md||"animationend",kd=Ld||"transitionend";function Nd(e,n){if(!e)return null;if(typeof e=="object"){const r=n.replace(/-\w/g,o=>o[1].toUpperCase());return e[r]}return`${e}-${n}`}const Rv=e=>{const n=I.useRef();function r(s){s&&(s.removeEventListener(kd,e),s.removeEventListener(Od,e))}function o(s){n.current&&n.current!==s&&r(n.current),s&&s!==n.current&&(s.addEventListener(kd,e),s.addEventListener(Od,e),n.current=s)}return f.useEffect(()=>()=>{r(n.current),n.current=null},[]),[o,r]},Rd=yn()?I.useLayoutEffect:I.useEffect,$v=()=>{const e=f.useRef(null);function n(){qt.cancel(e.current)}function r(o,s=2){n();const l=qt(()=>{s<=1?o({isCanceled:()=>l!==e.current}):r(o,s-1)});e.current=l}return f.useEffect(()=>()=>{n()},[]),[r,n]},Bv=[Nn,eo,to,tl],zv=[Nn,Pd],$d=!1,Dv=!0;function Bd(e){return e===to||e===tl}const Fv=(e,n,r)=>{const[o,s]=Us(Ed),[l,c]=$v();function d(){s(Nn,!0)}const h=n?zv:Bv;return Rd(()=>{if(o!==Ed&&o!==tl){const g=h.indexOf(o),m=h[g+1],v=r(o);v===$d?s(m,!0):m&&l(y=>{function C(){y.isCanceled()||s(m,!0)}v===!0?C():Promise.resolve(v).then(C)})}},[e,o]),f.useEffect(()=>()=>{c()},[]),[d,o]};function Hv(e,n,r,{motionEnter:o=!0,motionAppear:s=!0,motionLeave:l=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:h,onEnterPrepare:g,onLeavePrepare:m,onAppearStart:v,onEnterStart:y,onLeaveStart:C,onAppearActive:_,onEnterActive:x,onLeaveActive:b,onAppearEnd:E,onEnterEnd:S,onLeaveEnd:P,onVisibleChanged:T}){const[M,N]=Us(),[k,R]=Lv(Jn),[B,z]=Us(null),$=k(),j=I.useRef(!1),V=I.useRef(null);function W(){return r()}const F=I.useRef(!1);function X(){R(Jn),z(null,!0)}const J=ht(Y=>{const se=k();if(se===Jn)return;const fe=W();if(Y&&!Y.deadline&&Y.target!==fe)return;const xe=F.current;let Se;se===ji&&xe?Se=E==null?void 0:E(fe,Y):se===Zi&&xe?Se=S==null?void 0:S(fe,Y):se===Ui&&xe&&(Se=P==null?void 0:P(fe,Y)),xe&&Se!==!1&&X()}),[Z]=Rv(J),le=Y=>{switch(Y){case ji:return{[Nn]:h,[eo]:v,[to]:_};case Zi:return{[Nn]:g,[eo]:y,[to]:x};case Ui:return{[Nn]:m,[eo]:C,[to]:b};default:return{}}},G=f.useMemo(()=>le($),[$]),[ie,ne]=Fv($,!e,Y=>{var se;if(Y===Nn){const fe=G[Nn];return fe?fe(W()):$d}return ne in G&&z(((se=G[ne])==null?void 0:se.call(G,W(),null))||null),ne===to&&$!==Jn&&(Z(W()),c>0&&(clearTimeout(V.current),V.current=setTimeout(()=>{J({deadline:!0})},c))),ne===Pd&&X(),Dv}),de=Bd(ne);F.current=de;const oe=I.useRef(null);Rd(()=>{if(j.current&&oe.current===n)return;N(n);const Y=j.current;j.current=!0;let se;!Y&&n&&s&&(se=ji),Y&&n&&o&&(se=Zi),(Y&&!n&&l||!Y&&d&&!n&&l)&&(se=Ui);const fe=le(se);se&&(e||fe[Nn])?(R(se),ie()):R(Jn),oe.current=n},[n]),I.useEffect(()=>{($===ji&&!s||$===Zi&&!o||$===Ui&&!l)&&R(Jn)},[s,o,l]),I.useEffect(()=>()=>{j.current=!1,clearTimeout(V.current)},[]);const ee=f.useRef(!1);I.useEffect(()=>{M&&(ee.current=!0),M!==void 0&&$===Jn&&((ee.current||M)&&(T==null||T(M)),ee.current=!0)},[M,$]);let K=B;return G[Nn]&&ne===eo&&(K={transition:"none",...K}),[k,ne,K,M??n]}function Vv(e){let n=e;typeof e=="object"&&({transitionSupport:n}=e);function r(s,l){return!!(s.motionName&&n&&l!==!1)}const o=f.forwardRef((s,l)=>{const{visible:c=!0,removeOnLeave:d=!0,forceRender:h,children:g,motionName:m,leavedClassName:v,eventProps:y}=s,{motion:C}=f.useContext(Sd),_=r(s,C),x=I.useRef();function b(){return Js(x.current)}const[E,S,P,T]=Hv(_,c,b,s),M=E(),N=f.useRef(T);T&&(N.current=!0);const k=f.useMemo(()=>{const z={};return Object.defineProperties(z,{nativeElement:{enumerable:!0,get:b},inMotion:{enumerable:!0,get:()=>()=>E()!==Jn},enableMotion:{enumerable:!0,get:()=>()=>_}}),z},[]);f.useImperativeHandle(l,()=>k,[]);let R;const B={...y,visible:c};if(!g)R=null;else if(M===Jn)T?R=g({...B},x):!d&&N.current&&v?R=g({...B,className:v},x):h||!d&&!v?R=g({...B,style:{display:"none"}},x):R=null;else{let z;S===Nn?z="prepare":Bd(S)?z="active":S===eo&&(z="start");const $=Nd(m,`${M}-${z}`);R=g({...B,className:ce(Nd(m,M),{[$]:$&&z,[m]:typeof m=="string"}),style:P},x)}return f.isValidElement(R)&&Pr(R)&&(dr(R)||(R=f.cloneElement(R,{ref:x}))),R});return o.displayName="CSSMotion",o}const Nr=Vv(Nv),Wv={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var jv={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qo(e)}function zd(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function Dd(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?zd(Object(r),!0).forEach(function(o){Zv(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zd(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Zv(e,n,r){return n=Uv(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Uv(e){var n=qv(e,"string");return Qo(n)=="symbol"?n:String(n)}function qv(e,n){if(Qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,n||"default");if(Qo(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Gv=Dd(Dd({},jv),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Fd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Hd={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Gv},timePickerLocale:{...Fd}},xn="${label} is not a valid ${type}",Gi={locale:"en",Pagination:Wv,DatePicker:Hd,TimePicker:Fd,Calendar:Hd,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:xn,method:xn,array:xn,object:xn,number:xn,date:xn,boolean:xn,integer:xn,float:xn,regexp:xn,email:xn,url:xn,hex:xn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};({...Gi.Modal});let Ki=[];const Vd=()=>Ki.reduce((e,n)=>({...e,...n}),Gi.Modal);function Kv(e){if(e){const n={...e};return Ki.push(n),Vd(),()=>{Ki=Ki.filter(r=>r!==n),Vd()}}({...Gi.Modal})}const Wd=I.createContext(void 0),jd="internalMark",Zd=e=>{const{locale:n={},children:r,_ANT_MARK__:o}=e;if(process.env.NODE_ENV!=="production"){const l=hn("LocaleProvider");process.env.NODE_ENV!=="production"&&l(o===jd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}f.useEffect(()=>Kv(n==null?void 0:n.Modal),[n]);const s=f.useMemo(()=>({...n,exist:!0}),[n]);return f.createElement(Wd.Provider,{value:s},r)};process.env.NODE_ENV!=="production"&&(Zd.displayName="LocaleProvider");const Qv=Zd,no=e=>e!=null,Ud=(e,...n)=>{const r=e||{};return n.filter(Boolean).reduce((o,s)=>(Object.keys(s||{}).forEach(l=>{const c=r[l],d=s[l];if(c&&typeof c=="object")if(d&&typeof d=="object")o[l]=Ud(c,o[l],d);else{const{_default:h}=c;h&&(o[l]=o[l]||{},o[l][h]=ce(o[l][h],d))}else o[l]=ce(o[l],d)}),o),{})},Yv=(e,...n)=>f.useMemo(()=>Ud.apply(void 0,[e].concat(n)),[e].concat(n)),Xv=(...e)=>e.filter(Boolean).reduce((n,r={})=>(Object.keys(r).forEach(o=>{n[o]={...n[o],...r[o]}}),n),{}),Jv=(...e)=>f.useMemo(()=>Xv.apply(void 0,e),[].concat(e)),nl=(e,n)=>{const r={...e};return Object.keys(n).forEach(o=>{if(o!=="_default"){const s=n[o],l=r[o]||{};r[o]=s?nl(l,s):l}}),r},qd=(e,n)=>typeof e=="function"?e(n):e,Rr=(e,n,r,o)=>{const s=e.map(h=>h?qd(h,r):void 0),l=n.map(h=>h?qd(h,r):void 0),c=Yv.apply(void 0,[o].concat(bn(s))),d=Jv.apply(void 0,bn(l));return f.useMemo(()=>o?[nl(c,o),nl(d,o)]:[c,d],[c,d,o])},Gd=e=>e==="horizontal"||e==="vertical",Kd=(e,n,r)=>I.useMemo(()=>{const o=Gd(e);let s;return o?s=e:typeof n=="boolean"?s=n?"vertical":"horizontal":s=Gd(r)?r:"horizontal",[s,s==="vertical"]},[r,e,n]),Qd=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qd.displayName="zIndexContext");const rl=Qd,er=100,ey=er*10+er,Yd={Modal:er,Drawer:er,Popover:er,Popconfirm:er,Tooltip:er,Tour:er,FloatButton:er},ty={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},ny=e=>e in Yd,ol=(e,n)=>{const[,r]=mr(),o=I.useContext(rl),s=ny(e);let l;if(n!==void 0)l=[n,n];else{let c=o??0;s?c+=(o?0:r.zIndexPopupBase)+Yd[e]:c+=ty[e],l=[o===void 0?n:c,c]}if(process.env.NODE_ENV!=="production"){const c=hn(e),d=r.zIndexPopupBase+ey,h=l[0]||0;process.env.NODE_ENV!=="production"&&c(n!==void 0||h<=d,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return l},ro=e=>`${e}-css-var`,ry=I.createContext(void 0),Xd=f.createContext(null);let Jd=!1;function oy(e){return typeof e=="boolean"&&(Jd=e),Jd}const ef=[];function iy(e,n){const[r]=f.useState(()=>{if(!yn())return null;const m=document.createElement("div");return process.env.NODE_ENV!=="production"&&n&&m.setAttribute("data-debug",n),m}),o=f.useRef(!1),s=f.useContext(Xd),[l,c]=f.useState(ef),d=s||(o.current?void 0:m=>{c(v=>[m,...v])});function h(){r.parentElement||document.body.appendChild(r),o.current=!0}function g(){var m;(m=r.parentElement)==null||m.removeChild(r),o.current=!1}return an(()=>(e?s?s(h):h():g(),g),[e]),an(()=>{l.length&&(l.forEach(m=>m()),c(ef))},[l]),[r,d]}function sy(e){const n=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,r=document.createElement("div");r.id=n;const o=r.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";let s,l;if(e){const h=getComputedStyle(e);o.scrollbarColor=h.scrollbarColor,o.scrollbarWidth=h.scrollbarWidth;const g=getComputedStyle(e,"::-webkit-scrollbar"),m=parseInt(g.width,10),v=parseInt(g.height,10);try{const y=m?`width: ${g.width};`:"",C=v?`height: ${g.height};`:"";fr(`
148
+ }`),A.useEffect(()=>{const l=e.current,c=Fi(l);fr(s,"@ant-design-icons",{prepend:!o,csp:n,attachTo:c})},[])},Go={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ev({primaryColor:e,secondaryColor:n}){Go.primaryColor=e,Go.secondaryColor=n||_d(e),Go.calculated=!!n}function Pv(){return{...Go}}const Hi=e=>{const{icon:n,className:r,onClick:o,style:s,primaryColor:l,secondaryColor:c,...d}=e,h=f.useRef(null);let g=Go;if(l&&(g={primaryColor:l,secondaryColor:c||_d(l)}),Sv(h),wv(yd(n),`icon should be icon definiton, but got ${n}`),!yd(n))return null;let m=n;return m&&typeof m.icon=="function"&&(m={...m,icon:m.icon(g.primaryColor,g.secondaryColor)}),Ya(m.icon,`svg-${m.name}`,{className:r,onClick:o,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...d,ref:h})};Hi.displayName="IconReact",Hi.getTwoToneColors=Pv,Hi.setTwoToneColors=Ev;const Xa=Hi;function wd(e){const[n,r]=xd(e);return Xa.setTwoToneColors({primaryColor:n,secondaryColor:r})}function Iv(){const e=Xa.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ja.apply(this,arguments)}wd(Di.primary);const Vi=f.forwardRef((e,n)=>{const{className:r,icon:o,spin:s,rotate:l,tabIndex:c,onClick:d,twoToneColor:h,...g}=e,{prefixCls:m="anticon",rootClassName:v}=f.useContext(Qa),y=ce(v,m,{[`${m}-${o.name}`]:!!o.name,[`${m}-spin`]:!!s||o.name==="loading"},r);let C=c;C===void 0&&d&&(C=-1);const _=l?{msTransform:`rotate(${l}deg)`,transform:`rotate(${l}deg)`}:void 0,[x,b]=xd(h);return f.createElement("span",Ja({role:"img","aria-label":o.name},g,{ref:n,tabIndex:C,onClick:d,className:y}),f.createElement(Xa,{icon:o,primaryColor:x,secondaryColor:b,style:_}))});Vi.getTwoToneColor=Iv,Vi.setTwoToneColor=wd,process.env.NODE_ENV!=="production"&&(Vi.displayName="AntdIcon");const Ko=Vi,Cd=f.createContext({});function Tv({children:e,...n}){return f.createElement(Cd.Provider,{value:n},e)}function Av(e){const[,n]=f.useReducer(l=>l+1,0),r=f.useRef(e),o=ft(()=>r.current),s=ft(l=>{r.current=typeof l=="function"?l(r.current):l,n()});return[o,s]}const er="none",Wi="appear",ji="enter",Zi="leave",Sd="none",Rn="prepare",Jr="start",eo="active",el="end",Ed="prepared";function Pd(e,n){const r={};return r[e.toLowerCase()]=n.toLowerCase(),r[`Webkit${e}`]=`webkit${n}`,r[`Moz${e}`]=`moz${n}`,r[`ms${e}`]=`MS${n}`,r[`O${e}`]=`o${n.toLowerCase()}`,r}function Mv(e,n){const r={animationend:Pd("Animation","AnimationEnd"),transitionend:Pd("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete r.animationend.animation,"TransitionEvent"in n||delete r.transitionend.transition),r}const Lv=Mv(yn(),typeof window<"u"?window:{});let Id={};yn()&&({style:Id}=document.createElement("div"));const Ui={};function Td(e){if(Ui[e])return Ui[e];const n=Lv[e];if(n){const r=Object.keys(n),o=r.length;for(let s=0;s<o;s+=1){const l=r[s];if(Object.prototype.hasOwnProperty.call(n,l)&&l in Id)return Ui[e]=n[l],Ui[e]}}return""}const Ad=Td("animationend"),Md=Td("transitionend"),Ov=!!(Ad&&Md),Ld=Ad||"animationend",Od=Md||"transitionend";function Nd(e,n){if(!e)return null;if(typeof e=="object"){const r=n.replace(/-\w/g,o=>o[1].toUpperCase());return e[r]}return`${e}-${n}`}const Nv=e=>{const n=A.useRef();function r(s){s&&(s.removeEventListener(Od,e),s.removeEventListener(Ld,e))}function o(s){n.current&&n.current!==s&&r(n.current),s&&s!==n.current&&(s.addEventListener(Od,e),s.addEventListener(Ld,e),n.current=s)}return f.useEffect(()=>()=>{r(n.current),n.current=null},[]),[o,r]},kd=yn()?A.useLayoutEffect:A.useEffect,kv=()=>{const e=f.useRef(null);function n(){Ut.cancel(e.current)}function r(o,s=2){n();const l=Ut(()=>{s<=1?o({isCanceled:()=>l!==e.current}):r(o,s-1)});e.current=l}return f.useEffect(()=>()=>{n()},[]),[r,n]},Rv=[Rn,Jr,eo,el],$v=[Rn,Ed],Rd=!1,Bv=!0;function $d(e){return e===eo||e===el}const zv=(e,n,r)=>{const[o,s]=Zs(Sd),[l,c]=kv();function d(){s(Rn,!0)}const h=n?$v:Rv;return kd(()=>{if(o!==Sd&&o!==el){const g=h.indexOf(o),m=h[g+1],v=r(o);v===Rd?s(m,!0):m&&l(y=>{function C(){y.isCanceled()||s(m,!0)}v===!0?C():Promise.resolve(v).then(C)})}},[e,o]),f.useEffect(()=>()=>{c()},[]),[d,o]};function Dv(e,n,r,{motionEnter:o=!0,motionAppear:s=!0,motionLeave:l=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:h,onEnterPrepare:g,onLeavePrepare:m,onAppearStart:v,onEnterStart:y,onLeaveStart:C,onAppearActive:_,onEnterActive:x,onLeaveActive:b,onAppearEnd:E,onEnterEnd:S,onLeaveEnd:P,onVisibleChanged:I}){const[M,k]=Zs(),[N,R]=Av(er),[B,z]=Zs(null),$=N(),j=A.useRef(!1),V=A.useRef(null);function W(){return r()}const F=A.useRef(!1);function X(){R(er),z(null,!0)}const J=ft(Y=>{const se=N();if(se===er)return;const fe=W();if(Y&&!Y.deadline&&Y.target!==fe)return;const xe=F.current;let Se;se===Wi&&xe?Se=E==null?void 0:E(fe,Y):se===ji&&xe?Se=S==null?void 0:S(fe,Y):se===Zi&&xe&&(Se=P==null?void 0:P(fe,Y)),xe&&Se!==!1&&X()}),[Z]=Nv(J),le=Y=>{switch(Y){case Wi:return{[Rn]:h,[Jr]:v,[eo]:_};case ji:return{[Rn]:g,[Jr]:y,[eo]:x};case Zi:return{[Rn]:m,[Jr]:C,[eo]:b};default:return{}}},G=f.useMemo(()=>le($),[$]),[ie,ne]=zv($,!e,Y=>{var se;if(Y===Rn){const fe=G[Rn];return fe?fe(W()):Rd}return ne in G&&z(((se=G[ne])==null?void 0:se.call(G,W(),null))||null),ne===eo&&$!==er&&(Z(W()),c>0&&(clearTimeout(V.current),V.current=setTimeout(()=>{J({deadline:!0})},c))),ne===Ed&&X(),Bv}),de=$d(ne);F.current=de;const oe=A.useRef(null);kd(()=>{if(j.current&&oe.current===n)return;k(n);const Y=j.current;j.current=!0;let se;!Y&&n&&s&&(se=Wi),Y&&n&&o&&(se=ji),(Y&&!n&&l||!Y&&d&&!n&&l)&&(se=Zi);const fe=le(se);se&&(e||fe[Rn])?(R(se),ie()):R(er),oe.current=n},[n]),A.useEffect(()=>{($===Wi&&!s||$===ji&&!o||$===Zi&&!l)&&R(er)},[s,o,l]),A.useEffect(()=>()=>{j.current=!1,clearTimeout(V.current)},[]);const ee=f.useRef(!1);A.useEffect(()=>{M&&(ee.current=!0),M!==void 0&&$===er&&((ee.current||M)&&(I==null||I(M)),ee.current=!0)},[M,$]);let K=B;return G[Rn]&&ne===Jr&&(K={transition:"none",...K}),[N,ne,K,M??n]}function Fv(e){let n=e;typeof e=="object"&&({transitionSupport:n}=e);function r(s,l){return!!(s.motionName&&n&&l!==!1)}const o=f.forwardRef((s,l)=>{const{visible:c=!0,removeOnLeave:d=!0,forceRender:h,children:g,motionName:m,leavedClassName:v,eventProps:y}=s,{motion:C}=f.useContext(Cd),_=r(s,C),x=A.useRef();function b(){return Xs(x.current)}const[E,S,P,I]=Dv(_,c,b,s),M=E(),k=f.useRef(I);I&&(k.current=!0);const N=f.useMemo(()=>{const z={};return Object.defineProperties(z,{nativeElement:{enumerable:!0,get:b},inMotion:{enumerable:!0,get:()=>()=>E()!==er},enableMotion:{enumerable:!0,get:()=>()=>_}}),z},[]);f.useImperativeHandle(l,()=>N,[]);let R;const B={...y,visible:c};if(!g)R=null;else if(M===er)I?R=g({...B},x):!d&&k.current&&v?R=g({...B,className:v},x):h||!d&&!v?R=g({...B,style:{display:"none"}},x):R=null;else{let z;S===Rn?z="prepare":$d(S)?z="active":S===Jr&&(z="start");const $=Nd(m,`${M}-${z}`);R=g({...B,className:ce(Nd(m,M),{[$]:$&&z,[m]:typeof m=="string"}),style:P},x)}return f.isValidElement(R)&&Er(R)&&(dr(R)||(R=f.cloneElement(R,{ref:x}))),R});return o.displayName="CSSMotion",o}const Nr=Fv(Ov),Hv={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var Vv={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qo(e)}function Bd(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function zd(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?Bd(Object(r),!0).forEach(function(o){Wv(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Wv(e,n,r){return n=jv(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function jv(e){var n=Zv(e,"string");return Qo(n)=="symbol"?n:String(n)}function Zv(e,n){if(Qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,n||"default");if(Qo(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Uv=zd(zd({},Vv),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Dd={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Fd={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Uv},timePickerLocale:{...Dd}},xn="${label} is not a valid ${type}",qi={locale:"en",Pagination:Hv,DatePicker:Fd,TimePicker:Dd,Calendar:Fd,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:xn,method:xn,array:xn,object:xn,number:xn,date:xn,boolean:xn,integer:xn,float:xn,regexp:xn,email:xn,url:xn,hex:xn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};({...qi.Modal});let Gi=[];const Hd=()=>Gi.reduce((e,n)=>({...e,...n}),qi.Modal);function qv(e){if(e){const n={...e};return Gi.push(n),Hd(),()=>{Gi=Gi.filter(r=>r!==n),Hd()}}({...qi.Modal})}const Vd=A.createContext(void 0),Wd="internalMark",jd=e=>{const{locale:n={},children:r,_ANT_MARK__:o}=e;if(process.env.NODE_ENV!=="production"){const l=hn("LocaleProvider");process.env.NODE_ENV!=="production"&&l(o===Wd,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}f.useEffect(()=>qv(n==null?void 0:n.Modal),[n]);const s=f.useMemo(()=>({...n,exist:!0}),[n]);return f.createElement(Vd.Provider,{value:s},r)};process.env.NODE_ENV!=="production"&&(jd.displayName="LocaleProvider");const Gv=jd,to=e=>e!=null,Zd=(e,...n)=>{const r=e||{};return n.filter(Boolean).reduce((o,s)=>(Object.keys(s||{}).forEach(l=>{const c=r[l],d=s[l];if(c&&typeof c=="object")if(d&&typeof d=="object")o[l]=Zd(c,o[l],d);else{const{_default:h}=c;h&&(o[l]=o[l]||{},o[l][h]=ce(o[l][h],d))}else o[l]=ce(o[l],d)}),o),{})},Kv=(e,...n)=>f.useMemo(()=>Zd.apply(void 0,[e].concat(n)),[e].concat(n)),Qv=(...e)=>e.filter(Boolean).reduce((n,r={})=>(Object.keys(r).forEach(o=>{n[o]={...n[o],...r[o]}}),n),{}),Yv=(...e)=>f.useMemo(()=>Qv.apply(void 0,e),[].concat(e)),tl=(e,n)=>{const r={...e};return Object.keys(n).forEach(o=>{if(o!=="_default"){const s=n[o],l=r[o]||{};r[o]=s?tl(l,s):l}}),r},Ud=(e,n)=>typeof e=="function"?e(n):e,kr=(e,n,r,o)=>{const s=e.map(h=>h?Ud(h,r):void 0),l=n.map(h=>h?Ud(h,r):void 0),c=Kv.apply(void 0,[o].concat(bn(s))),d=Yv.apply(void 0,bn(l));return f.useMemo(()=>o?[tl(c,o),tl(d,o)]:[c,d],[c,d,o])},qd=e=>e==="horizontal"||e==="vertical",Gd=(e,n,r)=>A.useMemo(()=>{const o=qd(e);let s;return o?s=e:typeof n=="boolean"?s=n?"vertical":"horizontal":s=qd(r)?r:"horizontal",[s,s==="vertical"]},[r,e,n]),Kd=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(Kd.displayName="zIndexContext");const nl=Kd,tr=100,Xv=tr*10+tr,Qd={Modal:tr,Drawer:tr,Popover:tr,Popconfirm:tr,Tooltip:tr,Tour:tr,FloatButton:tr},Jv={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},ey=e=>e in Qd,rl=(e,n)=>{const[,r]=mr(),o=A.useContext(nl),s=ey(e);let l;if(n!==void 0)l=[n,n];else{let c=o??0;s?c+=(o?0:r.zIndexPopupBase)+Qd[e]:c+=Jv[e],l=[o===void 0?n:c,c]}if(process.env.NODE_ENV!=="production"){const c=hn(e),d=r.zIndexPopupBase+Xv,h=l[0]||0;process.env.NODE_ENV!=="production"&&c(n!==void 0||h<=d,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return l},no=e=>`${e}-css-var`,ty=A.createContext(void 0),Yd=f.createContext(null);let Xd=!1;function ny(e){return typeof e=="boolean"&&(Xd=e),Xd}const Jd=[];function ry(e,n){const[r]=f.useState(()=>{if(!yn())return null;const m=document.createElement("div");return process.env.NODE_ENV!=="production"&&n&&m.setAttribute("data-debug",n),m}),o=f.useRef(!1),s=f.useContext(Yd),[l,c]=f.useState(Jd),d=s||(o.current?void 0:m=>{c(v=>[m,...v])});function h(){r.parentElement||document.body.appendChild(r),o.current=!0}function g(){var m;(m=r.parentElement)==null||m.removeChild(r),o.current=!1}return sn(()=>(e?s?s(h):h():g(),g),[e]),sn(()=>{l.length&&(l.forEach(m=>m()),c(Jd))},[l]),[r,d]}function oy(e){const n=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,r=document.createElement("div");r.id=n;const o=r.style;o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll";let s,l;if(e){const h=getComputedStyle(e);o.scrollbarColor=h.scrollbarColor,o.scrollbarWidth=h.scrollbarWidth;const g=getComputedStyle(e,"::-webkit-scrollbar"),m=parseInt(g.width,10),v=parseInt(g.height,10);try{const y=m?`width: ${g.width};`:"",C=v?`height: ${g.height};`:"";fr(`
149
149
  #${n}::-webkit-scrollbar {
150
150
  ${y}
151
151
  ${C}
152
- }`,n)}catch(y){console.error(y),s=m,l=v}}document.body.appendChild(r);const c=e&&s&&!isNaN(s)?s:r.offsetWidth-r.clientWidth,d=e&&l&&!isNaN(l)?l:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Ro(n),{width:c,height:d}}function ay(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:sy(e)}function ly(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const cy=`rc-util-locker-${Date.now()}`;let tf=0;function uy(e){const n=!!e,[r]=f.useState(()=>(tf+=1,`${cy}_${tf}`));an(()=>{if(n){const o=ay(document.body).width,s=ly();fr(`
152
+ }`,n)}catch(y){console.error(y),s=m,l=v}}document.body.appendChild(r);const c=e&&s&&!isNaN(s)?s:r.offsetWidth-r.clientWidth,d=e&&l&&!isNaN(l)?l:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Ro(n),{width:c,height:d}}function iy(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:oy(e)}function sy(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const ay=`rc-util-locker-${Date.now()}`;let ef=0;function ly(e){const n=!!e,[r]=f.useState(()=>(ef+=1,`${ay}_${ef}`));sn(()=>{if(n){const o=iy(document.body).width,s=sy();fr(`
153
153
  html body {
154
154
  overflow-y: hidden;
155
155
  ${s?`width: calc(100% - ${o}px);`:""}
156
- }`,r)}else Ro(r);return()=>{Ro(r)}},[n,r])}function dy(){return{...f}.useId}let nf=0;const rf=dy(),Qi=rf?function(n){const r=rf();return n||(process.env.NODE_ENV==="test"?"test-id":r)}:function(n){const[r,o]=f.useState("ssr-id");return f.useEffect(()=>{const s=nf;nf+=1,o(`rc_unique_${s}`)},[]),n||(process.env.NODE_ENV==="test"?"test-id":r)};let vr=[];const fy=200;let il=0;process.env.NODE_ENV;const of=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-il<fy)return;const r=vr.length;for(let o=r-1;o>=0;o-=1)vr[o].onEsc({top:o===r-1,event:e})}},sf=()=>{il=Date.now()};function hy(){window.addEventListener("keydown",of),window.addEventListener("compositionend",sf)}function py(){vr.length===0&&(window.removeEventListener("keydown",of),window.removeEventListener("compositionend",sf))}function my(e,n){const r=Qi(),o=ht(n),s=()=>{vr.find(c=>c.id===r)||vr.push({id:r,onEsc:o})},l=()=>{vr=vr.filter(c=>c.id!==r)};I.useMemo(()=>{e?s():e||l()},[e]),I.useEffect(()=>{if(e)return s(),hy(),()=>{l(),py()}},[e])}const af=e=>e===!1?!1:!yn()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Yi=f.forwardRef((e,n)=>{const{open:r,autoLock:o,getContainer:s,debug:l,autoDestroy:c=!0,children:d,onEsc:h}=e,[g,m]=f.useState(r),v=g||r;process.env.NODE_ENV!=="production"&&ct(yn()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),f.useEffect(()=>{(c||r)&&m(r)},[r,c]);const[y,C]=f.useState(()=>af(s));f.useEffect(()=>{const M=af(s);C(()=>M??null)});const[_,x]=iy(v&&!y,l),b=y??_;uy(o&&r&&yn()&&(b===_||b===document.body)),my(r,h);let E=null;d&&Pr(d)&&n&&(E=dr(d));const S=jr(E,n);if(!v||!yn()||y===void 0)return null;const P=b===!1||oy();let T=d;return n&&(T=f.cloneElement(d,{ref:S})),f.createElement(Xd.Provider,{value:x},P?T:en.createPortal(T,b))});process.env.NODE_ENV!=="production"&&(Yi.displayName="Portal");function gy(e){const{prefixCls:n,align:r,arrow:o,arrowPos:s}=e,{className:l,content:c,style:d}=o||{},{x:h=0,y:g=0}=s,m=f.useRef(null);if(!r||!r.points)return null;const v={position:"absolute"};if(r.autoArrow!==!1){const y=r.points[0],C=r.points[1],_=y[0],x=y[1],b=C[0],E=C[1];_===b||!["t","b"].includes(_)?v.top=g:_==="t"?v.top=0:v.bottom=0,x===E||!["l","r"].includes(x)?v.left=h:x==="l"?v.left=0:v.right=0}return f.createElement("div",{ref:m,className:ce(`${n}-arrow`,l),style:{...v,...d}},c)}function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},sl.apply(this,arguments)}function vy(e){const{prefixCls:n,open:r,zIndex:o,mask:s,motion:l,mobile:c}=e;return s?f.createElement(Nr,sl({},l,{motionAppear:!0,visible:r,removeOnLeave:!0}),({className:d})=>f.createElement("div",{style:{zIndex:o},className:ce(`${n}-mask`,c&&`${n}-mobile-mask`,d)})):null}const lf=f.memo(({children:e})=>e,(e,n)=>n.cache);process.env.NODE_ENV!=="production"&&(lf.displayName="PopupContent");function cf(e,n,r,o,s,l,c,d){var m;const h="auto",g=e?{}:{left:"-1000vw",top:"-1000vh",right:h,bottom:h};if(!e&&(n||!r)){const{points:v}=o,y=o.dynamicInset||((m=o._experimental)==null?void 0:m.dynamicInset),C=y&&v[0][1]==="r",_=y&&v[0][0]==="b";C?(g.right=s,g.left=h):(g.left=c,g.right=h),_?(g.bottom=l,g.top=h):(g.top=d,g.bottom=h)}return g}function al(){return al=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},al.apply(this,arguments)}const ll=f.forwardRef((e,n)=>{const{onEsc:r,popup:o,className:s,prefixCls:l,style:c,target:d,onVisibleChanged:h,open:g,keepDom:m,fresh:v,onClick:y,mask:C,arrow:_,arrowPos:x,align:b,motion:E,maskMotion:S,mobile:P,forceRender:T,getPopupContainer:M,autoDestroy:N,portal:k,children:R,zIndex:B,onMouseEnter:z,onMouseLeave:$,onPointerEnter:j,onPointerDownCapture:V,ready:W,offsetX:F,offsetY:X,offsetR:J,offsetB:Z,onAlign:le,onPrepare:G,onResize:ie,stretch:ne,targetWidth:de,targetHeight:oe}=e,ee=typeof o=="function"?o():o,K=g||m,Y=!!P,[se,fe,xe]=f.useMemo(()=>P?[P.mask,P.maskMotion,P.motion]:[C,S,E],[P,C,S,E]),Se=(M==null?void 0:M.length)>0,[Te,Ce]=f.useState(!M||!Se);an(()=>{!Te&&Se&&d&&Ce(!0)},[Te,Se,d]);const te=ht((Ae,Ze)=>{ie==null||ie(Ae,Ze),le()}),we=cf(Y,W,g,b,J,Z,F,X);if(!Te)return null;const Pe={};return ne&&(ne.includes("height")&&oe?Pe.height=oe:ne.includes("minHeight")&&oe&&(Pe.minHeight=oe),ne.includes("width")&&de?Pe.width=de:ne.includes("minWidth")&&de&&(Pe.minWidth=de)),g||(Pe.pointerEvents="none"),f.createElement(k,{open:T||K,getContainer:M&&(()=>M(d)),autoDestroy:N,onEsc:r},f.createElement(vy,{prefixCls:l,open:g,zIndex:B,mask:se,motion:fe,mobile:Y}),f.createElement(ko,{onResize:te,disabled:!g},Ae=>f.createElement(Nr,al({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:T,leavedClassName:`${l}-hidden`},xe,{onAppearPrepare:G,onEnterPrepare:G,visible:g,onVisibleChanged:Ze=>{var Be;(Be=E==null?void 0:E.onVisibleChanged)==null||Be.call(E,Ze),h(Ze)}}),({className:Ze,style:Be},nt)=>{const Ge=ce(l,Ze,s,{[`${l}-mobile`]:Y});return f.createElement("div",{ref:Er(Ae,n,nt),className:Ge,style:{"--arrow-x":`${x.x||0}px`,"--arrow-y":`${x.y||0}px`,...we,...Pe,...Be,boxSizing:"border-box",zIndex:B,...c},onMouseEnter:z,onMouseLeave:$,onPointerEnter:j,onClick:y,onPointerDownCapture:V},_&&f.createElement(gy,{prefixCls:l,arrow:_,arrowPos:x,align:b}),f.createElement(lf,{cache:!g&&!v},ee))})),R)});process.env.NODE_ENV!=="production"&&(ll.displayName="Popup");const Xi=f.createContext(null),uf=f.createContext(null);function df(e){return e?Array.isArray(e)?e:[e]:[]}function yy(e,n,r){return f.useMemo(()=>{const o=df(n??e),s=df(r??e),l=new Set(o),c=new Set(s);return l.has("hover")&&!l.has("click")&&l.add("touch"),c.has("hover")&&!c.has("click")&&c.add("touch"),[l,c]},[e,n,r])}const cl=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:n,height:r}=e.getBBox();if(n||r)return!0}if(e.getBoundingClientRect){const{width:n,height:r}=e.getBoundingClientRect();if(n||r)return!0}}return!1};function by(e=[],n=[],r){const o=(s,l)=>s[l]||"";return r?o(e,0)===o(n,0):o(e,0)===o(n,0)&&o(e,1)===o(n,1)}function ff(e,n,r,o){var c;const{points:s}=r,l=Object.keys(e);for(let d=0;d<l.length;d+=1){const h=l[d];if(by((c=e[h])==null?void 0:c.points,s,o))return`${n}-placement-${h}`}return""}function Yo(e){return e.ownerDocument.defaultView}function ul(e){const n=[];let r=e==null?void 0:e.parentElement;const o=["hidden","scroll","clip","auto"];for(;r;){const{overflowX:s,overflowY:l,overflow:c}=Yo(r).getComputedStyle(r);[s,l,c].some(d=>o.includes(d))&&n.push(r),r=r.parentElement}return n}function Xo(e,n=1){return Number.isNaN(e)?n:e}function Jo(e){return Xo(parseFloat(e),0)}function hf(e,n){const r={...e};return(n||[]).forEach(o=>{if(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)return;const{overflow:s,overflowClipMargin:l,borderTopWidth:c,borderBottomWidth:d,borderLeftWidth:h,borderRightWidth:g}=Yo(o).getComputedStyle(o),m=o.getBoundingClientRect(),{offsetHeight:v,clientHeight:y,offsetWidth:C,clientWidth:_}=o,x=Jo(c),b=Jo(d),E=Jo(h),S=Jo(g),P=Xo(Math.round(m.width/C*1e3)/1e3),T=Xo(Math.round(m.height/v*1e3)/1e3),M=(C-_-E-S)*P,N=(v-y-x-b)*T,k=x*T,R=b*T,B=E*P,z=S*P;let $=0,j=0;if(s==="clip"){const J=Jo(l);$=J*P,j=J*T}const V=m.x+B-$,W=m.y+k-j,F=V+m.width+2*$-B-z-M,X=W+m.height+2*j-k-R-N;r.left=Math.max(r.left,V),r.top=Math.max(r.top,W),r.right=Math.min(r.right,F),r.bottom=Math.min(r.bottom,X)}),r}function pf(e,n=0){const r=`${n}`,o=r.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(r)}function mf(e,n){const[r,o]=n||[];return[pf(e.width,r),pf(e.height,o)]}function gf(e=""){return[e[0],e[1]]}function oo(e,n){const r=n[0],o=n[1];let s,l;return r==="t"?l=e.y:r==="b"?l=e.y+e.height:l=e.y+e.height/2,o==="l"?s=e.x:o==="r"?s=e.x+e.width:s=e.x+e.width/2,{x:s,y:l}}function yr(e,n){const r={t:"b",b:"t",l:"r",r:"l"},o=[...e];return o[n]=r[e[n]]||"c",o}function vf(e){return e.join("")}function yf(e,n,r,o,s,l,c,d){const[h,g]=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:s[o]||{}}),m=f.useRef(0),v=f.useMemo(()=>!n||d?[]:ul(n),[n]),y=f.useRef({});e||(()=>{y.current={}})();const _=ht(()=>{var E,S;if(n&&r&&e&&!d){let Ve=function(Me,ke,Ue=Pe){const Tn=F.x+Me,gn=F.y+ke,Bn=Tn+ee,Co=gn+oe,He=Math.max(Tn,Ue.left),St=Math.max(gn,Ue.top),Fr=Math.min(Bn,Ue.right),me=Math.min(Co,Ue.bottom);return Math.max(0,(Fr-He)*(me-St))},wt=function(){un=F.y+Qe,Wt=un+oe,tn=F.x+ge,Ot=tn+ee};const P=n,T=P.ownerDocument,M=Yo(P),{position:N}=M.getComputedStyle(P),k=P.style.left,R=P.style.top,B=P.style.right,z=P.style.bottom,$=P.style.overflow,j={...s[o],...l},V=T.createElement("div");(E=P.parentElement)==null||E.appendChild(V),V.style.left=`${P.offsetLeft}px`,V.style.top=`${P.offsetTop}px`,V.style.position=N,V.style.height=`${P.offsetHeight}px`,V.style.width=`${P.offsetWidth}px`,P.style.left="0",P.style.top="0",P.style.right="auto",P.style.bottom="auto",P.style.overflow="hidden";let W;if(Array.isArray(r))W={x:r[0],y:r[1],width:0,height:0};else{const Me=r.getBoundingClientRect();Me.x=Me.x??Me.left,Me.y=Me.y??Me.top,W={x:Me.x,y:Me.y,width:Me.width,height:Me.height}}const F=P.getBoundingClientRect(),{height:X,width:J}=M.getComputedStyle(P);F.x=F.x??F.left,F.y=F.y??F.top;const{clientWidth:Z,clientHeight:le,scrollWidth:G,scrollHeight:ie,scrollTop:ne,scrollLeft:de}=T.documentElement,oe=F.height,ee=F.width,K=W.height,Y=W.width,se={left:0,top:0,right:Z,bottom:le},fe={left:-de,top:-ne,right:G-de,bottom:ie-ne};let{htmlRegion:xe}=j;const Se="visible",Te="visibleFirst";xe!=="scroll"&&xe!==Te&&(xe=Se);const Ce=xe===Te,te=hf(fe,v),we=hf(se,v),Pe=xe===Se?we:te,Ae=Ce?we:Pe;P.style.left="auto",P.style.top="auto",P.style.right="0",P.style.bottom="0";const Ze=P.getBoundingClientRect();P.style.left=k,P.style.top=R,P.style.right=B,P.style.bottom=z,P.style.overflow=$,(S=P.parentElement)==null||S.removeChild(V);const Be=Xo(Math.round(ee/parseFloat(J)*1e3)/1e3),nt=Xo(Math.round(oe/parseFloat(X)*1e3)/1e3);if(Be===0||nt===0||Ur(r)&&!cl(r))return;const{offset:Ge,targetOffset:Ke}=j;let[ze,De]=mf(F,Ge);const[ot,Et]=mf(W,Ke);W.x-=ot,W.y-=Et;const[mt,dt]=j.points||[],gt=gf(dt),Oe=gf(mt),he=oo(W,gt),_e=oo(F,Oe),rt={...j};let $e=[Oe,gt],ge=he.x-_e.x+ze,Qe=he.y-_e.y+De;const Ye=Ve(ge,Qe),Nt=Ve(ge,Qe,we),Vt=oo(W,["t","l"]),yt=oo(F,["t","l"]),Pt=oo(W,["b","r"]),Rt=oo(F,["b","r"]),Je=j.overflow||{},{adjustX:on,adjustY:mn,shiftX:sn,shiftY:ln}=Je,cn=Me=>typeof Me=="boolean"?Me:Me>=0;let un,Wt,tn,Ot;wt();const ve=cn(mn),jt=Oe[0]===gt[0];if(ve&&Oe[0]==="t"&&(Wt>Ae.bottom||y.current.bt)){let Me=Qe;jt?Me-=oe-K:Me=Vt.y-Rt.y-De;const ke=Ve(ge,Me),Ue=Ve(ge,Me,we);ke>Ye||ke===Ye&&(!Ce||Ue>=Nt)?(y.current.bt=!0,Qe=Me,De=-De,$e=[yr($e[0],0),yr($e[1],0)]):y.current.bt=!1}if(ve&&Oe[0]==="b"&&(un<Ae.top||y.current.tb)){let Me=Qe;jt?Me+=oe-K:Me=Pt.y-yt.y-De;const ke=Ve(ge,Me),Ue=Ve(ge,Me,we);ke>Ye||ke===Ye&&(!Ce||Ue>=Nt)?(y.current.tb=!0,Qe=Me,De=-De,$e=[yr($e[0],0),yr($e[1],0)]):y.current.tb=!1}const Zt=cn(on),A=Oe[1]===gt[1];if(Zt&&Oe[1]==="l"&&(Ot>Ae.right||y.current.rl)){let Me=ge;A?Me-=ee-Y:Me=Vt.x-Rt.x-ze;const ke=Ve(Me,Qe),Ue=Ve(Me,Qe,we);ke>Ye||ke===Ye&&(!Ce||Ue>=Nt)?(y.current.rl=!0,ge=Me,ze=-ze,$e=[yr($e[0],1),yr($e[1],1)]):y.current.rl=!1}if(Zt&&Oe[1]==="r"&&(tn<Ae.left||y.current.lr)){let Me=ge;A?Me+=ee-Y:Me=Pt.x-yt.x-ze;const ke=Ve(Me,Qe),Ue=Ve(Me,Qe,we);ke>Ye||ke===Ye&&(!Ce||Ue>=Nt)?(y.current.lr=!0,ge=Me,ze=-ze,$e=[yr($e[0],1),yr($e[1],1)]):y.current.lr=!1}rt.points=[vf($e[0]),vf($e[1])],wt();const U=sn===!0?0:sn;typeof U=="number"&&(tn<we.left&&(ge-=tn-we.left-ze,W.x+Y<we.left+U&&(ge+=W.x-we.left+Y-U)),Ot>we.right&&(ge-=Ot-we.right-ze,W.x>we.right-U&&(ge+=W.x-we.right+U)));const re=ln===!0?0:ln;typeof re=="number"&&(un<we.top&&(Qe-=un-we.top-De,W.y+K<we.top+re&&(Qe+=W.y-we.top+K-re)),Wt>we.bottom&&(Qe-=Wt-we.bottom-De,W.y>we.bottom-re&&(Qe+=W.y-we.bottom+re)));const ue=F.x+ge,Ee=ue+ee,ye=F.y+Qe,ae=ye+oe,pe=W.x,We=pe+Y,Fe=W.y,et=Fe+K,vt=Math.max(ue,pe),bt=Math.min(Ee,We),Ct=(vt+bt)/2-ue,Qt=Math.max(ye,Fe),Yt=Math.min(ae,et),or=(Qt+Yt)/2-ye;c==null||c(n,rt);let $n=Ze.right-F.x-(ge+F.width),_r=Ze.bottom-F.y-(Qe+F.height);Be===1&&(ge=Math.floor(ge),$n=Math.floor($n)),nt===1&&(Qe=Math.floor(Qe),_r=Math.floor(_r));const wo={ready:!0,offsetX:ge/Be,offsetY:Qe/nt,offsetR:$n/Be,offsetB:_r/nt,arrowX:Ct/Be,arrowY:or/nt,scaleX:Be,scaleY:nt,align:rt};g(wo)}}),x=()=>{m.current+=1;const E=m.current;Promise.resolve().then(()=>{m.current===E&&_()})},b=()=>{g(E=>({...E,ready:!1}))};return an(b,[o]),an(()=>{e||b()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,x]}function bf(){const e=f.useRef(null),n=()=>{e.current&&(clearTimeout(e.current),e.current=null)},r=(o,s)=>{n(),s===0?o():e.current=setTimeout(()=>{o()},s*1e3)};return f.useEffect(()=>()=>{n()},[]),r}function _y(e,n,r,o,s){an(()=>{if(e&&n&&r){let v=function(){o(),s()};const l=n,c=r,d=ul(l),h=ul(c),g=Yo(c),m=new Set([g,...d,...h]);return m.forEach(y=>{y.addEventListener("scroll",v,{passive:!0})}),g.addEventListener("resize",v,{passive:!0}),o(),()=>{m.forEach(y=>{y.removeEventListener("scroll",v),g.removeEventListener("resize",v)})}}},[e,n,r])}function xy(e,n,r,o,s,l,c,d){const h=f.useRef(e);h.current=e;const g=f.useRef(!1);f.useEffect(()=>{var v,y;if(n&&o&&(!s||l)){const C=()=>{g.current=!1},_=E=>{var S,P;h.current&&!c(((P=(S=E.composedPath)==null?void 0:S.call(E))==null?void 0:P[0])||E.target)&&!g.current&&d(!1)},x=Yo(o);x.addEventListener("pointerdown",C,!0),x.addEventListener("mousedown",_,!0),x.addEventListener("contextmenu",_,!0);const b=Hi(r);if(b&&(b.addEventListener("mousedown",_,!0),b.addEventListener("contextmenu",_,!0)),process.env.NODE_ENV!=="production"&&r){const E=(v=r.getRootNode)==null?void 0:v.call(r),S=(y=o.getRootNode)==null?void 0:y.call(o);Oo(E===S,"trigger element and popup element should in same shadow root.")}return()=>{x.removeEventListener("pointerdown",C,!0),x.removeEventListener("mousedown",_,!0),x.removeEventListener("contextmenu",_,!0),b&&(b.removeEventListener("mousedown",_,!0),b.removeEventListener("contextmenu",_,!0))}}},[n,r,o,s,l]);function m(){g.current=!0}return m}function wy(){const[e,n]=I.useState(null),[r,o]=I.useState(!1),[s,l]=I.useState(!1),c=I.useRef(null),d=ht(g=>{g===!1?(c.current=null,o(!1)):s&&r?c.current=g:(o(!0),n(g),c.current=null,r||l(!0))}),h=ht(g=>{g?(l(!1),c.current&&(n(c.current),c.current=null)):(l(!1),c.current=null)});return[d,r,e,h]}function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},dl.apply(this,arguments)}const Cy=e=>{const{prefixCls:n,isMobile:r,ready:o,open:s,align:l,offsetR:c,offsetB:d,offsetX:h,offsetY:g,arrowPos:m,popupSize:v,motion:y,uniqueContainerClassName:C,uniqueContainerStyle:_}=e,x=`${n}-unique-container`,[b,E]=I.useState(!1),S=cf(r,o,s,l,c,d,h,g),P=I.useRef(S);o&&(P.current=S);const T={};return v&&(T.width=v.width,T.height=v.height),I.createElement(Nr,dl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${x}-hidden`},y,{visible:s,onVisibleChanged:M=>{E(M)}}),({className:M,style:N})=>{const k=ce(x,M,C,{[`${x}-visible`]:b});return I.createElement("div",{className:k,style:{"--arrow-x":`${(m==null?void 0:m.x)||0}px`,"--arrow-y":`${(m==null?void 0:m.y)||0}px`,...P.current,...T,...N,..._}})})},Sy=({children:e,postTriggerProps:n})=>{const[r,o,s,l]=wy(),c=f.useMemo(()=>!s||!n?s:n(s),[s,n]),[d,h]=f.useState(null),[g,m]=f.useState(null),v=f.useRef(null),y=ht(Z=>{v.current=Z,Ur(Z)&&d!==Z&&h(Z)}),C=f.useRef(null),_=bf(),x=ht((Z,le)=>{C.current=le,_(()=>{r(Z)},Z.delay)}),b=Z=>{_(()=>{var le;(le=C.current)!=null&&le.call(C)||r(!1)},Z)},E=ht(Z=>{l(Z)}),[S,P,T,M,N,k,R,,,B,z]=yf(o,d,c==null?void 0:c.target,c==null?void 0:c.popupPlacement,(c==null?void 0:c.builtinPlacements)||{},c==null?void 0:c.popupAlign,void 0,!1),$=f.useMemo(()=>{var le;if(!c)return"";const Z=ff(c.builtinPlacements||{},c.prefixCls||"",B,!1);return ce(Z,(le=c.getPopupClassNameFromAlign)==null?void 0:le.call(c,B))},[B,c==null?void 0:c.getPopupClassNameFromAlign,c==null?void 0:c.builtinPlacements,c==null?void 0:c.prefixCls]),j=f.useMemo(()=>({show:x,hide:b}),[]);f.useEffect(()=>{z()},[c==null?void 0:c.target]);const V=ht(()=>(z(),Promise.resolve())),W=f.useRef({}),F=f.useContext(Xi),X=f.useMemo(()=>({registerSubPopup:(Z,le)=>{W.current[Z]=le,F==null||F.registerSubPopup(Z,le)}}),[F]),J=c==null?void 0:c.prefixCls;return f.createElement(uf.Provider,{value:j},e,c&&f.createElement(Xi.Provider,{value:X},f.createElement(ll,{ref:y,portal:Yi,onEsc:c.onEsc,prefixCls:J,popup:c.popup,className:ce(c.popupClassName,$,`${J}-unique-controlled`),style:c.popupStyle,target:c.target,open:o,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:E,ready:S,offsetX:P,offsetY:T,offsetR:M,offsetB:N,onAlign:z,onPrepare:V,onResize:Z=>m({width:Z.offsetWidth,height:Z.offsetHeight}),arrowPos:{x:k,y:R},align:B,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},f.createElement(Cy,{prefixCls:J,isMobile:!1,ready:S,open:o,align:B,offsetR:M,offsetB:N,offsetX:P,offsetY:T,arrowPos:{x:k,y:R},popupSize:g,motion:c.popupMotion,uniqueContainerClassName:ce(c.uniqueContainerClassName,$),uniqueContainerStyle:c.uniqueContainerStyle}))))};function Ey(e=Yi){const n=f.forwardRef((r,o)=>{const{prefixCls:s="rc-trigger-popup",children:l,action:c="hover",showAction:d,hideAction:h,popupVisible:g,defaultPopupVisible:m,onOpenChange:v,afterOpenChange:y,onPopupVisibleChange:C,afterPopupVisibleChange:_,mouseEnterDelay:x,mouseLeaveDelay:b=.1,focusDelay:E,blurDelay:S,mask:P,maskClosable:T=!0,getPopupContainer:M,forceRender:N,autoDestroy:k,popup:R,popupClassName:B,uniqueContainerClassName:z,uniqueContainerStyle:$,popupStyle:j,popupPlacement:V,builtinPlacements:W={},popupAlign:F,zIndex:X,stretch:J,getPopupClassNameFromAlign:Z,fresh:le,unique:G,alignPoint:ie,onPopupClick:ne,onPopupAlign:de,arrow:oe,popupMotion:ee,maskMotion:K,mobile:Y,...se}=r,fe=k||!1,xe=g===void 0,Se=!!Y,Te=f.useRef({}),Ce=f.useContext(Xi),te=f.useMemo(()=>({registerSubPopup:(me,Ne)=>{Te.current[me]=Ne,Ce==null||Ce.registerSubPopup(me,Ne)}}),[Ce]),we=f.useContext(uf),Pe=Qi(),[Ae,Ze]=f.useState(null),Be=f.useRef(null),nt=ht(me=>{Be.current=me,Ur(me)&&Ae!==me&&Ze(me),Ce==null||Ce.registerSubPopup(Pe,me)}),[Ge,Ke]=f.useState(null),ze=f.useRef(null),De=ht(me=>{const Ne=Js(me);Ur(Ne)&&Ge!==Ne&&(Ke(Ne),ze.current=Ne)}),ot={},Et=ht(me=>{var Xt,zn;const Ne=Ge;return(Ne==null?void 0:Ne.contains(me))||((Xt=Hi(Ne))==null?void 0:Xt.host)===me||me===Ne||(Ae==null?void 0:Ae.contains(me))||((zn=Hi(Ae))==null?void 0:zn.host)===me||me===Ae||Object.values(Te.current).some(dn=>(dn==null?void 0:dn.contains(me))||me===dn)}),mt=oe?{...oe!==!0?oe:{}}:null,[dt,gt]=Un(m||!1,g),Oe=dt||!1,he=f.useMemo(()=>{const me=typeof l=="function"?l({open:Oe}):l;return f.Children.only(me)},[l,Oe]),_e=(he==null?void 0:he.props)||{},rt=ht(()=>Oe),$e=ht((me=0)=>({popup:R,target:Ge,delay:me,prefixCls:s,popupClassName:B,uniqueContainerClassName:z,uniqueContainerStyle:$,popupStyle:j,popupPlacement:V,builtinPlacements:W,popupAlign:F,zIndex:X,mask:P,maskClosable:T,popupMotion:ee,maskMotion:K,arrow:mt,getPopupContainer:M,getPopupClassNameFromAlign:Z,id:Pe,onEsc:Nt}));an(()=>{we&&G&&Ge&&!xe&&!Ce&&(Oe?we.show($e(x),rt):we.hide(b))},[Oe,Ge]);const ge=f.useRef(Oe);ge.current=Oe;const Qe=ht(me=>{en.flushSync(()=>{Oe!==me&&(gt(me),v==null||v(me),C==null||C(me))})}),Ve=bf(),Ye=(me,Ne=0)=>{if(g!==void 0){Ve(()=>{Qe(me)},Ne);return}if(we&&G&&xe&&!Ce){me?we.show($e(Ne),rt):we.hide(Ne);return}Ve(()=>{Qe(me)},Ne)};function Nt({top:me}){me&&Ye(!1)}const[Vt,yt]=f.useState(!1);an(me=>{(!me||Oe)&&yt(!0)},[Oe]);const[Pt,Rt]=f.useState(null),[Je,on]=f.useState(null),mn=me=>{on([me.clientX,me.clientY])},[sn,ln,cn,un,Wt,tn,Ot,wt,ve,jt,Zt]=yf(Oe,Ae,ie&&Je!==null?Je:Ge,V,W,F,de,Se),[A,U]=yy(c,d,h),re=A.has("click"),ue=U.has("click")||U.has("contextMenu"),Ee=ht(()=>{Vt||Zt()});_y(Oe,Ge,Ae,Ee,()=>{ge.current&&ie&&ue&&Ye(!1)}),an(()=>{Ee()},[Je,V]),an(()=>{Oe&&!(W!=null&&W[V])&&Ee()},[JSON.stringify(F)]);const ae=f.useMemo(()=>{const me=ff(W,s,jt,ie);return ce(me,Z==null?void 0:Z(jt))},[jt,Z,W,s,ie]);f.useImperativeHandle(o,()=>({nativeElement:ze.current,popupElement:Be.current,forceAlign:Ee}));const[pe,We]=f.useState(0),[Fe,et]=f.useState(0),vt=()=>{if(J&&Ge){const me=Ge.getBoundingClientRect();We(me.width),et(me.height)}},bt=()=>{vt(),Ee()},Kt=me=>{yt(!1),Zt(),y==null||y(me),_==null||_(me)},Ct=()=>new Promise(me=>{vt(),Rt(()=>me)});an(()=>{Pt&&(Zt(),Pt(),Rt(null))},[Pt]);function Qt(me,Ne,Xt,zn,dn){ot[me]=(It,...ir)=>{var xr;(!dn||!dn())&&(zn==null||zn(It),Ye(Ne,Xt)),(xr=_e[me])==null||xr.call(_e,It,...ir)}}const Yt=A.has("touch"),br=U.has("touch"),or=f.useRef(!1);(Yt||br)&&(ot.onTouchStart=(...me)=>{var Ne;or.current=!0,ge.current&&br?Ye(!1):!ge.current&&Yt&&Ye(!0),(Ne=_e.onTouchStart)==null||Ne.call(_e,...me)}),(re||ue)&&(ot.onClick=(me,...Ne)=>{var Xt;ge.current&&ue?Ye(!1):!ge.current&&re&&(mn(me),Ye(!0)),(Xt=_e.onClick)==null||Xt.call(_e,me,...Ne),or.current=!1});const $n=xy(Oe,ue||br,Ge,Ae,P,T,Et,Ye),_r=A.has("hover"),wo=U.has("hover");let Me,ke;const Ue=()=>or.current;if(_r){const me=Ne=>{mn(Ne)};Qt("onMouseEnter",!0,x,me,Ue),Qt("onPointerEnter",!0,x,me,Ue),Me=Ne=>{(Oe||Vt)&&(Ae!=null&&Ae.contains(Ne.target))&&Ye(!0,x)},ie&&(ot.onMouseMove=Ne=>{var Xt;(Xt=_e.onMouseMove)==null||Xt.call(_e,Ne)})}wo&&(Qt("onMouseLeave",!1,b,void 0,Ue),Qt("onPointerLeave",!1,b,void 0,Ue),ke=()=>{Ye(!1,b)}),A.has("focus")&&Qt("onFocus",!0,E),U.has("focus")&&Qt("onBlur",!1,S),A.has("contextMenu")&&(ot.onContextMenu=(me,...Ne)=>{var Xt;ge.current&&U.has("contextMenu")?Ye(!1):(mn(me),Ye(!0)),me.preventDefault(),(Xt=_e.onContextMenu)==null||Xt.call(_e,me,...Ne)});const Tn=f.useRef(!1);Tn.current||(Tn.current=N||Oe||Vt);const gn={..._e,...ot},Bn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(me=>{se[me]&&(Bn[me]=(...Ne)=>{var Xt;(Xt=gn[me])==null||Xt.call(gn,...Ne),se[me](...Ne)})});const He={x:tn,y:Ot};su(Oe,Ge,bt);const St=jr(De,dr(he)),Fr=f.cloneElement(he,{...gn,...Bn,ref:St});return f.createElement(f.Fragment,null,Fr,Tn.current&&(!we||!G)&&f.createElement(Xi.Provider,{value:te},f.createElement(ll,{portal:e,ref:nt,prefixCls:s,popup:R,className:ce(B,!Se&&ae),style:j,target:Ge,onMouseEnter:Me,onMouseLeave:ke,onPointerEnter:Me,zIndex:X,open:Oe,keepDom:Vt,fresh:le,onClick:ne,onPointerDownCapture:$n,mask:P,motion:ee,maskMotion:K,onVisibleChanged:Kt,onPrepare:Ct,forceRender:N,autoDestroy:fe,getPopupContainer:M,onEsc:Nt,align:jt,arrow:mt,arrowPos:He,ready:sn,offsetX:ln,offsetY:cn,offsetR:un,offsetB:Wt,onAlign:Ee,stretch:J,targetWidth:pe/wt,targetHeight:Fe/ve,mobile:Y})))});return process.env.NODE_ENV!=="production"&&(n.displayName="Trigger"),n}const fl=Ey(Yi);function _f(e){return e&&I.isValidElement(e)&&e.type===I.Fragment}const Py=(e,n,r)=>I.isValidElement(e)?I.cloneElement(e,typeof r=="function"?r(e.props||{}):r):n;function tr(e,n){return Py(e,e,n)}const Iy=({children:e})=>{const{getPrefixCls:n}=I.useContext(kt),r=n();return I.isValidElement(e)?I.createElement(Nr,{visible:!0,motionName:`${r}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:o,className:s})=>tr(e,l=>({className:ce(l.className,s),style:{...l.style,...o}}))):e},Ji=[null,null];function Ty(e){if(Ji[0]!==e){const n={};Object.keys(e).forEach(r=>{n[r]={...e[r],dynamicInset:!1}}),Ji[0]=e,Ji[1]=n}return Ji[1]}const xf=({children:e})=>{const n=r=>{const{id:o,builtinPlacements:s,popup:l}=r,c=typeof l=="function"?l():l,d=Ty(s);return{...r,getPopupContainer:null,arrow:!1,popup:I.createElement(Iy,{key:o},c),builtinPlacements:d}};return I.createElement(Sy,{postTriggerProps:n},e)},hl=f.createContext(!1),Ay=({children:e,disabled:n})=>{const r=f.useContext(hl);return f.createElement(hl.Provider,{value:n??r},e)},pl=hl,ml=f.createContext(void 0),My=({children:e,size:n})=>{const r=f.useContext(ml);return f.createElement(ml.Provider,{value:n||r},e)},es=ml;function Ly(){const e=I.useContext(pl),n=I.useContext(es);return{componentDisabled:e,componentSize:n}}function Oy(e,n,r){var d;const o=hn("ConfigProvider"),s=e||{},l=s.inherit===!1||!n?{...Ua,hashed:(n==null?void 0:n.hashed)??Ua.hashed,cssVar:n==null?void 0:n.cssVar}:n,c=I.useId();if(process.env.NODE_ENV!=="production"){const h=s.cssVar||l.cssVar,g=!!(typeof s.cssVar=="object"&&((d=s.cssVar)!=null&&d.key)||c);process.env.NODE_ENV!=="production"&&o(!h||g,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Pi(()=>{var v;if(!e)return n;const h={...l.components};Object.keys(e.components||{}).forEach(y=>{h[y]={...h[y],...e.components[y]}});const g=`css-var-${c.replace(/:/g,"")}`,m={prefix:r==null?void 0:r.prefixCls,...l.cssVar,...s.cssVar,key:((v=s.cssVar)==null?void 0:v.key)||g};return{...l,...s,token:{...l.token,...s.token},components:h,cssVar:m}},[s,l],(h,g)=>h.some((m,v)=>{const y=g[v];return!$o(m,y,!0)}))}const gl=f.createContext(!0);process.env.NODE_ENV!=="production"&&(gl.displayName="MotionCacheContext");function ky(e){const n=f.useContext(gl),{children:r}=e,[,o]=mr(),{motion:s}=o,l=f.useRef(!1);return l.current||(l.current=n!==s),l.current?f.createElement(gl.Provider,{value:s},f.createElement(Mv,{motion:s},r)):r}const wf=f.memo(({dropdownMatchSelectWidth:e})=>(hn("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(wf.displayName="PropWarning");const Ny=process.env.NODE_ENV!=="production"?wf:()=>null,Ry=({iconPrefixCls:e,csp:n})=>(xv(e,n),null);let vl=!1;process.env.NODE_ENV;const $y=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],By=e=>{},zy=e=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:s,affix:l,anchor:c,form:d,locale:h,componentSize:g,direction:m,space:v,splitter:y,virtual:C,dropdownMatchSelectWidth:_,popupMatchSelectWidth:x,popupOverflow:b,legacyLocale:E,parentContext:S,iconPrefixCls:P,theme:T,componentDisabled:M,segmented:N,statistic:k,spin:R,calendar:B,carousel:z,cascader:$,collapse:j,typography:V,checkbox:W,descriptions:F,divider:X,drawer:J,skeleton:Z,steps:le,image:G,layout:ie,list:ne,mentions:de,modal:oe,progress:ee,result:K,slider:Y,breadcrumb:se,masonry:fe,menu:xe,pagination:Se,input:Te,textArea:Ce,otp:te,empty:we,badge:Pe,radio:Ae,rate:Ze,ribbon:Be,switch:nt,transfer:Ge,avatar:Ke,message:ze,tag:De,table:ot,card:Et,cardMeta:mt,tabs:dt,timeline:gt,timePicker:Oe,upload:he,notification:_e,tree:rt,colorPicker:$e,datePicker:ge,rangePicker:Qe,flex:Ve,wave:Ye,dropdown:Nt,warning:Vt,tour:yt,tooltip:Pt,popover:Rt,popconfirm:Je,qrcode:on,floatButton:mn,floatButtonGroup:sn,variant:ln,inputNumber:cn,treeSelect:un,watermark:Wt}=e,tn=f.useCallback((ae,pe)=>{const{prefixCls:We}=e;if(pe)return pe;const Fe=We||S.getPrefixCls("");return ae?`${Fe}-${ae}`:Fe},[S.getPrefixCls,e.prefixCls]),Ot=P||S.iconPrefixCls||oa,wt=r||S.csp,ve=Oy(T,S.theme,{prefixCls:tn("")});process.env.NODE_ENV!=="production"&&(vl=vl||!!ve);const jt={csp:wt,autoInsertSpaceInButton:o,alert:s,affix:l,anchor:c,locale:h||E,direction:m,space:v,splitter:y,virtual:C,popupMatchSelectWidth:x??_,popupOverflow:b,getPrefixCls:tn,iconPrefixCls:Ot,theme:ve,segmented:N,statistic:k,spin:R,calendar:B,carousel:z,cascader:$,collapse:j,typography:V,checkbox:W,descriptions:F,divider:X,drawer:J,skeleton:Z,steps:le,image:G,input:Te,textArea:Ce,otp:te,layout:ie,list:ne,mentions:de,modal:oe,progress:ee,result:K,slider:Y,breadcrumb:se,masonry:fe,menu:xe,pagination:Se,empty:we,badge:Pe,radio:Ae,rate:Ze,ribbon:Be,switch:nt,transfer:Ge,avatar:Ke,message:ze,tag:De,table:ot,card:Et,cardMeta:mt,tabs:dt,timeline:gt,timePicker:Oe,upload:he,notification:_e,tree:rt,colorPicker:$e,datePicker:ge,rangePicker:Qe,flex:Ve,wave:Ye,dropdown:Nt,warning:Vt,tour:yt,tooltip:Pt,popover:Rt,popconfirm:Je,qrcode:on,floatButton:mn,floatButtonGroup:sn,variant:ln,inputNumber:cn,treeSelect:un,watermark:Wt};process.env.NODE_ENV!=="production"&&hn("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Zt={...S};Object.keys(jt).forEach(ae=>{jt[ae]!==void 0&&(Zt[ae]=jt[ae])}),$y.forEach(ae=>{const pe=e[ae];pe&&(Zt[ae]=pe)}),typeof o<"u"&&(Zt.button={autoInsertSpace:o,...Zt.button});const A=Pi(()=>Zt,Zt,(ae,pe)=>{const We=Object.keys(ae),Fe=Object.keys(pe);return We.length!==Fe.length||We.some(et=>ae[et]!==pe[et])}),{layer:U}=f.useContext(Bo),re=f.useMemo(()=>({prefixCls:Ot,csp:wt,layer:U?"antd":void 0}),[Ot,wt,U]);let ue=f.createElement(f.Fragment,null,f.createElement(Ry,{iconPrefixCls:Ot,csp:wt}),f.createElement(Ny,{dropdownMatchSelectWidth:_}),n);const Ee=f.useMemo(()=>{var ae,pe,We,Fe;return Zr(((ae=Gi.Form)==null?void 0:ae.defaultValidateMessages)||{},((We=(pe=A.locale)==null?void 0:pe.Form)==null?void 0:We.defaultValidateMessages)||{},((Fe=A.form)==null?void 0:Fe.validateMessages)||{},(d==null?void 0:d.validateMessages)||{})},[A,d==null?void 0:d.validateMessages]);Object.keys(Ee).length>0&&(ue=f.createElement(ry.Provider,{value:Ee},ue)),h&&(ue=f.createElement(Qv,{locale:h,_ANT_MARK__:jd},ue)),(Ot||wt)&&(ue=f.createElement(Ya.Provider,{value:re},ue)),g&&(ue=f.createElement(My,{size:g},ue)),ue=f.createElement(ky,null,ue),Pt!=null&&Pt.unique&&(ue=f.createElement(xf,null,ue));const ye=f.useMemo(()=>{const{algorithm:ae,token:pe,components:We,cssVar:Fe,...et}=ve||{},vt=ae&&(!Array.isArray(ae)||ae.length>0)?da(ae):fd,bt={};Object.entries(We||{}).forEach(([Ct,Qt])=>{const Yt={...Qt};"algorithm"in Yt&&(Yt.algorithm===!0?Yt.theme=vt:(Array.isArray(Yt.algorithm)||typeof Yt.algorithm=="function")&&(Yt.theme=da(Yt.algorithm)),delete Yt.algorithm),bt[Ct]=Yt});const Kt={...Zo,...pe};return{...et,theme:vt,token:Kt,components:bt,override:{override:Kt,...bt},cssVar:Fe}},[ve]);return T&&(ue=f.createElement(hd.Provider,{value:ye},ue)),A.warning&&(ue=f.createElement(ru.Provider,{value:A.warning},ue)),M!==void 0&&(ue=f.createElement(Ay,{disabled:M},ue)),f.createElement(kt.Provider,{value:A},ue)},$r=e=>{const n=f.useContext(kt),r=f.useContext(Wd);return f.createElement(zy,{parentContext:n,legacyLocale:r,...e})};$r.ConfigContext=kt,$r.SizeContext=es,$r.config=By,$r.useConfig=Ly,Object.defineProperty($r,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Xs(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),es)}),process.env.NODE_ENV!=="production"&&($r.displayName="ConfigProvider");const Ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(n){const{keyCode:r}=n;if(n.altKey&&!n.ctrlKey||n.metaKey||r>=Ie.F1&&r<=Ie.F12)return!1;switch(r){case Ie.ALT:case Ie.CAPS_LOCK:case Ie.CONTEXT_MENU:case Ie.CTRL:case Ie.DOWN:case Ie.END:case Ie.ESC:case Ie.HOME:case Ie.INSERT:case Ie.LEFT:case Ie.MAC_FF_META:case Ie.META:case Ie.NUMLOCK:case Ie.NUM_CENTER:case Ie.PAGE_DOWN:case Ie.PAGE_UP:case Ie.PAUSE:case Ie.PRINT_SCREEN:case Ie.RIGHT:case Ie.SHIFT:case Ie.UP:case Ie.WIN_KEY:case Ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(n){if(n>=Ie.ZERO&&n<=Ie.NINE||n>=Ie.NUM_ZERO&&n<=Ie.NUM_MULTIPLY||n>=Ie.A&&n<=Ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&n===0)return!0;switch(n){case Ie.SPACE:case Ie.QUESTION_MARK:case Ie.NUM_PLUS:case Ie.NUM_MINUS:case Ie.NUM_PERIOD:case Ie.NUM_DIVISION:case Ie.SEMICOLON:case Ie.DASH:case Ie.EQUALS:case Ie.COMMA:case Ie.PERIOD:case Ie.SLASH:case Ie.APOSTROPHE:case Ie.SINGLE_QUOTE:case Ie.OPEN_SQUARE_BRACKET:case Ie.BACKSLASH:case Ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(n){const r=n.target;if(!(r instanceof HTMLElement))return!1;const o=r.tagName;return!!(o==="INPUT"||o==="TEXTAREA"||o==="SELECT"||r.isContentEditable)}};var Dy={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Fy=Dy;function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},yl.apply(this,arguments)}const Hy=(e,n)=>f.createElement(Ko,yl({},e,{ref:n,icon:Fy})),Cf=f.forwardRef(Hy);process.env.NODE_ENV!=="production"&&(Cf.displayName="LoadingOutlined");const Vy=Cf,ts="__rc_react_root__";function Wy(e,n){const r=n[ts]||Sr(n);r.render(e),n[ts]=r}async function jy(e){return Promise.resolve().then(()=>{var n;(n=e[ts])==null||n.unmount(),delete e[ts]})}const bl=()=>({height:0,opacity:0}),Sf=e=>{const{scrollHeight:n}=e;return{height:n,opacity:1}},Zy=e=>({height:e?e.offsetHeight:0}),_l=(e,n)=>(n==null?void 0:n.deadline)===!0||n.propertyName==="height",Uy=(e=Ti)=>({motionName:`${e}-motion-collapse`,onAppearStart:bl,onEnterStart:bl,onAppearActive:Sf,onEnterActive:Sf,onLeaveStart:Zy,onLeaveActive:bl,onAppearEnd:_l,onEnterEnd:_l,onLeaveEnd:_l,motionDeadline:500}),qy=(e,n,r)=>r!==void 0?r:`${e}-${n}`,Gy=yv("Wave",e=>{const{componentCls:n,colorPrimary:r,antCls:o}=e,[,s]=gr(o,"wave");return{[n]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:s("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),xl=`${Ti}-wave-target`;function Ef(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function Ky(e,n=null){const r=getComputedStyle(e),{borderTopColor:o,borderColor:s,backgroundColor:l}=r;return n&&Ef(r[n])?r[n]:[o,s,l].find(Ef)??null}function wl(e){return Number.isNaN(e)?0:e}const Qy=e=>{const{className:n,target:r,component:o,colorSource:s}=e,l=f.useRef(null),{getPrefixCls:c}=f.useContext(kt),d=c(),[h]=gr(d,"wave"),[g,m]=f.useState(null),[v,y]=f.useState([]),[C,_]=f.useState(0),[x,b]=f.useState(0),[E,S]=f.useState(0),[P,T]=f.useState(0),[M,N]=f.useState(!1),k={left:C,top:x,width:E,height:P,borderRadius:v.map(z=>`${z}px`).join(" ")};g&&(k[h("color")]=g);function R(){const z=getComputedStyle(r);m(Ky(r,s));const $=z.position==="static",{borderLeftWidth:j,borderTopWidth:V}=z;_($?r.offsetLeft:wl(-Number.parseFloat(j))),b($?r.offsetTop:wl(-Number.parseFloat(V))),S(r.offsetWidth),T(r.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:F,borderBottomLeftRadius:X,borderBottomRightRadius:J}=z;y([W,F,J,X].map(Z=>wl(Number.parseFloat(Z))))}if(f.useEffect(()=>{if(r){const z=qt(()=>{R(),N(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(R),$.observe(r)),()=>{qt.cancel(z),$==null||$.disconnect()}}},[r]),!M)return null;const B=(o==="Checkbox"||o==="Radio")&&(r==null?void 0:r.classList.contains(xl));return f.createElement(Nr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(z,$)=>{var j;if($.deadline||$.propertyName==="opacity"){const V=(j=l.current)==null?void 0:j.parentElement;jy(V).then(()=>{V==null||V.remove()})}return!1}},({className:z},$)=>f.createElement("div",{ref:Er(l,$),className:ce(n,z,{"wave-quick":B}),style:k}))},Yy=(e,n)=>{var s;const{component:r}=n;if(r==="Checkbox"&&!((s=e.querySelector("input"))!=null&&s.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),Wy(f.createElement(Qy,{...n,target:e}),o)},Xy=(e,n,r,o)=>{const{wave:s}=f.useContext(kt),[,l,c]=mr(),d=ht(m=>{const v=e.current;if(s!=null&&s.disabled||!v)return;const y=v.querySelector(`.${xl}`)||v,{showEffect:C}=s||{};(C||Yy)(y,{className:n,token:l,component:r,event:m,hashId:c,colorSource:o})}),h=f.useRef(null);return f.useEffect(()=>()=>{qt.cancel(h.current)},[]),m=>{qt.cancel(h.current),h.current=qt(()=>{d(m)})}},Pf=e=>{const{children:n,disabled:r,component:o,colorSource:s}=e,{getPrefixCls:l}=I.useContext(kt),c=I.useRef(null),d=l("wave"),h=Gy(d),g=Xy(c,ce(d,h),o,s);if(I.useEffect(()=>{const v=c.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||r)return;const y=C=>{!cl(C.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||g(C)};return v.addEventListener("click",y,!0),()=>{v.removeEventListener("click",y,!0)}},[r]),!I.isValidElement(n))return n??null;const m=Pr(n)?Er(dr(n),c):c;return tr(n,{ref:m})};process.env.NODE_ENV!=="production"&&(Pf.displayName="Wave");const If=Pf,Tf=e=>{const n=I.useContext(es);return I.useMemo(()=>e?typeof e=="string"?e??n:typeof e=="function"?e(n):n:n,[e,n])},Jy=e=>{const{componentCls:n}=e;return{[n]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},eb=Hn(["Space","Compact"],e=>[Jy(e)],()=>({}),{resetStyle:!1}),ns=f.createContext(null),Cl=(e,n)=>{const r=f.useContext(ns),o=f.useMemo(()=>{if(!r)return"";const{compactDirection:s,isFirstItem:l,isLastItem:c}=r,d=s==="vertical"?"-vertical-":"-";return ce(`${e}-compact${d}item`,{[`${e}-compact${d}first-item`]:l,[`${e}-compact${d}last-item`]:c,[`${e}-compact${d}item-rtl`]:n==="rtl"})},[e,n,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:o}},tb=e=>{const{children:n}=e;return f.createElement(ns.Provider,{value:null},n)},nb=e=>{const{children:n,...r}=e;return f.createElement(ns.Provider,{value:f.useMemo(()=>r,[r])},n)},rb=e=>{const{getPrefixCls:n,direction:r}=f.useContext(kt),{size:o,direction:s,orientation:l,block:c,prefixCls:d,className:h,rootClassName:g,children:m,vertical:v,...y}=e;process.env.NODE_ENV!=="production"&&hn("Space.Compact").deprecated(!s,"direction","orientation");const[C,_]=Kd(l,v,s),x=Tf(N=>o??N),b=n("space-compact",d),[E]=eb(b),S=ce(b,E,{[`${b}-rtl`]:r==="rtl",[`${b}-block`]:c,[`${b}-vertical`]:_},h,g),P=f.useContext(ns),T=qn(m),M=f.useMemo(()=>T.map((N,k)=>{const R=(N==null?void 0:N.key)||`${b}-item-${k}`;return f.createElement(nb,{key:R,compactSize:x,compactDirection:C,isFirstItem:k===0&&(!P||(P==null?void 0:P.isFirstItem)),isLastItem:k===T.length-1&&(!P||(P==null?void 0:P.isLastItem))},N)}),[T,P,C,x,b]);return T.length===0?null:f.createElement("div",{className:S,...y},M)},Af=f.createContext(void 0),ob=e=>{const{getPrefixCls:n,direction:r}=f.useContext(kt),{prefixCls:o,size:s,className:l,...c}=e,d=n("btn-group",o),[,,h]=mr(),g=f.useMemo(()=>{switch(s){case"large":return"lg";case"small":return"sm";default:return""}},[s]);if(process.env.NODE_ENV!=="production"){const v=hn("Button.Group");v.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&v(!s||["large","small","middle"].includes(s),"usage","Invalid prop `size`.")}const m=ce(d,{[`${d}-${g}`]:g,[`${d}-rtl`]:r==="rtl"},l,h);return f.createElement(Af.Provider,{value:s},f.createElement("div",{...c,className:m}))},Mf=/^[\u4E00-\u9FA5]{2}$/,Sl=Mf.test.bind(Mf);function Lf(e){return typeof e=="string"}function rs(e){return e==="text"||e==="link"}function ib(e,n,r,o){if(!no(e)||e==="")return;const s=n?" ":"";return typeof e!="string"&&typeof e!="number"&&Lf(e.type)&&Sl(e.props.children)?tr(e,l=>{const c=ce(l.className,o)||void 0,d={...r,...l.style};return{...l,children:l.children.split("").join(s),className:c,style:d}}):Lf(e)?I.createElement("span",{className:o,style:r},Sl(e)?e.split("").join(s):e):_f(e)?I.createElement("span",{className:o,style:r},e):tr(e,l=>({...l,className:ce(l.className,o)||void 0,style:{...l.style,...r}}))}function sb(e,n,r,o){let s=!1;const l=[];return I.Children.forEach(e,c=>{const d=typeof c,h=d==="string"||d==="number";if(s&&h){const g=l.length-1,m=l[g];l[g]=`${m}${c}`}else l.push(c);s=h}),I.Children.map(l,c=>ib(c,n,r,o))}["default","primary","danger"].concat(bn(kr));const Of=I.forwardRef((e,n)=>{const{className:r,style:o,children:s,prefixCls:l}=e,c=ce(`${l}-icon`,r);return I.createElement("span",{ref:n,className:c,style:o},s)}),kf=I.forwardRef((e,n)=>{const{prefixCls:r,className:o,style:s,iconClassName:l}=e,c=ce(`${r}-loading-icon`,o);return I.createElement(Of,{prefixCls:r,className:c,style:s,ref:n},I.createElement(Vy,{className:l}))}),El=()=>({width:0,opacity:0,transform:"scale(0)"}),Pl=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ab=e=>{const{prefixCls:n,loading:r,existIcon:o,className:s,style:l,mount:c}=e,d=!!r;return o?I.createElement(kf,{prefixCls:n,className:s,style:l}):I.createElement(Nr,{visible:d,motionName:`${n}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:El,onAppearActive:Pl,onEnterStart:El,onEnterActive:Pl,onLeaveStart:Pl,onLeaveActive:El},({className:h,style:g},m)=>{const v={...l,...g};return I.createElement(kf,{prefixCls:n,className:ce(s,h),style:v,ref:m})})},Nf=(e,n)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:n}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:n}}}}}),lb=e=>{const{componentCls:n,fontSize:r,lineWidth:o,groupBorderColor:s,colorErrorHover:l}=e;return{[`${n}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${n}`]:{"&:not(:last-child)":{[`&, & > ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[n]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${n}-icon-only`]:{fontSize:r}},Nf(`${n}-primary`,s),Nf(`${n}-danger`,l)]}},Il=e=>Math.round(Number(e||0)),cb=e=>{if(e instanceof Mt)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:n,...r}=e;return{...r,v:n}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class nr extends Mt{constructor(n){super(cb(n))}toHsbString(){const n=this.toHsb(),r=Il(n.s*100),o=Il(n.b*100),s=Il(n.h),l=n.a,c=`hsb(${s}, ${r}%, ${o}%)`,d=`hsba(${s}, ${r}%, ${o}%, ${l.toFixed(l===0?0:2)})`;return l===1?c:d}toHsb(){const{v:n,...r}=this.toHsv();return{...r,b:n,a:this.a}}}const ub="rc-color-picker",io=e=>e instanceof nr?e:new nr(e),db=io("#1677ff"),Rf=e=>{const{offset:n,targetRef:r,containerRef:o,color:s,type:l}=e,{width:c,height:d}=o.current.getBoundingClientRect(),{width:h,height:g}=r.current.getBoundingClientRect(),m=h/2,v=g/2,y=(n.x+m)/c,C=1-(n.y+v)/d,_=s.toHsb(),x=y,b=(n.x+m)/c*360;if(l)switch(l){case"hue":return io({..._,h:b<=0?0:b});case"alpha":return io({..._,a:x<=0?0:x})}return io({h:_.h,s:y<=0?0:y,b:C>=1?1:C,a:_.a})},$f=(e,n)=>{const r=e.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:e.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},fb=({color:e,prefixCls:n,className:r,style:o,onClick:s})=>{const l=`${n}-color-block`;return I.createElement("div",{className:ce(l,r),style:o,onClick:s},I.createElement("div",{className:`${l}-inner`,style:{background:e}}))};function hb(e){const n="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,o=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:n.pageX-r,pageY:n.pageY-o}}function Bf(e){const{targetRef:n,containerRef:r,direction:o,onDragChange:s,onDragChangeComplete:l,calculate:c,color:d,disabledDrag:h}=e,[g,m]=I.useState({x:0,y:0}),v=I.useRef(null),y=I.useRef(null);I.useEffect(()=>{m(c())},[d]),I.useEffect(()=>()=>{document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",y.current),v.current=null,y.current=null},[]);const C=E=>{const{pageX:S,pageY:P}=hb(E),{x:T,y:M,width:N,height:k}=r.current.getBoundingClientRect(),{width:R,height:B}=n.current.getBoundingClientRect(),z=R/2,$=B/2,j=Math.max(0,Math.min(S-T,N))-z,V=Math.max(0,Math.min(P-M,k))-$,W={x:j,y:o==="x"?g.y:V};if(R===0&&B===0||R!==B)return!1;s==null||s(W)},_=E=>{E.preventDefault(),C(E)},x=E=>{E.preventDefault(),document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",y.current),v.current=null,y.current=null,l==null||l()};return[g,E=>{document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),!h&&(C(E),document.addEventListener("mousemove",_),document.addEventListener("mouseup",x),document.addEventListener("touchmove",_),document.addEventListener("touchend",x),v.current=_,y.current=x)}]}const zf=({size:e="default",color:n,prefixCls:r})=>I.createElement("div",{className:ce(`${r}-handler`,{[`${r}-handler-sm`]:e==="small"}),style:{backgroundColor:n}}),Df=({children:e,style:n,prefixCls:r})=>I.createElement("div",{className:`${r}-palette`,style:{position:"relative",...n}},e),Ff=I.forwardRef((e,n)=>{const{children:r,x:o,y:s}=e;return I.createElement("div",{ref:n,style:{position:"absolute",left:`${o}%`,top:`${s}%`,zIndex:1,transform:"translate(-50%, -50%)"}},r)}),pb=({color:e,onChange:n,prefixCls:r,onChangeComplete:o,disabled:s})=>{const l=I.useRef(),c=I.useRef(),d=I.useRef(e),h=ht(v=>{const y=Rf({offset:v,targetRef:c,containerRef:l,color:e});d.current=y,n(y)}),[g,m]=Bf({color:e,containerRef:l,targetRef:c,calculate:()=>$f(e),onDragChange:h,onDragChangeComplete:()=>o==null?void 0:o(d.current),disabledDrag:s});return I.createElement("div",{ref:l,className:`${r}-select`,onMouseDown:m,onTouchStart:m},I.createElement(Df,{prefixCls:r},I.createElement(Ff,{x:g.x,y:g.y,ref:c},I.createElement(zf,{color:e.toRgbString(),prefixCls:r})),I.createElement("div",{className:`${r}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},mb=(e,n)=>{const[r,o]=Un(e,n);return[I.useMemo(()=>io(r),[r]),o]},gb=({colors:e,children:n,direction:r="to right",type:o,prefixCls:s})=>{const l=I.useMemo(()=>e.map((c,d)=>{let h=io(c);return o==="alpha"&&d===e.length-1&&(h=new nr(h.setA(1))),h.toRgbString()}).join(","),[e,o]);return I.createElement("div",{className:`${s}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${r}, ${l})`}},n)},vb=e=>{const{prefixCls:n,colors:r,disabled:o,onChange:s,onChangeComplete:l,color:c,type:d}=e,h=I.useRef(null),g=I.useRef(null),m=I.useRef(c),v=E=>d==="hue"?E.getHue():E.a*100,y=ht(E=>{const S=Rf({offset:E,targetRef:g,containerRef:h,color:c,type:d});m.current=S,s(v(S))}),[C,_]=Bf({color:c,targetRef:g,containerRef:h,calculate:()=>$f(c,d),onDragChange:y,onDragChangeComplete(){l(v(m.current))},direction:"x",disabledDrag:o}),x=I.useMemo(()=>{if(d==="hue"){const E=c.toHsb();return E.s=1,E.b=1,E.a=1,new nr(E)}return c},[c,d]),b=I.useMemo(()=>r.map(E=>`${E.color} ${E.percent}%`),[r]);return I.createElement("div",{ref:h,className:ce(`${n}-slider`,`${n}-slider-${d}`),onMouseDown:_,onTouchStart:_},I.createElement(Df,{prefixCls:n},I.createElement(Ff,{x:C.x,y:C.y,ref:g},I.createElement(zf,{size:"small",color:x.toHexString(),prefixCls:n})),I.createElement(gb,{colors:b,type:d,prefixCls:n})))};function yb(e){return f.useMemo(()=>{const{slider:n}=e||{};return[n||vb]},[e])}function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ei.apply(this,arguments)}const bb=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],_b=I.forwardRef((e,n)=>{const{value:r,defaultValue:o,prefixCls:s=ub,onChange:l,onChangeComplete:c,className:d,style:h,panelRender:g,disabledAlpha:m=!1,disabled:v=!1,components:y}=e,[C]=yb(y),[_,x]=mb(o||db,r),b=I.useMemo(()=>_.setA(1).toRgbString(),[_]),E=($,j)=>{r||x($),l==null||l($,j)},S=$=>new nr(_.setHue($)),P=$=>new nr(_.setA($/100)),T=$=>{E(S($),{type:"hue",value:$})},M=$=>{E(P($),{type:"alpha",value:$})},N=$=>{c&&c(S($))},k=$=>{c&&c(P($))},R=ce(`${s}-panel`,d,{[`${s}-panel-disabled`]:v}),B={prefixCls:s,disabled:v,color:_},z=I.createElement(I.Fragment,null,I.createElement(pb,ei({onChange:E},B,{onChangeComplete:c})),I.createElement("div",{className:`${s}-slider-container`},I.createElement("div",{className:ce(`${s}-slider-group`,{[`${s}-slider-group-disabled-alpha`]:m})},I.createElement(C,ei({},B,{type:"hue",colors:bb,min:0,max:359,value:_.getHue(),onChange:T,onChangeComplete:N})),!m&&I.createElement(C,ei({},B,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:b}],min:0,max:100,value:_.a*100,onChange:M,onChangeComplete:k}))),I.createElement(fb,{color:_.toRgbString(),prefixCls:s})));return I.createElement("div",{className:R,style:h,ref:n},typeof g=="function"?g(z):z)});process.env.NODE_ENV!=="production"&&(_b.displayName="ColorPicker");const xb=(e,n)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,n?8:6))||"",wb=(e,n)=>e?xb(e,n):"";let Tl=function(){function e(n){var o;if(Mr(this,e),this.cleared=!1,n instanceof e){this.metaColor=n.metaColor.clone(),this.colors=(o=n.colors)==null?void 0:o.map(s=>({color:new e(s.color),percent:s.percent})),this.cleared=n.cleared;return}const r=Array.isArray(n);r&&n.length?(this.colors=n.map(({color:s,percent:l})=>({color:new e(s),percent:l})),this.metaColor=new nr(this.colors[0].color.metaColor)):this.metaColor=new nr(r?"":n),(!n||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Lr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return wb(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(s=>`${s.color.toRgbString()} ${s.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((o,s)=>{const l=r.colors[s];return o.percent===l.percent&&o.color.equals(l.color)}):this.toHexString()===r.toHexString()}}])}();var Cb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const Sb=Cb;function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Al.apply(this,arguments)}const Eb=(e,n)=>f.createElement(Ko,Al({},e,{ref:n,icon:Sb})),Hf=f.forwardRef(Eb);process.env.NODE_ENV!=="production"&&(Hf.displayName="RightOutlined");const Ml=Hf;function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Vn.apply(null,arguments)}const Pb=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
156
+ }`,r)}else Ro(r);return()=>{Ro(r)}},[n,r])}function cy(){return{...f}.useId}let tf=0;const nf=cy(),Ki=nf?function(n){const r=nf();return n||(process.env.NODE_ENV==="test"?"test-id":r)}:function(n){const[r,o]=f.useState("ssr-id");return f.useEffect(()=>{const s=tf;tf+=1,o(`rc_unique_${s}`)},[]),n||(process.env.NODE_ENV==="test"?"test-id":r)};let vr=[];const uy=200;let ol=0;process.env.NODE_ENV;const rf=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-ol<uy)return;const r=vr.length;for(let o=r-1;o>=0;o-=1)vr[o].onEsc({top:o===r-1,event:e})}},of=()=>{ol=Date.now()};function dy(){window.addEventListener("keydown",rf),window.addEventListener("compositionend",of)}function fy(){vr.length===0&&(window.removeEventListener("keydown",rf),window.removeEventListener("compositionend",of))}function hy(e,n){const r=Ki(),o=ft(n),s=()=>{vr.find(c=>c.id===r)||vr.push({id:r,onEsc:o})},l=()=>{vr=vr.filter(c=>c.id!==r)};A.useMemo(()=>{e?s():e||l()},[e]),A.useEffect(()=>{if(e)return s(),dy(),()=>{l(),fy()}},[e])}const sf=e=>e===!1?!1:!yn()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,Qi=f.forwardRef((e,n)=>{const{open:r,autoLock:o,getContainer:s,debug:l,autoDestroy:c=!0,children:d,onEsc:h}=e,[g,m]=f.useState(r),v=g||r;process.env.NODE_ENV!=="production"&&ct(yn()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),f.useEffect(()=>{(c||r)&&m(r)},[r,c]);const[y,C]=f.useState(()=>sf(s));f.useEffect(()=>{const M=sf(s);C(()=>M??null)});const[_,x]=ry(v&&!y,l),b=y??_;ly(o&&r&&yn()&&(b===_||b===document.body)),hy(r,h);let E=null;d&&Er(d)&&n&&(E=dr(d));const S=Wr(E,n);if(!v||!yn()||y===void 0)return null;const P=b===!1||ny();let I=d;return n&&(I=f.cloneElement(d,{ref:S})),f.createElement(Yd.Provider,{value:x},P?I:Ln.createPortal(I,b))});process.env.NODE_ENV!=="production"&&(Qi.displayName="Portal");function py(e){const{prefixCls:n,align:r,arrow:o,arrowPos:s}=e,{className:l,content:c,style:d}=o||{},{x:h=0,y:g=0}=s,m=f.useRef(null);if(!r||!r.points)return null;const v={position:"absolute"};if(r.autoArrow!==!1){const y=r.points[0],C=r.points[1],_=y[0],x=y[1],b=C[0],E=C[1];_===b||!["t","b"].includes(_)?v.top=g:_==="t"?v.top=0:v.bottom=0,x===E||!["l","r"].includes(x)?v.left=h:x==="l"?v.left=0:v.right=0}return f.createElement("div",{ref:m,className:ce(`${n}-arrow`,l),style:{...v,...d}},c)}function il(){return il=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},il.apply(this,arguments)}function my(e){const{prefixCls:n,open:r,zIndex:o,mask:s,motion:l,mobile:c}=e;return s?f.createElement(Nr,il({},l,{motionAppear:!0,visible:r,removeOnLeave:!0}),({className:d})=>f.createElement("div",{style:{zIndex:o},className:ce(`${n}-mask`,c&&`${n}-mobile-mask`,d)})):null}const af=f.memo(({children:e})=>e,(e,n)=>n.cache);process.env.NODE_ENV!=="production"&&(af.displayName="PopupContent");function lf(e,n,r,o,s,l,c,d){var m;const h="auto",g=e?{}:{left:"-1000vw",top:"-1000vh",right:h,bottom:h};if(!e&&(n||!r)){const{points:v}=o,y=o.dynamicInset||((m=o._experimental)==null?void 0:m.dynamicInset),C=y&&v[0][1]==="r",_=y&&v[0][0]==="b";C?(g.right=s,g.left=h):(g.left=c,g.right=h),_?(g.bottom=l,g.top=h):(g.top=d,g.bottom=h)}return g}function sl(){return sl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},sl.apply(this,arguments)}const al=f.forwardRef((e,n)=>{const{onEsc:r,popup:o,className:s,prefixCls:l,style:c,target:d,onVisibleChanged:h,open:g,keepDom:m,fresh:v,onClick:y,mask:C,arrow:_,arrowPos:x,align:b,motion:E,maskMotion:S,mobile:P,forceRender:I,getPopupContainer:M,autoDestroy:k,portal:N,children:R,zIndex:B,onMouseEnter:z,onMouseLeave:$,onPointerEnter:j,onPointerDownCapture:V,ready:W,offsetX:F,offsetY:X,offsetR:J,offsetB:Z,onAlign:le,onPrepare:G,onResize:ie,stretch:ne,targetWidth:de,targetHeight:oe}=e,ee=typeof o=="function"?o():o,K=g||m,Y=!!P,[se,fe,xe]=f.useMemo(()=>P?[P.mask,P.maskMotion,P.motion]:[C,S,E],[P,C,S,E]),Se=(M==null?void 0:M.length)>0,[Te,Ce]=f.useState(!M||!Se);sn(()=>{!Te&&Se&&d&&Ce(!0)},[Te,Se,d]);const te=ft((Ae,Ze)=>{ie==null||ie(Ae,Ze),le()}),we=lf(Y,W,g,b,J,Z,F,X);if(!Te)return null;const Pe={};return ne&&(ne.includes("height")&&oe?Pe.height=oe:ne.includes("minHeight")&&oe&&(Pe.minHeight=oe),ne.includes("width")&&de?Pe.width=de:ne.includes("minWidth")&&de&&(Pe.minWidth=de)),g||(Pe.pointerEvents="none"),f.createElement(N,{open:I||K,getContainer:M&&(()=>M(d)),autoDestroy:k,onEsc:r},f.createElement(my,{prefixCls:l,open:g,zIndex:B,mask:se,motion:fe,mobile:Y}),f.createElement(No,{onResize:te,disabled:!g},Ae=>f.createElement(Nr,sl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:`${l}-hidden`},xe,{onAppearPrepare:G,onEnterPrepare:G,visible:g,onVisibleChanged:Ze=>{var Be;(Be=E==null?void 0:E.onVisibleChanged)==null||Be.call(E,Ze),h(Ze)}}),({className:Ze,style:Be},nt)=>{const Ge=ce(l,Ze,s,{[`${l}-mobile`]:Y});return f.createElement("div",{ref:Sr(Ae,n,nt),className:Ge,style:{"--arrow-x":`${x.x||0}px`,"--arrow-y":`${x.y||0}px`,...we,...Pe,...Be,boxSizing:"border-box",zIndex:B,...c},onMouseEnter:z,onMouseLeave:$,onPointerEnter:j,onClick:y,onPointerDownCapture:V},_&&f.createElement(py,{prefixCls:l,arrow:_,arrowPos:x,align:b}),f.createElement(af,{cache:!g&&!v},ee))})),R)});process.env.NODE_ENV!=="production"&&(al.displayName="Popup");const Yi=f.createContext(null),cf=f.createContext(null);function uf(e){return e?Array.isArray(e)?e:[e]:[]}function gy(e,n,r){return f.useMemo(()=>{const o=uf(n??e),s=uf(r??e),l=new Set(o),c=new Set(s);return l.has("hover")&&!l.has("click")&&l.add("touch"),c.has("hover")&&!c.has("click")&&c.add("touch"),[l,c]},[e,n,r])}const ll=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:n,height:r}=e.getBBox();if(n||r)return!0}if(e.getBoundingClientRect){const{width:n,height:r}=e.getBoundingClientRect();if(n||r)return!0}}return!1};function vy(e=[],n=[],r){const o=(s,l)=>s[l]||"";return r?o(e,0)===o(n,0):o(e,0)===o(n,0)&&o(e,1)===o(n,1)}function df(e,n,r,o){var c;const{points:s}=r,l=Object.keys(e);for(let d=0;d<l.length;d+=1){const h=l[d];if(vy((c=e[h])==null?void 0:c.points,s,o))return`${n}-placement-${h}`}return""}function Yo(e){return e.ownerDocument.defaultView}function cl(e){const n=[];let r=e==null?void 0:e.parentElement;const o=["hidden","scroll","clip","auto"];for(;r;){const{overflowX:s,overflowY:l,overflow:c}=Yo(r).getComputedStyle(r);[s,l,c].some(d=>o.includes(d))&&n.push(r),r=r.parentElement}return n}function Xo(e,n=1){return Number.isNaN(e)?n:e}function Jo(e){return Xo(parseFloat(e),0)}function ff(e,n){const r={...e};return(n||[]).forEach(o=>{if(o instanceof HTMLBodyElement||o instanceof HTMLHtmlElement)return;const{overflow:s,overflowClipMargin:l,borderTopWidth:c,borderBottomWidth:d,borderLeftWidth:h,borderRightWidth:g}=Yo(o).getComputedStyle(o),m=o.getBoundingClientRect(),{offsetHeight:v,clientHeight:y,offsetWidth:C,clientWidth:_}=o,x=Jo(c),b=Jo(d),E=Jo(h),S=Jo(g),P=Xo(Math.round(m.width/C*1e3)/1e3),I=Xo(Math.round(m.height/v*1e3)/1e3),M=(C-_-E-S)*P,k=(v-y-x-b)*I,N=x*I,R=b*I,B=E*P,z=S*P;let $=0,j=0;if(s==="clip"){const J=Jo(l);$=J*P,j=J*I}const V=m.x+B-$,W=m.y+N-j,F=V+m.width+2*$-B-z-M,X=W+m.height+2*j-N-R-k;r.left=Math.max(r.left,V),r.top=Math.max(r.top,W),r.right=Math.min(r.right,F),r.bottom=Math.min(r.bottom,X)}),r}function hf(e,n=0){const r=`${n}`,o=r.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(r)}function pf(e,n){const[r,o]=n||[];return[hf(e.width,r),hf(e.height,o)]}function mf(e=""){return[e[0],e[1]]}function ro(e,n){const r=n[0],o=n[1];let s,l;return r==="t"?l=e.y:r==="b"?l=e.y+e.height:l=e.y+e.height/2,o==="l"?s=e.x:o==="r"?s=e.x+e.width:s=e.x+e.width/2,{x:s,y:l}}function yr(e,n){const r={t:"b",b:"t",l:"r",r:"l"},o=[...e];return o[n]=r[e[n]]||"c",o}function gf(e){return e.join("")}function vf(e,n,r,o,s,l,c,d){const[h,g]=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:s[o]||{}}),m=f.useRef(0),v=f.useMemo(()=>!n||d?[]:cl(n),[n]),y=f.useRef({});e||(()=>{y.current={}})();const _=ft(()=>{var E,S;if(n&&r&&e&&!d){let Ve=function(Me,Ne,Ue=Pe){const Tn=F.x+Me,gn=F.y+Ne,zn=Tn+ee,Co=gn+oe,He=Math.max(Tn,Ue.left),Ct=Math.max(gn,Ue.top),Dr=Math.min(zn,Ue.right),me=Math.min(Co,Ue.bottom);return Math.max(0,(Dr-He)*(me-Ct))},xt=function(){cn=F.y+Qe,Vt=cn+oe,Jt=F.x+ge,Lt=Jt+ee};const P=n,I=P.ownerDocument,M=Yo(P),{position:k}=M.getComputedStyle(P),N=P.style.left,R=P.style.top,B=P.style.right,z=P.style.bottom,$=P.style.overflow,j={...s[o],...l},V=I.createElement("div");(E=P.parentElement)==null||E.appendChild(V),V.style.left=`${P.offsetLeft}px`,V.style.top=`${P.offsetTop}px`,V.style.position=k,V.style.height=`${P.offsetHeight}px`,V.style.width=`${P.offsetWidth}px`,P.style.left="0",P.style.top="0",P.style.right="auto",P.style.bottom="auto",P.style.overflow="hidden";let W;if(Array.isArray(r))W={x:r[0],y:r[1],width:0,height:0};else{const Me=r.getBoundingClientRect();Me.x=Me.x??Me.left,Me.y=Me.y??Me.top,W={x:Me.x,y:Me.y,width:Me.width,height:Me.height}}const F=P.getBoundingClientRect(),{height:X,width:J}=M.getComputedStyle(P);F.x=F.x??F.left,F.y=F.y??F.top;const{clientWidth:Z,clientHeight:le,scrollWidth:G,scrollHeight:ie,scrollTop:ne,scrollLeft:de}=I.documentElement,oe=F.height,ee=F.width,K=W.height,Y=W.width,se={left:0,top:0,right:Z,bottom:le},fe={left:-de,top:-ne,right:G-de,bottom:ie-ne};let{htmlRegion:xe}=j;const Se="visible",Te="visibleFirst";xe!=="scroll"&&xe!==Te&&(xe=Se);const Ce=xe===Te,te=ff(fe,v),we=ff(se,v),Pe=xe===Se?we:te,Ae=Ce?we:Pe;P.style.left="auto",P.style.top="auto",P.style.right="0",P.style.bottom="0";const Ze=P.getBoundingClientRect();P.style.left=N,P.style.top=R,P.style.right=B,P.style.bottom=z,P.style.overflow=$,(S=P.parentElement)==null||S.removeChild(V);const Be=Xo(Math.round(ee/parseFloat(J)*1e3)/1e3),nt=Xo(Math.round(oe/parseFloat(X)*1e3)/1e3);if(Be===0||nt===0||Zr(r)&&!ll(r))return;const{offset:Ge,targetOffset:Ke}=j;let[ze,De]=pf(F,Ge);const[ot,St]=pf(W,Ke);W.x-=ot,W.y-=St;const[pt,dt]=j.points||[],mt=mf(dt),Oe=mf(pt),he=ro(W,mt),_e=ro(F,Oe),rt={...j};let $e=[Oe,mt],ge=he.x-_e.x+ze,Qe=he.y-_e.y+De;const Ye=Ve(ge,Qe),Nt=Ve(ge,Qe,we),Ht=ro(W,["t","l"]),vt=ro(F,["t","l"]),Et=ro(W,["b","r"]),kt=ro(F,["b","r"]),Je=j.overflow||{},{adjustX:rn,adjustY:mn,shiftX:on,shiftY:an}=Je,ln=Me=>typeof Me=="boolean"?Me:Me>=0;let cn,Vt,Jt,Lt;xt();const ve=ln(mn),Wt=Oe[0]===mt[0];if(ve&&Oe[0]==="t"&&(Vt>Ae.bottom||y.current.bt)){let Me=Qe;Wt?Me-=oe-K:Me=Ht.y-kt.y-De;const Ne=Ve(ge,Me),Ue=Ve(ge,Me,we);Ne>Ye||Ne===Ye&&(!Ce||Ue>=Nt)?(y.current.bt=!0,Qe=Me,De=-De,$e=[yr($e[0],0),yr($e[1],0)]):y.current.bt=!1}if(ve&&Oe[0]==="b"&&(cn<Ae.top||y.current.tb)){let Me=Qe;Wt?Me+=oe-K:Me=Et.y-vt.y-De;const Ne=Ve(ge,Me),Ue=Ve(ge,Me,we);Ne>Ye||Ne===Ye&&(!Ce||Ue>=Nt)?(y.current.tb=!0,Qe=Me,De=-De,$e=[yr($e[0],0),yr($e[1],0)]):y.current.tb=!1}const jt=ln(rn),T=Oe[1]===mt[1];if(jt&&Oe[1]==="l"&&(Lt>Ae.right||y.current.rl)){let Me=ge;T?Me-=ee-Y:Me=Ht.x-kt.x-ze;const Ne=Ve(Me,Qe),Ue=Ve(Me,Qe,we);Ne>Ye||Ne===Ye&&(!Ce||Ue>=Nt)?(y.current.rl=!0,ge=Me,ze=-ze,$e=[yr($e[0],1),yr($e[1],1)]):y.current.rl=!1}if(jt&&Oe[1]==="r"&&(Jt<Ae.left||y.current.lr)){let Me=ge;T?Me+=ee-Y:Me=Et.x-vt.x-ze;const Ne=Ve(Me,Qe),Ue=Ve(Me,Qe,we);Ne>Ye||Ne===Ye&&(!Ce||Ue>=Nt)?(y.current.lr=!0,ge=Me,ze=-ze,$e=[yr($e[0],1),yr($e[1],1)]):y.current.lr=!1}rt.points=[gf($e[0]),gf($e[1])],xt();const U=on===!0?0:on;typeof U=="number"&&(Jt<we.left&&(ge-=Jt-we.left-ze,W.x+Y<we.left+U&&(ge+=W.x-we.left+Y-U)),Lt>we.right&&(ge-=Lt-we.right-ze,W.x>we.right-U&&(ge+=W.x-we.right+U)));const re=an===!0?0:an;typeof re=="number"&&(cn<we.top&&(Qe-=cn-we.top-De,W.y+K<we.top+re&&(Qe+=W.y-we.top+K-re)),Vt>we.bottom&&(Qe-=Vt-we.bottom-De,W.y>we.bottom-re&&(Qe+=W.y-we.bottom+re)));const ue=F.x+ge,Ee=ue+ee,ye=F.y+Qe,ae=ye+oe,pe=W.x,We=pe+Y,Fe=W.y,et=Fe+K,gt=Math.max(ue,pe),yt=Math.min(Ee,We),wt=(gt+yt)/2-ue,Kt=Math.max(ye,Fe),Qt=Math.min(ae,et),ir=(Kt+Qt)/2-ye;c==null||c(n,rt);let Bn=Ze.right-F.x-(ge+F.width),_r=Ze.bottom-F.y-(Qe+F.height);Be===1&&(ge=Math.floor(ge),Bn=Math.floor(Bn)),nt===1&&(Qe=Math.floor(Qe),_r=Math.floor(_r));const wo={ready:!0,offsetX:ge/Be,offsetY:Qe/nt,offsetR:Bn/Be,offsetB:_r/nt,arrowX:wt/Be,arrowY:ir/nt,scaleX:Be,scaleY:nt,align:rt};g(wo)}}),x=()=>{m.current+=1;const E=m.current;Promise.resolve().then(()=>{m.current===E&&_()})},b=()=>{g(E=>({...E,ready:!1}))};return sn(b,[o]),sn(()=>{e||b()},[e]),[h.ready,h.offsetX,h.offsetY,h.offsetR,h.offsetB,h.arrowX,h.arrowY,h.scaleX,h.scaleY,h.align,x]}function yf(){const e=f.useRef(null),n=()=>{e.current&&(clearTimeout(e.current),e.current=null)},r=(o,s)=>{n(),s===0?o():e.current=setTimeout(()=>{o()},s*1e3)};return f.useEffect(()=>()=>{n()},[]),r}function yy(e,n,r,o,s){sn(()=>{if(e&&n&&r){let v=function(){o(),s()};const l=n,c=r,d=cl(l),h=cl(c),g=Yo(c),m=new Set([g,...d,...h]);return m.forEach(y=>{y.addEventListener("scroll",v,{passive:!0})}),g.addEventListener("resize",v,{passive:!0}),o(),()=>{m.forEach(y=>{y.removeEventListener("scroll",v),g.removeEventListener("resize",v)})}}},[e,n,r])}function by(e,n,r,o,s,l,c,d){const h=f.useRef(e);h.current=e;const g=f.useRef(!1);f.useEffect(()=>{var v,y;if(n&&o&&(!s||l)){const C=()=>{g.current=!1},_=E=>{var S,P;h.current&&!c(((P=(S=E.composedPath)==null?void 0:S.call(E))==null?void 0:P[0])||E.target)&&!g.current&&d(!1)},x=Yo(o);x.addEventListener("pointerdown",C,!0),x.addEventListener("mousedown",_,!0),x.addEventListener("contextmenu",_,!0);const b=Fi(r);if(b&&(b.addEventListener("mousedown",_,!0),b.addEventListener("contextmenu",_,!0)),process.env.NODE_ENV!=="production"&&r){const E=(v=r.getRootNode)==null?void 0:v.call(r),S=(y=o.getRootNode)==null?void 0:y.call(o);Oo(E===S,"trigger element and popup element should in same shadow root.")}return()=>{x.removeEventListener("pointerdown",C,!0),x.removeEventListener("mousedown",_,!0),x.removeEventListener("contextmenu",_,!0),b&&(b.removeEventListener("mousedown",_,!0),b.removeEventListener("contextmenu",_,!0))}}},[n,r,o,s,l]);function m(){g.current=!0}return m}function _y(){const[e,n]=A.useState(null),[r,o]=A.useState(!1),[s,l]=A.useState(!1),c=A.useRef(null),d=ft(g=>{g===!1?(c.current=null,o(!1)):s&&r?c.current=g:(o(!0),n(g),c.current=null,r||l(!0))}),h=ft(g=>{g?(l(!1),c.current&&(n(c.current),c.current=null)):(l(!1),c.current=null)});return[d,r,e,h]}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ul.apply(this,arguments)}const xy=e=>{const{prefixCls:n,isMobile:r,ready:o,open:s,align:l,offsetR:c,offsetB:d,offsetX:h,offsetY:g,arrowPos:m,popupSize:v,motion:y,uniqueContainerClassName:C,uniqueContainerStyle:_}=e,x=`${n}-unique-container`,[b,E]=A.useState(!1),S=lf(r,o,s,l,c,d,h,g),P=A.useRef(S);o&&(P.current=S);const I={};return v&&(I.width=v.width,I.height=v.height),A.createElement(Nr,ul({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${x}-hidden`},y,{visible:s,onVisibleChanged:M=>{E(M)}}),({className:M,style:k})=>{const N=ce(x,M,C,{[`${x}-visible`]:b});return A.createElement("div",{className:N,style:{"--arrow-x":`${(m==null?void 0:m.x)||0}px`,"--arrow-y":`${(m==null?void 0:m.y)||0}px`,...P.current,...I,...k,..._}})})},wy=({children:e,postTriggerProps:n})=>{const[r,o,s,l]=_y(),c=f.useMemo(()=>!s||!n?s:n(s),[s,n]),[d,h]=f.useState(null),[g,m]=f.useState(null),v=f.useRef(null),y=ft(Z=>{v.current=Z,Zr(Z)&&d!==Z&&h(Z)}),C=f.useRef(null),_=yf(),x=ft((Z,le)=>{C.current=le,_(()=>{r(Z)},Z.delay)}),b=Z=>{_(()=>{var le;(le=C.current)!=null&&le.call(C)||r(!1)},Z)},E=ft(Z=>{l(Z)}),[S,P,I,M,k,N,R,,,B,z]=vf(o,d,c==null?void 0:c.target,c==null?void 0:c.popupPlacement,(c==null?void 0:c.builtinPlacements)||{},c==null?void 0:c.popupAlign,void 0,!1),$=f.useMemo(()=>{var le;if(!c)return"";const Z=df(c.builtinPlacements||{},c.prefixCls||"",B,!1);return ce(Z,(le=c.getPopupClassNameFromAlign)==null?void 0:le.call(c,B))},[B,c==null?void 0:c.getPopupClassNameFromAlign,c==null?void 0:c.builtinPlacements,c==null?void 0:c.prefixCls]),j=f.useMemo(()=>({show:x,hide:b}),[]);f.useEffect(()=>{z()},[c==null?void 0:c.target]);const V=ft(()=>(z(),Promise.resolve())),W=f.useRef({}),F=f.useContext(Yi),X=f.useMemo(()=>({registerSubPopup:(Z,le)=>{W.current[Z]=le,F==null||F.registerSubPopup(Z,le)}}),[F]),J=c==null?void 0:c.prefixCls;return f.createElement(cf.Provider,{value:j},e,c&&f.createElement(Yi.Provider,{value:X},f.createElement(al,{ref:y,portal:Qi,onEsc:c.onEsc,prefixCls:J,popup:c.popup,className:ce(c.popupClassName,$,`${J}-unique-controlled`),style:c.popupStyle,target:c.target,open:o,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:E,ready:S,offsetX:P,offsetY:I,offsetR:M,offsetB:k,onAlign:z,onPrepare:V,onResize:Z=>m({width:Z.offsetWidth,height:Z.offsetHeight}),arrowPos:{x:N,y:R},align:B,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},f.createElement(xy,{prefixCls:J,isMobile:!1,ready:S,open:o,align:B,offsetR:M,offsetB:k,offsetX:P,offsetY:I,arrowPos:{x:N,y:R},popupSize:g,motion:c.popupMotion,uniqueContainerClassName:ce(c.uniqueContainerClassName,$),uniqueContainerStyle:c.uniqueContainerStyle}))))};function Cy(e=Qi){const n=f.forwardRef((r,o)=>{const{prefixCls:s="rc-trigger-popup",children:l,action:c="hover",showAction:d,hideAction:h,popupVisible:g,defaultPopupVisible:m,onOpenChange:v,afterOpenChange:y,onPopupVisibleChange:C,afterPopupVisibleChange:_,mouseEnterDelay:x,mouseLeaveDelay:b=.1,focusDelay:E,blurDelay:S,mask:P,maskClosable:I=!0,getPopupContainer:M,forceRender:k,autoDestroy:N,popup:R,popupClassName:B,uniqueContainerClassName:z,uniqueContainerStyle:$,popupStyle:j,popupPlacement:V,builtinPlacements:W={},popupAlign:F,zIndex:X,stretch:J,getPopupClassNameFromAlign:Z,fresh:le,unique:G,alignPoint:ie,onPopupClick:ne,onPopupAlign:de,arrow:oe,popupMotion:ee,maskMotion:K,mobile:Y,...se}=r,fe=N||!1,xe=g===void 0,Se=!!Y,Te=f.useRef({}),Ce=f.useContext(Yi),te=f.useMemo(()=>({registerSubPopup:(me,ke)=>{Te.current[me]=ke,Ce==null||Ce.registerSubPopup(me,ke)}}),[Ce]),we=f.useContext(cf),Pe=Ki(),[Ae,Ze]=f.useState(null),Be=f.useRef(null),nt=ft(me=>{Be.current=me,Zr(me)&&Ae!==me&&Ze(me),Ce==null||Ce.registerSubPopup(Pe,me)}),[Ge,Ke]=f.useState(null),ze=f.useRef(null),De=ft(me=>{const ke=Xs(me);Zr(ke)&&Ge!==ke&&(Ke(ke),ze.current=ke)}),ot={},St=ft(me=>{var Yt,Dn;const ke=Ge;return(ke==null?void 0:ke.contains(me))||((Yt=Fi(ke))==null?void 0:Yt.host)===me||me===ke||(Ae==null?void 0:Ae.contains(me))||((Dn=Fi(Ae))==null?void 0:Dn.host)===me||me===Ae||Object.values(Te.current).some(un=>(un==null?void 0:un.contains(me))||me===un)}),pt=oe?{...oe!==!0?oe:{}}:null,[dt,mt]=qn(m||!1,g),Oe=dt||!1,he=f.useMemo(()=>{const me=typeof l=="function"?l({open:Oe}):l;return f.Children.only(me)},[l,Oe]),_e=(he==null?void 0:he.props)||{},rt=ft(()=>Oe),$e=ft((me=0)=>({popup:R,target:Ge,delay:me,prefixCls:s,popupClassName:B,uniqueContainerClassName:z,uniqueContainerStyle:$,popupStyle:j,popupPlacement:V,builtinPlacements:W,popupAlign:F,zIndex:X,mask:P,maskClosable:I,popupMotion:ee,maskMotion:K,arrow:pt,getPopupContainer:M,getPopupClassNameFromAlign:Z,id:Pe,onEsc:Nt}));sn(()=>{we&&G&&Ge&&!xe&&!Ce&&(Oe?we.show($e(x),rt):we.hide(b))},[Oe,Ge]);const ge=f.useRef(Oe);ge.current=Oe;const Qe=ft(me=>{Ln.flushSync(()=>{Oe!==me&&(mt(me),v==null||v(me),C==null||C(me))})}),Ve=yf(),Ye=(me,ke=0)=>{if(g!==void 0){Ve(()=>{Qe(me)},ke);return}if(we&&G&&xe&&!Ce){me?we.show($e(ke),rt):we.hide(ke);return}Ve(()=>{Qe(me)},ke)};function Nt({top:me}){me&&Ye(!1)}const[Ht,vt]=f.useState(!1);sn(me=>{(!me||Oe)&&vt(!0)},[Oe]);const[Et,kt]=f.useState(null),[Je,rn]=f.useState(null),mn=me=>{rn([me.clientX,me.clientY])},[on,an,ln,cn,Vt,Jt,Lt,xt,ve,Wt,jt]=vf(Oe,Ae,ie&&Je!==null?Je:Ge,V,W,F,de,Se),[T,U]=gy(c,d,h),re=T.has("click"),ue=U.has("click")||U.has("contextMenu"),Ee=ft(()=>{Ht||jt()});yy(Oe,Ge,Ae,Ee,()=>{ge.current&&ie&&ue&&Ye(!1)}),sn(()=>{Ee()},[Je,V]),sn(()=>{Oe&&!(W!=null&&W[V])&&Ee()},[JSON.stringify(F)]);const ae=f.useMemo(()=>{const me=df(W,s,Wt,ie);return ce(me,Z==null?void 0:Z(Wt))},[Wt,Z,W,s,ie]);f.useImperativeHandle(o,()=>({nativeElement:ze.current,popupElement:Be.current,forceAlign:Ee}));const[pe,We]=f.useState(0),[Fe,et]=f.useState(0),gt=()=>{if(J&&Ge){const me=Ge.getBoundingClientRect();We(me.width),et(me.height)}},yt=()=>{gt(),Ee()},Gt=me=>{vt(!1),jt(),y==null||y(me),_==null||_(me)},wt=()=>new Promise(me=>{gt(),kt(()=>me)});sn(()=>{Et&&(jt(),Et(),kt(null))},[Et]);function Kt(me,ke,Yt,Dn,un){ot[me]=(Pt,...sr)=>{var xr;(!un||!un())&&(Dn==null||Dn(Pt),Ye(ke,Yt)),(xr=_e[me])==null||xr.call(_e,Pt,...sr)}}const Qt=T.has("touch"),br=U.has("touch"),ir=f.useRef(!1);(Qt||br)&&(ot.onTouchStart=(...me)=>{var ke;ir.current=!0,ge.current&&br?Ye(!1):!ge.current&&Qt&&Ye(!0),(ke=_e.onTouchStart)==null||ke.call(_e,...me)}),(re||ue)&&(ot.onClick=(me,...ke)=>{var Yt;ge.current&&ue?Ye(!1):!ge.current&&re&&(mn(me),Ye(!0)),(Yt=_e.onClick)==null||Yt.call(_e,me,...ke),ir.current=!1});const Bn=by(Oe,ue||br,Ge,Ae,P,I,St,Ye),_r=T.has("hover"),wo=U.has("hover");let Me,Ne;const Ue=()=>ir.current;if(_r){const me=ke=>{mn(ke)};Kt("onMouseEnter",!0,x,me,Ue),Kt("onPointerEnter",!0,x,me,Ue),Me=ke=>{(Oe||Ht)&&(Ae!=null&&Ae.contains(ke.target))&&Ye(!0,x)},ie&&(ot.onMouseMove=ke=>{var Yt;(Yt=_e.onMouseMove)==null||Yt.call(_e,ke)})}wo&&(Kt("onMouseLeave",!1,b,void 0,Ue),Kt("onPointerLeave",!1,b,void 0,Ue),Ne=()=>{Ye(!1,b)}),T.has("focus")&&Kt("onFocus",!0,E),U.has("focus")&&Kt("onBlur",!1,S),T.has("contextMenu")&&(ot.onContextMenu=(me,...ke)=>{var Yt;ge.current&&U.has("contextMenu")?Ye(!1):(mn(me),Ye(!0)),me.preventDefault(),(Yt=_e.onContextMenu)==null||Yt.call(_e,me,...ke)});const Tn=f.useRef(!1);Tn.current||(Tn.current=k||Oe||Ht);const gn={..._e,...ot},zn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(me=>{se[me]&&(zn[me]=(...ke)=>{var Yt;(Yt=gn[me])==null||Yt.call(gn,...ke),se[me](...ke)})});const He={x:Jt,y:Lt};iu(Oe,Ge,yt);const Ct=Wr(De,dr(he)),Dr=f.cloneElement(he,{...gn,...zn,ref:Ct});return f.createElement(f.Fragment,null,Dr,Tn.current&&(!we||!G)&&f.createElement(Yi.Provider,{value:te},f.createElement(al,{portal:e,ref:nt,prefixCls:s,popup:R,className:ce(B,!Se&&ae),style:j,target:Ge,onMouseEnter:Me,onMouseLeave:Ne,onPointerEnter:Me,zIndex:X,open:Oe,keepDom:Ht,fresh:le,onClick:ne,onPointerDownCapture:Bn,mask:P,motion:ee,maskMotion:K,onVisibleChanged:Gt,onPrepare:wt,forceRender:k,autoDestroy:fe,getPopupContainer:M,onEsc:Nt,align:Wt,arrow:pt,arrowPos:He,ready:on,offsetX:an,offsetY:ln,offsetR:cn,offsetB:Vt,onAlign:Ee,stretch:J,targetWidth:pe/xt,targetHeight:Fe/ve,mobile:Y})))});return process.env.NODE_ENV!=="production"&&(n.displayName="Trigger"),n}const dl=Cy(Qi);function bf(e){return e&&A.isValidElement(e)&&e.type===A.Fragment}const Sy=(e,n,r)=>A.isValidElement(e)?A.cloneElement(e,typeof r=="function"?r(e.props||{}):r):n;function nr(e,n){return Sy(e,e,n)}const Ey=({children:e})=>{const{getPrefixCls:n}=A.useContext(Ot),r=n();return A.isValidElement(e)?A.createElement(Nr,{visible:!0,motionName:`${r}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:o,className:s})=>nr(e,l=>({className:ce(l.className,s),style:{...l.style,...o}}))):e},Xi=[null,null];function Py(e){if(Xi[0]!==e){const n={};Object.keys(e).forEach(r=>{n[r]={...e[r],dynamicInset:!1}}),Xi[0]=e,Xi[1]=n}return Xi[1]}const _f=({children:e})=>{const n=r=>{const{id:o,builtinPlacements:s,popup:l}=r,c=typeof l=="function"?l():l,d=Py(s);return{...r,getPopupContainer:null,arrow:!1,popup:A.createElement(Ey,{key:o},c),builtinPlacements:d}};return A.createElement(wy,{postTriggerProps:n},e)},fl=f.createContext(!1),Iy=({children:e,disabled:n})=>{const r=f.useContext(fl);return f.createElement(fl.Provider,{value:n??r},e)},hl=fl,pl=f.createContext(void 0),Ty=({children:e,size:n})=>{const r=f.useContext(pl);return f.createElement(pl.Provider,{value:n||r},e)},Ji=pl;function Ay(){const e=A.useContext(hl),n=A.useContext(Ji);return{componentDisabled:e,componentSize:n}}function My(e,n,r){var d;const o=hn("ConfigProvider"),s=e||{},l=s.inherit===!1||!n?{...Za,hashed:(n==null?void 0:n.hashed)??Za.hashed,cssVar:n==null?void 0:n.cssVar}:n,c=A.useId();if(process.env.NODE_ENV!=="production"){const h=s.cssVar||l.cssVar,g=!!(typeof s.cssVar=="object"&&((d=s.cssVar)!=null&&d.key)||c);process.env.NODE_ENV!=="production"&&o(!h||g,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ei(()=>{var v;if(!e)return n;const h={...l.components};Object.keys(e.components||{}).forEach(y=>{h[y]={...h[y],...e.components[y]}});const g=`css-var-${c.replace(/:/g,"")}`,m={prefix:r==null?void 0:r.prefixCls,...l.cssVar,...s.cssVar,key:((v=s.cssVar)==null?void 0:v.key)||g};return{...l,...s,token:{...l.token,...s.token},components:h,cssVar:m}},[s,l],(h,g)=>h.some((m,v)=>{const y=g[v];return!$o(m,y,!0)}))}const ml=f.createContext(!0);process.env.NODE_ENV!=="production"&&(ml.displayName="MotionCacheContext");function Ly(e){const n=f.useContext(ml),{children:r}=e,[,o]=mr(),{motion:s}=o,l=f.useRef(!1);return l.current||(l.current=n!==s),l.current?f.createElement(ml.Provider,{value:s},f.createElement(Tv,{motion:s},r)):r}const xf=f.memo(({dropdownMatchSelectWidth:e})=>(hn("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(xf.displayName="PropWarning");const Oy=process.env.NODE_ENV!=="production"?xf:()=>null,Ny=({iconPrefixCls:e,csp:n})=>(bv(e,n),null);let gl=!1;process.env.NODE_ENV;const ky=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Ry=e=>{},$y=e=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:s,affix:l,anchor:c,form:d,locale:h,componentSize:g,direction:m,space:v,splitter:y,virtual:C,dropdownMatchSelectWidth:_,popupMatchSelectWidth:x,popupOverflow:b,legacyLocale:E,parentContext:S,iconPrefixCls:P,theme:I,componentDisabled:M,segmented:k,statistic:N,spin:R,calendar:B,carousel:z,cascader:$,collapse:j,typography:V,checkbox:W,descriptions:F,divider:X,drawer:J,skeleton:Z,steps:le,image:G,layout:ie,list:ne,mentions:de,modal:oe,progress:ee,result:K,slider:Y,breadcrumb:se,masonry:fe,menu:xe,pagination:Se,input:Te,textArea:Ce,otp:te,empty:we,badge:Pe,radio:Ae,rate:Ze,ribbon:Be,switch:nt,transfer:Ge,avatar:Ke,message:ze,tag:De,table:ot,card:St,cardMeta:pt,tabs:dt,timeline:mt,timePicker:Oe,upload:he,notification:_e,tree:rt,colorPicker:$e,datePicker:ge,rangePicker:Qe,flex:Ve,wave:Ye,dropdown:Nt,warning:Ht,tour:vt,tooltip:Et,popover:kt,popconfirm:Je,qrcode:rn,floatButton:mn,floatButtonGroup:on,variant:an,inputNumber:ln,treeSelect:cn,watermark:Vt}=e,Jt=f.useCallback((ae,pe)=>{const{prefixCls:We}=e;if(pe)return pe;const Fe=We||S.getPrefixCls("");return ae?`${Fe}-${ae}`:Fe},[S.getPrefixCls,e.prefixCls]),Lt=P||S.iconPrefixCls||ra,xt=r||S.csp,ve=My(I,S.theme,{prefixCls:Jt("")});process.env.NODE_ENV!=="production"&&(gl=gl||!!ve);const Wt={csp:xt,autoInsertSpaceInButton:o,alert:s,affix:l,anchor:c,locale:h||E,direction:m,space:v,splitter:y,virtual:C,popupMatchSelectWidth:x??_,popupOverflow:b,getPrefixCls:Jt,iconPrefixCls:Lt,theme:ve,segmented:k,statistic:N,spin:R,calendar:B,carousel:z,cascader:$,collapse:j,typography:V,checkbox:W,descriptions:F,divider:X,drawer:J,skeleton:Z,steps:le,image:G,input:Te,textArea:Ce,otp:te,layout:ie,list:ne,mentions:de,modal:oe,progress:ee,result:K,slider:Y,breadcrumb:se,masonry:fe,menu:xe,pagination:Se,empty:we,badge:Pe,radio:Ae,rate:Ze,ribbon:Be,switch:nt,transfer:Ge,avatar:Ke,message:ze,tag:De,table:ot,card:St,cardMeta:pt,tabs:dt,timeline:mt,timePicker:Oe,upload:he,notification:_e,tree:rt,colorPicker:$e,datePicker:ge,rangePicker:Qe,flex:Ve,wave:Ye,dropdown:Nt,warning:Ht,tour:vt,tooltip:Et,popover:kt,popconfirm:Je,qrcode:rn,floatButton:mn,floatButtonGroup:on,variant:an,inputNumber:ln,treeSelect:cn,watermark:Vt};process.env.NODE_ENV!=="production"&&hn("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const jt={...S};Object.keys(Wt).forEach(ae=>{Wt[ae]!==void 0&&(jt[ae]=Wt[ae])}),ky.forEach(ae=>{const pe=e[ae];pe&&(jt[ae]=pe)}),typeof o<"u"&&(jt.button={autoInsertSpace:o,...jt.button});const T=Ei(()=>jt,jt,(ae,pe)=>{const We=Object.keys(ae),Fe=Object.keys(pe);return We.length!==Fe.length||We.some(et=>ae[et]!==pe[et])}),{layer:U}=f.useContext(Bo),re=f.useMemo(()=>({prefixCls:Lt,csp:xt,layer:U?"antd":void 0}),[Lt,xt,U]);let ue=f.createElement(f.Fragment,null,f.createElement(Ny,{iconPrefixCls:Lt,csp:xt}),f.createElement(Oy,{dropdownMatchSelectWidth:_}),n);const Ee=f.useMemo(()=>{var ae,pe,We,Fe;return jr(((ae=qi.Form)==null?void 0:ae.defaultValidateMessages)||{},((We=(pe=T.locale)==null?void 0:pe.Form)==null?void 0:We.defaultValidateMessages)||{},((Fe=T.form)==null?void 0:Fe.validateMessages)||{},(d==null?void 0:d.validateMessages)||{})},[T,d==null?void 0:d.validateMessages]);Object.keys(Ee).length>0&&(ue=f.createElement(ty.Provider,{value:Ee},ue)),h&&(ue=f.createElement(Gv,{locale:h,_ANT_MARK__:Wd},ue)),(Lt||xt)&&(ue=f.createElement(Qa.Provider,{value:re},ue)),g&&(ue=f.createElement(Ty,{size:g},ue)),ue=f.createElement(Ly,null,ue),Et!=null&&Et.unique&&(ue=f.createElement(_f,null,ue));const ye=f.useMemo(()=>{const{algorithm:ae,token:pe,components:We,cssVar:Fe,...et}=ve||{},gt=ae&&(!Array.isArray(ae)||ae.length>0)?ua(ae):dd,yt={};Object.entries(We||{}).forEach(([wt,Kt])=>{const Qt={...Kt};"algorithm"in Qt&&(Qt.algorithm===!0?Qt.theme=gt:(Array.isArray(Qt.algorithm)||typeof Qt.algorithm=="function")&&(Qt.theme=ua(Qt.algorithm)),delete Qt.algorithm),yt[wt]=Qt});const Gt={...Zo,...pe};return{...et,theme:gt,token:Gt,components:yt,override:{override:Gt,...yt},cssVar:Fe}},[ve]);return I&&(ue=f.createElement(fd.Provider,{value:ye},ue)),T.warning&&(ue=f.createElement(nu.Provider,{value:T.warning},ue)),M!==void 0&&(ue=f.createElement(Iy,{disabled:M},ue)),f.createElement(Ot.Provider,{value:T},ue)},Rr=e=>{const n=f.useContext(Ot),r=f.useContext(Vd);return f.createElement($y,{parentContext:n,legacyLocale:r,...e})};Rr.ConfigContext=Ot,Rr.SizeContext=Ji,Rr.config=Ry,Rr.useConfig=Ay,Object.defineProperty(Rr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Ys(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ji)}),process.env.NODE_ENV!=="production"&&(Rr.displayName="ConfigProvider");const Ie={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(n){const{keyCode:r}=n;if(n.altKey&&!n.ctrlKey||n.metaKey||r>=Ie.F1&&r<=Ie.F12)return!1;switch(r){case Ie.ALT:case Ie.CAPS_LOCK:case Ie.CONTEXT_MENU:case Ie.CTRL:case Ie.DOWN:case Ie.END:case Ie.ESC:case Ie.HOME:case Ie.INSERT:case Ie.LEFT:case Ie.MAC_FF_META:case Ie.META:case Ie.NUMLOCK:case Ie.NUM_CENTER:case Ie.PAGE_DOWN:case Ie.PAGE_UP:case Ie.PAUSE:case Ie.PRINT_SCREEN:case Ie.RIGHT:case Ie.SHIFT:case Ie.UP:case Ie.WIN_KEY:case Ie.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(n){if(n>=Ie.ZERO&&n<=Ie.NINE||n>=Ie.NUM_ZERO&&n<=Ie.NUM_MULTIPLY||n>=Ie.A&&n<=Ie.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&n===0)return!0;switch(n){case Ie.SPACE:case Ie.QUESTION_MARK:case Ie.NUM_PLUS:case Ie.NUM_MINUS:case Ie.NUM_PERIOD:case Ie.NUM_DIVISION:case Ie.SEMICOLON:case Ie.DASH:case Ie.EQUALS:case Ie.COMMA:case Ie.PERIOD:case Ie.SLASH:case Ie.APOSTROPHE:case Ie.SINGLE_QUOTE:case Ie.OPEN_SQUARE_BRACKET:case Ie.BACKSLASH:case Ie.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(n){const r=n.target;if(!(r instanceof HTMLElement))return!1;const o=r.tagName;return!!(o==="INPUT"||o==="TEXTAREA"||o==="SELECT"||r.isContentEditable)}};var By={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const zy=By;function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},vl.apply(this,arguments)}const Dy=(e,n)=>f.createElement(Ko,vl({},e,{ref:n,icon:zy})),wf=f.forwardRef(Dy);process.env.NODE_ENV!=="production"&&(wf.displayName="LoadingOutlined");const Fy=wf;var oo,es=Ln;if(process.env.NODE_ENV==="production")oo=es.createRoot,es.hydrateRoot;else{var Cf=es.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;oo=function(e,n){Cf.usingClientEntryPoint=!0;try{return es.createRoot(e,n)}finally{Cf.usingClientEntryPoint=!1}}}const ts="__rc_react_root__";function Hy(e,n){const r=n[ts]||oo(n);r.render(e),n[ts]=r}async function Vy(e){return Promise.resolve().then(()=>{var n;(n=e[ts])==null||n.unmount(),delete e[ts]})}const yl=()=>({height:0,opacity:0}),Sf=e=>{const{scrollHeight:n}=e;return{height:n,opacity:1}},Wy=e=>({height:e?e.offsetHeight:0}),bl=(e,n)=>(n==null?void 0:n.deadline)===!0||n.propertyName==="height",jy=(e=Ii)=>({motionName:`${e}-motion-collapse`,onAppearStart:yl,onEnterStart:yl,onAppearActive:Sf,onEnterActive:Sf,onLeaveStart:Wy,onLeaveActive:yl,onAppearEnd:bl,onEnterEnd:bl,onLeaveEnd:bl,motionDeadline:500}),Zy=(e,n,r)=>r!==void 0?r:`${e}-${n}`,Uy=gv("Wave",e=>{const{componentCls:n,colorPrimary:r,antCls:o}=e,[,s]=gr(o,"wave");return{[n]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:s("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}}),_l=`${Ii}-wave-target`;function Ef(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function qy(e,n=null){const r=getComputedStyle(e),{borderTopColor:o,borderColor:s,backgroundColor:l}=r;return n&&Ef(r[n])?r[n]:[o,s,l].find(Ef)??null}function xl(e){return Number.isNaN(e)?0:e}const Gy=e=>{const{className:n,target:r,component:o,colorSource:s}=e,l=f.useRef(null),{getPrefixCls:c}=f.useContext(Ot),d=c(),[h]=gr(d,"wave"),[g,m]=f.useState(null),[v,y]=f.useState([]),[C,_]=f.useState(0),[x,b]=f.useState(0),[E,S]=f.useState(0),[P,I]=f.useState(0),[M,k]=f.useState(!1),N={left:C,top:x,width:E,height:P,borderRadius:v.map(z=>`${z}px`).join(" ")};g&&(N[h("color")]=g);function R(){const z=getComputedStyle(r);m(qy(r,s));const $=z.position==="static",{borderLeftWidth:j,borderTopWidth:V}=z;_($?r.offsetLeft:xl(-Number.parseFloat(j))),b($?r.offsetTop:xl(-Number.parseFloat(V))),S(r.offsetWidth),I(r.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:F,borderBottomLeftRadius:X,borderBottomRightRadius:J}=z;y([W,F,J,X].map(Z=>xl(Number.parseFloat(Z))))}if(f.useEffect(()=>{if(r){const z=Ut(()=>{R(),k(!0)});let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(R),$.observe(r)),()=>{Ut.cancel(z),$==null||$.disconnect()}}},[r]),!M)return null;const B=(o==="Checkbox"||o==="Radio")&&(r==null?void 0:r.classList.contains(_l));return f.createElement(Nr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(z,$)=>{var j;if($.deadline||$.propertyName==="opacity"){const V=(j=l.current)==null?void 0:j.parentElement;Vy(V).then(()=>{V==null||V.remove()})}return!1}},({className:z},$)=>f.createElement("div",{ref:Sr(l,$),className:ce(n,z,{"wave-quick":B}),style:N}))},Ky=(e,n)=>{var s;const{component:r}=n;if(r==="Checkbox"&&!((s=e.querySelector("input"))!=null&&s.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),Hy(f.createElement(Gy,{...n,target:e}),o)},Qy=(e,n,r,o)=>{const{wave:s}=f.useContext(Ot),[,l,c]=mr(),d=ft(m=>{const v=e.current;if(s!=null&&s.disabled||!v)return;const y=v.querySelector(`.${_l}`)||v,{showEffect:C}=s||{};(C||Ky)(y,{className:n,token:l,component:r,event:m,hashId:c,colorSource:o})}),h=f.useRef(null);return f.useEffect(()=>()=>{Ut.cancel(h.current)},[]),m=>{Ut.cancel(h.current),h.current=Ut(()=>{d(m)})}},Pf=e=>{const{children:n,disabled:r,component:o,colorSource:s}=e,{getPrefixCls:l}=A.useContext(Ot),c=A.useRef(null),d=l("wave"),h=Uy(d),g=Qy(c,ce(d,h),o,s);if(A.useEffect(()=>{const v=c.current;if(!v||v.nodeType!==window.Node.ELEMENT_NODE||r)return;const y=C=>{!ll(C.target)||!v.getAttribute||v.getAttribute("disabled")||v.disabled||v.className.includes("disabled")&&!v.className.includes("disabled:")||v.getAttribute("aria-disabled")==="true"||v.className.includes("-leave")||g(C)};return v.addEventListener("click",y,!0),()=>{v.removeEventListener("click",y,!0)}},[r]),!A.isValidElement(n))return n??null;const m=Er(n)?Sr(dr(n),c):c;return nr(n,{ref:m})};process.env.NODE_ENV!=="production"&&(Pf.displayName="Wave");const If=Pf,Tf=e=>{const n=A.useContext(Ji);return A.useMemo(()=>e?typeof e=="string"?e??n:typeof e=="function"?e(n):n:n,[e,n])},Yy=e=>{const{componentCls:n}=e;return{[n]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Xy=Vn(["Space","Compact"],e=>[Yy(e)],()=>({}),{resetStyle:!1}),ns=f.createContext(null),wl=(e,n)=>{const r=f.useContext(ns),o=f.useMemo(()=>{if(!r)return"";const{compactDirection:s,isFirstItem:l,isLastItem:c}=r,d=s==="vertical"?"-vertical-":"-";return ce(`${e}-compact${d}item`,{[`${e}-compact${d}first-item`]:l,[`${e}-compact${d}last-item`]:c,[`${e}-compact${d}item-rtl`]:n==="rtl"})},[e,n,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:o}},Jy=e=>{const{children:n}=e;return f.createElement(ns.Provider,{value:null},n)},eb=e=>{const{children:n,...r}=e;return f.createElement(ns.Provider,{value:f.useMemo(()=>r,[r])},n)},tb=e=>{const{getPrefixCls:n,direction:r}=f.useContext(Ot),{size:o,direction:s,orientation:l,block:c,prefixCls:d,className:h,rootClassName:g,children:m,vertical:v,...y}=e;process.env.NODE_ENV!=="production"&&hn("Space.Compact").deprecated(!s,"direction","orientation");const[C,_]=Gd(l,v,s),x=Tf(k=>o??k),b=n("space-compact",d),[E]=Xy(b),S=ce(b,E,{[`${b}-rtl`]:r==="rtl",[`${b}-block`]:c,[`${b}-vertical`]:_},h,g),P=f.useContext(ns),I=Gn(m),M=f.useMemo(()=>I.map((k,N)=>{const R=(k==null?void 0:k.key)||`${b}-item-${N}`;return f.createElement(eb,{key:R,compactSize:x,compactDirection:C,isFirstItem:N===0&&(!P||(P==null?void 0:P.isFirstItem)),isLastItem:N===I.length-1&&(!P||(P==null?void 0:P.isLastItem))},k)}),[I,P,C,x,b]);return I.length===0?null:f.createElement("div",{className:S,...y},M)},Af=f.createContext(void 0),nb=e=>{const{getPrefixCls:n,direction:r}=f.useContext(Ot),{prefixCls:o,size:s,className:l,...c}=e,d=n("btn-group",o),[,,h]=mr(),g=f.useMemo(()=>{switch(s){case"large":return"lg";case"small":return"sm";default:return""}},[s]);if(process.env.NODE_ENV!=="production"){const v=hn("Button.Group");v.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&v(!s||["large","small","middle"].includes(s),"usage","Invalid prop `size`.")}const m=ce(d,{[`${d}-${g}`]:g,[`${d}-rtl`]:r==="rtl"},l,h);return f.createElement(Af.Provider,{value:s},f.createElement("div",{...c,className:m}))},Mf=/^[\u4E00-\u9FA5]{2}$/,Cl=Mf.test.bind(Mf);function Lf(e){return typeof e=="string"}function rs(e){return e==="text"||e==="link"}function rb(e,n,r,o){if(!to(e)||e==="")return;const s=n?" ":"";return typeof e!="string"&&typeof e!="number"&&Lf(e.type)&&Cl(e.props.children)?nr(e,l=>{const c=ce(l.className,o)||void 0,d={...r,...l.style};return{...l,children:l.children.split("").join(s),className:c,style:d}}):Lf(e)?A.createElement("span",{className:o,style:r},Cl(e)?e.split("").join(s):e):bf(e)?A.createElement("span",{className:o,style:r},e):nr(e,l=>({...l,className:ce(l.className,o)||void 0,style:{...l.style,...r}}))}function ob(e,n,r,o){let s=!1;const l=[];return A.Children.forEach(e,c=>{const d=typeof c,h=d==="string"||d==="number";if(s&&h){const g=l.length-1,m=l[g];l[g]=`${m}${c}`}else l.push(c);s=h}),A.Children.map(l,c=>rb(c,n,r,o))}["default","primary","danger"].concat(bn(Or));const Of=A.forwardRef((e,n)=>{const{className:r,style:o,children:s,prefixCls:l}=e,c=ce(`${l}-icon`,r);return A.createElement("span",{ref:n,className:c,style:o},s)}),Nf=A.forwardRef((e,n)=>{const{prefixCls:r,className:o,style:s,iconClassName:l}=e,c=ce(`${r}-loading-icon`,o);return A.createElement(Of,{prefixCls:r,className:c,style:s,ref:n},A.createElement(Fy,{className:l}))}),Sl=()=>({width:0,opacity:0,transform:"scale(0)"}),El=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),ib=e=>{const{prefixCls:n,loading:r,existIcon:o,className:s,style:l,mount:c}=e,d=!!r;return o?A.createElement(Nf,{prefixCls:n,className:s,style:l}):A.createElement(Nr,{visible:d,motionName:`${n}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Sl,onAppearActive:El,onEnterStart:Sl,onEnterActive:El,onLeaveStart:El,onLeaveActive:Sl},({className:h,style:g},m)=>{const v={...l,...g};return A.createElement(Nf,{prefixCls:n,className:ce(s,h),style:v,ref:m})})},kf=(e,n)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:n}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:n}}}}}),sb=e=>{const{componentCls:n,fontSize:r,lineWidth:o,groupBorderColor:s,colorErrorHover:l}=e;return{[`${n}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${n}`]:{"&:not(:last-child)":{[`&, & > ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).mul(-1).equal(),[`&, & > ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[n]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${n}-icon-only`]:{fontSize:r}},kf(`${n}-primary`,s),kf(`${n}-danger`,l)]}},Pl=e=>Math.round(Number(e||0)),ab=e=>{if(e instanceof At)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:n,...r}=e;return{...r,v:n}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class rr extends At{constructor(n){super(ab(n))}toHsbString(){const n=this.toHsb(),r=Pl(n.s*100),o=Pl(n.b*100),s=Pl(n.h),l=n.a,c=`hsb(${s}, ${r}%, ${o}%)`,d=`hsba(${s}, ${r}%, ${o}%, ${l.toFixed(l===0?0:2)})`;return l===1?c:d}toHsb(){const{v:n,...r}=this.toHsv();return{...r,b:n,a:this.a}}}const lb="rc-color-picker",io=e=>e instanceof rr?e:new rr(e),cb=io("#1677ff"),Rf=e=>{const{offset:n,targetRef:r,containerRef:o,color:s,type:l}=e,{width:c,height:d}=o.current.getBoundingClientRect(),{width:h,height:g}=r.current.getBoundingClientRect(),m=h/2,v=g/2,y=(n.x+m)/c,C=1-(n.y+v)/d,_=s.toHsb(),x=y,b=(n.x+m)/c*360;if(l)switch(l){case"hue":return io({..._,h:b<=0?0:b});case"alpha":return io({..._,a:x<=0?0:x})}return io({h:_.h,s:y<=0?0:y,b:C>=1?1:C,a:_.a})},$f=(e,n)=>{const r=e.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:e.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},ub=({color:e,prefixCls:n,className:r,style:o,onClick:s})=>{const l=`${n}-color-block`;return A.createElement("div",{className:ce(l,r),style:o,onClick:s},A.createElement("div",{className:`${l}-inner`,style:{background:e}}))};function db(e){const n="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,o=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:n.pageX-r,pageY:n.pageY-o}}function Bf(e){const{targetRef:n,containerRef:r,direction:o,onDragChange:s,onDragChangeComplete:l,calculate:c,color:d,disabledDrag:h}=e,[g,m]=A.useState({x:0,y:0}),v=A.useRef(null),y=A.useRef(null);A.useEffect(()=>{m(c())},[d]),A.useEffect(()=>()=>{document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",y.current),v.current=null,y.current=null},[]);const C=E=>{const{pageX:S,pageY:P}=db(E),{x:I,y:M,width:k,height:N}=r.current.getBoundingClientRect(),{width:R,height:B}=n.current.getBoundingClientRect(),z=R/2,$=B/2,j=Math.max(0,Math.min(S-I,k))-z,V=Math.max(0,Math.min(P-M,N))-$,W={x:j,y:o==="x"?g.y:V};if(R===0&&B===0||R!==B)return!1;s==null||s(W)},_=E=>{E.preventDefault(),C(E)},x=E=>{E.preventDefault(),document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",v.current),document.removeEventListener("touchend",y.current),v.current=null,y.current=null,l==null||l()};return[g,E=>{document.removeEventListener("mousemove",v.current),document.removeEventListener("mouseup",y.current),!h&&(C(E),document.addEventListener("mousemove",_),document.addEventListener("mouseup",x),document.addEventListener("touchmove",_),document.addEventListener("touchend",x),v.current=_,y.current=x)}]}const zf=({size:e="default",color:n,prefixCls:r})=>A.createElement("div",{className:ce(`${r}-handler`,{[`${r}-handler-sm`]:e==="small"}),style:{backgroundColor:n}}),Df=({children:e,style:n,prefixCls:r})=>A.createElement("div",{className:`${r}-palette`,style:{position:"relative",...n}},e),Ff=A.forwardRef((e,n)=>{const{children:r,x:o,y:s}=e;return A.createElement("div",{ref:n,style:{position:"absolute",left:`${o}%`,top:`${s}%`,zIndex:1,transform:"translate(-50%, -50%)"}},r)}),fb=({color:e,onChange:n,prefixCls:r,onChangeComplete:o,disabled:s})=>{const l=A.useRef(),c=A.useRef(),d=A.useRef(e),h=ft(v=>{const y=Rf({offset:v,targetRef:c,containerRef:l,color:e});d.current=y,n(y)}),[g,m]=Bf({color:e,containerRef:l,targetRef:c,calculate:()=>$f(e),onDragChange:h,onDragChangeComplete:()=>o==null?void 0:o(d.current),disabledDrag:s});return A.createElement("div",{ref:l,className:`${r}-select`,onMouseDown:m,onTouchStart:m},A.createElement(Df,{prefixCls:r},A.createElement(Ff,{x:g.x,y:g.y,ref:c},A.createElement(zf,{color:e.toRgbString(),prefixCls:r})),A.createElement("div",{className:`${r}-saturation`,style:{backgroundColor:`hsl(${e.toHsb().h},100%, 50%)`,backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},hb=(e,n)=>{const[r,o]=qn(e,n);return[A.useMemo(()=>io(r),[r]),o]},pb=({colors:e,children:n,direction:r="to right",type:o,prefixCls:s})=>{const l=A.useMemo(()=>e.map((c,d)=>{let h=io(c);return o==="alpha"&&d===e.length-1&&(h=new rr(h.setA(1))),h.toRgbString()}).join(","),[e,o]);return A.createElement("div",{className:`${s}-gradient`,style:{position:"absolute",inset:0,background:`linear-gradient(${r}, ${l})`}},n)},mb=e=>{const{prefixCls:n,colors:r,disabled:o,onChange:s,onChangeComplete:l,color:c,type:d}=e,h=A.useRef(null),g=A.useRef(null),m=A.useRef(c),v=E=>d==="hue"?E.getHue():E.a*100,y=ft(E=>{const S=Rf({offset:E,targetRef:g,containerRef:h,color:c,type:d});m.current=S,s(v(S))}),[C,_]=Bf({color:c,targetRef:g,containerRef:h,calculate:()=>$f(c,d),onDragChange:y,onDragChangeComplete(){l(v(m.current))},direction:"x",disabledDrag:o}),x=A.useMemo(()=>{if(d==="hue"){const E=c.toHsb();return E.s=1,E.b=1,E.a=1,new rr(E)}return c},[c,d]),b=A.useMemo(()=>r.map(E=>`${E.color} ${E.percent}%`),[r]);return A.createElement("div",{ref:h,className:ce(`${n}-slider`,`${n}-slider-${d}`),onMouseDown:_,onTouchStart:_},A.createElement(Df,{prefixCls:n},A.createElement(Ff,{x:C.x,y:C.y,ref:g},A.createElement(zf,{size:"small",color:x.toHexString(),prefixCls:n})),A.createElement(pb,{colors:b,type:d,prefixCls:n})))};function gb(e){return f.useMemo(()=>{const{slider:n}=e||{};return[n||mb]},[e])}function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ei.apply(this,arguments)}const vb=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],yb=A.forwardRef((e,n)=>{const{value:r,defaultValue:o,prefixCls:s=lb,onChange:l,onChangeComplete:c,className:d,style:h,panelRender:g,disabledAlpha:m=!1,disabled:v=!1,components:y}=e,[C]=gb(y),[_,x]=hb(o||cb,r),b=A.useMemo(()=>_.setA(1).toRgbString(),[_]),E=($,j)=>{r||x($),l==null||l($,j)},S=$=>new rr(_.setHue($)),P=$=>new rr(_.setA($/100)),I=$=>{E(S($),{type:"hue",value:$})},M=$=>{E(P($),{type:"alpha",value:$})},k=$=>{c&&c(S($))},N=$=>{c&&c(P($))},R=ce(`${s}-panel`,d,{[`${s}-panel-disabled`]:v}),B={prefixCls:s,disabled:v,color:_},z=A.createElement(A.Fragment,null,A.createElement(fb,ei({onChange:E},B,{onChangeComplete:c})),A.createElement("div",{className:`${s}-slider-container`},A.createElement("div",{className:ce(`${s}-slider-group`,{[`${s}-slider-group-disabled-alpha`]:m})},A.createElement(C,ei({},B,{type:"hue",colors:vb,min:0,max:359,value:_.getHue(),onChange:I,onChangeComplete:k})),!m&&A.createElement(C,ei({},B,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:b}],min:0,max:100,value:_.a*100,onChange:M,onChangeComplete:N}))),A.createElement(ub,{color:_.toRgbString(),prefixCls:s})));return A.createElement("div",{className:R,style:h,ref:n},typeof g=="function"?g(z):z)});process.env.NODE_ENV!=="production"&&(yb.displayName="ColorPicker");const bb=(e,n)=>(e==null?void 0:e.replace(/[^0-9a-f]/gi,"").slice(0,n?8:6))||"",_b=(e,n)=>e?bb(e,n):"";let Il=function(){function e(n){var o;if(Ar(this,e),this.cleared=!1,n instanceof e){this.metaColor=n.metaColor.clone(),this.colors=(o=n.colors)==null?void 0:o.map(s=>({color:new e(s.color),percent:s.percent})),this.cleared=n.cleared;return}const r=Array.isArray(n);r&&n.length?(this.colors=n.map(({color:s,percent:l})=>({color:new e(s),percent:l})),this.metaColor=new rr(this.colors[0].color.metaColor)):this.metaColor=new rr(r?"":n),(!n||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Mr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return _b(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(s=>`${s.color.toRgbString()} ${s.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((o,s)=>{const l=r.colors[s];return o.percent===l.percent&&o.color.equals(l.color)}):this.toHexString()===r.toHexString()}}])}();var xb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const wb=xb;function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Tl.apply(this,arguments)}const Cb=(e,n)=>f.createElement(Ko,Tl({},e,{ref:n,icon:wb})),Hf=f.forwardRef(Cb);process.env.NODE_ENV!=="production"&&(Hf.displayName="RightOutlined");const Al=Hf;function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Wn.apply(null,arguments)}const Sb=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
157
157
  opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
158
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Ib=e=>({animationDuration:e,animationFillMode:"both"}),Tb=e=>({animationDuration:e,animationFillMode:"both"}),os=(e,n,r,o,s=!1)=>{const l=s?"&":"";return{[`
158
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Eb=e=>({animationDuration:e,animationFillMode:"both"}),Pb=e=>({animationDuration:e,animationFillMode:"both"}),os=(e,n,r,o,s=!1)=>{const l=s?"&":"";return{[`
159
159
  ${l}${e}-enter,
160
160
  ${l}${e}-appear
161
- `]:{...Ib(o),animationPlayState:"paused"},[`${l}${e}-leave`]:{...Tb(o),animationPlayState:"paused"},[`
161
+ `]:{...Eb(o),animationPlayState:"paused"},[`${l}${e}-leave`]:{...Pb(o),animationPlayState:"paused"},[`
162
162
  ${l}${e}-enter${e}-enter-active,
163
163
  ${l}${e}-appear${e}-appear-active
164
- `]:{animationName:n,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Ab=new ut("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Mb=new ut("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Lb=(e,n=!1)=>{const{antCls:r}=e,o=`${r}-fade`,s=n?"&":"";return[os(o,Ab,Mb,e.motionDurationMid,n),{[`
164
+ `]:{animationName:n,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Ib=new ut("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Tb=new ut("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Ab=(e,n=!1)=>{const{antCls:r}=e,o=`${r}-fade`,s=n?"&":"";return[os(o,Ib,Tb,e.motionDurationMid,n),{[`
165
165
  ${s}${o}-enter,
166
166
  ${s}${o}-appear
167
- `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${o}-leave`]:{animationTimingFunction:"linear"}}]},Ob=new ut("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kb=new ut("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Nb=new ut("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Rb=new ut("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$b=new ut("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bb=new ut("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zb=new ut("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Db=new ut("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Fb={"move-up":{inKeyframes:zb,outKeyframes:Db},"move-down":{inKeyframes:Ob,outKeyframes:kb},"move-left":{inKeyframes:Nb,outKeyframes:Rb},"move-right":{inKeyframes:$b,outKeyframes:Bb}},Vf=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=Fb[n];return[os(o,s,l,e.motionDurationMid),{[`
167
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${o}-leave`]:{animationTimingFunction:"linear"}}]},Mb=new ut("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Lb=new ut("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ob=new ut("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Nb=new ut("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),kb=new ut("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Rb=new ut("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),$b=new ut("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bb=new ut("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),zb={"move-up":{inKeyframes:$b,outKeyframes:Bb},"move-down":{inKeyframes:Mb,outKeyframes:Lb},"move-left":{inKeyframes:Ob,outKeyframes:Nb},"move-right":{inKeyframes:kb,outKeyframes:Rb}},Vf=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=zb[n];return[os(o,s,l,e.motionDurationMid),{[`
168
168
  ${o}-enter,
169
169
  ${o}-appear
170
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wf=new ut("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),jf=new ut("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zf=new ut("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Uf=new ut("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Hb=new ut("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Vb=new ut("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Wb=new ut("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),jb=new ut("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Zb={"slide-up":{inKeyframes:Wf,outKeyframes:jf},"slide-down":{inKeyframes:Zf,outKeyframes:Uf},"slide-left":{inKeyframes:Hb,outKeyframes:Vb},"slide-right":{inKeyframes:Wb,outKeyframes:jb}},is=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=Zb[n];return[os(o,s,l,e.motionDurationMid),{[`
170
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wf=new ut("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),jf=new ut("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Zf=new ut("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Uf=new ut("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Db=new ut("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Fb=new ut("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hb=new ut("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Vb=new ut("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Wb={"slide-up":{inKeyframes:Wf,outKeyframes:jf},"slide-down":{inKeyframes:Zf,outKeyframes:Uf},"slide-left":{inKeyframes:Db,outKeyframes:Fb},"slide-right":{inKeyframes:Hb,outKeyframes:Vb}},is=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=Wb[n];return[os(o,s,l,e.motionDurationMid),{[`
171
171
  ${o}-enter,
172
172
  ${o}-appear
173
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ub=new ut("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qb=new ut("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qf=new ut("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Gf=new ut("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Gb=new ut("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Kb=new ut("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Qb=new ut("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Yb=new ut("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Xb=new ut("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Jb=new ut("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),e_=new ut("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),t_=new ut("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),n_={zoom:{inKeyframes:Ub,outKeyframes:qb},"zoom-big":{inKeyframes:qf,outKeyframes:Gf},"zoom-big-fast":{inKeyframes:qf,outKeyframes:Gf},"zoom-left":{inKeyframes:Qb,outKeyframes:Yb},"zoom-right":{inKeyframes:Xb,outKeyframes:Jb},"zoom-up":{inKeyframes:Gb,outKeyframes:Kb},"zoom-down":{inKeyframes:e_,outKeyframes:t_}},Ll=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=n_[n];return[os(o,s,l,n==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
173
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},jb=new ut("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Zb=new ut("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qf=new ut("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Gf=new ut("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Ub=new ut("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),qb=new ut("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Gb=new ut("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Kb=new ut("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Qb=new ut("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Yb=new ut("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Xb=new ut("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Jb=new ut("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),e_={zoom:{inKeyframes:jb,outKeyframes:Zb},"zoom-big":{inKeyframes:qf,outKeyframes:Gf},"zoom-big-fast":{inKeyframes:qf,outKeyframes:Gf},"zoom-left":{inKeyframes:Gb,outKeyframes:Kb},"zoom-right":{inKeyframes:Qb,outKeyframes:Yb},"zoom-up":{inKeyframes:Ub,outKeyframes:qb},"zoom-down":{inKeyframes:Xb,outKeyframes:Jb}},Ml=(e,n)=>{const{antCls:r}=e,o=`${r}-${n}`,{inKeyframes:s,outKeyframes:l}=e_[n];return[os(o,s,l,n==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
174
174
  ${o}-enter,
175
175
  ${o}-appear
176
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},r_=e=>e instanceof Tl?e:new Tl(e),o_=(e,n)=>{const{r,g:o,b:s,a:l}=e.toRgb(),c=new nr(e.toRgbString()).onBackground(n).toHsv();return l<=.5?c.v>.5:r*.299+o*.587+s*.114>192},Kf=e=>{const{paddingInline:n,onlyIconSize:r,borderColorDisabled:o}=e;return _n(e,{buttonPaddingHorizontal:n,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:o})},Qf=e=>{const n=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,o=e.contentFontSizeLG??e.fontSizeLG,s=e.contentLineHeight??zi(n),l=e.contentLineHeightSM??zi(r),c=e.contentLineHeightLG??zi(o),d=o_(new Tl(e.colorBgSolid),"#fff")?"#000":"#fff",h=kr.reduce((v,y)=>({...v,[`${y}ShadowColor`]:`0 ${Le(e.controlOutlineWidth)} 0 ${qo(e[`${y}1`],e.colorBgContainer)}`}),{}),g=e.colorBgContainerDisabled,m=e.colorBgContainerDisabled;return{...h,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:d,contentFontSize:n,contentFontSizeSM:r,contentFontSizeLG:o,contentLineHeight:s,contentLineHeightSM:l,contentLineHeightLG:c,paddingBlock:Math.max((e.controlHeight-n*s)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*l)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-o*c)/2-e.lineWidth,0),defaultBgDisabled:g,dashedBgDisabled:m}},i_=e=>{const{componentCls:n,antCls:r}=e,[o,s]=gr(r,"btn");return{[n]:[{[o("border-width")]:"1px",[o("border-color")]:"#000",[o("border-color-hover")]:s("border-color"),[o("border-color-active")]:s("border-color"),[o("border-color-disabled")]:s("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color"),[o("text-color-disabled")]:s("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:s("bg-color"),[o("bg-color-active")]:s("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${n}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${n}-variant-solid`]:{[o("solid-bg-color")]:s("color-base"),[o("solid-bg-color-hover")]:s("color-hover"),[o("solid-bg-color-active")]:s("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:s("solid-bg-color"),[o("bg-color-hover")]:s("solid-bg-color-hover"),[o("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("border-color")]:s("color-base"),[o("border-color-hover")]:s("color-hover"),[o("border-color-active")]:s("color-active"),[o("bg-color")]:s("bg-color-container"),[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${n}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${n}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("bg-color")]:s("color-light"),[o("bg-color-hover")]:s("color-light-hover"),[o("bg-color-active")]:s("color-light-active")},[`&${n}-variant-text, &${n}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${n}-variant-text`]:{[o("bg-color-hover")]:s("color-light"),[o("bg-color-active")]:s("color-light-active")}},{[`&${n}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive},[`&${n}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${n}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${n}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${n}-variant-filled, &${n}-variant-text`]:{[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${n}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${n}-background-ghost`]:{[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},kr.map(l=>{const c=e[`${l}6`],d=e[`${l}1`],h=e[`${l}5`],g=e[`${l}2`],m=e[`${l}3`],v=e[`${l}7`],y=e[`${l}ShadowColor`];return{[`&${n}-color-${l}`]:{[o("color-base")]:c,[o("color-hover")]:h,[o("color-active")]:v,[o("color-light")]:d,[o("color-light-hover")]:g,[o("color-light-active")]:m,[o("shadow")]:y}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:s("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${n}-background-ghost`]:{[o("bg-color")]:"transparent",[o("shadow")]:"none"}}]}},s_=e=>{const{componentCls:n,iconCls:r,fontWeight:o,opacityLoading:s,motionDurationSlow:l,motionEaseInOut:c,iconGap:d,calc:h}=e;return{[n]:{outline:"none",position:"relative",display:"inline-flex",gap:d,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${n}-icon > svg`]:Ga(),"> a":{color:"currentColor"},"&:not(:disabled)":Qa(e),[`&${n}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${n}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${n}-icon-only`]:{paddingInline:0,[`&${n}-compact-item`]:{flex:"none"}},[`&${n}-loading`]:{opacity:s,cursor:"default"},[`${n}-loading-icon`]:{transition:["width","opacity","margin"].map(g=>`${g} ${l} ${c}`).join(",")},[`&:not(${n}-icon-end)`]:{[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:h(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:h(d).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:h(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:h(d).mul(-1).equal()}}}}}},a_=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Ol=(e,n="")=>{const{componentCls:r,controlHeight:o,fontSize:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:d,buttonPaddingVertical:h,buttonIconOnlyFontSize:g}=e;return[{[n]:{fontSize:s,height:o,padding:`${Le(h)} ${Le(c)}`,borderRadius:l,[`&${r}-icon-only`]:{width:o,[d]:{fontSize:g}}}},{[`${r}${r}-circle${n}`]:a_(e)},{[`${r}${r}-round${n}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},l_=e=>{const n=_n(e,{fontSize:e.contentFontSize});return Ol(n,e.componentCls)},c_=e=>{const n=_n(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ol(n,`${e.componentCls}-sm`)},u_=e=>{const n=_n(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ol(n,`${e.componentCls}-lg`)},d_=e=>{const{componentCls:n}=e;return{[n]:{[`&${n}-block`]:{width:"100%"}}}},f_=Hn("Button",e=>{const n=Kf(e);return[s_(n),l_(n),c_(n),u_(n),d_(n),i_(n),lb(n)]},Qf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function h_(e,n,r,o){const{focusElCls:s,focus:l,borderElCls:c}=r,d=c?"> *":"",h=["hover",l?"focus":null,"active"].filter(Boolean).map(g=>`&:${g} ${d}`).join(",");return{[`&-item:not(${n}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{[h]:{zIndex:3},...s?{[`&${s}`]:{zIndex:3}}:{},[`&[disabled] ${d}`]:{zIndex:0}}}}function p_(e,n,r){const{borderElCls:o}=r,s=o?`> ${o}`:"";return{[`&-item:not(${n}-first-item):not(${n}-last-item) ${s}`]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Yf(e,n={focus:!0}){const{componentCls:r}=e,{componentCls:o}=n,s=o||r,l=`${s}-compact`;return{[l]:{...h_(e,l,n,s),...p_(s,l,n)}}}function m_(e,n,r){return{[`&-item:not(${n}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function g_(e,n){return{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function v_(e){const n=`${e.componentCls}-compact-vertical`;return{[n]:{...m_(e,n,e.componentCls),...g_(e.componentCls,n)}}}const y_=e=>{const{antCls:n,componentCls:r,lineWidth:o,calc:s,colorBgContainer:l}=e,c=`${r}-variant-solid:not([disabled])`,d=s(o).mul(-1).equal(),[h,g]=gr(n,"btn"),m=v=>({[`${r}-compact${v?"-vertical":""}-item`]:{[h("compact-connect-border-color")]:g("bg-color-hover"),[`&${c}`]:{transition:"none",[`& + ${c}:before`]:[{position:"absolute",backgroundColor:g("compact-connect-border-color"),content:'""'},v?{top:d,insetInline:d,height:o}:{insetBlock:d,insetInlineStart:d,width:o}],"&:hover:before":{display:"none"}}}});return[m(),m(!0),{[`${c}${r}-color-default`]:{[h("compact-connect-border-color")]:`color-mix(in srgb, ${g("bg-color-hover")} 75%, ${l})`}}]},b_=bv(["Button","compact"],e=>{const n=Kf(e);return[Yf(n),v_(n),y_(n)]},Qf);function __(e){if(typeof e=="object"&&e){let n=e==null?void 0:e.delay;return n=!Number.isNaN(n)&&typeof n=="number"?n:0,{loading:n<=0,delay:n}}return{loading:!!e,delay:0}}const x_={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},ss=I.forwardRef((e,n)=>{const{_skipSemantic:r,loading:o=!1,prefixCls:s,color:l,variant:c,type:d,danger:h=!1,shape:g,size:m,disabled:v,className:y,rootClassName:C,children:_,icon:x,iconPosition:b,iconPlacement:E,ghost:S=!1,block:P=!1,htmlType:T="button",classNames:M,styles:N,style:k,autoInsertSpace:R,autoFocus:B,...z}=e,$=qn(_),j=d||"default",{button:V}=I.useContext(kt),W=g||(V==null?void 0:V.shape)||"default",[F,X]=I.useMemo(()=>{if(l&&c)return[l,c];if(d||h){const Je=x_[j]||[];return h?["danger",Je[1]]:Je}return V!=null&&V.color&&(V!=null&&V.variant)?[V.color,V.variant]:["default","outlined"]},[l,c,d,h,V==null?void 0:V.color,V==null?void 0:V.variant,j]),[J,Z]=I.useMemo(()=>S&&X==="solid"?[F,"outlined"]:[F,X],[F,X,S]),le=J==="danger",G=le?"dangerous":J,{getPrefixCls:ie,direction:ne,autoInsertSpace:de,className:oe,style:ee,classNames:K,styles:Y}=qr("button"),se=R??de??!0,fe=ie("btn",s),[xe,Se]=f_(fe),Te=I.useContext(pl),Ce=v??Te,te=I.useContext(Af),we=I.useMemo(()=>__(o),[o]),[Pe,Ae]=I.useState(we.loading),[Ze,Be]=I.useState(!1),nt=I.useRef(null),Ge=jr(n,nt),Ke=$.length===1&&!x&&!rs(Z),ze=I.useRef(!0);I.useEffect(()=>(ze.current=!1,()=>{ze.current=!0}),[]),an(()=>{let Je=null;we.delay>0?Je=setTimeout(()=>{Je=null,Ae(!0)},we.delay):Ae(we.loading);function on(){Je&&(clearTimeout(Je),Je=null)}return on},[we.delay,we.loading]),I.useEffect(()=>{if(!nt.current||!se)return;const Je=nt.current.textContent||"";Ke&&Sl(Je)?Ze||Be(!0):Ze&&Be(!1)}),I.useEffect(()=>{B&&nt.current&&nt.current.focus()},[]);const De=I.useCallback(Je=>{var on;if(Pe||Ce){Je.preventDefault();return}(on=e.onClick)==null||on.call(e,("href"in e,Je))},[e.onClick,Pe,Ce]);if(process.env.NODE_ENV!=="production"){const Je=hn("Button");process.env.NODE_ENV!=="production"&&Je(!(typeof x=="string"&&x.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${x}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&Je(!(S&&rs(Z)),"usage","`link` or `text` button can't be a `ghost` button."),Je.deprecated(!b,"iconPosition","iconPlacement")}const{compactSize:ot,compactItemClassnames:Et}=Cl(fe,ne),mt={large:"lg",small:"sm",middle:void 0},dt=Tf(Je=>m??ot??te??Je),gt=dt?mt[dt]??"":"",Oe=Pe?"loading":x,he=E??b??"start",_e=Sn(z,["navigate"]),rt={...e,type:j,color:J,variant:Z,danger:le,shape:W,size:dt,disabled:Ce,loading:Pe,iconPlacement:he},[$e,ge]=Rr([r?void 0:K,M],[r?void 0:Y,N],{props:rt}),Qe=ce(fe,xe,Se,{[`${fe}-${W}`]:W!=="default"&&W!=="square"&&W,[`${fe}-${j}`]:j,[`${fe}-dangerous`]:h,[`${fe}-color-${G}`]:G,[`${fe}-variant-${Z}`]:Z,[`${fe}-${gt}`]:gt,[`${fe}-icon-only`]:!_&&_!==0&&!!Oe,[`${fe}-background-ghost`]:S&&!rs(Z),[`${fe}-loading`]:Pe,[`${fe}-two-chinese-chars`]:Ze&&se&&!Pe,[`${fe}-block`]:P,[`${fe}-rtl`]:ne==="rtl",[`${fe}-icon-end`]:he==="end"},Et,y,C,oe,$e.root),Ve={...ge.root,...ee,...k},Ye={className:$e.icon,style:ge.icon},Nt=Je=>I.createElement(Of,{prefixCls:fe,...Ye},Je),Vt=I.createElement(ab,{existIcon:!!x,prefixCls:fe,loading:Pe,mount:ze.current,...Ye});let yt;x&&!Pe?yt=Nt(x):o&&typeof o=="object"&&o.icon?yt=Nt(o.icon):yt=Vt;const Pt=no(_)?sb(_,Ke&&se,ge.content,$e.content):null;if(_e.href!==void 0)return I.createElement("a",{..._e,className:ce(Qe,{[`${fe}-disabled`]:Ce}),href:Ce?void 0:_e.href,style:Ve,onClick:De,ref:Ge,tabIndex:Ce?-1:0,"aria-disabled":Ce},yt,Pt);let Rt=I.createElement("button",{...z,type:T,className:Qe,style:Ve,onClick:De,disabled:Ce,ref:Ge},yt,Pt,Et&&I.createElement(b_,{prefixCls:fe}));return rs(Z)||(Rt=I.createElement(If,{component:"Button",disabled:Pe},Rt)),Rt});ss.Group=ob,ss.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(ss.displayName="Button");const as=ss;function Xf(e,n=!1){if(cl(e)){const r=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),s=e.getAttribute("tabindex"),l=Number(s);let c=null;return s&&!Number.isNaN(l)?c=l:o&&c===null&&(c=0),o&&e.disabled&&(c=null),c!==null&&(c>=0||n&&c<0)}return!1}function w_(e,n=!1){const r=[...e.querySelectorAll("*")].filter(o=>Xf(o,n));return Xf(e,n)&&r.unshift(e),r}const Br="RC_FORM_INTERNAL_HOOKS",pt=()=>{ct(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},so=f.createContext({getFieldValue:pt,getFieldsValue:pt,getFieldError:pt,getFieldWarning:pt,getFieldsError:pt,isFieldsTouched:pt,isFieldTouched:pt,isFieldValidating:pt,isFieldsValidating:pt,resetFields:pt,setFields:pt,setFieldValue:pt,setFieldsValue:pt,validateFields:pt,submit:pt,getInternalHooks:()=>(pt(),{dispatch:pt,initEntityValue:pt,registerField:pt,useSubscribe:pt,setInitialValues:pt,destroyForm:pt,setCallbacks:pt,registerWatch:pt,getFields:pt,setValidateMessages:pt,setPreserve:pt,getInitialValue:pt})}),ls=f.createContext(null);function kl(e){return e==null?[]:Array.isArray(e)?e:[e]}function C_(e){return e&&!!e._init}function Nl(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var Rl=Nl();function S_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function E_(e,n,r){if(Pa())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,n);var s=new(e.bind.apply(e,o));return r&&Wo(s,r.prototype),s}function $l(e){var n=typeof Map=="function"?new Map:void 0;return $l=function(o){if(o===null||!S_(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(o))return n.get(o);n.set(o,s)}function s(){return E_(o,arguments,jo(this).constructor)}return s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Wo(s,o)},$l(e)}var P_=/%[sdj%]/g,Jf=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Jf=function(n,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(o){return typeof o=="string"})&&console.warn(n,r)});function Bl(e){if(!e||!e.length)return null;var n={};return e.forEach(function(r){var o=r.field;n[o]=n[o]||[],n[o].push(r)}),n}function wn(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=0,l=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var c=e.replace(P_,function(d){if(d==="%%")return"%";if(s>=l)return d;switch(d){case"%s":return String(r[s++]);case"%d":return Number(r[s++]);case"%j":try{return JSON.stringify(r[s++])}catch{return"[Circular]"}break;default:return d}});return c}return e}function I_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Ht(e,n){return!!(e==null||n==="array"&&Array.isArray(e)&&!e.length||I_(n)&&typeof e=="string"&&!e)}function T_(e,n,r){var o=[],s=0,l=e.length;function c(d){o.push.apply(o,bn(d||[])),s++,s===l&&r(o)}e.forEach(function(d){n(d,c)})}function eh(e,n,r){var o=0,s=e.length;function l(c){if(c&&c.length){r(c);return}var d=o;o=o+1,d<s?n(e[d],l):r([])}l([])}function A_(e){var n=[];return Object.keys(e).forEach(function(r){n.push.apply(n,bn(e[r]||[]))}),n}var th=function(e){Ea(r,e);var n=Ia(r);function r(o,s){var l;return Mr(this,r),l=n.call(this,"Async Validation Error"),Ft(Or(l),"errors",void 0),Ft(Or(l),"fields",void 0),l.errors=o,l.fields=s,l}return Lr(r)}($l(Error));function M_(e,n,r,o,s){if(n.first){var l=new Promise(function(y,C){var _=function(E){return o(E),E.length?C(new th(E,Bl(E))):y(s)},x=A_(e);eh(x,r,_)});return l.catch(function(y){return y}),l}var c=n.firstFields===!0?Object.keys(e):n.firstFields||[],d=Object.keys(e),h=d.length,g=0,m=[],v=new Promise(function(y,C){var _=function(b){if(m.push.apply(m,b),g++,g===h)return o(m),m.length?C(new th(m,Bl(m))):y(s)};d.length||(o(m),y(s)),d.forEach(function(x){var b=e[x];c.indexOf(x)!==-1?eh(b,r,_):T_(b,r,_)})});return v.catch(function(y){return y}),v}function L_(e){return!!(e&&e.message!==void 0)}function O_(e,n){for(var r=e,o=0;o<n.length;o++){if(r==null)return r;r=r[n[o]]}return r}function nh(e,n){return function(r){var o;return e.fullFields?o=O_(n,e.fullFields):o=n[r.field||e.fullField],L_(r)?(r.field=r.field||e.fullField,r.fieldValue=o,r):{message:typeof r=="function"?r():r,fieldValue:o,field:r.field||e.fullField}}}function rh(e,n){if(n){for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];Bt(o)==="object"&&Bt(e[r])==="object"?e[r]=At(At({},e[r]),o):e[r]=o}}return e}var ao="enum",k_=function(n,r,o,s,l){n[ao]=Array.isArray(n[ao])?n[ao]:[],n[ao].indexOf(r)===-1&&s.push(wn(l.messages[ao],n.fullField,n[ao].join(", ")))},N_=function(n,r,o,s,l){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(r)||s.push(wn(l.messages.pattern.mismatch,n.fullField,r,n.pattern));else if(typeof n.pattern=="string"){var c=new RegExp(n.pattern);c.test(r)||s.push(wn(l.messages.pattern.mismatch,n.fullField,r,n.pattern))}}},R_=function(n,r,o,s,l){var c=typeof n.len=="number",d=typeof n.min=="number",h=typeof n.max=="number",g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=r,v=null,y=typeof r=="number",C=typeof r=="string",_=Array.isArray(r);if(y?v="number":C?v="string":_&&(v="array"),!v)return!1;_&&(m=r.length),C&&(m=r.replace(g,"_").length),c?m!==n.len&&s.push(wn(l.messages[v].len,n.fullField,n.len)):d&&!h&&m<n.min?s.push(wn(l.messages[v].min,n.fullField,n.min)):h&&!d&&m>n.max?s.push(wn(l.messages[v].max,n.fullField,n.max)):d&&h&&(m<n.min||m>n.max)&&s.push(wn(l.messages[v].range,n.fullField,n.min,n.max))},oh=function(n,r,o,s,l,c){n.required&&(!o.hasOwnProperty(n.field)||Ht(r,c||n.type))&&s.push(wn(l.messages.required,n.fullField))},cs;const $_=function(){if(cs)return cs;var e="[a-fA-F\\d:]",n=function(N){return N&&N.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",s=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(r,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(r,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(r,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(r,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(r,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(r,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(r,"|(?::").concat(o,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(s.join("|"),")").concat(l),d=new RegExp("(?:^".concat(r,"$)|(?:^").concat(c,"$)")),h=new RegExp("^".concat(r,"$")),g=new RegExp("^".concat(c,"$")),m=function(N){return N&&N.exact?d:new RegExp("(?:".concat(n(N)).concat(r).concat(n(N),")|(?:").concat(n(N)).concat(c).concat(n(N),")"),"g")};m.v4=function(M){return M&&M.exact?h:new RegExp("".concat(n(M)).concat(r).concat(n(M)),"g")},m.v6=function(M){return M&&M.exact?g:new RegExp("".concat(n(M)).concat(c).concat(n(M)),"g")};var v="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",C=m.v4().source,_=m.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",E="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",P='(?:[/?#][^\\s"]*)?',T="(?:".concat(v,"|www\\.)").concat(y,"(?:localhost|").concat(C,"|").concat(_,"|").concat(x).concat(b).concat(E,")").concat(S).concat(P);return cs=new RegExp("(?:^".concat(T,"$)"),"i"),cs};var zl={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ti={integer:function(n){return ti.number(n)&&parseInt(n,10)===n},float:function(n){return ti.number(n)&&!ti.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date:function(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number:function(n){return isNaN(n)?!1:typeof n=="number"},object:function(n){return Bt(n)==="object"&&!ti.array(n)},method:function(n){return typeof n=="function"},email:function(n){return typeof n=="string"&&n.length<=320&&!!n.match(zl.email)},tel:function(n){return typeof n=="string"&&n.length<=32&&!!n.match(zl.tel)},url:function(n){return typeof n=="string"&&n.length<=2048&&!!n.match($_())},hex:function(n){return typeof n=="string"&&!!n.match(zl.hex)}},B_=function(n,r,o,s,l){if(n.required&&r===void 0){oh(n,r,o,s,l);return}var c=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],d=n.type;c.indexOf(d)>-1?ti[d](r)||s.push(wn(l.messages.types[d],n.fullField,n.type)):d&&Bt(r)!==n.type&&s.push(wn(l.messages.types[d],n.fullField,n.type))},z_=function(n,r,o,s,l){(/^\s+$/.test(r)||r==="")&&s.push(wn(l.messages.whitespace,n.fullField))};const tt={required:oh,whitespace:z_,type:B_,range:R_,enum:k_,pattern:N_};var D_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l)}o(c)},F_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(r==null&&!n.required)return o();tt.required(n,r,s,c,l,"array"),r!=null&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},H_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},V_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r,"date")&&!n.required)return o();if(tt.required(n,r,s,c,l),!Ht(r,"date")){var h;r instanceof Date?h=r:h=new Date(r),tt.type(n,h,s,c,l),h&&tt.range(n,h.getTime(),s,c,l)}}o(c)},W_="enum",j_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt[W_](n,r,s,c,l)}o(c)},Z_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},U_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},q_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},G_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(r===""&&(r=void 0),Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},K_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},Q_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r,"string")&&!n.required)return o();tt.required(n,r,s,c,l),Ht(r,"string")||tt.pattern(n,r,s,c,l)}o(c)},Y_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r)&&!n.required)return o();tt.required(n,r,s,c,l),Ht(r)||tt.type(n,r,s,c,l)}o(c)},X_=function(n,r,o,s,l){var c=[],d=Array.isArray(r)?"array":Bt(r);tt.required(n,r,s,c,l,d),o(c)},J_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ht(r,"string")&&!n.required)return o();tt.required(n,r,s,c,l,"string"),Ht(r,"string")||(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l),tt.pattern(n,r,s,c,l),n.whitespace===!0&&tt.whitespace(n,r,s,c,l))}o(c)},us=function(n,r,o,s,l){var c=n.type,d=[],h=n.required||!n.required&&s.hasOwnProperty(n.field);if(h){if(Ht(r,c)&&!n.required)return o();tt.required(n,r,s,d,l,c),Ht(r,c)||tt.type(n,r,s,d,l)}o(d)};const ni={string:J_,method:q_,number:G_,boolean:H_,regexp:Y_,integer:U_,float:Z_,array:F_,object:K_,enum:j_,pattern:Q_,date:V_,url:us,hex:us,email:us,tel:us,required:X_,any:D_};var ri=function(){function e(n){Mr(this,e),Ft(this,"rules",null),Ft(this,"_messages",Rl),this.define(n)}return Lr(e,[{key:"define",value:function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Bt(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var l=r[s];o.rules[s]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(r){return r&&(this._messages=rh(Nl(),r)),this._messages}},{key:"validate",value:function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=r,d=s,h=l;if(typeof d=="function"&&(h=d,d={}),!this.rules||Object.keys(this.rules).length===0)return h&&h(null,c),Promise.resolve(c);function g(_){var x=[],b={};function E(P){if(Array.isArray(P)){var T;x=(T=x).concat.apply(T,bn(P))}else x.push(P)}for(var S=0;S<_.length;S++)E(_[S]);x.length?(b=Bl(x),h(x,b)):h(null,c)}if(d.messages){var m=this.messages();m===Rl&&(m=Nl()),rh(m,d.messages),d.messages=m}else d.messages=this.messages();var v={},y=d.keys||Object.keys(this.rules);y.forEach(function(_){var x=o.rules[_],b=c[_];x.forEach(function(E){var S=E;typeof S.transform=="function"&&(c===r&&(c=At({},c)),b=c[_]=S.transform(b),b!=null&&(S.type=S.type||(Array.isArray(b)?"array":Bt(b)))),typeof S=="function"?S={validator:S}:S=At({},S),S.validator=o.getValidationMethod(S),S.validator&&(S.field=_,S.fullField=S.fullField||_,S.type=o.getType(S),v[_]=v[_]||[],v[_].push({rule:S,value:b,source:c,field:_}))})});var C={};return M_(v,d,function(_,x){var b=_.rule,E=(b.type==="object"||b.type==="array")&&(Bt(b.fields)==="object"||Bt(b.defaultField)==="object");E=E&&(b.required||!b.required&&_.value),b.field=_.field;function S(k,R){return At(At({},R),{},{fullField:"".concat(b.fullField,".").concat(k),fullFields:b.fullFields?[].concat(bn(b.fullFields),[k]):[k]})}function P(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(k)?k:[k];!d.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&b.message!==void 0&&b.message!==null&&(R=[].concat(b.message));var B=R.map(nh(b,c));if(d.first&&B.length)return C[b.field]=1,x(B);if(!E)x(B);else{if(b.required&&!_.value)return b.message!==void 0?B=[].concat(b.message).map(nh(b,c)):d.error&&(B=[d.error(b,wn(d.messages.required,b.field))]),x(B);var z={};b.defaultField&&Object.keys(_.value).map(function(V){z[V]=b.defaultField}),z=At(At({},z),_.rule.fields);var $={};Object.keys(z).forEach(function(V){var W=z[V],F=Array.isArray(W)?W:[W];$[V]=F.map(S.bind(null,V))});var j=new e($);j.messages(d.messages),_.rule.options&&(_.rule.options.messages=d.messages,_.rule.options.error=d.error),j.validate(_.value,_.rule.options||d,function(V){var W=[];B&&B.length&&W.push.apply(W,bn(B)),V&&V.length&&W.push.apply(W,bn(V)),x(W.length?W:null)})}}var T;if(b.asyncValidator)T=b.asyncValidator(b,_.value,P,_.source,d);else if(b.validator){try{T=b.validator(b,_.value,P,_.source,d)}catch(k){var M,N;(M=(N=console).error)===null||M===void 0||M.call(N,k),d.suppressValidatorError||setTimeout(function(){throw k},0),P(k.message)}T===!0?P():T===!1?P(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):T instanceof Array?P(T):T instanceof Error&&P(T.message)}T&&T.then&&T.then(function(){return P()},function(k){return P(k)})},function(_){g(_)},c)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ni.hasOwnProperty(r.type))throw new Error(wn("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),s=o.indexOf("message");return s!==-1&&o.splice(s,1),o.length===1&&o[0]==="required"?ni.required:ni[this.getType(r)]||void 0}}]),e}();Ft(ri,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");ni[n]=r}),Ft(ri,"warning",Jf),Ft(ri,"messages",Rl),Ft(ri,"validators",ni);const pn="'${name}' is not a valid ${type}",ih={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:pn,method:pn,array:pn,object:pn,number:pn,date:pn,boolean:pn,integer:pn,float:pn,regexp:pn,email:pn,tel:pn,url:pn,hex:pn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},sh=ri;function e0(e,n){return e.replace(/\\?\$\{\w+\}/g,r=>{if(r.startsWith("\\"))return r.slice(1);const o=r.slice(2,-1);return n[o]})}const ah="CODE_LOGIC_ERROR";async function Dl(e,n,r,o,s){const l={...r};if(delete l.ruleIndex,sh.warning=()=>{},l.validator){const y=l.validator;l.validator=(...C)=>{try{return y(...C)}catch(_){return console.error(_),Promise.reject(ah)}}}let c=null;l&&l.type==="array"&&l.defaultField&&(c=l.defaultField,delete l.defaultField);const d=new sh({[e]:[l]}),h=Zr(ih,o.validateMessages);d.messages(h);let g=[];try{await Promise.resolve(d.validate({[e]:n},{...o}))}catch(y){y.errors&&(g=y.errors.map(({message:C},_)=>{const x=C===ah?h.default:C;return f.isValidElement(x)?f.cloneElement(x,{key:`error_${_}`}):x}))}if(!g.length&&c&&Array.isArray(n)&&n.length>0)return(await Promise.all(n.map((C,_)=>Dl(`${e}.${_}`,C,c,o,s)))).reduce((C,_)=>[...C,..._],[]);const m={...r,name:e,enum:(r.enum||[]).join(", "),...s};return g.map(y=>typeof y=="string"?e0(y,m):y)}function t0(e,n,r,o,s,l){const c=e.join("."),d=r.map((g,m)=>{const v=g.validator,y={...g,ruleIndex:m};return v&&(y.validator=(C,_,x)=>{let b=!1;const S=v(C,_,(...P)=>{Promise.resolve().then(()=>{ct(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||x(...P)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",ct(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(()=>{x()}).catch(P=>{x(P||" ")})}),y}).sort(({warningOnly:g,ruleIndex:m},{warningOnly:v,ruleIndex:y})=>!!g==!!v?m-y:g?1:-1);let h;if(s===!0)h=new Promise(async(g,m)=>{for(let v=0;v<d.length;v+=1){const y=d[v],C=await Dl(c,n,y,o,l);if(C.length){m([{errors:C,rule:y}]);return}}g([])});else{const g=d.map(m=>Dl(c,n,m,o,l).then(v=>({errors:v,rule:m})));h=(s?r0(g):n0(g)).then(m=>Promise.reject(m))}return h.catch(g=>g),h}async function n0(e){return Promise.all(e).then(n=>[].concat(...n))}async function r0(e){let n=0;return new Promise(r=>{e.forEach(o=>{o.then(s=>{s.errors.length&&r([s]),n+=1,n===e.length&&r([])})})})}function Lt(e){return kl(e)}function lh(e,n){let r={};return n.forEach(o=>{const s=Ln(e,o);r=Cn(r,o,s)}),r}function lo(e,n,r=!1){return e&&e.some(o=>ds(n,o,r))}function ds(e,n,r=!1){return!e||!n||!r&&e.length!==n.length?!1:n.every((o,s)=>e[s]===o)}function o0(e,n){if(e===n)return!0;if(!e&&n||e&&!n||!e||!n||typeof e!="object"||typeof n!="object")return!1;const r=Object.keys(e),o=Object.keys(n);return[...new Set([...r,...o])].every(l=>{const c=e[l],d=n[l];return typeof c=="function"&&typeof d=="function"?!0:c===d})}function i0(e,...n){const r=n[0];return r&&r.target&&typeof r.target=="object"&&e in r.target?r.target[e]:r}function ch(e,n,r){const{length:o}=e;if(n<0||n>=o||r<0||r>=o)return e;const s=e[n],l=n-r;return l>0?[...e.slice(0,r),s,...e.slice(r,n),...e.slice(n+1,o)]:l<0?[...e.slice(0,n),...e.slice(n+1,r+1),s,...e.slice(r+1,o)]:e}function Fl(){return Fl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Fl.apply(this,arguments)}const zr=[],oi=[];function Hl(e,n,r,o,s,l){return typeof e=="function"?e(n,r,"source"in l?{source:l.source}:{}):o!==s}class uh extends f.Component{constructor(r){super(r);q(this,"state",{resetCount:0});q(this,"cancelRegisterFunc",null);q(this,"mounted",!1);q(this,"touched",!1);q(this,"dirty",!1);q(this,"validatePromise");q(this,"prevValidating");q(this,"errors",zr);q(this,"warnings",oi);q(this,"cancelRegister",()=>{const{preserve:r,isListField:o,name:s}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,r,Lt(s)),this.cancelRegisterFunc=null});q(this,"getNamePath",()=>{const{name:r,fieldContext:o}=this.props,{prefixName:s=[]}=o;return r!==void 0?[...s,...r]:[]});q(this,"getRules",()=>{const{rules:r=[],fieldContext:o}=this.props;return r.map(s=>typeof s=="function"?s(o):s)});q(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:r})=>({resetCount:r+1}))});q(this,"metaCache",null);q(this,"triggerMetaEvent",r=>{const{onMetaChange:o}=this.props;if(o){const s={...this.getMeta(),destroy:r};$o(this.metaCache,s)||o(s),this.metaCache=s}else this.metaCache=null});q(this,"onStoreChange",(r,o,s)=>{const{shouldUpdate:l,dependencies:c=[],onReset:d}=this.props,{store:h}=s,g=this.getNamePath(),m=this.getValue(r),v=this.getValue(h),y=o&&lo(o,g);switch(s.type==="valueUpdate"&&s.source==="external"&&!$o(m,v)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=zr,this.warnings=oi,this.triggerMetaEvent()),s.type){case"reset":if(!o||y){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=zr,this.warnings=oi,this.triggerMetaEvent(),d==null||d(),this.refresh();return}break;case"remove":{if(l&&Hl(l,r,h,m,v,s)){this.reRender();return}break}case"setField":{const{data:C}=s;if(y){"touched"in C&&(this.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(this.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(this.errors=C.errors||zr),"warnings"in C&&(this.warnings=C.warnings||oi),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in C&&lo(o,g,!0)){this.reRender();return}if(l&&!g.length&&Hl(l,r,h,m,v,s)){this.reRender();return}break}case"dependenciesUpdate":{if(c.map(Lt).some(_=>lo(s.relatedFields,_))){this.reRender();return}break}default:if(y||(!c.length||g.length||l)&&Hl(l,r,h,m,v,s)){this.reRender();return}break}l===!0&&this.reRender()});q(this,"validateRules",r=>{const o=this.getNamePath(),s=this.getValue(),{triggerName:l,validateOnly:c=!1}=r||{},d=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:h=!1,messageVariables:g,validateDebounce:m}=this.props;let v=this.getRules();if(l&&(v=v.filter(C=>C).filter(C=>{const{validateTrigger:_}=C;return _?kl(_).includes(l):!0})),m&&l&&(await new Promise(C=>{setTimeout(C,m)}),this.validatePromise!==d))return[];const y=t0(o,s,v,r,h,g);return y.catch(C=>C).then((C=zr)=>{var _;if(this.validatePromise===d){this.validatePromise=null;const x=[],b=[];(_=C.forEach)==null||_.call(C,({rule:{warningOnly:E},errors:S=zr})=>{E?b.push(...S):x.push(...S)}),this.errors=x,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),y});return c||(this.validatePromise=d,this.dirty=!0,this.errors=zr,this.warnings=oi,this.triggerMetaEvent(),this.reRender()),d});q(this,"isFieldValidating",()=>!!this.validatePromise);q(this,"isFieldTouched",()=>this.touched);q(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:r}=this.props,{getInitialValue:o}=r.getInternalHooks(Br);return o(this.getNamePath())!==void 0});q(this,"getErrors",()=>this.errors);q(this,"getWarnings",()=>this.warnings);q(this,"isListField",()=>this.props.isListField);q(this,"isList",()=>this.props.isList);q(this,"isPreserve",()=>this.props.preserve);q(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));q(this,"getOnlyChild",r=>{if(typeof r=="function"){const s=this.getMeta();return{...this.getOnlyChild(r(this.getControlled(),s,this.props.fieldContext)),isFunction:!0}}const o=qn(r);return o.length!==1||!f.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}});q(this,"getValue",r=>{const{getFieldsValue:o}=this.props.fieldContext,s=this.getNamePath();return Ln(r||o(!0),s)});q(this,"getControlled",(r={})=>{const{name:o,trigger:s="onChange",validateTrigger:l,getValueFromEvent:c,normalize:d,valuePropName:h="value",getValueProps:g,fieldContext:m}=this.props,v=l!==void 0?l:m.validateTrigger,y=this.getNamePath(),{getInternalHooks:C,getFieldsValue:_}=m,{dispatch:x}=C(Br),b=this.getValue(),E=g||(N=>({[h]:N})),S=r[s],P=o!==void 0?E(b):{};process.env.NODE_ENV!=="production"&&P&&Object.keys(P).forEach(N=>{ct(typeof P[N]!="function",`It's not recommended to generate dynamic function prop by \`getValueProps\`. Please pass it to child component directly (prop: ${N})`)});const T={...r,...P};return T[s]=(...N)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let k;c?k=c(...N):k=i0(h,...N),d&&(k=d(k,b,_(!0))),k!==b&&x({type:"updateValue",namePath:y,value:k}),S&&S(...N)},kl(v||[]).forEach(N=>{const k=T[N];T[N]=(...R)=>{k&&k(...R);const{rules:B}=this.props;B&&B.length&&x({type:"validateField",namePath:y,triggerName:N})}}),T});if(r.fieldContext){const{getInternalHooks:o}=r.fieldContext,{initEntityValue:s}=o(Br);s(this)}}componentDidMount(){const{shouldUpdate:r,fieldContext:o}=this.props;if(this.mounted=!0,o){const{getInternalHooks:s}=o,{registerField:l}=s(Br);this.cancelRegisterFunc=l(this)}r===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:r}=this.state,{children:o}=this.props,{child:s,isFunction:l}=this.getOnlyChild(o);let c;return l?c=s:f.isValidElement(s)?c=f.cloneElement(s,this.getControlled(s.props)):(ct(!s,"`children` of Field is not validate ReactElement."),c=s),f.createElement(f.Fragment,{key:r},c)}}q(uh,"contextType",so);function dh({name:e,...n}){const r=f.useContext(so),o=f.useContext(ls),s=e!==void 0?Lt(e):void 0,l=n.isListField??!!o;let c="keep";return l||(c=`_${(s||[]).join("_")}`),process.env.NODE_ENV!=="production"&&n.preserve===!1&&l&&s.length<=1&&ct(!1,"`preserve` should not apply on Form.List fields."),f.createElement(uh,Fl({key:c,name:s,isListField:l},n,{fieldContext:r}))}function s0({name:e,initialValue:n,children:r,rules:o,validateTrigger:s,isListField:l}){const c=f.useContext(so),d=f.useContext(ls),g=f.useRef({keys:[],id:0}).current,m=f.useMemo(()=>[...Lt(c.prefixName)||[],...Lt(e)],[c.prefixName,e]),v=f.useMemo(()=>({...c,prefixName:m}),[c,m]),y=f.useMemo(()=>({getKey:_=>{const x=m.length,b=_[x];return[g.keys[b],_.slice(x+1)]}}),[g,m]);if(typeof r!="function")return ct(!1,"Form.List only accepts function as children."),null;const C=(_,x,{source:b})=>b==="internal"?!1:_!==x;return f.createElement(ls.Provider,{value:y},f.createElement(so.Provider,{value:v},f.createElement(dh,{name:[],shouldUpdate:C,rules:o,validateTrigger:s,initialValue:n,isList:!0,isListField:l??!!d},({value:_=[],onChange:x},b)=>{const{getFieldValue:E}=c,S=()=>E(m||[])||[],P={add:(M,N)=>{const k=S();N>=0&&N<=k.length?(g.keys=[...g.keys.slice(0,N),g.id,...g.keys.slice(N)],x([...k.slice(0,N),M,...k.slice(N)])):(process.env.NODE_ENV!=="production"&&(N<0||N>k.length)&&ct(!1,"The second parameter of the add function should be a valid positive number."),g.keys=[...g.keys,g.id],x([...k,M])),g.id+=1},remove:M=>{const N=S(),k=new Set(Array.isArray(M)?M:[M]);k.size<=0||(g.keys=g.keys.filter((R,B)=>!k.has(B)),x(N.filter((R,B)=>!k.has(B))))},move(M,N){if(M===N)return;const k=S();M<0||M>=k.length||N<0||N>=k.length||(g.keys=ch(g.keys,M,N),x(ch(k,M,N)))}};let T=_||[];return Array.isArray(T)||(T=[],process.env.NODE_ENV!=="production"&&ct(!1,`Current value of '${m.join(" > ")}' is not an array type.`)),r(T.map((M,N)=>{let k=g.keys[N];return k===void 0&&(g.keys[N]=g.id,k=g.keys[N],g.id+=1),{name:N,key:k,isListField:!0}}),P,b)})))}function a0(e){let n=!1,r=e.length;const o=[];return e.length?new Promise((s,l)=>{e.forEach((c,d)=>{c.catch(h=>(n=!0,h)).then(h=>{r-=1,o[d]=h,!(r>0)&&(n&&l(o),s(o))})})}):Promise.resolve([])}const Vl="__@field_split__";function fs(e){return e.map(n=>`${typeof n}:${n}`).join(Vl)}class co{constructor(){q(this,"kvs",new Map)}set(n,r){this.kvs.set(fs(n),r)}get(n){return this.kvs.get(fs(n))}getAsPrefix(n){const r=fs(n),o=r+Vl,s=[],l=this.kvs.get(r);return l!==void 0&&s.push(l),this.kvs.forEach((c,d)=>{d.startsWith(o)&&s.push(c)}),s}update(n,r){const o=this.get(n),s=r(o);s?this.set(n,s):this.delete(n)}delete(n){this.kvs.delete(fs(n))}map(n){return[...this.kvs.entries()].map(([r,o])=>{const s=r.split(Vl);return n({key:s.map(l=>{const[,c,d]=l.match(/^([^:]*):(.*)$/);return c==="number"?Number(d):d}),value:o})})}toJSON(){const n={};return this.map(({key:r,value:o})=>(n[r.join(".")]=o,null)),n}}const l0=e=>{const n=new MessageChannel;n.port1.onmessage=e,n.port2.postMessage(null)};class c0{constructor(n){q(this,"namePathList",[]);q(this,"taskId",0);q(this,"watcherList",new Set);q(this,"form");this.form=n}register(n){return this.watcherList.add(n),()=>{this.watcherList.delete(n)}}notify(n){n.forEach(r=>{this.namePathList.every(o=>!ds(o,r))&&this.namePathList.push(r)}),this.doBatch()}doBatch(){this.taskId+=1;const n=this.taskId;l0(()=>{if(n===this.taskId&&this.watcherList.size){const r=this.form.getForm(),o=r.getFieldsValue(),s=r.getFieldsValue(!0);this.watcherList.forEach(l=>{l(o,s,this.namePathList)}),this.namePathList=[]}})}}class u0{constructor(n){q(this,"formHooked",!1);q(this,"forceRootUpdate");q(this,"subscribable",!0);q(this,"store",{});q(this,"fieldEntities",[]);q(this,"initialValues",{});q(this,"callbacks",{});q(this,"validateMessages",null);q(this,"preserve",null);q(this,"lastValidatePromise",null);q(this,"watcherCenter",new c0(this));q(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));q(this,"getInternalHooks",n=>n===Br?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(ct(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));q(this,"useSubscribe",n=>{this.subscribable=n});q(this,"prevWithoutPreserves",null);q(this,"setInitialValues",(n,r)=>{var o;if(this.initialValues=n||{},r){let s=Zr(n,this.store);(o=this.prevWithoutPreserves)==null||o.map(({key:l})=>{s=Cn(s,l,Ln(n,l))}),this.prevWithoutPreserves=null,this.updateStore(s)}});q(this,"destroyForm",n=>{if(n)this.updateStore({});else{const r=new co;this.getFieldEntities(!0).forEach(o=>{this.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),this.prevWithoutPreserves=r}});q(this,"getInitialValue",n=>{const r=Ln(this.initialValues,n);return n.length?Zr(r):r});q(this,"setCallbacks",n=>{this.callbacks=n});q(this,"setValidateMessages",n=>{this.validateMessages=n});q(this,"setPreserve",n=>{this.preserve=n});q(this,"registerWatch",n=>this.watcherCenter.register(n));q(this,"notifyWatch",(n=[])=>{this.watcherCenter.notify(n)});q(this,"timeoutId",null);q(this,"warningUnhooked",()=>{process.env.NODE_ENV!=="production"&&!this.timeoutId&&typeof window<"u"&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.formHooked||ct(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))});q(this,"updateStore",n=>{this.store=n});q(this,"getFieldEntities",(n=!1)=>n?this.fieldEntities.filter(r=>r.getNamePath().length):this.fieldEntities);q(this,"getFieldsMap",(n=!1)=>{const r=new co;return this.getFieldEntities(n).forEach(o=>{const s=o.getNamePath();r.set(s,o)}),r});q(this,"getFieldEntitiesForNamePathList",(n,r=!1)=>{if(!n)return this.getFieldEntities(!0);const o=this.getFieldsMap(!0);return r?n.flatMap(s=>{const l=Lt(s),c=o.getAsPrefix(l);return c.length?c:[{INVALIDATE_NAME_PATH:l}]}):n.map(s=>{const l=Lt(s);return o.get(l)||{INVALIDATE_NAME_PATH:Lt(s)}})});q(this,"getFieldsValue",(n,r)=>{this.warningUnhooked();let o,s;if(n===!0||Array.isArray(n)?(o=n,s=r):n&&typeof n=="object"&&(s=n.filter),o===!0&&!s)return this.store;const l=this.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null,!0),c=[],d=[];l.forEach(g=>{var v;const m=g.INVALIDATE_NAME_PATH||g.getNamePath();if((v=g.isList)!=null&&v.call(g)){d.push(m);return}if(!s)c.push(m);else{const y="getMeta"in g?g.getMeta():null;s(y)&&c.push(m)}});let h=lh(this.store,c.map(Lt));return d.forEach(g=>{Ln(h,g)||(h=Cn(h,g,[]))}),h});q(this,"getFieldValue",n=>{this.warningUnhooked();const r=Lt(n);return Ln(this.store,r)});q(this,"getFieldsError",n=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(n).map((o,s)=>o&&!o.INVALIDATE_NAME_PATH?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Lt(n[s]),errors:[],warnings:[]})));q(this,"getFieldError",n=>{this.warningUnhooked();const r=Lt(n);return this.getFieldsError([r])[0].errors});q(this,"getFieldWarning",n=>{this.warningUnhooked();const r=Lt(n);return this.getFieldsError([r])[0].warnings});q(this,"isFieldsTouched",(...n)=>{this.warningUnhooked();const[r,o]=n;let s,l=!1;n.length===0?s=null:n.length===1?Array.isArray(r)?(s=r.map(Lt),l=!1):(s=null,l=r):(s=r.map(Lt),l=o);const c=this.getFieldEntities(!0),d=v=>v.isFieldTouched();if(!s)return l?c.every(v=>d(v)||v.isList()):c.some(d);const h=new co;s.forEach(v=>{h.set(v,[])}),c.forEach(v=>{const y=v.getNamePath();s.forEach(C=>{C.every((_,x)=>y[x]===_)&&h.update(C,_=>[..._,v])})});const g=v=>v.some(d),m=h.map(({value:v})=>v);return l?m.every(g):m.some(g)});q(this,"isFieldTouched",n=>(this.warningUnhooked(),this.isFieldsTouched([n])));q(this,"isFieldsValidating",n=>{this.warningUnhooked();const r=this.getFieldEntities();if(!n)return r.some(s=>s.isFieldValidating());const o=n.map(Lt);return r.some(s=>{const l=s.getNamePath();return lo(o,l)&&s.isFieldValidating()})});q(this,"isFieldValidating",n=>(this.warningUnhooked(),this.isFieldsValidating([n])));q(this,"resetWithFieldInitialValue",(n={})=>{const r=new co,o=this.getFieldEntities(!0);o.forEach(c=>{const{initialValue:d}=c.props,h=c.getNamePath();if(d!==void 0){const g=r.get(h)||new Set;g.add({entity:c,value:d}),r.set(h,g)}});const s=c=>{c.forEach(d=>{const{initialValue:h}=d.props;if(h!==void 0){const g=d.getNamePath();if(this.getInitialValue(g)!==void 0)ct(!1,`Form already set 'initialValues' with path '${g.join(".")}'. Field can not overwrite it.`);else{const v=r.get(g);if(v&&v.size>1)ct(!1,`Multiple Field with path '${g.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(v){const y=this.getFieldValue(g);!d.isListField()&&(!n.skipExist||y===void 0)&&this.updateStore(Cn(this.store,g,[...v][0].value))}}}})};let l;n.entities?l=n.entities:n.namePathList?(l=[],n.namePathList.forEach(c=>{const d=r.get(c);d&&l.push(...[...d].map(h=>h.entity))})):l=o,s(l)});q(this,"resetFields",n=>{this.warningUnhooked();const r=this.store;if(!n){this.updateStore(Zr(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(r,null,{type:"reset"}),this.notifyWatch();return}const o=n.map(Lt);o.forEach(s=>{const l=this.getInitialValue(s);this.updateStore(Cn(this.store,s,l))}),this.resetWithFieldInitialValue({namePathList:o}),this.notifyObservers(r,o,{type:"reset"}),this.notifyWatch(o)});q(this,"setFields",n=>{this.warningUnhooked();const r=this.store,o=[];n.forEach(s=>{const{name:l,...c}=s,d=Lt(l);o.push(d),"value"in c&&this.updateStore(Cn(this.store,d,c.value)),this.notifyObservers(r,[d],{type:"setField",data:s})}),this.notifyWatch(o)});q(this,"getFields",()=>this.getFieldEntities(!0).map(o=>{const s=o.getNamePath(),c={...o.getMeta(),name:s,value:this.getFieldValue(s)};return Object.defineProperty(c,"originRCField",{value:!0}),c}));q(this,"initEntityValue",n=>{const{initialValue:r}=n.props;if(r!==void 0){const o=n.getNamePath();Ln(this.store,o)===void 0&&this.updateStore(Cn(this.store,o,r))}});q(this,"isMergedPreserve",n=>(n!==void 0?n:this.preserve)??!0);q(this,"registerField",n=>{this.fieldEntities.push(n);const r=n.getNamePath();if(this.notifyWatch([r]),n.props.initialValue!==void 0){const o=this.store;this.resetWithFieldInitialValue({entities:[n],skipExist:!0}),this.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return(o,s,l=[])=>{if(this.fieldEntities=this.fieldEntities.filter(c=>c!==n),!this.isMergedPreserve(s)&&(!o||l.length>1)){const c=o?void 0:this.getInitialValue(r);if(r.length&&this.getFieldValue(r)!==c&&this.fieldEntities.every(d=>!ds(d.getNamePath(),r))){const d=this.store;this.updateStore(Cn(d,r,c,!0)),this.notifyObservers(d,[r],{type:"remove"}),this.triggerDependenciesUpdate(d,r)}}this.notifyWatch([r])}});q(this,"dispatch",n=>{switch(n.type){case"updateValue":{const{namePath:r,value:o}=n;this.updateValue(r,o);break}case"validateField":{const{namePath:r,triggerName:o}=n;this.validateFields([r],{triggerName:o});break}}});q(this,"notifyObservers",(n,r,o)=>{if(this.subscribable){const s={...o,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:l})=>{l(n,r,s)})}else this.forceRootUpdate()});q(this,"triggerDependenciesUpdate",(n,r)=>{const o=this.getDependencyChildrenFields(r);return o.length&&this.validateFields(o),this.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[r,...o]}),o});q(this,"updateValue",(n,r)=>{const o=Lt(n),s=this.store;this.updateStore(Cn(this.store,o,r)),this.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),this.notifyWatch([o]);const l=this.triggerDependenciesUpdate(s,o),{onValuesChange:c}=this.callbacks;if(c){const d=this.getFieldsMap(!0).get(o),h=lh(this.store,[o]),g=this.getFieldsValue(),m=Jc([g,h],{prepareArray:v=>d!=null&&d.isList()?[]:[...v||[]]});c(h,m)}this.triggerOnFieldsChange([o,...l])});q(this,"setFieldsValue",n=>{this.warningUnhooked();const r=this.store;if(n){const o=Zr(this.store,n);this.updateStore(o)}this.notifyObservers(r,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});q(this,"setFieldValue",(n,r)=>{this.setFields([{name:n,value:r,errors:[],warnings:[],touched:!0}])});q(this,"getDependencyChildrenFields",n=>{const r=new Set,o=[],s=new co;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(h=>{const g=Lt(h);s.update(g,(m=new Set)=>(m.add(c),m))})});const l=c=>{(s.get(c)||new Set).forEach(h=>{if(!r.has(h)){r.add(h);const g=h.getNamePath();h.isFieldDirty()&&g.length&&(o.push(g),l(g))}})};return l(n),o});q(this,"triggerOnFieldsChange",(n,r)=>{const{onFieldsChange:o}=this.callbacks;if(o){const s=this.getFields();if(r){const c=new co;r.forEach(({name:d,errors:h})=>{c.set(d,h)}),s.forEach(d=>{d.errors=c.get(d.name)||d.errors})}const l=s.filter(({name:c})=>lo(n,c));l.length&&o(l,s)}});q(this,"validateFields",(n,r)=>{this.warningUnhooked();let o,s;Array.isArray(n)||typeof n=="string"||typeof r=="string"?(o=n,s=r):s=n;const l=!!o,c=l?o.map(Lt):[],d=[...c],h=[],g=String(Date.now()),m=new Set,{recursive:v,dirty:y}=s||{};this.getFieldEntities(!0).forEach(b=>{const E=b.getNamePath();if(l||((!b.isList()||!c.some(S=>ds(S,E,!0)))&&d.push(E),c.push(E)),!(!b.props.rules||!b.props.rules.length)&&!(y&&!b.isFieldDirty())&&(m.add(E.join(g)),!l||lo(c,E,v))){const S=b.validateRules({validateMessages:{...ih,...this.validateMessages},...s});h.push(S.then(()=>({name:E,errors:[],warnings:[]})).catch(P=>{var N;const T=[],M=[];return(N=P.forEach)==null||N.call(P,({rule:{warningOnly:k},errors:R})=>{k?M.push(...R):T.push(...R)}),T.length?Promise.reject({name:E,errors:T,warnings:M}):{name:E,errors:T,warnings:M}}))}});const C=a0(h);this.lastValidatePromise=C,C.catch(b=>b).then(b=>{const E=b.map(({name:S})=>S);this.notifyObservers(this.store,E,{type:"validateFinish"}),this.triggerOnFieldsChange(E,b)});const _=C.then(()=>this.lastValidatePromise===C?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(b=>{var P,T;const E=b.filter(M=>M&&M.errors.length),S=(T=(P=E[0])==null?void 0:P.errors)==null?void 0:T[0];return Promise.reject({message:S,values:this.getFieldsValue(c),errorFields:E,outOfDate:this.lastValidatePromise!==C})});_.catch(b=>b);const x=c.filter(b=>m.has(b.join(g)));return this.triggerOnFieldsChange(x),_});q(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(n=>{const{onFinish:r}=this.callbacks;if(r)try{r(n)}catch(o){console.error(o)}}).catch(n=>{const{onFinishFailed:r}=this.callbacks;r&&r(n)})});this.forceRootUpdate=n}}function fh(e){const n=f.useRef(null),[,r]=f.useState({});if(!n.current)if(e)n.current=e;else{const o=()=>{r({})},s=new u0(o);n.current=s.getForm()}return[n.current]}const Wl=f.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),d0=({validateMessages:e,onFormChange:n,onFormFinish:r,children:o})=>{const s=f.useContext(Wl),l=f.useRef({});return f.createElement(Wl.Provider,{value:{...s,validateMessages:{...s.validateMessages,...e},triggerFormChange:(c,d)=>{n&&n(c,{changedFields:d,forms:l.current}),s.triggerFormChange(c,d)},triggerFormFinish:(c,d)=>{r&&r(c,{values:d,forms:l.current}),s.triggerFormFinish(c,d)},registerForm:(c,d)=>{c&&(l.current={...l.current,[c]:d}),s.registerForm(c,d)},unregisterForm:c=>{const d={...l.current};delete d[c],l.current=d,s.unregisterForm(c)}}},o)};function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},jl.apply(this,arguments)}const f0=({name:e,initialValues:n,fields:r,form:o,preserve:s,children:l,component:c="form",validateMessages:d,validateTrigger:h="onChange",onValuesChange:g,onFieldsChange:m,onFinish:v,onFinishFailed:y,clearOnDestroy:C,..._},x)=>{const b=f.useRef(null),E=f.useContext(Wl),[S]=fh(o),{useSubscribe:P,setInitialValues:T,setCallbacks:M,setValidateMessages:N,setPreserve:k,destroyForm:R}=S.getInternalHooks(Br);f.useImperativeHandle(x,()=>({...S,nativeElement:b.current})),f.useEffect(()=>(E.registerForm(e,S),()=>{E.unregisterForm(e)}),[E,S,e]),N({...E.validateMessages,...d}),M({onValuesChange:g,onFieldsChange:(F,...X)=>{E.triggerFormChange(e,F),m&&m(F,...X)},onFinish:F=>{E.triggerFormFinish(e,F),v&&v(F)},onFinishFailed:y}),k(s);const B=f.useRef(null);T(n,!B.current),B.current||(B.current=!0),f.useEffect(()=>()=>R(C),[]);let z;const $=typeof l=="function";if($){const F=S.getFieldsValue(!0);z=l(F,S)}else z=l;P(!$);const j=f.useRef(null);f.useEffect(()=>{o0(j.current||[],r||[])||S.setFields(r||[]),j.current=r},[r,S]);const V=f.useMemo(()=>({...S,validateTrigger:h}),[S,h]),W=f.createElement(ls.Provider,{value:null},f.createElement(so.Provider,{value:V},z));return c===!1?W:f.createElement(c,jl({},_,{ref:b,onSubmit:F=>{F.preventDefault(),F.stopPropagation(),S.submit()},onReset:F=>{var X;F.preventDefault(),S.resetFields(),(X=_.onReset)==null||X.call(_,F)}}),W)};function Zl(e){try{return JSON.stringify(e)}catch{return Math.random()}}function h0(...e){const[n,r={}]=e,o=C_(r)?{form:r}:r,s=o.form,[l,c]=I.useState(()=>typeof n=="function"?n({}):void 0),d=I.useMemo(()=>Zl(l),[l]),h=I.useRef(d);h.current=d;const g=I.useContext(so),m=s||g,v=m&&m._init;process.env.NODE_ENV!=="production"&&ct(e.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");const{getFieldsValue:y,getInternalHooks:C}=m,{registerWatch:_}=C(Br),x=ht((E,S)=>{const P=o.preserve?S??y(!0):E??y(),T=typeof n=="function"?n(P):Ln(P,Lt(n));Zl(l)!==Zl(T)&&c(T)}),b=typeof n=="function"?n:JSON.stringify(n);return I.useEffect(()=>{v&&x()},[v,b]),I.useEffect(()=>v?_((S,P)=>{x(S,P)}):void 0,[v]),l}const ii=f.forwardRef(f0);ii.FormProvider=d0,ii.Field=dh,ii.List=s0,ii.useForm=fh,ii.useWatch=h0;const hs=f.createContext({});process.env.NODE_ENV!=="production"&&(hs.displayName="FormItemInputContext");const p0=({children:e,status:n,override:r})=>{const o=f.useContext(hs),s=f.useMemo(()=>{const l={...o};return r&&delete l.isFormItemInput,n&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[n,r,o]);return f.createElement(hs.Provider,{value:s},e)},hh=e=>{const{space:n,form:r,children:o}=e;if(!no(o))return null;let s=o;return r&&(s=I.createElement(p0,{override:!0,status:!0},s)),n&&(s=I.createElement(tb,null,s)),s};function m0(e){return n=>f.createElement($r,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f.createElement(e,{...n}))}const g0=(e,n,r,o,s)=>m0(c=>{const{prefixCls:d,style:h}=c,g=f.useRef(null),[m,v]=f.useState(0),[y,C]=f.useState(0),[_,x]=Un(!1,c.open),{getPrefixCls:b}=f.useContext(kt),E=b(o||"select",d);f.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const T=new ResizeObserver(N=>{const k=N[0].target;v(k.offsetHeight+8),C(k.offsetWidth)}),M=setInterval(()=>{var R;const N=s?`.${s(E)}`:`.${E}-dropdown`,k=(R=g.current)==null?void 0:R.querySelector(N);k&&(clearInterval(M),T.observe(k))},10);return()=>{clearInterval(M),T.disconnect()}}},[E]);let S={...c,style:{...h,margin:0},open:_,getPopupContainer:()=>g.current};r&&(S=r(S)),n&&Object.assign(S,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const P={paddingBottom:m,position:"relative",minWidth:y};return f.createElement("div",{ref:g,style:P},f.createElement(e,{...S}))}),uo=void 0;function v0(e,n){const{prefixCls:r,invalidate:o,item:s,renderItem:l,responsive:c,responsiveDisabled:d,registerSize:h,itemKey:g,className:m,style:v,children:y,display:C,order:_,component:x="div",...b}=e,E=c&&!C;function S(k){h(g,k)}f.useEffect(()=>()=>{S(null)},[]);const P=l&&s!==uo?l(s,{index:_}):y;let T;o||(T={opacity:E?0:1,height:E?0:uo,overflowY:E?"hidden":uo,order:c?_:uo,pointerEvents:E?"none":uo,position:E?"absolute":uo});const M={};E&&(M["aria-hidden"]=!0);let N=f.createElement(x,Vn({className:ce(!o&&r,m),style:{...T,...v}},M,b,{ref:n}),P);return c&&(N=f.createElement(ko,{onResize:({offsetWidth:k})=>{S(k)},disabled:d},N)),N}const fo=f.forwardRef(v0);process.env.NODE_ENV!=="production"&&(fo.displayName="Item");function y0(e){if(typeof MessageChannel>"u")qt(e);else{const n=new MessageChannel;n.port1.onmessage=()=>e(),n.port2.postMessage(void 0)}}function b0(){const e=f.useRef(null);return r=>{e.current||(e.current=[],y0(()=>{en.unstable_batchedUpdates(()=>{e.current.forEach(o=>{o()}),e.current=null})})),e.current.push(r)}}function ho(e,n){const[r,o]=f.useState(n),s=ht(l=>{e(()=>{o(l)})});return[r,s]}const ps=I.createContext(null),_0=(e,n)=>{const r=f.useContext(ps);if(!r){const{component:d="div",...h}=e;return f.createElement(d,Vn({},h,{ref:n}))}const{className:o,...s}=r,{className:l,...c}=e;return f.createElement(ps.Provider,{value:null},f.createElement(fo,Vn({ref:n,className:ce(o,l)},s,c)))},ph=f.forwardRef(_0);process.env.NODE_ENV!=="production"&&(ph.displayName="RawItem");const mh="responsive",gh="invalidate";function x0(e){return`+ ${e.length} ...`}function w0(e,n){const{prefixCls:r="rc-overflow",data:o=[],renderItem:s,renderRawItem:l,itemKey:c,itemWidth:d=10,ssr:h,style:g,className:m,maxCount:v,renderRest:y,renderRawRest:C,prefix:_,suffix:x,component:b="div",itemComponent:E,onVisibleChange:S,...P}=e,T=h==="full",M=b0(),[N,k]=ho(M,null),R=N||0,[B,z]=ho(M,new Map),[$,j]=ho(M,0),[V,W]=ho(M,0),[F,X]=ho(M,0),[J,Z]=ho(M,0),[le,G]=I.useState(null),[ie,ne]=I.useState(null),de=f.useMemo(()=>ie===null&&T?Number.MAX_SAFE_INTEGER:ie||0,[ie,N]),[oe,ee]=I.useState(!1),K=`${r}-item`,Y=Math.max($,V),se=v===mh,fe=o.length&&se,xe=v===gh,Se=fe||typeof v=="number"&&o.length>v,Te=I.useMemo(()=>{let he=o;return fe?N===null&&T?he=o:he=o.slice(0,Math.min(o.length,R/d)):typeof v=="number"&&(he=o.slice(0,v)),he},[o,d,N,v,fe]),Ce=I.useMemo(()=>fe?o.slice(de+1):o.slice(Te.length),[o,Te,fe,de]),te=I.useCallback((he,_e)=>typeof c=="function"?c(he):(c&&(he==null?void 0:he[c]))??_e,[c]),we=I.useCallback(s||(he=>he),[s]);function Pe(he,_e,rt){ie===he&&(_e===void 0||_e===le)||(ne(he),rt||(ee(he<o.length-1),S==null||S(he)),_e!==void 0&&G(_e))}function Ae(he,_e){k(_e.clientWidth)}function Ze(he,_e){z(rt=>{const $e=new Map(rt);return _e===null?$e.delete(he):$e.set(he,_e),$e})}function Be(he,_e){W(_e),j(V)}function nt(he,_e){X(_e)}function Ge(he,_e){Z(_e)}function Ke(he){return B.get(te(Te[he],he))}an(()=>{if(R&&typeof Y=="number"&&Te){let he=F+J;const _e=Te.length,rt=_e-1;if(!_e){Pe(0,null);return}for(let $e=0;$e<_e;$e+=1){let ge=Ke($e);if(T&&(ge=ge||0),ge===void 0){Pe($e-1,void 0,!0);break}if(he+=ge,rt===0&&he<=R||$e===rt-1&&he+Ke(rt)<=R){Pe(rt,null);break}else if(he+Y>R){Pe($e-1,he-ge-J+V);break}}x&&Ke(0)+J>R&&G(null)}},[R,B,V,F,J,te,Te]);const ze=oe&&!!Ce.length;let De={};le!==null&&fe&&(De={position:"absolute",left:le,top:0});const ot={prefixCls:K,responsive:fe,component:E,invalidate:xe},Et=l?(he,_e)=>{const rt=te(he,_e);return f.createElement(ps.Provider,{key:rt,value:{...ot,order:_e,item:he,itemKey:rt,registerSize:Ze,display:_e<=de}},l(he,_e))}:(he,_e)=>{const rt=te(he,_e);return f.createElement(fo,Vn({},ot,{order:_e,key:rt,item:he,renderItem:we,itemKey:rt,registerSize:Ze,display:_e<=de}))},mt={order:ze?de:Number.MAX_SAFE_INTEGER,className:`${K}-rest`,registerSize:Be,display:ze},dt=y||x0,gt=C?f.createElement(ps.Provider,{value:{...ot,...mt}},C(Ce)):f.createElement(fo,Vn({},ot,mt),typeof dt=="function"?dt(Ce):dt),Oe=f.createElement(b,Vn({className:ce(!xe&&r,m),style:g,ref:n},P),_&&f.createElement(fo,Vn({},ot,{responsive:se,responsiveDisabled:!fe,order:-1,className:`${K}-prefix`,registerSize:nt,display:!0}),_),Te.map(Et),Se?gt:null,x&&f.createElement(fo,Vn({},ot,{responsive:se,responsiveDisabled:!fe,order:de,className:`${K}-suffix`,registerSize:Ge,display:!0,style:De}),x));return se?f.createElement(ko,{onResize:Ae,disabled:!fe},Oe):Oe}const rr=f.forwardRef(w0);rr.Item=ph,rr.RESPONSIVE=mh,rr.INVALIDATE=gh,process.env.NODE_ENV!=="production"&&(rr.displayName="Overflow");const C0=(e,n,r)=>ce({[`${e}-status-success`]:n==="success",[`${e}-status-warning`]:n==="warning",[`${e}-status-error`]:n==="error",[`${e}-status-validating`]:n==="validating",[`${e}-has-feedback`]:r}),vh=e=>{const{children:n,prefixCls:r,id:o,classNames:s,styles:l,className:c,style:d}=e;return f.createElement("div",{id:o,className:ce(`${r}-container`,s==null?void 0:s.container,c),style:{...l==null?void 0:l.container,...d},role:"tooltip"},typeof n=="function"?n():n)},po={shiftX:64,adjustY:1},mo={adjustX:1,shiftY:!0},In=[0,0],S0={left:{points:["cr","cl"],overflow:mo,offset:[-4,0],targetOffset:In},right:{points:["cl","cr"],overflow:mo,offset:[4,0],targetOffset:In},top:{points:["bc","tc"],overflow:po,offset:[0,-4],targetOffset:In},bottom:{points:["tc","bc"],overflow:po,offset:[0,4],targetOffset:In},topLeft:{points:["bl","tl"],overflow:po,offset:[0,-4],targetOffset:In},leftTop:{points:["tr","tl"],overflow:mo,offset:[-4,0],targetOffset:In},topRight:{points:["br","tr"],overflow:po,offset:[0,-4],targetOffset:In},rightTop:{points:["tl","tr"],overflow:mo,offset:[4,0],targetOffset:In},bottomRight:{points:["tr","br"],overflow:po,offset:[0,4],targetOffset:In},rightBottom:{points:["bl","br"],overflow:mo,offset:[4,0],targetOffset:In},bottomLeft:{points:["tl","bl"],overflow:po,offset:[0,4],targetOffset:In},leftBottom:{points:["br","bl"],overflow:mo,offset:[-4,0],targetOffset:In}};function Ul(){return Ul=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ul.apply(this,arguments)}const E0=f.forwardRef((e,n)=>{const{trigger:r=["hover"],mouseEnterDelay:o=0,mouseLeaveDelay:s=.1,prefixCls:l="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:h,motion:g,placement:m="right",align:v={},destroyOnHidden:y=!1,defaultVisible:C,getTooltipContainer:_,arrowContent:x,overlay:b,id:E,showArrow:S=!0,classNames:P,styles:T,...M}=e,N=Qi(E),k=I.useRef(null);I.useImperativeHandle(n,()=>k.current);const R={...M};"visible"in e&&(R.popupVisible=e.visible);const B=f.useMemo(()=>{if(!S)return!1;const $=S===!0?{}:S;return{...$,className:ce($.className,P==null?void 0:P.arrow),style:{...$.style,...T==null?void 0:T.arrow},content:$.content??x}},[S,P==null?void 0:P.arrow,T==null?void 0:T.arrow,x]),z=({open:$})=>{const j=f.Children.only(c),V={"aria-describedby":b&&$?N:void 0};return f.cloneElement(j,V)};return f.createElement(fl,Ul({popupClassName:P==null?void 0:P.root,prefixCls:l,popup:f.createElement(vh,{key:"content",prefixCls:l,id:N,classNames:P,styles:T},b),action:r,builtinPlacements:S0,popupPlacement:m,ref:k,popupAlign:v,getPopupContainer:_,onOpenChange:d,afterOpenChange:h,popupMotion:g,defaultPopupVisible:C,autoDestroy:y,mouseLeaveDelay:s,popupStyle:T==null?void 0:T.root,mouseEnterDelay:o,arrow:B,uniqueContainerClassName:P==null?void 0:P.uniqueContainer,uniqueContainerStyle:T==null?void 0:T.uniqueContainer},R),z)});function yh(e){const{sizePopupArrow:n,borderRadiusXS:r,borderRadiusOuter:o}=e,s=n/2,l=0,c=s,d=o*1/Math.sqrt(2),h=s-o*(1-1/Math.sqrt(2)),g=s-r*(1/Math.sqrt(2)),m=o*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),v=2*s-g,y=m,C=2*s-d,_=h,x=2*s-l,b=c,E=s*Math.sqrt(2)+o*(Math.sqrt(2)-2),S=o*(Math.sqrt(2)-1),P=`polygon(${S}px 100%, 50% ${S}px, ${2*s-S}px 100%, ${S}px 100%)`,T=`path('M ${l} ${c} A ${o} ${o} 0 0 0 ${d} ${h} L ${g} ${m} A ${r} ${r} 0 0 1 ${v} ${y} L ${C} ${_} A ${o} ${o} 0 0 0 ${x} ${b} Z')`;return{arrowShadowWidth:E,arrowPath:T,arrowPolygon:P}}const P0=(e,n,r)=>{const{sizePopupArrow:o,arrowPolygon:s,arrowPath:l,arrowShadowWidth:c,borderRadiusXS:d,calc:h}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:h(o).div(2).equal(),background:n,clipPath:{_multi_value_:!0,value:[s,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Le(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},bh=8;function ql(e){const{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:r?bh:o}}function ms(e,n){return e?n:{}}const _h=(e,n,r)=>{const{componentCls:o,boxShadowPopoverArrow:s,arrowOffsetVertical:l,arrowOffsetHorizontal:c,antCls:d}=e,[h]=gr(d,"tooltip"),{arrowDistance:g=0,arrowPlacement:m={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[o]:{[`${o}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...P0(e,n,s),"&:before":{background:n}}],...ms(!!m.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:g,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[h("arrow-offset-horizontal")]:c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{[h("arrow-offset-horizontal")]:`calc(100% - ${Le(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...ms(!!m.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:g,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[h("arrow-offset-horizontal")]:c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{[h("arrow-offset-horizontal")]:`calc(100% - ${Le(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...ms(!!m.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:g},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:l},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:l}}),...ms(!!m.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:g},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:l},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:l}})}}};function I0(e,n,r,o){if(o===!1)return{adjustX:!1,adjustY:!1};const s=o&&typeof o=="object"?o:{},l={};switch(e){case"top":case"bottom":l.shiftX=n.arrowOffsetHorizontal*2+r,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=n.arrowOffsetVertical*2+r,l.shiftX=!0,l.adjustX=!0;break}const c={...l,...s};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const xh={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},T0={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},A0=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function wh(e){const{arrowWidth:n,autoAdjustOverflow:r,arrowPointAtCenter:o,offset:s,borderRadius:l,visibleFirst:c}=e,d=n/2,h={},g=ql({contentRadius:l,limitVerticalRadius:!0});return Object.keys(xh).forEach(m=>{const y={...o&&T0[m]||xh[m],offset:[0,0],dynamicInset:!0};switch(h[m]=y,A0.has(m)&&(y.autoArrow=!1),m){case"top":case"topLeft":case"topRight":y.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+s;break}if(o)switch(m){case"topLeft":case"bottomLeft":y.offset[0]=-g.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=g.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-g.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=g.arrowOffsetHorizontal*2-d;break}y.overflow=I0(m,g,n,r),c&&(y.htmlRegion="visibleFirst")}),h}const M0=(e,n)=>{const r=o=>typeof o=="boolean"?{show:o}:o||{};return I.useMemo(()=>{const o=r(e),s=r(n);return{...s,...o,show:o.show??s.show??!0}},[e,n])},Ch="50%",L0=e=>{const{calc:n,componentCls:r,tooltipMaxWidth:o,tooltipColor:s,tooltipBg:l,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:h,boxShadowSecondary:g,paddingSM:m,paddingXS:v,arrowOffsetHorizontal:y,sizePopupArrow:C,antCls:_}=e,[x,b]=gr(_,"tooltip"),E=n(c).add(C).add(y).equal(),P={minWidth:n(c).mul(2).add(C).equal(),minHeight:h,padding:`${Le(e.calc(m).div(2).equal())} ${Le(v)}`,color:b("overlay-color",s),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:c,boxShadow:g,boxSizing:"border-box"},T={[x("valid-offset-x")]:b("arrow-offset-horizontal","var(--arrow-x)"),transformOrigin:[b("valid-offset-x",Ch),`var(--arrow-y, ${Ch})`].join(" ")};return[{[r]:{...Jr(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:o,visibility:"visible",...T,"&-hidden":{display:"none"},[x("arrow-background-color")]:l,[`${r}-container`]:[P,Lb(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[`${r}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:E},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(c,bh)}},[`${r}-content`]:{position:"relative"},..._v(e,(M,{darkColor:N})=>({[`&${r}-${M}`]:{[`${r}-container`]:{backgroundColor:N},[`${r}-arrow`]:{[x("arrow-background-color")]:N}}})),"&-rtl":{direction:"rtl"}}},_h(e,b("arrow-background-color")),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${r}-unique-container`]:{...P,...T,position:"absolute",zIndex:n(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},O0=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...ql({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...yh(_n(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Sh=(e,n,r=!0)=>Hn("Tooltip",s=>{const{borderRadius:l,colorTextLightSolid:c,colorBgSpotlight:d,maxWidth:h}=s,g=_n(s,{tooltipMaxWidth:h,tooltipColor:c,tooltipBorderRadius:l,tooltipBg:d});return[L0(g),Ll(s,"zoom-big-fast")]},O0,{resetStyle:!1,injectStyle:r})(e,n),k0=kr.map(e=>`${e}-inverse`);function N0(e,n=!0){return n?[].concat(bn(k0),bn(kr)).includes(e):kr.includes(e)}const Eh=(e,n,r)=>{const o=N0(r),[s]=gr(e,"tooltip"),l=ce({[`${n}-${r}`]:r&&o}),c={},d={},h=r_(r).toRgb(),m=(.299*h.r+.587*h.g+.114*h.b)/255<.5?"#FFF":"#000";return r&&!o&&(c.background=r,c[s("overlay-color")]=m,d[s("arrow-background-color")]=r),{className:l,overlayStyle:c,arrowStyle:d}},R0=e=>{const{prefixCls:n,className:r,placement:o="top",title:s,color:l,overlayInnerStyle:c,classNames:d,styles:h}=e,{getPrefixCls:g}=f.useContext(kt),m=g("tooltip",n),v=g(),y=ro(m),[C,_]=Sh(m,y),x=Eh(v,m,l),b=x.arrowStyle,E=f.useMemo(()=>({container:{...c,...x.overlayStyle}}),[c,x.overlayStyle]),S={...e,placement:o},[P,T]=Rr([d],[E,h],{props:S}),M=ce(y,C,_,m,`${m}-pure`,`${m}-placement-${o}`,r,x.className);return f.createElement("div",{className:M,style:b},f.createElement("div",{className:`${m}-arrow`}),f.createElement(vh,{...e,className:C,prefixCls:m,classNames:P,styles:T},s))},gs=f.forwardRef((e,n)=>{const{prefixCls:r,openClassName:o,getTooltipContainer:s,color:l,children:c,afterOpenChange:d,arrow:h,destroyTooltipOnHide:g,destroyOnHidden:m,title:v,overlay:y,trigger:C,builtinPlacements:_,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:E,placement:S="top",mouseEnterDelay:P=.1,mouseLeaveDelay:T=.1,rootClassName:M,styles:N,classNames:k,onOpenChange:R,overlayInnerStyle:B,overlayStyle:z,overlayClassName:$,...j}=e,[,V]=mr(),{getPopupContainer:W,getPrefixCls:F,direction:X,className:J,style:Z,classNames:le,styles:G,arrow:ie,trigger:ne}=qr("tooltip"),de=M0(h,ie),oe=de.show,ee=C||ne||"hover",K=hn("Tooltip"),Y=f.useRef(null),se=()=>{var Ve;(Ve=Y.current)==null||Ve.forceAlign()};f.useImperativeHandle(n,()=>{var Ve,Ye;return{forceAlign:se,nativeElement:(Ve=Y.current)==null?void 0:Ve.nativeElement,popupElement:(Ye=Y.current)==null?void 0:Ye.popupElement}}),process.env.NODE_ENV!=="production"&&([["overlayStyle","styles.root"],["overlayInnerStyle","styles.container"],["overlayClassName","classNames.root"],["destroyTooltipOnHide","destroyOnHidden"]].forEach(([Ve,Ye])=>{K.deprecated(!(Ve in e),Ve,Ye)}),process.env.NODE_ENV!=="production"&&K(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."));const[fe,xe]=Un(e.defaultOpen??!1,e.open),Se=!v&&!y&&v!==0,Te=Ve=>{xe(Se?!1:Ve),!Se&&R&&R(Ve)},Ce=f.useMemo(()=>_||wh({arrowPointAtCenter:(de==null?void 0:de.pointAtCenter)??!1,autoAdjustOverflow:x,arrowWidth:oe?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS,visibleFirst:!0}),[de,_,V,oe,x]),te=f.useMemo(()=>v===0?v:y||v||"",[y,v]),we=f.createElement(hh,{space:!0,form:!0},typeof te=="function"?te():te),Pe={...e,trigger:ee,color:l,placement:S,builtinPlacements:_,openClassName:o,arrow:h,autoAdjustOverflow:x,getPopupContainer:E,children:c,destroyTooltipOnHide:g,destroyOnHidden:m},[Ae,Ze]=Rr([le,k],[G,N],{props:Pe}),Be=F("tooltip",r),nt=F(),Ge=e["data-popover-inject"];let Ke=fe;!("open"in e)&&Se&&(Ke=!1);const ze=f.isValidElement(c)&&!_f(c)?c:f.createElement("span",null,c),De=ze.props,ot=!De.className||typeof De.className=="string"?ce(De.className,o||`${Be}-open`):De.className,Et=ro(Be),[mt,dt]=Sh(Be,Et,!Ge),gt=Eh(nt,Be,l),Oe=gt.arrowStyle,he=ce(Et,mt,dt),_e=ce($,{[`${Be}-rtl`]:X==="rtl"},gt.className,M,he,J,Ae.root),[rt,$e]=ol("Tooltip",j.zIndex),ge={...Ze.container,...B,...gt.overlayStyle},Qe=f.createElement(E0,{unique:!0,...j,trigger:ee,zIndex:rt,showArrow:oe,placement:S,mouseEnterDelay:P,mouseLeaveDelay:T,prefixCls:Be,classNames:{root:_e,container:Ae.container,arrow:Ae.arrow,uniqueContainer:ce(he,Ae.container)},styles:{root:{...Oe,...Ze.root,...Z,...z},container:ge,uniqueContainer:ge,arrow:Ze.arrow},getTooltipContainer:E||s||W,ref:Y,builtinPlacements:Ce,overlay:we,visible:Ke,onVisibleChange:Te,afterVisibleChange:d,arrowContent:f.createElement("span",{className:`${Be}-arrow-content`}),motion:{motionName:qy(nt,"zoom-big-fast",typeof(b==null?void 0:b.motionName)=="string"?b==null?void 0:b.motionName:void 0),motionDeadline:1e3},destroyOnHidden:m??!!g},Ke?tr(ze,{className:ot}):ze);return f.createElement(rl.Provider,{value:$e},Qe)});process.env.NODE_ENV!=="production"&&(gs.displayName="Tooltip"),gs._InternalPanelDoNotUseOrYouWillBeFired=R0,gs.UniqueProvider=xf;const Ph=gs;var $0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const B0=$0;function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Gl.apply(this,arguments)}const z0=(e,n)=>f.createElement(Ko,Gl({},e,{ref:n,icon:B0})),Ih=f.forwardRef(z0);process.env.NODE_ENV!=="production"&&(Ih.displayName="LeftOutlined");const Kl=Ih,{ESC:D0,TAB:F0}=Ie;function H0({visible:e,triggerRef:n,onVisibleChange:r,autoFocus:o,overlayRef:s}){const l=f.useRef(!1),c=()=>{var g,m;e&&((m=(g=n.current)==null?void 0:g.focus)==null||m.call(g),r==null||r(!1))},d=()=>{var g;return(g=s.current)!=null&&g.focus?(s.current.focus(),l.current=!0,!0):!1},h=g=>{switch(g.keyCode){case D0:c();break;case F0:{let m=!1;l.current||(m=d()),m?g.preventDefault():c();break}}};f.useEffect(()=>e?(window.addEventListener("keydown",h),o&&qt(d,3),()=>{window.removeEventListener("keydown",h),l.current=!1}):()=>{l.current=!1},[e])}const V0=I.forwardRef((e,n)=>{const{overlay:r,arrow:o,prefixCls:s}=e,l=I.useMemo(()=>{let d;return typeof r=="function"?d=r():d=r,d},[r]),c=Er(n,dr(l));return I.createElement(I.Fragment,null,o&&I.createElement("div",{className:`${s}-arrow`}),I.cloneElement(l,{ref:Pr(l)?c:void 0}))}),go={adjustX:1,adjustY:1},vo=[0,0],W0={topLeft:{points:["bl","tl"],overflow:go,offset:[0,-4],targetOffset:vo},top:{points:["bc","tc"],overflow:go,offset:[0,-4],targetOffset:vo},topRight:{points:["br","tr"],overflow:go,offset:[0,-4],targetOffset:vo},bottomLeft:{points:["tl","bl"],overflow:go,offset:[0,4],targetOffset:vo},bottom:{points:["tc","bc"],overflow:go,offset:[0,4],targetOffset:vo},bottomRight:{points:["tr","br"],overflow:go,offset:[0,4],targetOffset:vo}};function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ql.apply(this,arguments)}const j0=I.forwardRef((e,n)=>{var G;const{arrow:r=!1,prefixCls:o="rc-dropdown",transitionName:s,animation:l,align:c,placement:d="bottomLeft",placements:h=W0,getPopupContainer:g,showAction:m,hideAction:v,overlayClassName:y,overlayStyle:C,visible:_,trigger:x=["hover"],autoFocus:b,overlay:E,children:S,onVisibleChange:P,...T}=e,[M,N]=I.useState(),k="visible"in e?_:M,R=l?`${o}-${l}`:s,B=I.useRef(null),z=I.useRef(null),$=I.useRef(null);I.useImperativeHandle(n,()=>B.current);const j=ie=>{N(ie),P==null||P(ie)};H0({visible:k,triggerRef:$,onVisibleChange:j,autoFocus:b,overlayRef:z});const V=ie=>{const{onOverlayClick:ne}=e;N(!1),ne&&ne(ie)},W=()=>I.createElement(V0,{ref:z,overlay:E,prefixCls:o,arrow:r}),F=()=>typeof E=="function"?W:W(),X=()=>{const{minOverlayWidthMatchTrigger:ie,alignPoint:ne}=e;return"minOverlayWidthMatchTrigger"in e?ie:!ne},J=()=>{const{openClassName:ie}=e;return ie!==void 0?ie:`${o}-open`},Z=I.cloneElement(S,{className:ce((G=S.props)==null?void 0:G.className,k&&J()),ref:Pr(S)?Er($,dr(S)):void 0});let le=v;return!le&&x.indexOf("contextMenu")!==-1&&(le=["click"]),I.createElement(fl,Ql({builtinPlacements:h},T,{prefixCls:o,ref:B,popupClassName:ce(y,{[`${o}-show-arrow`]:r}),popupStyle:C,action:x,showAction:m,hideAction:le,popupPlacement:d,popupAlign:c,popupMotion:{motionName:R},popupVisible:k,stretch:X()?"minWidth":"",popup:F(),onOpenChange:j,onPopupClick:V,getPopupContainer:g}),Z)}),Z0=e=>typeof e!="object"&&typeof e!="function"||e===null,Th=f.createContext(null);function Ah(e,n){return`${e}-${n}`}function Mh(e){const n=f.useContext(Th);return Ah(n,e)}const Rn=f.createContext(null);function U0(e,n){const r={...e};return Object.keys(n).forEach(o=>{const s=n[o];s!==void 0&&(r[o]=s)}),r}function si({children:e,locked:n,...r}){const o=f.useContext(Rn),s=Pi(()=>U0(o,r),[o,r],(l,c)=>!n&&(l[0]!==c[0]||!$o(l[1],c[1],!0)));return f.createElement(Rn.Provider,{value:s},e)}const q0=[],Lh=f.createContext(null);function vs(){return f.useContext(Lh)}const Oh=f.createContext(q0);function yo(e){const n=f.useContext(Oh);return f.useMemo(()=>e!==void 0?[...n,e]:n,[n,e])}const kh=f.createContext(null),Yl=f.createContext({}),{LEFT:Xl,RIGHT:Jl,UP:ec,DOWN:ys,ENTER:bs,ESC:Nh,HOME:ai,END:li}=Ie,Rh=[ec,ys,Xl,Jl];function G0(e,n,r,o){var C;const s="prev",l="next",c="children",d="parent";if(e==="inline"&&o===bs)return{inlineTrigger:!0};const h={[ec]:s,[ys]:l},g={[Xl]:r?l:s,[Jl]:r?s:l,[ys]:c,[bs]:c},m={[ec]:s,[ys]:l,[bs]:c,[Nh]:d,[Xl]:r?c:d,[Jl]:r?d:c};switch((C={inline:h,horizontal:g,vertical:m,inlineSub:h,horizontalSub:m,verticalSub:m}[`${e}${n?"":"Sub"}`])==null?void 0:C[o]){case s:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function K0(e){let n=e;for(;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function Q0(e,n){let r=e||document.activeElement;for(;r;){if(n.has(r))return r;r=r.parentElement}return null}function tc(e,n){return w_(e,!0).filter(o=>n.has(o))}function $h(e,n,r,o=1){if(!e)return null;const s=tc(e,n),l=s.length;let c=s.findIndex(d=>r===d);return o<0?c===-1?c=l-1:c-=1:o>0&&(c+=1),c=(c+l)%l,s[c]}const _s=(e,n)=>{const r=new Set,o=new Map,s=new Map;return e.forEach(l=>{const c=document.querySelector(`[data-menu-id='${Ah(n,l)}']`);c&&(r.add(c),s.set(c,l),o.set(l,c))}),{elements:r,key2element:o,element2key:s}};function Y0(e,n,r,o,s,l,c,d,h,g){const m=f.useRef(),v=f.useRef();v.current=n;const y=()=>{qt.cancel(m.current)};return f.useEffect(()=>()=>{y()},[]),C=>{const{which:_}=C;if([...Rh,bs,Nh,ai,li].includes(_)){const x=l();let b=_s(x,o);const{elements:E,key2element:S,element2key:P}=b,T=S.get(n),M=Q0(T,E),N=P.get(M),k=G0(e,c(N,!0).length===1,r,_);if(!k&&_!==ai&&_!==li)return;(Rh.includes(_)||[ai,li].includes(_))&&C.preventDefault();const R=B=>{if(B){let z=B;const $=B.querySelector("a");$!=null&&$.getAttribute("href")&&(z=$);const j=P.get(B);d(j),y(),m.current=qt(()=>{v.current===j&&z.focus()})}};if([ai,li].includes(_)||k.sibling||!M){let B;!M||e==="inline"?B=s.current:B=K0(M);let z;const $=tc(B,E);_===ai?z=$[0]:_===li?z=$[$.length-1]:z=$h(B,E,M,k.offset),R(z)}else if(k.inlineTrigger)h(N);else if(k.offset>0)h(N,!0),y(),m.current=qt(()=>{b=_s(x,o);const B=M.getAttribute("aria-controls"),z=document.getElementById(B),$=$h(z,b.elements);R($)},5);else if(k.offset<0){const B=c(N,!0),z=B[B.length-2],$=S.get(z);h(z,!1),R($)}}g==null||g(C)}}function X0(e){Promise.resolve().then(e)}const nc="__RC_UTIL_PATH_SPLIT__",Bh=e=>e.join(nc),J0=e=>e.split(nc),rc="rc-menu-more";function ex(){const[,e]=f.useState({}),n=I.useRef(new Map),r=I.useRef(new Map),[o,s]=f.useState([]),l=I.useRef(0),c=I.useRef(!1),d=()=>{c.current||e({})},h=I.useCallback((x,b)=>{process.env.NODE_ENV!=="production"&&ct(!n.current.has(x),`Duplicated key '${x}' used in Menu by path [${b.join(" > ")}]`);const E=Bh(b);r.current.set(E,x),n.current.set(x,E),l.current+=1;const S=l.current;X0(()=>{S===l.current&&d()})},[]),g=I.useCallback((x,b)=>{const E=Bh(b);r.current.delete(E),n.current.delete(x)},[]),m=I.useCallback(x=>{s(x)},[]),v=I.useCallback((x,b)=>{const E=n.current.get(x)||"",S=J0(E);return b&&o.includes(S[0])&&S.unshift(rc),S},[o]),y=I.useCallback((x,b)=>x.filter(E=>E!==void 0).some(E=>v(E,!0).includes(b)),[v]),C=()=>{const x=[...n.current.keys()];return o.length&&x.push(rc),x},_=I.useCallback(x=>{const b=`${n.current.get(x)}${nc}`,E=new Set;return[...r.current.keys()].forEach(S=>{S.startsWith(b)&&E.add(r.current.get(S))}),E},[]);return f.useEffect(()=>()=>{c.current=!0},[]),{registerPath:h,unregisterPath:g,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:v,getKeys:C,getSubPathKeys:_}}function ci(e){const n=f.useRef(e);n.current=e;const r=f.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},[]);return e?r:void 0}function zh(e,n,r,o){const{activeKey:s,onActive:l,onInactive:c}=f.useContext(Rn),d={active:s===e};return n||(d.onMouseEnter=h=>{r==null||r({key:e,domEvent:h}),l(e)},d.onMouseLeave=h=>{o==null||o({key:e,domEvent:h}),c(e)}),d}function Dh(e){const{mode:n,rtl:r,inlineIndent:o}=f.useContext(Rn);if(n!=="inline")return null;const s=e;return r?{paddingRight:s*o}:{paddingLeft:s*o}}function Fh({icon:e,props:n,children:r}){let o;return e===null||e===!1?null:(typeof e=="function"?o=f.createElement(e,{...n}):typeof e!="boolean"&&(o=e),o||r||null)}function xs({item:e,...n}){return Object.defineProperty(n,"item",{get:()=>(ct(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),n}function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ui.apply(this,arguments)}class tx extends f.Component{render(){const{title:n,attribute:r,elementRef:o,...s}=this.props,l=Sn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ct(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(rr.Item,ui({},r,{title:typeof n=="string"?n:void 0},l,{ref:o}))}}const nx=f.forwardRef((e,n)=>{const{style:r,className:o,eventKey:s,warnKey:l,disabled:c,itemIcon:d,children:h,role:g,onMouseEnter:m,onMouseLeave:v,onClick:y,onKeyDown:C,onFocus:_,...x}=e,b=Mh(s),{prefixCls:E,onItemClick:S,disabled:P,overflowDisabled:T,itemIcon:M,selectedKeys:N,onActive:k}=f.useContext(Rn),{_internalRenderMenuItem:R}=f.useContext(Yl),B=`${E}-item`,z=f.useRef(),$=f.useRef(),j=P||c,V=jr(n,$),W=yo(s);process.env.NODE_ENV!=="production"&&l&&ct(!1,"MenuItem should not leave undefined `key`.");const F=K=>({key:s,keyPath:[...W].reverse(),item:z.current,domEvent:K}),X=d||M,{active:J,...Z}=zh(s,j,m,v),le=N.includes(s),G=Dh(W.length),ie=K=>{if(j)return;const Y=F(K);y==null||y(xs(Y)),S(Y)},ne=K=>{if(C==null||C(K),K.which===Ie.ENTER){const Y=F(K);y==null||y(xs(Y)),S(Y)}},de=K=>{k(s),_==null||_(K)},oe={};e.role==="option"&&(oe["aria-selected"]=le);let ee=f.createElement(tx,ui({ref:z,elementRef:V,role:g===null?"none":g||"menuitem",tabIndex:c?null:-1,"data-menu-id":T&&b?null:b},Sn(x,["extra"]),Z,oe,{component:"li","aria-disabled":c,style:{...G,...r},className:ce(B,{[`${B}-active`]:J,[`${B}-selected`]:le,[`${B}-disabled`]:j},o),onClick:ie,onKeyDown:ne,onFocus:de}),h,f.createElement(Fh,{props:{...e,isSelected:le},icon:X}));return R&&(ee=R(ee,e,{selected:le})),ee});function rx(e,n){const{eventKey:r}=e,o=vs(),s=yo(r);return f.useEffect(()=>{if(o)return o.registerPath(r,s),()=>{o.unregisterPath(r,s)}},[s]),o?null:f.createElement(nx,ui({},e,{ref:n}))}const ws=f.forwardRef(rx);function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},oc.apply(this,arguments)}const ox=({className:e,children:n,...r},o)=>{const{prefixCls:s,mode:l,rtl:c}=f.useContext(Rn);return f.createElement("ul",oc({className:ce(s,c&&`${s}-rtl`,`${s}-sub`,`${s}-${l==="inline"?"inline":"vertical"}`,e),role:"menu"},r,{"data-menu-list":!0,ref:o}),n)},ic=f.forwardRef(ox);process.env.NODE_ENV!=="production"&&(ic.displayName="SubMenuList");function sc(e,n){return qn(e).map((r,o)=>{var s;if(f.isValidElement(r)){const{key:l}=r;let c=((s=r.props)==null?void 0:s.eventKey)??l;const d=c==null;d&&(c=`tmp_key-${[...n,o].join("-")}`);const h={key:c,eventKey:c};return process.env.NODE_ENV!=="production"&&d&&(h.warnKey=!0),f.cloneElement(r,h)}return r})}const rn={adjustX:1,adjustY:1},ix={topLeft:{points:["bl","tl"],overflow:rn},topRight:{points:["br","tr"],overflow:rn},bottomLeft:{points:["tl","bl"],overflow:rn},bottomRight:{points:["tr","br"],overflow:rn},leftTop:{points:["tr","tl"],overflow:rn},leftBottom:{points:["br","bl"],overflow:rn},rightTop:{points:["tl","tr"],overflow:rn},rightBottom:{points:["bl","br"],overflow:rn}},sx={topLeft:{points:["bl","tl"],overflow:rn},topRight:{points:["br","tr"],overflow:rn},bottomLeft:{points:["tl","bl"],overflow:rn},bottomRight:{points:["tr","br"],overflow:rn},rightTop:{points:["tr","tl"],overflow:rn},rightBottom:{points:["br","bl"],overflow:rn},leftTop:{points:["tl","tr"],overflow:rn},leftBottom:{points:["bl","br"],overflow:rn}};function Hh(e,n,r){if(n)return n;if(r)return r[e]||r.other}const ax={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function lx({prefixCls:e,visible:n,children:r,popup:o,popupStyle:s,popupClassName:l,popupOffset:c,disabled:d,mode:h,onVisibleChange:g}){const{getPopupContainer:m,rtl:v,subMenuOpenDelay:y,subMenuCloseDelay:C,builtinPlacements:_,triggerSubMenuAction:x,forceSubMenuRender:b,rootClassName:E,motion:S,defaultMotions:P}=f.useContext(Rn),[T,M]=f.useState(!1),N=v?{...sx,..._}:{...ix,..._},k=ax[h],R=Hh(h,S,P),B=f.useRef(R);h!=="inline"&&(B.current=R);const z={...B.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},$=f.useRef();return f.useEffect(()=>($.current=qt(()=>{M(n)}),()=>{qt.cancel($.current)}),[n]),f.createElement(fl,{prefixCls:e,popupClassName:ce(`${e}-popup`,{[`${e}-rtl`]:v},l,E),stretch:h==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:N,popupPlacement:k,popupVisible:T,popup:o,popupStyle:s,popupAlign:c&&{offset:c},action:d?[]:[x],mouseEnterDelay:y,mouseLeaveDelay:C,onPopupVisibleChange:g,forceRender:b,popupMotion:z,fresh:!0},r)}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ac.apply(this,arguments)}function cx({id:e,open:n,keyPath:r,children:o}){const s="inline",{prefixCls:l,forceSubMenuRender:c,motion:d,defaultMotions:h,mode:g}=f.useContext(Rn),m=f.useRef(!1);m.current=g===s;const[v,y]=f.useState(!m.current),C=m.current?n:!1;f.useEffect(()=>{m.current&&y(!1)},[g]);const _={...Hh(s,d,h)};r.length>1&&(_.motionAppear=!1);const x=_.onVisibleChanged;return _.onVisibleChanged=b=>(!m.current&&!b&&y(!0),x==null?void 0:x(b)),v?null:f.createElement(si,{mode:s,locked:!m.current},f.createElement(Nr,ac({visible:C},_,{forceRender:c,removeOnLeave:!1,leavedClassName:`${l}-hidden`}),({className:b,style:E})=>f.createElement(ic,{id:e,className:b,style:E},o)))}function di(){return di=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},di.apply(this,arguments)}const ux=f.forwardRef((e,n)=>{const{style:r,className:o,styles:s,classNames:l,title:c,eventKey:d,warnKey:h,disabled:g,internalPopupClose:m,children:v,itemIcon:y,expandIcon:C,popupClassName:_,popupOffset:x,popupStyle:b,onClick:E,onMouseEnter:S,onMouseLeave:P,onTitleClick:T,onTitleMouseEnter:M,onTitleMouseLeave:N,popupRender:k,...R}=e,B=Mh(d),{prefixCls:z,mode:$,openKeys:j,disabled:V,overflowDisabled:W,activeKey:F,selectedKeys:X,itemIcon:J,expandIcon:Z,onItemClick:le,onOpenChange:G,onActive:ie,popupRender:ne}=f.useContext(Rn),{_internalRenderSubMenuItem:de}=f.useContext(Yl),{isSubPathKey:oe}=f.useContext(kh),ee=yo(),K=`${z}-submenu`,Y=V||g,se=f.useRef(),fe=f.useRef();process.env.NODE_ENV!=="production"&&h&&ct(!1,"SubMenu should not leave undefined `key`.");const xe=y??J,Se=C??Z,Te=j.includes(d),Ce=!W&&Te,te=oe(X,d),{active:we,...Pe}=zh(d,Y,M,N),[Ae,Ze]=f.useState(!1),Be=ge=>{Y||Ze(ge)},nt=ge=>{Be(!0),S==null||S({key:d,domEvent:ge})},Ge=ge=>{Be(!1),P==null||P({key:d,domEvent:ge})},Ke=f.useMemo(()=>we||($!=="inline"?Ae||oe([F],d):!1),[$,we,F,Ae,d,oe]),ze=Dh(ee.length),De=ge=>{Y||(T==null||T({key:d,domEvent:ge}),$==="inline"&&G(d,!Te))},ot=ci(ge=>{E==null||E(xs(ge)),le(ge)}),Et=ge=>{$!=="inline"&&G(d,ge)},mt=()=>{ie(d)},dt=B&&`${B}-popup`,gt=f.useMemo(()=>f.createElement(Fh,{icon:$!=="horizontal"?Se:void 0,props:{...e,isOpen:Ce,isSubMenu:!0}},f.createElement("i",{className:`${K}-arrow`})),[$,Se,e,Ce,K]);let Oe=f.createElement("div",di({role:"menuitem",style:ze,className:`${K}-title`,tabIndex:Y?null:-1,ref:se,title:typeof c=="string"?c:null,"data-menu-id":W&&B?null:B,"aria-expanded":Ce,"aria-haspopup":!0,"aria-controls":dt,"aria-disabled":Y,onClick:De,onFocus:mt},Pe),c,gt);const he=f.useRef($);$!=="inline"&&ee.length>1?he.current="vertical":he.current=$;const _e=he.current,rt=f.useMemo(()=>{const ge=f.createElement(si,{classNames:l,styles:s,mode:_e==="horizontal"?"vertical":_e},f.createElement(ic,{id:dt,ref:fe},v)),Qe=k||ne;return Qe?Qe(ge,{item:e,keys:ee}):ge},[k,ne,ee,dt,v,e,_e]);if(!W){const ge=he.current;Oe=f.createElement(lx,{mode:ge,prefixCls:K,visible:!m&&Ce&&$!=="inline",popupClassName:_,popupOffset:x,popupStyle:b,popup:rt,disabled:Y,onVisibleChange:Et},Oe)}let $e=f.createElement(rr.Item,di({ref:n,role:"none"},R,{component:"li",style:r,className:ce(K,`${K}-${$}`,o,{[`${K}-open`]:Ce,[`${K}-active`]:Ke,[`${K}-selected`]:te,[`${K}-disabled`]:Y}),onMouseEnter:nt,onMouseLeave:Ge}),Oe,!W&&f.createElement(cx,{id:dt,open:Ce,keyPath:ee},v));return de&&($e=de($e,e,{selected:te,active:Ke,open:Ce,disabled:Y})),f.createElement(si,{classNames:l,styles:s,onItemClick:ot,mode:$==="horizontal"?"vertical":$,itemIcon:xe,expandIcon:Se},$e)}),fi=f.forwardRef((e,n)=>{const{eventKey:r,children:o}=e,s=yo(r),l=sc(o,s),c=vs();f.useEffect(()=>{if(c)return c.registerPath(r,s),()=>{c.unregisterPath(r,s)}},[s]);let d;return c?d=l:d=f.createElement(ux,di({ref:n},e),l),f.createElement(Oh.Provider,{value:s},d)});process.env.NODE_ENV!=="production"&&(fi.displayName="SubMenu");function lc({className:e,style:n}){const{prefixCls:r}=f.useContext(Rn);return vs()?null:f.createElement("li",{role:"separator",className:ce(`${r}-item-divider`,e),style:n})}function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Cs.apply(this,arguments)}const dx=f.forwardRef((e,n)=>{const{className:r,title:o,eventKey:s,children:l,...c}=e,{prefixCls:d,classNames:h,styles:g}=f.useContext(Rn),m=`${d}-item-group`;return f.createElement("li",Cs({ref:n,role:"presentation"},c,{onClick:v=>v.stopPropagation(),className:ce(m,r)}),f.createElement("div",{role:"presentation",className:ce(`${m}-title`,h==null?void 0:h.listTitle),style:g==null?void 0:g.listTitle,title:typeof o=="string"?o:void 0},o),f.createElement("ul",{role:"group",className:ce(`${m}-list`,h==null?void 0:h.list),style:g==null?void 0:g.list},l))}),Ss=f.forwardRef((e,n)=>{const{eventKey:r,children:o}=e,s=yo(r),l=sc(o,s);return vs()?l:f.createElement(dx,Cs({ref:n},Sn(e,["warnKey"])),l)});process.env.NODE_ENV!=="production"&&(Ss.displayName="MenuItemGroup");function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},bo.apply(this,arguments)}function cc(e,n,r){const{item:o,group:s,submenu:l,divider:c}=n;return(e||[]).map((d,h)=>{if(d&&typeof d=="object"){const{label:g,children:m,key:v,type:y,extra:C,..._}=d,x=v??`tmp-${h}`;return m||y==="group"?y==="group"?f.createElement(s,bo({key:x},_,{title:g}),cc(m,n,r)):f.createElement(l,bo({key:x},_,{title:g}),cc(m,n,r)):y==="divider"?f.createElement(c,bo({key:x},_)):f.createElement(o,bo({key:x},_,{extra:C}),g,(!!C||C===0)&&f.createElement("span",{className:`${r}-item-extra`},C))}return null}).filter(d=>d)}function Vh(e,n,r,o,s){let l=e;const c={divider:lc,item:ws,group:Ss,submenu:fi,...o};return n&&(l=cc(n,c,s)),sc(l,r)}function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},uc.apply(this,arguments)}const Dr=[],hi=f.forwardRef((e,n)=>{var Ee;const{prefixCls:r="rc-menu",rootClassName:o,style:s,className:l,styles:c,classNames:d,tabIndex:h=0,items:g,children:m,direction:v,id:y,mode:C="vertical",inlineCollapsed:_,disabled:x,disabledOverflow:b,subMenuOpenDelay:E=.1,subMenuCloseDelay:S=.1,forceSubMenuRender:P,defaultOpenKeys:T,openKeys:M,activeKey:N,defaultActiveFirst:k,selectable:R=!0,multiple:B=!1,defaultSelectedKeys:z,selectedKeys:$,onSelect:j,onDeselect:V,inlineIndent:W=24,motion:F,defaultMotions:X,triggerSubMenuAction:J="hover",builtinPlacements:Z,itemIcon:le,expandIcon:G,overflowedIndicator:ie="...",overflowedIndicatorPopupClassName:ne,getPopupContainer:de,onClick:oe,onOpenChange:ee,onKeyDown:K,openAnimation:Y,openTransitionName:se,_internalRenderMenuItem:fe,_internalRenderSubMenuItem:xe,_internalComponents:Se,popupRender:Te,...Ce}=e,[te,we]=f.useMemo(()=>[Vh(m,g,Dr,Se,r),Vh(m,g,Dr,{},r)],[m,g,Se]),[Pe,Ae]=f.useState(!1),Ze=f.useRef(),Be=Qi(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),nt=v==="rtl";process.env.NODE_ENV!=="production"&&ct(!Y&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");const[Ge,Ke]=Un(T,M),ze=Ge||Dr,De=(ye,ae=!1)=>{function pe(){Ke(ye),ee==null||ee(ye)}ae?en.flushSync(pe):pe()},[ot,Et]=f.useState(ze),mt=f.useRef(!1),[dt,gt]=f.useMemo(()=>(C==="inline"||C==="vertical")&&_?["vertical",_]:[C,!1],[C,_]),Oe=dt==="inline",[he,_e]=f.useState(dt),[rt,$e]=f.useState(gt);f.useEffect(()=>{_e(dt),$e(gt),mt.current&&(Oe?Ke(ot):De(Dr))},[dt,gt]);const[ge,Qe]=f.useState(0),Ve=ge>=te.length-1||he!=="horizontal"||b;f.useEffect(()=>{Oe&&Et(ze)},[ze]),f.useEffect(()=>(mt.current=!0,()=>{mt.current=!1}),[]);const{registerPath:Ye,unregisterPath:Nt,refreshOverflowKeys:Vt,isSubPathKey:yt,getKeyPath:Pt,getKeys:Rt,getSubPathKeys:Je}=ex(),on=f.useMemo(()=>({registerPath:Ye,unregisterPath:Nt}),[Ye,Nt]),mn=f.useMemo(()=>({isSubPathKey:yt}),[yt]);f.useEffect(()=>{Vt(Ve?Dr:te.slice(ge+1).map(ye=>ye.key))},[ge,Ve]);const[sn,ln]=Un(N||k&&((Ee=te[0])==null?void 0:Ee.key),N),cn=ci(ye=>{ln(ye)}),un=ci(()=>{ln(void 0)});I.useImperativeHandle(n,()=>({list:Ze.current,focus:ye=>{var Kt,Ct;const ae=Rt(),{elements:pe,key2element:We,element2key:Fe}=_s(ae,Be),et=tc(Ze.current,pe);let vt;sn&&ae.includes(sn)?vt=sn:vt=et[0]?Fe.get(et[0]):(Kt=te.find(Qt=>!Qt.props.disabled))==null?void 0:Kt.key;const bt=We.get(vt);vt&&bt&&((Ct=bt==null?void 0:bt.focus)==null||Ct.call(bt,ye))},findItem:({key:ye})=>{const ae=Rt(),{key2element:pe}=_s(ae,Be);return pe.get(ye)||null}}));const[Wt,tn]=Un(z||[],$),Ot=f.useMemo(()=>Array.isArray(Wt)?Wt:Wt==null?Dr:[Wt],[Wt]),wt=ye=>{if(R){const{key:ae}=ye,pe=Ot.includes(ae);let We;B?pe?We=Ot.filter(et=>et!==ae):We=[...Ot,ae]:We=[ae],tn(We);const Fe={...ye,selectedKeys:We};pe?V==null||V(Fe):j==null||j(Fe)}!B&&ze.length&&he!=="inline"&&De(Dr)},ve=ci(ye=>{oe==null||oe(xs(ye)),wt(ye)}),jt=ci((ye,ae)=>{let pe=ze.filter(We=>We!==ye);if(ae)pe.push(ye);else if(he!=="inline"){const We=Je(ye);pe=pe.filter(Fe=>!We.has(Fe))}$o(ze,pe,!0)||De(pe,!0)}),A=Y0(he,sn,nt,Be,Ze,Rt,Pt,ln,(ye,ae)=>{const pe=ae??!ze.includes(ye);jt(ye,pe)},K);f.useEffect(()=>{Ae(!0)},[]);const U=f.useMemo(()=>({_internalRenderMenuItem:fe,_internalRenderSubMenuItem:xe}),[fe,xe]),re=he!=="horizontal"||b?te:te.map((ye,ae)=>f.createElement(si,{key:ye.key,overflowDisabled:ae>ge,classNames:d,styles:c},ye)),ue=f.createElement(rr,uc({id:y,ref:Ze,prefixCls:`${r}-overflow`,component:"ul",itemComponent:ws,className:ce(r,`${r}-root`,`${r}-${he}`,l,{[`${r}-inline-collapsed`]:rt,[`${r}-rtl`]:nt},o),dir:v,style:s,role:"menu",tabIndex:h,data:re,renderRawItem:ye=>ye,renderRawRest:ye=>{const ae=ye.length,pe=ae?te.slice(-ae):null;return f.createElement(fi,{eventKey:rc,title:ie,disabled:Ve,internalPopupClose:ae===0,popupClassName:ne},pe)},maxCount:he!=="horizontal"||b?rr.INVALIDATE:rr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ye=>{Qe(ye)},onKeyDown:A},Ce));return f.createElement(Yl.Provider,{value:U},f.createElement(Th.Provider,{value:Be},f.createElement(si,{prefixCls:r,rootClassName:o,classNames:d,styles:c,mode:he,openKeys:ze,rtl:nt,disabled:x,motion:Pe?F:null,defaultMotions:Pe?X:null,activeKey:sn,onActive:cn,onInactive:un,selectedKeys:Ot,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:S,forceSubMenuRender:P,builtinPlacements:Z,triggerSubMenuAction:J,getPopupContainer:de,itemIcon:le,expandIcon:G,onItemClick:ve,onOpenChange:jt,popupRender:Te},f.createElement(kh.Provider,{value:mn},ue),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(Lh.Provider,{value:on},we)))))});hi.Item=ws,hi.SubMenu=fi,hi.ItemGroup=Ss,hi.Divider=lc;var fx={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const hx=fx;function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},dc.apply(this,arguments)}const px=(e,n)=>f.createElement(Ko,dc({},e,{ref:n,icon:hx})),Wh=f.forwardRef(px);process.env.NODE_ENV!=="production"&&(Wh.displayName="BarsOutlined");const mx=Wh,gx=f.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),vx=e=>{const{antCls:n,componentCls:r,colorText:o,footerBg:s,headerHeight:l,headerPadding:c,headerColor:d,footerPadding:h,fontSize:g,bodyBg:m,headerBg:v}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:l,padding:c,color:d,lineHeight:Le(l),background:v,[`${n}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:h,color:o,fontSize:g,background:s},[`${r}-content`]:{flex:"auto",color:o,minHeight:0}}},jh=e=>{const{colorBgLayout:n,controlHeight:r,controlHeightLG:o,colorText:s,controlHeightSM:l,marginXXS:c,colorTextLightSolid:d,colorBgContainer:h}=e,g=o*1.25;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140",bodyBg:n,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${g}px`,headerColor:s,footerPadding:`${l}px ${g}px`,footerBg:n,siderBg:"#001529",triggerHeight:o+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:h,lightTriggerBg:h,lightTriggerColor:s}},Zh=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Hn("Layout",vx,jh,{deprecatedTokens:Zh});const yx=Hn(["Layout","Sider"],e=>{const{componentCls:n,siderBg:r,motionDurationMid:o,motionDurationSlow:s,antCls:l,triggerHeight:c,triggerColor:d,triggerBg:h,headerHeight:g,zeroTriggerWidth:m,zeroTriggerHeight:v,borderRadiusLG:y,lightSiderBg:C,lightTriggerColor:_,lightTriggerBg:x,bodyBg:b}=e;return{[n]:{position:"relative",minWidth:0,background:r,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${n}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${n}-children`]:{overflow:"hidden"},[`${n}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:d,lineHeight:Le(c),textAlign:"center",background:h,cursor:"pointer",transition:`all ${o}`},[`${n}-zero-width-trigger`]:{position:"absolute",top:g,insetInlineEnd:e.calc(m).mul(-1).equal(),zIndex:1,width:m,height:v,color:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${Le(y)} ${Le(y)} 0`,cursor:"pointer",transition:`background-color ${s} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${s}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(m).mul(-1).equal(),borderRadius:`${Le(y)} 0 0 ${Le(y)}`}},"&-light":{background:C,[`${n}-trigger`]:{color:_,background:x},[`${n}-zero-width-trigger`]:{color:_,background:x,border:`1px solid ${b}`,borderInlineStart:0}}}}},jh,{deprecatedTokens:Zh}),Uh={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},bx=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),fc=f.createContext({}),_x=(()=>{let e=0;return(n="")=>(e+=1,`${n}${e}`)})(),xx=f.forwardRef((e,n)=>{const{prefixCls:r,className:o,trigger:s,children:l,defaultCollapsed:c=!1,theme:d="dark",style:h={},collapsible:g=!1,reverseArrow:m=!1,width:v=200,collapsedWidth:y=80,zeroWidthTriggerStyle:C,breakpoint:_,onCollapse:x,onBreakpoint:b,...E}=e,{siderHook:S}=I.useContext(gx),[P,T]=I.useState("collapsed"in e?e.collapsed:c),[M,N]=I.useState(!1);I.useEffect(()=>{"collapsed"in e&&T(e.collapsed)},[e.collapsed]);const k=(Y,se)=>{"collapsed"in e||T(Y),x==null||x(Y,se)},{getPrefixCls:R,direction:B}=I.useContext(kt),z=R("layout-sider",r),[$,j]=yx(z),V=I.useRef(null);V.current=Y=>{N(Y.matches),b==null||b(Y.matches),P!==Y.matches&&k(Y.matches,"responsive")},I.useEffect(()=>{function Y(fe){var xe;return(xe=V.current)==null?void 0:xe.call(V,fe)}let se;return typeof(window==null?void 0:window.matchMedia)<"u"&&_&&_ in Uh&&(se=window.matchMedia(`screen and (max-width: ${Uh[_]})`),typeof(se==null?void 0:se.addEventListener)=="function"&&se.addEventListener("change",Y),Y(se)),()=>{typeof(se==null?void 0:se.removeEventListener)=="function"&&se.removeEventListener("change",Y)}},[_]),I.useEffect(()=>{const Y=_x("ant-sider-");return S.addSider(Y),()=>S.removeSider(Y)},[]);const W=()=>{k(!P,"clickTrigger")},F=Sn(E,["collapsed"]),X=P?y:v,J=bx(X)?`${X}px`:String(X),Z=Number.parseFloat(String(y||0))===0?f.createElement("span",{onClick:W,className:ce(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${m?"right":"left"}`),style:C},s||f.createElement(mx,null)):null,le=B==="rtl"==!m,ne={expanded:le?f.createElement(Ml,null):f.createElement(Kl,null),collapsed:le?f.createElement(Kl,null):f.createElement(Ml,null)}[P?"collapsed":"expanded"],de=s!==null?Z||f.createElement("div",{className:`${z}-trigger`,onClick:W,style:{width:J}},s||ne):null,oe={...h,flex:`0 0 ${J}`,maxWidth:J,minWidth:J,width:J},ee=ce(z,`${z}-${d}`,{[`${z}-collapsed`]:!!P,[`${z}-has-trigger`]:g&&s!==null&&!Z,[`${z}-below`]:!!M,[`${z}-zero-width`]:Number.parseFloat(J)===0},o,$,j),K=f.useMemo(()=>({siderCollapsed:P}),[P]);return f.createElement(fc.Provider,{value:K},f.createElement("aside",{className:ee,...F,style:oe,ref:n},f.createElement("div",{className:`${z}-children`},l),g||M&&Z?de:null))});process.env.NODE_ENV!=="production"&&(xx.displayName="Sider");var wx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const Cx=wx;function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},hc.apply(this,arguments)}const Sx=(e,n)=>f.createElement(Ko,hc({},e,{ref:n,icon:Cx})),qh=f.forwardRef(Sx);process.env.NODE_ENV!=="production"&&(qh.displayName="EllipsisOutlined");const Gh=qh,Es=I.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Kh=e=>{const{prefixCls:n,className:r,dashed:o,...s}=e,{getPrefixCls:l}=f.useContext(kt),c=l("menu",n),d=ce({[`${c}-item-divider-dashed`]:!!o},r);return f.createElement(lc,{className:d,...s})},Qh=e=>{var T,M;const{className:n,children:r,icon:o,title:s,danger:l,extra:c}=e,{prefixCls:d,firstLevel:h,direction:g,disableMenuItemTitleTooltip:m,inlineCollapsed:v,styles:y,classNames:C}=f.useContext(Es),_=N=>{var B,z;const k=r==null?void 0:r[0],R=f.createElement("span",{className:ce(`${d}-title-content`,h?C==null?void 0:C.itemContent:(B=C==null?void 0:C.subMenu)==null?void 0:B.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:h?y==null?void 0:y.itemContent:(z=y==null?void 0:y.subMenu)==null?void 0:z.itemContent},r);return(!o||f.isValidElement(r)&&r.type==="span")&&r&&N&&h&&typeof k=="string"?f.createElement("div",{className:`${d}-inline-collapsed-noicon`},k.charAt(0)):R},{siderCollapsed:x}=f.useContext(fc);let b=s;typeof s>"u"?b=h?r:"":s===!1&&(b="");const E={title:b};!x&&!v&&(E.title=null,E.open=!1);const S=qn(r).length;let P=f.createElement(ws,{...Sn(e,["title","icon","danger"]),className:ce(h?C==null?void 0:C.item:(T=C==null?void 0:C.subMenu)==null?void 0:T.item,{[`${d}-item-danger`]:l,[`${d}-item-only-child`]:(o?S+1:S)===1},n),style:{...h?y==null?void 0:y.item:(M=y==null?void 0:y.subMenu)==null?void 0:M.item,...e.style},title:typeof s=="string"?s:void 0},tr(o,N=>{var k,R;return{className:ce(`${d}-item-icon`,h?C==null?void 0:C.itemIcon:(k=C==null?void 0:C.subMenu)==null?void 0:k.itemIcon,N.className),style:{...h?y==null?void 0:y.itemIcon:(R=y==null?void 0:y.subMenu)==null?void 0:R.itemIcon,...N.style}}}),_(v));return m||(P=f.createElement(Ph,{...E,placement:g==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},P)),P},Ps=f.createContext(null),Ex=f.forwardRef((e,n)=>{const{children:r,...o}=e,s=f.useContext(Ps),l=f.useMemo(()=>({...s,...o}),[s,o.prefixCls,o.mode,o.selectable,o.rootClassName]),c=gm(r),d=jr(n,c?dr(r):null);return f.createElement(Ps.Provider,{value:l},f.createElement(hh,{space:!0},c?f.cloneElement(r,{ref:d}):r))}),Px=e=>{const{componentCls:n,motionDurationSlow:r,horizontalLineHeight:o,colorSplit:s,lineWidth:l,lineType:c,itemPaddingInline:d}=e;return{[`${n}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Le(l)} ${c} ${s}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${n}-item:hover,
176
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},t_=e=>e instanceof Il?e:new Il(e),n_=(e,n)=>{const{r,g:o,b:s,a:l}=e.toRgb(),c=new rr(e.toRgbString()).onBackground(n).toHsv();return l<=.5?c.v>.5:r*.299+o*.587+s*.114>192},Kf=e=>{const{paddingInline:n,onlyIconSize:r,borderColorDisabled:o}=e;return _n(e,{buttonPaddingHorizontal:n,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:o})},Qf=e=>{const n=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,o=e.contentFontSizeLG??e.fontSizeLG,s=e.contentLineHeight??Bi(n),l=e.contentLineHeightSM??Bi(r),c=e.contentLineHeightLG??Bi(o),d=n_(new Il(e.colorBgSolid),"#fff")?"#000":"#fff",h=Or.reduce((v,y)=>({...v,[`${y}ShadowColor`]:`0 ${Le(e.controlOutlineWidth)} 0 ${qo(e[`${y}1`],e.colorBgContainer)}`}),{}),g=e.colorBgContainerDisabled,m=e.colorBgContainerDisabled;return{...h,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:d,contentFontSize:n,contentFontSizeSM:r,contentFontSizeLG:o,contentLineHeight:s,contentLineHeightSM:l,contentLineHeightLG:c,paddingBlock:Math.max((e.controlHeight-n*s)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*l)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-o*c)/2-e.lineWidth,0),defaultBgDisabled:g,dashedBgDisabled:m}},r_=e=>{const{componentCls:n,antCls:r}=e,[o,s]=gr(r,"btn");return{[n]:[{[o("border-width")]:"1px",[o("border-color")]:"#000",[o("border-color-hover")]:s("border-color"),[o("border-color-active")]:s("border-color"),[o("border-color-disabled")]:s("border-color"),[o("border-style")]:"solid",[o("text-color")]:"#000",[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color"),[o("text-color-disabled")]:s("text-color"),[o("bg-color")]:"#ddd",[o("bg-color-hover")]:s("bg-color"),[o("bg-color-active")]:s("bg-color"),[o("bg-color-disabled")]:e.colorBgContainerDisabled,[o("bg-color-container")]:e.colorBgContainer,[o("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${n}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${n}-variant-solid`]:{[o("solid-bg-color")]:s("color-base"),[o("solid-bg-color-hover")]:s("color-hover"),[o("solid-bg-color-active")]:s("color-active"),[o("border-color")]:"transparent",[o("text-color")]:e.colorTextLightSolid,[o("bg-color")]:s("solid-bg-color"),[o("bg-color-hover")]:s("solid-bg-color-hover"),[o("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("border-color")]:s("color-base"),[o("border-color-hover")]:s("color-hover"),[o("border-color-active")]:s("color-active"),[o("bg-color")]:s("bg-color-container"),[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${n}-variant-dashed`]:{[o("border-style")]:"dashed",[o("bg-color-disabled")]:e.dashedBgDisabled},[`&${n}-variant-filled`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("bg-color")]:s("color-light"),[o("bg-color-hover")]:s("color-light-hover"),[o("bg-color-active")]:s("color-light-active")},[`&${n}-variant-text, &${n}-variant-link`]:{[o("border-color")]:"transparent",[o("text-color")]:s("color-base"),[o("text-color-hover")]:s("color-hover"),[o("text-color-active")]:s("color-active"),[o("bg-color")]:"transparent",[o("bg-color-hover")]:"transparent",[o("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${n}-variant-text`]:{[o("bg-color-hover")]:s("color-light"),[o("bg-color-active")]:s("color-light-active")}},{[`&${n}-variant-link`]:{[o("color-base")]:e.colorLink,[o("color-hover")]:e.colorLinkHover,[o("color-active")]:e.colorLinkActive},[`&${n}-color-primary`]:{[o("color-base")]:e.colorPrimary,[o("color-hover")]:e.colorPrimaryHover,[o("color-active")]:e.colorPrimaryActive,[o("color-light")]:e.colorPrimaryBg,[o("color-light-hover")]:e.colorPrimaryBgHover,[o("color-light-active")]:e.colorPrimaryBorder,[o("shadow")]:e.primaryShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.primaryColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${n}-color-dangerous`]:{[o("color-base")]:e.colorError,[o("color-hover")]:e.colorErrorHover,[o("color-active")]:e.colorErrorActive,[o("color-light")]:e.colorErrorBg,[o("color-light-hover")]:e.colorErrorBgFilledHover,[o("color-light-active")]:e.colorErrorBgActive,[o("shadow")]:e.dangerShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.dangerColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")}},[`&${n}-color-default`]:{[o("solid-bg-color")]:e.colorBgSolid,[o("solid-bg-color-hover")]:e.colorBgSolidHover,[o("solid-bg-color-active")]:e.colorBgSolidActive,[o("color-base")]:e.defaultBorderColor,[o("color-hover")]:e.defaultHoverBorderColor,[o("color-active")]:e.defaultActiveBorderColor,[o("color-light")]:e.colorFillTertiary,[o("color-light-hover")]:e.colorFillSecondary,[o("color-light-active")]:e.colorFill,[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("shadow")]:e.defaultShadow,[`&${n}-variant-solid`]:{[o("text-color")]:e.solidTextColor,[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${n}-variant-filled, &${n}-variant-text`]:{[o("text-color-hover")]:s("text-color"),[o("text-color-active")]:s("text-color")},[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("text-color")]:e.defaultColor,[o("text-color-hover")]:e.defaultHoverColor,[o("text-color-active")]:e.defaultActiveColor,[o("bg-color-container")]:e.defaultBg,[o("bg-color-hover")]:e.defaultHoverBg,[o("bg-color-active")]:e.defaultActiveBg},[`&${n}-variant-text`]:{[o("text-color")]:e.textTextColor,[o("text-color-hover")]:e.textTextHoverColor,[o("text-color-active")]:e.textTextActiveColor,[o("bg-color-hover")]:e.textHoverBg},[`&${n}-background-ghost`]:{[`&${n}-variant-outlined, &${n}-variant-dashed`]:{[o("text-color")]:e.defaultGhostColor,[o("border-color")]:e.defaultGhostBorderColor}}}},Or.map(l=>{const c=e[`${l}6`],d=e[`${l}1`],h=e[`${l}5`],g=e[`${l}2`],m=e[`${l}3`],v=e[`${l}7`],y=e[`${l}ShadowColor`];return{[`&${n}-color-${l}`]:{[o("color-base")]:c,[o("color-hover")]:h,[o("color-active")]:v,[o("color-light")]:d,[o("color-light-hover")]:g,[o("color-light-active")]:m,[o("shadow")]:y}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:s("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${n}-background-ghost`]:{[o("bg-color")]:"transparent",[o("shadow")]:"none"}}]}},o_=e=>{const{componentCls:n,iconCls:r,fontWeight:o,opacityLoading:s,motionDurationSlow:l,motionEaseInOut:c,iconGap:d,calc:h}=e;return{[n]:{outline:"none",position:"relative",display:"inline-flex",gap:d,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${n}-icon > svg`]:qa(),"> a":{color:"currentColor"},"&:not(:disabled)":Ka(e),[`&${n}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${n}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${n}-icon-only`]:{paddingInline:0,[`&${n}-compact-item`]:{flex:"none"}},[`&${n}-loading`]:{opacity:s,cursor:"default"},[`${n}-loading-icon`]:{transition:["width","opacity","margin"].map(g=>`${g} ${l} ${c}`).join(",")},[`&:not(${n}-icon-end)`]:{[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:h(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:h(d).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:h(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:h(d).mul(-1).equal()}}}}}},i_=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Ll=(e,n="")=>{const{componentCls:r,controlHeight:o,fontSize:s,borderRadius:l,buttonPaddingHorizontal:c,iconCls:d,buttonPaddingVertical:h,buttonIconOnlyFontSize:g}=e;return[{[n]:{fontSize:s,height:o,padding:`${Le(h)} ${Le(c)}`,borderRadius:l,[`&${r}-icon-only`]:{width:o,[d]:{fontSize:g}}}},{[`${r}${r}-circle${n}`]:i_(e)},{[`${r}${r}-round${n}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},s_=e=>{const n=_n(e,{fontSize:e.contentFontSize});return Ll(n,e.componentCls)},a_=e=>{const n=_n(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Ll(n,`${e.componentCls}-sm`)},l_=e=>{const n=_n(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Ll(n,`${e.componentCls}-lg`)},c_=e=>{const{componentCls:n}=e;return{[n]:{[`&${n}-block`]:{width:"100%"}}}},u_=Vn("Button",e=>{const n=Kf(e);return[o_(n),s_(n),a_(n),l_(n),c_(n),r_(n),sb(n)]},Qf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function d_(e,n,r,o){const{focusElCls:s,focus:l,borderElCls:c}=r,d=c?"> *":"",h=["hover",l?"focus":null,"active"].filter(Boolean).map(g=>`&:${g} ${d}`).join(",");return{[`&-item:not(${n}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${o}-status-success)`]:{zIndex:2},"&-item":{[h]:{zIndex:3},...s?{[`&${s}`]:{zIndex:3}}:{},[`&[disabled] ${d}`]:{zIndex:0}}}}function f_(e,n,r){const{borderElCls:o}=r,s=o?`> ${o}`:"";return{[`&-item:not(${n}-first-item):not(${n}-last-item) ${s}`]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${s}, &${e}-sm ${s}, &${e}-lg ${s}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Yf(e,n={focus:!0}){const{componentCls:r}=e,{componentCls:o}=n,s=o||r,l=`${s}-compact`;return{[l]:{...d_(e,l,n,s),...f_(s,l,n)}}}function h_(e,n,r){return{[`&-item:not(${n}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function p_(e,n){return{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function m_(e){const n=`${e.componentCls}-compact-vertical`;return{[n]:{...h_(e,n,e.componentCls),...p_(e.componentCls,n)}}}const g_=e=>{const{antCls:n,componentCls:r,lineWidth:o,calc:s,colorBgContainer:l}=e,c=`${r}-variant-solid:not([disabled])`,d=s(o).mul(-1).equal(),[h,g]=gr(n,"btn"),m=v=>({[`${r}-compact${v?"-vertical":""}-item`]:{[h("compact-connect-border-color")]:g("bg-color-hover"),[`&${c}`]:{transition:"none",[`& + ${c}:before`]:[{position:"absolute",backgroundColor:g("compact-connect-border-color"),content:'""'},v?{top:d,insetInline:d,height:o}:{insetBlock:d,insetInlineStart:d,width:o}],"&:hover:before":{display:"none"}}}});return[m(),m(!0),{[`${c}${r}-color-default`]:{[h("compact-connect-border-color")]:`color-mix(in srgb, ${g("bg-color-hover")} 75%, ${l})`}}]},v_=vv(["Button","compact"],e=>{const n=Kf(e);return[Yf(n),m_(n),g_(n)]},Qf);function y_(e){if(typeof e=="object"&&e){let n=e==null?void 0:e.delay;return n=!Number.isNaN(n)&&typeof n=="number"?n:0,{loading:n<=0,delay:n}}return{loading:!!e,delay:0}}const b_={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},ss=A.forwardRef((e,n)=>{const{_skipSemantic:r,loading:o=!1,prefixCls:s,color:l,variant:c,type:d,danger:h=!1,shape:g,size:m,disabled:v,className:y,rootClassName:C,children:_,icon:x,iconPosition:b,iconPlacement:E,ghost:S=!1,block:P=!1,htmlType:I="button",classNames:M,styles:k,style:N,autoInsertSpace:R,autoFocus:B,...z}=e,$=Gn(_),j=d||"default",{button:V}=A.useContext(Ot),W=g||(V==null?void 0:V.shape)||"default",[F,X]=A.useMemo(()=>{if(l&&c)return[l,c];if(d||h){const Je=b_[j]||[];return h?["danger",Je[1]]:Je}return V!=null&&V.color&&(V!=null&&V.variant)?[V.color,V.variant]:["default","outlined"]},[l,c,d,h,V==null?void 0:V.color,V==null?void 0:V.variant,j]),[J,Z]=A.useMemo(()=>S&&X==="solid"?[F,"outlined"]:[F,X],[F,X,S]),le=J==="danger",G=le?"dangerous":J,{getPrefixCls:ie,direction:ne,autoInsertSpace:de,className:oe,style:ee,classNames:K,styles:Y}=Ur("button"),se=R??de??!0,fe=ie("btn",s),[xe,Se]=u_(fe),Te=A.useContext(hl),Ce=v??Te,te=A.useContext(Af),we=A.useMemo(()=>y_(o),[o]),[Pe,Ae]=A.useState(we.loading),[Ze,Be]=A.useState(!1),nt=A.useRef(null),Ge=Wr(n,nt),Ke=$.length===1&&!x&&!rs(Z),ze=A.useRef(!0);A.useEffect(()=>(ze.current=!1,()=>{ze.current=!0}),[]),sn(()=>{let Je=null;we.delay>0?Je=setTimeout(()=>{Je=null,Ae(!0)},we.delay):Ae(we.loading);function rn(){Je&&(clearTimeout(Je),Je=null)}return rn},[we.delay,we.loading]),A.useEffect(()=>{if(!nt.current||!se)return;const Je=nt.current.textContent||"";Ke&&Cl(Je)?Ze||Be(!0):Ze&&Be(!1)}),A.useEffect(()=>{B&&nt.current&&nt.current.focus()},[]);const De=A.useCallback(Je=>{var rn;if(Pe||Ce){Je.preventDefault();return}(rn=e.onClick)==null||rn.call(e,("href"in e,Je))},[e.onClick,Pe,Ce]);if(process.env.NODE_ENV!=="production"){const Je=hn("Button");process.env.NODE_ENV!=="production"&&Je(!(typeof x=="string"&&x.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${x}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&Je(!(S&&rs(Z)),"usage","`link` or `text` button can't be a `ghost` button."),Je.deprecated(!b,"iconPosition","iconPlacement")}const{compactSize:ot,compactItemClassnames:St}=wl(fe,ne),pt={large:"lg",small:"sm",middle:void 0},dt=Tf(Je=>m??ot??te??Je),mt=dt?pt[dt]??"":"",Oe=Pe?"loading":x,he=E??b??"start",_e=Sn(z,["navigate"]),rt={...e,type:j,color:J,variant:Z,danger:le,shape:W,size:dt,disabled:Ce,loading:Pe,iconPlacement:he},[$e,ge]=kr([r?void 0:K,M],[r?void 0:Y,k],{props:rt}),Qe=ce(fe,xe,Se,{[`${fe}-${W}`]:W!=="default"&&W!=="square"&&W,[`${fe}-${j}`]:j,[`${fe}-dangerous`]:h,[`${fe}-color-${G}`]:G,[`${fe}-variant-${Z}`]:Z,[`${fe}-${mt}`]:mt,[`${fe}-icon-only`]:!_&&_!==0&&!!Oe,[`${fe}-background-ghost`]:S&&!rs(Z),[`${fe}-loading`]:Pe,[`${fe}-two-chinese-chars`]:Ze&&se&&!Pe,[`${fe}-block`]:P,[`${fe}-rtl`]:ne==="rtl",[`${fe}-icon-end`]:he==="end"},St,y,C,oe,$e.root),Ve={...ge.root,...ee,...N},Ye={className:$e.icon,style:ge.icon},Nt=Je=>A.createElement(Of,{prefixCls:fe,...Ye},Je),Ht=A.createElement(ib,{existIcon:!!x,prefixCls:fe,loading:Pe,mount:ze.current,...Ye});let vt;x&&!Pe?vt=Nt(x):o&&typeof o=="object"&&o.icon?vt=Nt(o.icon):vt=Ht;const Et=to(_)?ob(_,Ke&&se,ge.content,$e.content):null;if(_e.href!==void 0)return A.createElement("a",{..._e,className:ce(Qe,{[`${fe}-disabled`]:Ce}),href:Ce?void 0:_e.href,style:Ve,onClick:De,ref:Ge,tabIndex:Ce?-1:0,"aria-disabled":Ce},vt,Et);let kt=A.createElement("button",{...z,type:I,className:Qe,style:Ve,onClick:De,disabled:Ce,ref:Ge},vt,Et,St&&A.createElement(v_,{prefixCls:fe}));return rs(Z)||(kt=A.createElement(If,{component:"Button",disabled:Pe},kt)),kt});ss.Group=nb,ss.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(ss.displayName="Button");const Xf=ss;function Jf(e,n=!1){if(ll(e)){const r=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),s=e.getAttribute("tabindex"),l=Number(s);let c=null;return s&&!Number.isNaN(l)?c=l:o&&c===null&&(c=0),o&&e.disabled&&(c=null),c!==null&&(c>=0||n&&c<0)}return!1}function __(e,n=!1){const r=[...e.querySelectorAll("*")].filter(o=>Jf(o,n));return Jf(e,n)&&r.unshift(e),r}const $r="RC_FORM_INTERNAL_HOOKS",ht=()=>{ct(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},so=f.createContext({getFieldValue:ht,getFieldsValue:ht,getFieldError:ht,getFieldWarning:ht,getFieldsError:ht,isFieldsTouched:ht,isFieldTouched:ht,isFieldValidating:ht,isFieldsValidating:ht,resetFields:ht,setFields:ht,setFieldValue:ht,setFieldsValue:ht,validateFields:ht,submit:ht,getInternalHooks:()=>(ht(),{dispatch:ht,initEntityValue:ht,registerField:ht,useSubscribe:ht,setInitialValues:ht,destroyForm:ht,setCallbacks:ht,registerWatch:ht,getFields:ht,setValidateMessages:ht,setPreserve:ht,getInitialValue:ht})}),as=f.createContext(null);function Ol(e){return e==null?[]:Array.isArray(e)?e:[e]}function x_(e){return e&&!!e._init}function Nl(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var kl=Nl();function w_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function C_(e,n,r){if(Ea())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,n);var s=new(e.bind.apply(e,o));return r&&Wo(s,r.prototype),s}function Rl(e){var n=typeof Map=="function"?new Map:void 0;return Rl=function(o){if(o===null||!w_(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(o))return n.get(o);n.set(o,s)}function s(){return C_(o,arguments,jo(this).constructor)}return s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Wo(s,o)},Rl(e)}var S_=/%[sdj%]/g,eh=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(eh=function(n,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(o){return typeof o=="string"})&&console.warn(n,r)});function $l(e){if(!e||!e.length)return null;var n={};return e.forEach(function(r){var o=r.field;n[o]=n[o]||[],n[o].push(r)}),n}function wn(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=0,l=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var c=e.replace(S_,function(d){if(d==="%%")return"%";if(s>=l)return d;switch(d){case"%s":return String(r[s++]);case"%d":return Number(r[s++]);case"%j":try{return JSON.stringify(r[s++])}catch{return"[Circular]"}break;default:return d}});return c}return e}function E_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function Ft(e,n){return!!(e==null||n==="array"&&Array.isArray(e)&&!e.length||E_(n)&&typeof e=="string"&&!e)}function P_(e,n,r){var o=[],s=0,l=e.length;function c(d){o.push.apply(o,bn(d||[])),s++,s===l&&r(o)}e.forEach(function(d){n(d,c)})}function th(e,n,r){var o=0,s=e.length;function l(c){if(c&&c.length){r(c);return}var d=o;o=o+1,d<s?n(e[d],l):r([])}l([])}function I_(e){var n=[];return Object.keys(e).forEach(function(r){n.push.apply(n,bn(e[r]||[]))}),n}var nh=function(e){Sa(r,e);var n=Pa(r);function r(o,s){var l;return Ar(this,r),l=n.call(this,"Async Validation Error"),Dt(Lr(l),"errors",void 0),Dt(Lr(l),"fields",void 0),l.errors=o,l.fields=s,l}return Mr(r)}(Rl(Error));function T_(e,n,r,o,s){if(n.first){var l=new Promise(function(y,C){var _=function(E){return o(E),E.length?C(new nh(E,$l(E))):y(s)},x=I_(e);th(x,r,_)});return l.catch(function(y){return y}),l}var c=n.firstFields===!0?Object.keys(e):n.firstFields||[],d=Object.keys(e),h=d.length,g=0,m=[],v=new Promise(function(y,C){var _=function(b){if(m.push.apply(m,b),g++,g===h)return o(m),m.length?C(new nh(m,$l(m))):y(s)};d.length||(o(m),y(s)),d.forEach(function(x){var b=e[x];c.indexOf(x)!==-1?th(b,r,_):P_(b,r,_)})});return v.catch(function(y){return y}),v}function A_(e){return!!(e&&e.message!==void 0)}function M_(e,n){for(var r=e,o=0;o<n.length;o++){if(r==null)return r;r=r[n[o]]}return r}function rh(e,n){return function(r){var o;return e.fullFields?o=M_(n,e.fullFields):o=n[r.field||e.fullField],A_(r)?(r.field=r.field||e.fullField,r.fieldValue=o,r):{message:typeof r=="function"?r():r,fieldValue:o,field:r.field||e.fullField}}}function oh(e,n){if(n){for(var r in n)if(n.hasOwnProperty(r)){var o=n[r];$t(o)==="object"&&$t(e[r])==="object"?e[r]=Tt(Tt({},e[r]),o):e[r]=o}}return e}var ao="enum",L_=function(n,r,o,s,l){n[ao]=Array.isArray(n[ao])?n[ao]:[],n[ao].indexOf(r)===-1&&s.push(wn(l.messages[ao],n.fullField,n[ao].join(", ")))},O_=function(n,r,o,s,l){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(r)||s.push(wn(l.messages.pattern.mismatch,n.fullField,r,n.pattern));else if(typeof n.pattern=="string"){var c=new RegExp(n.pattern);c.test(r)||s.push(wn(l.messages.pattern.mismatch,n.fullField,r,n.pattern))}}},N_=function(n,r,o,s,l){var c=typeof n.len=="number",d=typeof n.min=="number",h=typeof n.max=="number",g=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=r,v=null,y=typeof r=="number",C=typeof r=="string",_=Array.isArray(r);if(y?v="number":C?v="string":_&&(v="array"),!v)return!1;_&&(m=r.length),C&&(m=r.replace(g,"_").length),c?m!==n.len&&s.push(wn(l.messages[v].len,n.fullField,n.len)):d&&!h&&m<n.min?s.push(wn(l.messages[v].min,n.fullField,n.min)):h&&!d&&m>n.max?s.push(wn(l.messages[v].max,n.fullField,n.max)):d&&h&&(m<n.min||m>n.max)&&s.push(wn(l.messages[v].range,n.fullField,n.min,n.max))},ih=function(n,r,o,s,l,c){n.required&&(!o.hasOwnProperty(n.field)||Ft(r,c||n.type))&&s.push(wn(l.messages.required,n.fullField))},ls;const k_=function(){if(ls)return ls;var e="[a-fA-F\\d:]",n=function(k){return k&&k.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",s=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(r,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(r,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(r,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(r,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(r,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(r,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(r,"|(?::").concat(o,"){1,7}|:))")],l="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(s.join("|"),")").concat(l),d=new RegExp("(?:^".concat(r,"$)|(?:^").concat(c,"$)")),h=new RegExp("^".concat(r,"$")),g=new RegExp("^".concat(c,"$")),m=function(k){return k&&k.exact?d:new RegExp("(?:".concat(n(k)).concat(r).concat(n(k),")|(?:").concat(n(k)).concat(c).concat(n(k),")"),"g")};m.v4=function(M){return M&&M.exact?h:new RegExp("".concat(n(M)).concat(r).concat(n(M)),"g")},m.v6=function(M){return M&&M.exact?g:new RegExp("".concat(n(M)).concat(c).concat(n(M)),"g")};var v="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",C=m.v4().source,_=m.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",E="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",P='(?:[/?#][^\\s"]*)?',I="(?:".concat(v,"|www\\.)").concat(y,"(?:localhost|").concat(C,"|").concat(_,"|").concat(x).concat(b).concat(E,")").concat(S).concat(P);return ls=new RegExp("(?:^".concat(I,"$)"),"i"),ls};var Bl={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ti={integer:function(n){return ti.number(n)&&parseInt(n,10)===n},float:function(n){return ti.number(n)&&!ti.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date:function(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number:function(n){return isNaN(n)?!1:typeof n=="number"},object:function(n){return $t(n)==="object"&&!ti.array(n)},method:function(n){return typeof n=="function"},email:function(n){return typeof n=="string"&&n.length<=320&&!!n.match(Bl.email)},tel:function(n){return typeof n=="string"&&n.length<=32&&!!n.match(Bl.tel)},url:function(n){return typeof n=="string"&&n.length<=2048&&!!n.match(k_())},hex:function(n){return typeof n=="string"&&!!n.match(Bl.hex)}},R_=function(n,r,o,s,l){if(n.required&&r===void 0){ih(n,r,o,s,l);return}var c=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],d=n.type;c.indexOf(d)>-1?ti[d](r)||s.push(wn(l.messages.types[d],n.fullField,n.type)):d&&$t(r)!==n.type&&s.push(wn(l.messages.types[d],n.fullField,n.type))},$_=function(n,r,o,s,l){(/^\s+$/.test(r)||r==="")&&s.push(wn(l.messages.whitespace,n.fullField))};const tt={required:ih,whitespace:$_,type:R_,range:N_,enum:L_,pattern:O_};var B_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l)}o(c)},z_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(r==null&&!n.required)return o();tt.required(n,r,s,c,l,"array"),r!=null&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},D_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},F_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r,"date")&&!n.required)return o();if(tt.required(n,r,s,c,l),!Ft(r,"date")){var h;r instanceof Date?h=r:h=new Date(r),tt.type(n,h,s,c,l),h&&tt.range(n,h.getTime(),s,c,l)}}o(c)},H_="enum",V_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt[H_](n,r,s,c,l)}o(c)},W_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},j_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},Z_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},U_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(r===""&&(r=void 0),Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l))}o(c)},q_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),r!==void 0&&tt.type(n,r,s,c,l)}o(c)},G_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r,"string")&&!n.required)return o();tt.required(n,r,s,c,l),Ft(r,"string")||tt.pattern(n,r,s,c,l)}o(c)},K_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r)&&!n.required)return o();tt.required(n,r,s,c,l),Ft(r)||tt.type(n,r,s,c,l)}o(c)},Q_=function(n,r,o,s,l){var c=[],d=Array.isArray(r)?"array":$t(r);tt.required(n,r,s,c,l,d),o(c)},Y_=function(n,r,o,s,l){var c=[],d=n.required||!n.required&&s.hasOwnProperty(n.field);if(d){if(Ft(r,"string")&&!n.required)return o();tt.required(n,r,s,c,l,"string"),Ft(r,"string")||(tt.type(n,r,s,c,l),tt.range(n,r,s,c,l),tt.pattern(n,r,s,c,l),n.whitespace===!0&&tt.whitespace(n,r,s,c,l))}o(c)},cs=function(n,r,o,s,l){var c=n.type,d=[],h=n.required||!n.required&&s.hasOwnProperty(n.field);if(h){if(Ft(r,c)&&!n.required)return o();tt.required(n,r,s,d,l,c),Ft(r,c)||tt.type(n,r,s,d,l)}o(d)};const ni={string:Y_,method:Z_,number:U_,boolean:D_,regexp:K_,integer:j_,float:W_,array:z_,object:q_,enum:V_,pattern:G_,date:F_,url:cs,hex:cs,email:cs,tel:cs,required:Q_,any:B_};var ri=function(){function e(n){Ar(this,e),Dt(this,"rules",null),Dt(this,"_messages",kl),this.define(n)}return Mr(e,[{key:"define",value:function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if($t(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var l=r[s];o.rules[s]=Array.isArray(l)?l:[l]})}},{key:"messages",value:function(r){return r&&(this._messages=oh(Nl(),r)),this._messages}},{key:"validate",value:function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=r,d=s,h=l;if(typeof d=="function"&&(h=d,d={}),!this.rules||Object.keys(this.rules).length===0)return h&&h(null,c),Promise.resolve(c);function g(_){var x=[],b={};function E(P){if(Array.isArray(P)){var I;x=(I=x).concat.apply(I,bn(P))}else x.push(P)}for(var S=0;S<_.length;S++)E(_[S]);x.length?(b=$l(x),h(x,b)):h(null,c)}if(d.messages){var m=this.messages();m===kl&&(m=Nl()),oh(m,d.messages),d.messages=m}else d.messages=this.messages();var v={},y=d.keys||Object.keys(this.rules);y.forEach(function(_){var x=o.rules[_],b=c[_];x.forEach(function(E){var S=E;typeof S.transform=="function"&&(c===r&&(c=Tt({},c)),b=c[_]=S.transform(b),b!=null&&(S.type=S.type||(Array.isArray(b)?"array":$t(b)))),typeof S=="function"?S={validator:S}:S=Tt({},S),S.validator=o.getValidationMethod(S),S.validator&&(S.field=_,S.fullField=S.fullField||_,S.type=o.getType(S),v[_]=v[_]||[],v[_].push({rule:S,value:b,source:c,field:_}))})});var C={};return T_(v,d,function(_,x){var b=_.rule,E=(b.type==="object"||b.type==="array")&&($t(b.fields)==="object"||$t(b.defaultField)==="object");E=E&&(b.required||!b.required&&_.value),b.field=_.field;function S(N,R){return Tt(Tt({},R),{},{fullField:"".concat(b.fullField,".").concat(N),fullFields:b.fullFields?[].concat(bn(b.fullFields),[N]):[N]})}function P(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(N)?N:[N];!d.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&b.message!==void 0&&b.message!==null&&(R=[].concat(b.message));var B=R.map(rh(b,c));if(d.first&&B.length)return C[b.field]=1,x(B);if(!E)x(B);else{if(b.required&&!_.value)return b.message!==void 0?B=[].concat(b.message).map(rh(b,c)):d.error&&(B=[d.error(b,wn(d.messages.required,b.field))]),x(B);var z={};b.defaultField&&Object.keys(_.value).map(function(V){z[V]=b.defaultField}),z=Tt(Tt({},z),_.rule.fields);var $={};Object.keys(z).forEach(function(V){var W=z[V],F=Array.isArray(W)?W:[W];$[V]=F.map(S.bind(null,V))});var j=new e($);j.messages(d.messages),_.rule.options&&(_.rule.options.messages=d.messages,_.rule.options.error=d.error),j.validate(_.value,_.rule.options||d,function(V){var W=[];B&&B.length&&W.push.apply(W,bn(B)),V&&V.length&&W.push.apply(W,bn(V)),x(W.length?W:null)})}}var I;if(b.asyncValidator)I=b.asyncValidator(b,_.value,P,_.source,d);else if(b.validator){try{I=b.validator(b,_.value,P,_.source,d)}catch(N){var M,k;(M=(k=console).error)===null||M===void 0||M.call(k,N),d.suppressValidatorError||setTimeout(function(){throw N},0),P(N.message)}I===!0?P():I===!1?P(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):I instanceof Array?P(I):I instanceof Error&&P(I.message)}I&&I.then&&I.then(function(){return P()},function(N){return P(N)})},function(_){g(_)},c)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ni.hasOwnProperty(r.type))throw new Error(wn("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),s=o.indexOf("message");return s!==-1&&o.splice(s,1),o.length===1&&o[0]==="required"?ni.required:ni[this.getType(r)]||void 0}}]),e}();Dt(ri,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");ni[n]=r}),Dt(ri,"warning",eh),Dt(ri,"messages",kl),Dt(ri,"validators",ni);const pn="'${name}' is not a valid ${type}",sh={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:pn,method:pn,array:pn,object:pn,number:pn,date:pn,boolean:pn,integer:pn,float:pn,regexp:pn,email:pn,tel:pn,url:pn,hex:pn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},ah=ri;function X_(e,n){return e.replace(/\\?\$\{\w+\}/g,r=>{if(r.startsWith("\\"))return r.slice(1);const o=r.slice(2,-1);return n[o]})}const lh="CODE_LOGIC_ERROR";async function zl(e,n,r,o,s){const l={...r};if(delete l.ruleIndex,ah.warning=()=>{},l.validator){const y=l.validator;l.validator=(...C)=>{try{return y(...C)}catch(_){return console.error(_),Promise.reject(lh)}}}let c=null;l&&l.type==="array"&&l.defaultField&&(c=l.defaultField,delete l.defaultField);const d=new ah({[e]:[l]}),h=jr(sh,o.validateMessages);d.messages(h);let g=[];try{await Promise.resolve(d.validate({[e]:n},{...o}))}catch(y){y.errors&&(g=y.errors.map(({message:C},_)=>{const x=C===lh?h.default:C;return f.isValidElement(x)?f.cloneElement(x,{key:`error_${_}`}):x}))}if(!g.length&&c&&Array.isArray(n)&&n.length>0)return(await Promise.all(n.map((C,_)=>zl(`${e}.${_}`,C,c,o,s)))).reduce((C,_)=>[...C,..._],[]);const m={...r,name:e,enum:(r.enum||[]).join(", "),...s};return g.map(y=>typeof y=="string"?X_(y,m):y)}function J_(e,n,r,o,s,l){const c=e.join("."),d=r.map((g,m)=>{const v=g.validator,y={...g,ruleIndex:m};return v&&(y.validator=(C,_,x)=>{let b=!1;const S=v(C,_,(...P)=>{Promise.resolve().then(()=>{ct(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||x(...P)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",ct(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(()=>{x()}).catch(P=>{x(P||" ")})}),y}).sort(({warningOnly:g,ruleIndex:m},{warningOnly:v,ruleIndex:y})=>!!g==!!v?m-y:g?1:-1);let h;if(s===!0)h=new Promise(async(g,m)=>{for(let v=0;v<d.length;v+=1){const y=d[v],C=await zl(c,n,y,o,l);if(C.length){m([{errors:C,rule:y}]);return}}g([])});else{const g=d.map(m=>zl(c,n,m,o,l).then(v=>({errors:v,rule:m})));h=(s?t0(g):e0(g)).then(m=>Promise.reject(m))}return h.catch(g=>g),h}async function e0(e){return Promise.all(e).then(n=>[].concat(...n))}async function t0(e){let n=0;return new Promise(r=>{e.forEach(o=>{o.then(s=>{s.errors.length&&r([s]),n+=1,n===e.length&&r([])})})})}function Mt(e){return Ol(e)}function ch(e,n){let r={};return n.forEach(o=>{const s=On(e,o);r=Cn(r,o,s)}),r}function lo(e,n,r=!1){return e&&e.some(o=>us(n,o,r))}function us(e,n,r=!1){return!e||!n||!r&&e.length!==n.length?!1:n.every((o,s)=>e[s]===o)}function n0(e,n){if(e===n)return!0;if(!e&&n||e&&!n||!e||!n||typeof e!="object"||typeof n!="object")return!1;const r=Object.keys(e),o=Object.keys(n);return[...new Set([...r,...o])].every(l=>{const c=e[l],d=n[l];return typeof c=="function"&&typeof d=="function"?!0:c===d})}function r0(e,...n){const r=n[0];return r&&r.target&&typeof r.target=="object"&&e in r.target?r.target[e]:r}function uh(e,n,r){const{length:o}=e;if(n<0||n>=o||r<0||r>=o)return e;const s=e[n],l=n-r;return l>0?[...e.slice(0,r),s,...e.slice(r,n),...e.slice(n+1,o)]:l<0?[...e.slice(0,n),...e.slice(n+1,r+1),s,...e.slice(r+1,o)]:e}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Dl.apply(this,arguments)}const Br=[],oi=[];function Fl(e,n,r,o,s,l){return typeof e=="function"?e(n,r,"source"in l?{source:l.source}:{}):o!==s}class dh extends f.Component{constructor(r){super(r);q(this,"state",{resetCount:0});q(this,"cancelRegisterFunc",null);q(this,"mounted",!1);q(this,"touched",!1);q(this,"dirty",!1);q(this,"validatePromise");q(this,"prevValidating");q(this,"errors",Br);q(this,"warnings",oi);q(this,"cancelRegister",()=>{const{preserve:r,isListField:o,name:s}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(o,r,Mt(s)),this.cancelRegisterFunc=null});q(this,"getNamePath",()=>{const{name:r,fieldContext:o}=this.props,{prefixName:s=[]}=o;return r!==void 0?[...s,...r]:[]});q(this,"getRules",()=>{const{rules:r=[],fieldContext:o}=this.props;return r.map(s=>typeof s=="function"?s(o):s)});q(this,"refresh",()=>{this.mounted&&this.setState(({resetCount:r})=>({resetCount:r+1}))});q(this,"metaCache",null);q(this,"triggerMetaEvent",r=>{const{onMetaChange:o}=this.props;if(o){const s={...this.getMeta(),destroy:r};$o(this.metaCache,s)||o(s),this.metaCache=s}else this.metaCache=null});q(this,"onStoreChange",(r,o,s)=>{const{shouldUpdate:l,dependencies:c=[],onReset:d}=this.props,{store:h}=s,g=this.getNamePath(),m=this.getValue(r),v=this.getValue(h),y=o&&lo(o,g);switch(s.type==="valueUpdate"&&s.source==="external"&&!$o(m,v)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Br,this.warnings=oi,this.triggerMetaEvent()),s.type){case"reset":if(!o||y){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Br,this.warnings=oi,this.triggerMetaEvent(),d==null||d(),this.refresh();return}break;case"remove":{if(l&&Fl(l,r,h,m,v,s)){this.reRender();return}break}case"setField":{const{data:C}=s;if(y){"touched"in C&&(this.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(this.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(this.errors=C.errors||Br),"warnings"in C&&(this.warnings=C.warnings||oi),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in C&&lo(o,g,!0)){this.reRender();return}if(l&&!g.length&&Fl(l,r,h,m,v,s)){this.reRender();return}break}case"dependenciesUpdate":{if(c.map(Mt).some(_=>lo(s.relatedFields,_))){this.reRender();return}break}default:if(y||(!c.length||g.length||l)&&Fl(l,r,h,m,v,s)){this.reRender();return}break}l===!0&&this.reRender()});q(this,"validateRules",r=>{const o=this.getNamePath(),s=this.getValue(),{triggerName:l,validateOnly:c=!1}=r||{},d=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:h=!1,messageVariables:g,validateDebounce:m}=this.props;let v=this.getRules();if(l&&(v=v.filter(C=>C).filter(C=>{const{validateTrigger:_}=C;return _?Ol(_).includes(l):!0})),m&&l&&(await new Promise(C=>{setTimeout(C,m)}),this.validatePromise!==d))return[];const y=J_(o,s,v,r,h,g);return y.catch(C=>C).then((C=Br)=>{var _;if(this.validatePromise===d){this.validatePromise=null;const x=[],b=[];(_=C.forEach)==null||_.call(C,({rule:{warningOnly:E},errors:S=Br})=>{E?b.push(...S):x.push(...S)}),this.errors=x,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),y});return c||(this.validatePromise=d,this.dirty=!0,this.errors=Br,this.warnings=oi,this.triggerMetaEvent(),this.reRender()),d});q(this,"isFieldValidating",()=>!!this.validatePromise);q(this,"isFieldTouched",()=>this.touched);q(this,"isFieldDirty",()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:r}=this.props,{getInitialValue:o}=r.getInternalHooks($r);return o(this.getNamePath())!==void 0});q(this,"getErrors",()=>this.errors);q(this,"getWarnings",()=>this.warnings);q(this,"isListField",()=>this.props.isListField);q(this,"isList",()=>this.props.isList);q(this,"isPreserve",()=>this.props.preserve);q(this,"getMeta",()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}));q(this,"getOnlyChild",r=>{if(typeof r=="function"){const s=this.getMeta();return{...this.getOnlyChild(r(this.getControlled(),s,this.props.fieldContext)),isFunction:!0}}const o=Gn(r);return o.length!==1||!f.isValidElement(o[0])?{child:o,isFunction:!1}:{child:o[0],isFunction:!1}});q(this,"getValue",r=>{const{getFieldsValue:o}=this.props.fieldContext,s=this.getNamePath();return On(r||o(!0),s)});q(this,"getControlled",(r={})=>{const{name:o,trigger:s="onChange",validateTrigger:l,getValueFromEvent:c,normalize:d,valuePropName:h="value",getValueProps:g,fieldContext:m}=this.props,v=l!==void 0?l:m.validateTrigger,y=this.getNamePath(),{getInternalHooks:C,getFieldsValue:_}=m,{dispatch:x}=C($r),b=this.getValue(),E=g||(k=>({[h]:k})),S=r[s],P=o!==void 0?E(b):{};process.env.NODE_ENV!=="production"&&P&&Object.keys(P).forEach(k=>{ct(typeof P[k]!="function",`It's not recommended to generate dynamic function prop by \`getValueProps\`. Please pass it to child component directly (prop: ${k})`)});const I={...r,...P};return I[s]=(...k)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let N;c?N=c(...k):N=r0(h,...k),d&&(N=d(N,b,_(!0))),N!==b&&x({type:"updateValue",namePath:y,value:N}),S&&S(...k)},Ol(v||[]).forEach(k=>{const N=I[k];I[k]=(...R)=>{N&&N(...R);const{rules:B}=this.props;B&&B.length&&x({type:"validateField",namePath:y,triggerName:k})}}),I});if(r.fieldContext){const{getInternalHooks:o}=r.fieldContext,{initEntityValue:s}=o($r);s(this)}}componentDidMount(){const{shouldUpdate:r,fieldContext:o}=this.props;if(this.mounted=!0,o){const{getInternalHooks:s}=o,{registerField:l}=s($r);this.cancelRegisterFunc=l(this)}r===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}reRender(){this.mounted&&this.forceUpdate()}render(){const{resetCount:r}=this.state,{children:o}=this.props,{child:s,isFunction:l}=this.getOnlyChild(o);let c;return l?c=s:f.isValidElement(s)?c=f.cloneElement(s,this.getControlled(s.props)):(ct(!s,"`children` of Field is not validate ReactElement."),c=s),f.createElement(f.Fragment,{key:r},c)}}q(dh,"contextType",so);function fh({name:e,...n}){const r=f.useContext(so),o=f.useContext(as),s=e!==void 0?Mt(e):void 0,l=n.isListField??!!o;let c="keep";return l||(c=`_${(s||[]).join("_")}`),process.env.NODE_ENV!=="production"&&n.preserve===!1&&l&&s.length<=1&&ct(!1,"`preserve` should not apply on Form.List fields."),f.createElement(dh,Dl({key:c,name:s,isListField:l},n,{fieldContext:r}))}function o0({name:e,initialValue:n,children:r,rules:o,validateTrigger:s,isListField:l}){const c=f.useContext(so),d=f.useContext(as),g=f.useRef({keys:[],id:0}).current,m=f.useMemo(()=>[...Mt(c.prefixName)||[],...Mt(e)],[c.prefixName,e]),v=f.useMemo(()=>({...c,prefixName:m}),[c,m]),y=f.useMemo(()=>({getKey:_=>{const x=m.length,b=_[x];return[g.keys[b],_.slice(x+1)]}}),[g,m]);if(typeof r!="function")return ct(!1,"Form.List only accepts function as children."),null;const C=(_,x,{source:b})=>b==="internal"?!1:_!==x;return f.createElement(as.Provider,{value:y},f.createElement(so.Provider,{value:v},f.createElement(fh,{name:[],shouldUpdate:C,rules:o,validateTrigger:s,initialValue:n,isList:!0,isListField:l??!!d},({value:_=[],onChange:x},b)=>{const{getFieldValue:E}=c,S=()=>E(m||[])||[],P={add:(M,k)=>{const N=S();k>=0&&k<=N.length?(g.keys=[...g.keys.slice(0,k),g.id,...g.keys.slice(k)],x([...N.slice(0,k),M,...N.slice(k)])):(process.env.NODE_ENV!=="production"&&(k<0||k>N.length)&&ct(!1,"The second parameter of the add function should be a valid positive number."),g.keys=[...g.keys,g.id],x([...N,M])),g.id+=1},remove:M=>{const k=S(),N=new Set(Array.isArray(M)?M:[M]);N.size<=0||(g.keys=g.keys.filter((R,B)=>!N.has(B)),x(k.filter((R,B)=>!N.has(B))))},move(M,k){if(M===k)return;const N=S();M<0||M>=N.length||k<0||k>=N.length||(g.keys=uh(g.keys,M,k),x(uh(N,M,k)))}};let I=_||[];return Array.isArray(I)||(I=[],process.env.NODE_ENV!=="production"&&ct(!1,`Current value of '${m.join(" > ")}' is not an array type.`)),r(I.map((M,k)=>{let N=g.keys[k];return N===void 0&&(g.keys[k]=g.id,N=g.keys[k],g.id+=1),{name:k,key:N,isListField:!0}}),P,b)})))}function i0(e){let n=!1,r=e.length;const o=[];return e.length?new Promise((s,l)=>{e.forEach((c,d)=>{c.catch(h=>(n=!0,h)).then(h=>{r-=1,o[d]=h,!(r>0)&&(n&&l(o),s(o))})})}):Promise.resolve([])}const Hl="__@field_split__";function ds(e){return e.map(n=>`${typeof n}:${n}`).join(Hl)}class co{constructor(){q(this,"kvs",new Map)}set(n,r){this.kvs.set(ds(n),r)}get(n){return this.kvs.get(ds(n))}getAsPrefix(n){const r=ds(n),o=r+Hl,s=[],l=this.kvs.get(r);return l!==void 0&&s.push(l),this.kvs.forEach((c,d)=>{d.startsWith(o)&&s.push(c)}),s}update(n,r){const o=this.get(n),s=r(o);s?this.set(n,s):this.delete(n)}delete(n){this.kvs.delete(ds(n))}map(n){return[...this.kvs.entries()].map(([r,o])=>{const s=r.split(Hl);return n({key:s.map(l=>{const[,c,d]=l.match(/^([^:]*):(.*)$/);return c==="number"?Number(d):d}),value:o})})}toJSON(){const n={};return this.map(({key:r,value:o})=>(n[r.join(".")]=o,null)),n}}const s0=e=>{const n=new MessageChannel;n.port1.onmessage=e,n.port2.postMessage(null)};class a0{constructor(n){q(this,"namePathList",[]);q(this,"taskId",0);q(this,"watcherList",new Set);q(this,"form");this.form=n}register(n){return this.watcherList.add(n),()=>{this.watcherList.delete(n)}}notify(n){n.forEach(r=>{this.namePathList.every(o=>!us(o,r))&&this.namePathList.push(r)}),this.doBatch()}doBatch(){this.taskId+=1;const n=this.taskId;s0(()=>{if(n===this.taskId&&this.watcherList.size){const r=this.form.getForm(),o=r.getFieldsValue(),s=r.getFieldsValue(!0);this.watcherList.forEach(l=>{l(o,s,this.namePathList)}),this.namePathList=[]}})}}class l0{constructor(n){q(this,"formHooked",!1);q(this,"forceRootUpdate");q(this,"subscribable",!0);q(this,"store",{});q(this,"fieldEntities",[]);q(this,"initialValues",{});q(this,"callbacks",{});q(this,"validateMessages",null);q(this,"preserve",null);q(this,"lastValidatePromise",null);q(this,"watcherCenter",new a0(this));q(this,"getForm",()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks}));q(this,"getInternalHooks",n=>n===$r?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(ct(!1,"`getInternalHooks` is internal usage. Should not call directly."),null));q(this,"useSubscribe",n=>{this.subscribable=n});q(this,"prevWithoutPreserves",null);q(this,"setInitialValues",(n,r)=>{var o;if(this.initialValues=n||{},r){let s=jr(n,this.store);(o=this.prevWithoutPreserves)==null||o.map(({key:l})=>{s=Cn(s,l,On(n,l))}),this.prevWithoutPreserves=null,this.updateStore(s)}});q(this,"destroyForm",n=>{if(n)this.updateStore({});else{const r=new co;this.getFieldEntities(!0).forEach(o=>{this.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),this.prevWithoutPreserves=r}});q(this,"getInitialValue",n=>{const r=On(this.initialValues,n);return n.length?jr(r):r});q(this,"setCallbacks",n=>{this.callbacks=n});q(this,"setValidateMessages",n=>{this.validateMessages=n});q(this,"setPreserve",n=>{this.preserve=n});q(this,"registerWatch",n=>this.watcherCenter.register(n));q(this,"notifyWatch",(n=[])=>{this.watcherCenter.notify(n)});q(this,"timeoutId",null);q(this,"warningUnhooked",()=>{process.env.NODE_ENV!=="production"&&!this.timeoutId&&typeof window<"u"&&(this.timeoutId=setTimeout(()=>{this.timeoutId=null,this.formHooked||ct(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))});q(this,"updateStore",n=>{this.store=n});q(this,"getFieldEntities",(n=!1)=>n?this.fieldEntities.filter(r=>r.getNamePath().length):this.fieldEntities);q(this,"getFieldsMap",(n=!1)=>{const r=new co;return this.getFieldEntities(n).forEach(o=>{const s=o.getNamePath();r.set(s,o)}),r});q(this,"getFieldEntitiesForNamePathList",(n,r=!1)=>{if(!n)return this.getFieldEntities(!0);const o=this.getFieldsMap(!0);return r?n.flatMap(s=>{const l=Mt(s),c=o.getAsPrefix(l);return c.length?c:[{INVALIDATE_NAME_PATH:l}]}):n.map(s=>{const l=Mt(s);return o.get(l)||{INVALIDATE_NAME_PATH:Mt(s)}})});q(this,"getFieldsValue",(n,r)=>{this.warningUnhooked();let o,s;if(n===!0||Array.isArray(n)?(o=n,s=r):n&&typeof n=="object"&&(s=n.filter),o===!0&&!s)return this.store;const l=this.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null,!0),c=[],d=[];l.forEach(g=>{var v;const m=g.INVALIDATE_NAME_PATH||g.getNamePath();if((v=g.isList)!=null&&v.call(g)){d.push(m);return}if(!s)c.push(m);else{const y="getMeta"in g?g.getMeta():null;s(y)&&c.push(m)}});let h=ch(this.store,c.map(Mt));return d.forEach(g=>{On(h,g)||(h=Cn(h,g,[]))}),h});q(this,"getFieldValue",n=>{this.warningUnhooked();const r=Mt(n);return On(this.store,r)});q(this,"getFieldsError",n=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(n).map((o,s)=>o&&!o.INVALIDATE_NAME_PATH?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Mt(n[s]),errors:[],warnings:[]})));q(this,"getFieldError",n=>{this.warningUnhooked();const r=Mt(n);return this.getFieldsError([r])[0].errors});q(this,"getFieldWarning",n=>{this.warningUnhooked();const r=Mt(n);return this.getFieldsError([r])[0].warnings});q(this,"isFieldsTouched",(...n)=>{this.warningUnhooked();const[r,o]=n;let s,l=!1;n.length===0?s=null:n.length===1?Array.isArray(r)?(s=r.map(Mt),l=!1):(s=null,l=r):(s=r.map(Mt),l=o);const c=this.getFieldEntities(!0),d=v=>v.isFieldTouched();if(!s)return l?c.every(v=>d(v)||v.isList()):c.some(d);const h=new co;s.forEach(v=>{h.set(v,[])}),c.forEach(v=>{const y=v.getNamePath();s.forEach(C=>{C.every((_,x)=>y[x]===_)&&h.update(C,_=>[..._,v])})});const g=v=>v.some(d),m=h.map(({value:v})=>v);return l?m.every(g):m.some(g)});q(this,"isFieldTouched",n=>(this.warningUnhooked(),this.isFieldsTouched([n])));q(this,"isFieldsValidating",n=>{this.warningUnhooked();const r=this.getFieldEntities();if(!n)return r.some(s=>s.isFieldValidating());const o=n.map(Mt);return r.some(s=>{const l=s.getNamePath();return lo(o,l)&&s.isFieldValidating()})});q(this,"isFieldValidating",n=>(this.warningUnhooked(),this.isFieldsValidating([n])));q(this,"resetWithFieldInitialValue",(n={})=>{const r=new co,o=this.getFieldEntities(!0);o.forEach(c=>{const{initialValue:d}=c.props,h=c.getNamePath();if(d!==void 0){const g=r.get(h)||new Set;g.add({entity:c,value:d}),r.set(h,g)}});const s=c=>{c.forEach(d=>{const{initialValue:h}=d.props;if(h!==void 0){const g=d.getNamePath();if(this.getInitialValue(g)!==void 0)ct(!1,`Form already set 'initialValues' with path '${g.join(".")}'. Field can not overwrite it.`);else{const v=r.get(g);if(v&&v.size>1)ct(!1,`Multiple Field with path '${g.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(v){const y=this.getFieldValue(g);!d.isListField()&&(!n.skipExist||y===void 0)&&this.updateStore(Cn(this.store,g,[...v][0].value))}}}})};let l;n.entities?l=n.entities:n.namePathList?(l=[],n.namePathList.forEach(c=>{const d=r.get(c);d&&l.push(...[...d].map(h=>h.entity))})):l=o,s(l)});q(this,"resetFields",n=>{this.warningUnhooked();const r=this.store;if(!n){this.updateStore(jr(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(r,null,{type:"reset"}),this.notifyWatch();return}const o=n.map(Mt);o.forEach(s=>{const l=this.getInitialValue(s);this.updateStore(Cn(this.store,s,l))}),this.resetWithFieldInitialValue({namePathList:o}),this.notifyObservers(r,o,{type:"reset"}),this.notifyWatch(o)});q(this,"setFields",n=>{this.warningUnhooked();const r=this.store,o=[];n.forEach(s=>{const{name:l,...c}=s,d=Mt(l);o.push(d),"value"in c&&this.updateStore(Cn(this.store,d,c.value)),this.notifyObservers(r,[d],{type:"setField",data:s})}),this.notifyWatch(o)});q(this,"getFields",()=>this.getFieldEntities(!0).map(o=>{const s=o.getNamePath(),c={...o.getMeta(),name:s,value:this.getFieldValue(s)};return Object.defineProperty(c,"originRCField",{value:!0}),c}));q(this,"initEntityValue",n=>{const{initialValue:r}=n.props;if(r!==void 0){const o=n.getNamePath();On(this.store,o)===void 0&&this.updateStore(Cn(this.store,o,r))}});q(this,"isMergedPreserve",n=>(n!==void 0?n:this.preserve)??!0);q(this,"registerField",n=>{this.fieldEntities.push(n);const r=n.getNamePath();if(this.notifyWatch([r]),n.props.initialValue!==void 0){const o=this.store;this.resetWithFieldInitialValue({entities:[n],skipExist:!0}),this.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return(o,s,l=[])=>{if(this.fieldEntities=this.fieldEntities.filter(c=>c!==n),!this.isMergedPreserve(s)&&(!o||l.length>1)){const c=o?void 0:this.getInitialValue(r);if(r.length&&this.getFieldValue(r)!==c&&this.fieldEntities.every(d=>!us(d.getNamePath(),r))){const d=this.store;this.updateStore(Cn(d,r,c,!0)),this.notifyObservers(d,[r],{type:"remove"}),this.triggerDependenciesUpdate(d,r)}}this.notifyWatch([r])}});q(this,"dispatch",n=>{switch(n.type){case"updateValue":{const{namePath:r,value:o}=n;this.updateValue(r,o);break}case"validateField":{const{namePath:r,triggerName:o}=n;this.validateFields([r],{triggerName:o});break}}});q(this,"notifyObservers",(n,r,o)=>{if(this.subscribable){const s={...o,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:l})=>{l(n,r,s)})}else this.forceRootUpdate()});q(this,"triggerDependenciesUpdate",(n,r)=>{const o=this.getDependencyChildrenFields(r);return o.length&&this.validateFields(o),this.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[r,...o]}),o});q(this,"updateValue",(n,r)=>{const o=Mt(n),s=this.store;this.updateStore(Cn(this.store,o,r)),this.notifyObservers(s,[o],{type:"valueUpdate",source:"internal"}),this.notifyWatch([o]);const l=this.triggerDependenciesUpdate(s,o),{onValuesChange:c}=this.callbacks;if(c){const d=this.getFieldsMap(!0).get(o),h=ch(this.store,[o]),g=this.getFieldsValue(),m=Xc([g,h],{prepareArray:v=>d!=null&&d.isList()?[]:[...v||[]]});c(h,m)}this.triggerOnFieldsChange([o,...l])});q(this,"setFieldsValue",n=>{this.warningUnhooked();const r=this.store;if(n){const o=jr(this.store,n);this.updateStore(o)}this.notifyObservers(r,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()});q(this,"setFieldValue",(n,r)=>{this.setFields([{name:n,value:r,errors:[],warnings:[],touched:!0}])});q(this,"getDependencyChildrenFields",n=>{const r=new Set,o=[],s=new co;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(h=>{const g=Mt(h);s.update(g,(m=new Set)=>(m.add(c),m))})});const l=c=>{(s.get(c)||new Set).forEach(h=>{if(!r.has(h)){r.add(h);const g=h.getNamePath();h.isFieldDirty()&&g.length&&(o.push(g),l(g))}})};return l(n),o});q(this,"triggerOnFieldsChange",(n,r)=>{const{onFieldsChange:o}=this.callbacks;if(o){const s=this.getFields();if(r){const c=new co;r.forEach(({name:d,errors:h})=>{c.set(d,h)}),s.forEach(d=>{d.errors=c.get(d.name)||d.errors})}const l=s.filter(({name:c})=>lo(n,c));l.length&&o(l,s)}});q(this,"validateFields",(n,r)=>{this.warningUnhooked();let o,s;Array.isArray(n)||typeof n=="string"||typeof r=="string"?(o=n,s=r):s=n;const l=!!o,c=l?o.map(Mt):[],d=[...c],h=[],g=String(Date.now()),m=new Set,{recursive:v,dirty:y}=s||{};this.getFieldEntities(!0).forEach(b=>{const E=b.getNamePath();if(l||((!b.isList()||!c.some(S=>us(S,E,!0)))&&d.push(E),c.push(E)),!(!b.props.rules||!b.props.rules.length)&&!(y&&!b.isFieldDirty())&&(m.add(E.join(g)),!l||lo(c,E,v))){const S=b.validateRules({validateMessages:{...sh,...this.validateMessages},...s});h.push(S.then(()=>({name:E,errors:[],warnings:[]})).catch(P=>{var k;const I=[],M=[];return(k=P.forEach)==null||k.call(P,({rule:{warningOnly:N},errors:R})=>{N?M.push(...R):I.push(...R)}),I.length?Promise.reject({name:E,errors:I,warnings:M}):{name:E,errors:I,warnings:M}}))}});const C=i0(h);this.lastValidatePromise=C,C.catch(b=>b).then(b=>{const E=b.map(({name:S})=>S);this.notifyObservers(this.store,E,{type:"validateFinish"}),this.triggerOnFieldsChange(E,b)});const _=C.then(()=>this.lastValidatePromise===C?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(b=>{var P,I;const E=b.filter(M=>M&&M.errors.length),S=(I=(P=E[0])==null?void 0:P.errors)==null?void 0:I[0];return Promise.reject({message:S,values:this.getFieldsValue(c),errorFields:E,outOfDate:this.lastValidatePromise!==C})});_.catch(b=>b);const x=c.filter(b=>m.has(b.join(g)));return this.triggerOnFieldsChange(x),_});q(this,"submit",()=>{this.warningUnhooked(),this.validateFields().then(n=>{const{onFinish:r}=this.callbacks;if(r)try{r(n)}catch(o){console.error(o)}}).catch(n=>{const{onFinishFailed:r}=this.callbacks;r&&r(n)})});this.forceRootUpdate=n}}function hh(e){const n=f.useRef(null),[,r]=f.useState({});if(!n.current)if(e)n.current=e;else{const o=()=>{r({})},s=new l0(o);n.current=s.getForm()}return[n.current]}const Vl=f.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),c0=({validateMessages:e,onFormChange:n,onFormFinish:r,children:o})=>{const s=f.useContext(Vl),l=f.useRef({});return f.createElement(Vl.Provider,{value:{...s,validateMessages:{...s.validateMessages,...e},triggerFormChange:(c,d)=>{n&&n(c,{changedFields:d,forms:l.current}),s.triggerFormChange(c,d)},triggerFormFinish:(c,d)=>{r&&r(c,{values:d,forms:l.current}),s.triggerFormFinish(c,d)},registerForm:(c,d)=>{c&&(l.current={...l.current,[c]:d}),s.registerForm(c,d)},unregisterForm:c=>{const d={...l.current};delete d[c],l.current=d,s.unregisterForm(c)}}},o)};function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Wl.apply(this,arguments)}const u0=({name:e,initialValues:n,fields:r,form:o,preserve:s,children:l,component:c="form",validateMessages:d,validateTrigger:h="onChange",onValuesChange:g,onFieldsChange:m,onFinish:v,onFinishFailed:y,clearOnDestroy:C,..._},x)=>{const b=f.useRef(null),E=f.useContext(Vl),[S]=hh(o),{useSubscribe:P,setInitialValues:I,setCallbacks:M,setValidateMessages:k,setPreserve:N,destroyForm:R}=S.getInternalHooks($r);f.useImperativeHandle(x,()=>({...S,nativeElement:b.current})),f.useEffect(()=>(E.registerForm(e,S),()=>{E.unregisterForm(e)}),[E,S,e]),k({...E.validateMessages,...d}),M({onValuesChange:g,onFieldsChange:(F,...X)=>{E.triggerFormChange(e,F),m&&m(F,...X)},onFinish:F=>{E.triggerFormFinish(e,F),v&&v(F)},onFinishFailed:y}),N(s);const B=f.useRef(null);I(n,!B.current),B.current||(B.current=!0),f.useEffect(()=>()=>R(C),[]);let z;const $=typeof l=="function";if($){const F=S.getFieldsValue(!0);z=l(F,S)}else z=l;P(!$);const j=f.useRef(null);f.useEffect(()=>{n0(j.current||[],r||[])||S.setFields(r||[]),j.current=r},[r,S]);const V=f.useMemo(()=>({...S,validateTrigger:h}),[S,h]),W=f.createElement(as.Provider,{value:null},f.createElement(so.Provider,{value:V},z));return c===!1?W:f.createElement(c,Wl({},_,{ref:b,onSubmit:F=>{F.preventDefault(),F.stopPropagation(),S.submit()},onReset:F=>{var X;F.preventDefault(),S.resetFields(),(X=_.onReset)==null||X.call(_,F)}}),W)};function jl(e){try{return JSON.stringify(e)}catch{return Math.random()}}function d0(...e){const[n,r={}]=e,o=x_(r)?{form:r}:r,s=o.form,[l,c]=A.useState(()=>typeof n=="function"?n({}):void 0),d=A.useMemo(()=>jl(l),[l]),h=A.useRef(d);h.current=d;const g=A.useContext(so),m=s||g,v=m&&m._init;process.env.NODE_ENV!=="production"&&ct(e.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");const{getFieldsValue:y,getInternalHooks:C}=m,{registerWatch:_}=C($r),x=ft((E,S)=>{const P=o.preserve?S??y(!0):E??y(),I=typeof n=="function"?n(P):On(P,Mt(n));jl(l)!==jl(I)&&c(I)}),b=typeof n=="function"?n:JSON.stringify(n);return A.useEffect(()=>{v&&x()},[v,b]),A.useEffect(()=>v?_((S,P)=>{x(S,P)}):void 0,[v]),l}const ii=f.forwardRef(u0);ii.FormProvider=c0,ii.Field=fh,ii.List=o0,ii.useForm=hh,ii.useWatch=d0;const fs=f.createContext({});process.env.NODE_ENV!=="production"&&(fs.displayName="FormItemInputContext");const f0=({children:e,status:n,override:r})=>{const o=f.useContext(fs),s=f.useMemo(()=>{const l={...o};return r&&delete l.isFormItemInput,n&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[n,r,o]);return f.createElement(fs.Provider,{value:s},e)},ph=e=>{const{space:n,form:r,children:o}=e;if(!to(o))return null;let s=o;return r&&(s=A.createElement(f0,{override:!0,status:!0},s)),n&&(s=A.createElement(Jy,null,s)),s};function h0(e){return n=>f.createElement(Rr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f.createElement(e,{...n}))}const p0=(e,n,r,o,s)=>h0(c=>{const{prefixCls:d,style:h}=c,g=f.useRef(null),[m,v]=f.useState(0),[y,C]=f.useState(0),[_,x]=qn(!1,c.open),{getPrefixCls:b}=f.useContext(Ot),E=b(o||"select",d);f.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const I=new ResizeObserver(k=>{const N=k[0].target;v(N.offsetHeight+8),C(N.offsetWidth)}),M=setInterval(()=>{var R;const k=s?`.${s(E)}`:`.${E}-dropdown`,N=(R=g.current)==null?void 0:R.querySelector(k);N&&(clearInterval(M),I.observe(N))},10);return()=>{clearInterval(M),I.disconnect()}}},[E]);let S={...c,style:{...h,margin:0},open:_,getPopupContainer:()=>g.current};r&&(S=r(S)),n&&Object.assign(S,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const P={paddingBottom:m,position:"relative",minWidth:y};return f.createElement("div",{ref:g,style:P},f.createElement(e,{...S}))}),uo=void 0;function m0(e,n){const{prefixCls:r,invalidate:o,item:s,renderItem:l,responsive:c,responsiveDisabled:d,registerSize:h,itemKey:g,className:m,style:v,children:y,display:C,order:_,component:x="div",...b}=e,E=c&&!C;function S(N){h(g,N)}f.useEffect(()=>()=>{S(null)},[]);const P=l&&s!==uo?l(s,{index:_}):y;let I;o||(I={opacity:E?0:1,height:E?0:uo,overflowY:E?"hidden":uo,order:c?_:uo,pointerEvents:E?"none":uo,position:E?"absolute":uo});const M={};E&&(M["aria-hidden"]=!0);let k=f.createElement(x,Wn({className:ce(!o&&r,m),style:{...I,...v}},M,b,{ref:n}),P);return c&&(k=f.createElement(No,{onResize:({offsetWidth:N})=>{S(N)},disabled:d},k)),k}const fo=f.forwardRef(m0);process.env.NODE_ENV!=="production"&&(fo.displayName="Item");function g0(e){if(typeof MessageChannel>"u")Ut(e);else{const n=new MessageChannel;n.port1.onmessage=()=>e(),n.port2.postMessage(void 0)}}function v0(){const e=f.useRef(null);return r=>{e.current||(e.current=[],g0(()=>{Ln.unstable_batchedUpdates(()=>{e.current.forEach(o=>{o()}),e.current=null})})),e.current.push(r)}}function ho(e,n){const[r,o]=f.useState(n),s=ft(l=>{e(()=>{o(l)})});return[r,s]}const hs=A.createContext(null),y0=(e,n)=>{const r=f.useContext(hs);if(!r){const{component:d="div",...h}=e;return f.createElement(d,Wn({},h,{ref:n}))}const{className:o,...s}=r,{className:l,...c}=e;return f.createElement(hs.Provider,{value:null},f.createElement(fo,Wn({ref:n,className:ce(o,l)},s,c)))},mh=f.forwardRef(y0);process.env.NODE_ENV!=="production"&&(mh.displayName="RawItem");const gh="responsive",vh="invalidate";function b0(e){return`+ ${e.length} ...`}function _0(e,n){const{prefixCls:r="rc-overflow",data:o=[],renderItem:s,renderRawItem:l,itemKey:c,itemWidth:d=10,ssr:h,style:g,className:m,maxCount:v,renderRest:y,renderRawRest:C,prefix:_,suffix:x,component:b="div",itemComponent:E,onVisibleChange:S,...P}=e,I=h==="full",M=v0(),[k,N]=ho(M,null),R=k||0,[B,z]=ho(M,new Map),[$,j]=ho(M,0),[V,W]=ho(M,0),[F,X]=ho(M,0),[J,Z]=ho(M,0),[le,G]=A.useState(null),[ie,ne]=A.useState(null),de=f.useMemo(()=>ie===null&&I?Number.MAX_SAFE_INTEGER:ie||0,[ie,k]),[oe,ee]=A.useState(!1),K=`${r}-item`,Y=Math.max($,V),se=v===gh,fe=o.length&&se,xe=v===vh,Se=fe||typeof v=="number"&&o.length>v,Te=A.useMemo(()=>{let he=o;return fe?k===null&&I?he=o:he=o.slice(0,Math.min(o.length,R/d)):typeof v=="number"&&(he=o.slice(0,v)),he},[o,d,k,v,fe]),Ce=A.useMemo(()=>fe?o.slice(de+1):o.slice(Te.length),[o,Te,fe,de]),te=A.useCallback((he,_e)=>typeof c=="function"?c(he):(c&&(he==null?void 0:he[c]))??_e,[c]),we=A.useCallback(s||(he=>he),[s]);function Pe(he,_e,rt){ie===he&&(_e===void 0||_e===le)||(ne(he),rt||(ee(he<o.length-1),S==null||S(he)),_e!==void 0&&G(_e))}function Ae(he,_e){N(_e.clientWidth)}function Ze(he,_e){z(rt=>{const $e=new Map(rt);return _e===null?$e.delete(he):$e.set(he,_e),$e})}function Be(he,_e){W(_e),j(V)}function nt(he,_e){X(_e)}function Ge(he,_e){Z(_e)}function Ke(he){return B.get(te(Te[he],he))}sn(()=>{if(R&&typeof Y=="number"&&Te){let he=F+J;const _e=Te.length,rt=_e-1;if(!_e){Pe(0,null);return}for(let $e=0;$e<_e;$e+=1){let ge=Ke($e);if(I&&(ge=ge||0),ge===void 0){Pe($e-1,void 0,!0);break}if(he+=ge,rt===0&&he<=R||$e===rt-1&&he+Ke(rt)<=R){Pe(rt,null);break}else if(he+Y>R){Pe($e-1,he-ge-J+V);break}}x&&Ke(0)+J>R&&G(null)}},[R,B,V,F,J,te,Te]);const ze=oe&&!!Ce.length;let De={};le!==null&&fe&&(De={position:"absolute",left:le,top:0});const ot={prefixCls:K,responsive:fe,component:E,invalidate:xe},St=l?(he,_e)=>{const rt=te(he,_e);return f.createElement(hs.Provider,{key:rt,value:{...ot,order:_e,item:he,itemKey:rt,registerSize:Ze,display:_e<=de}},l(he,_e))}:(he,_e)=>{const rt=te(he,_e);return f.createElement(fo,Wn({},ot,{order:_e,key:rt,item:he,renderItem:we,itemKey:rt,registerSize:Ze,display:_e<=de}))},pt={order:ze?de:Number.MAX_SAFE_INTEGER,className:`${K}-rest`,registerSize:Be,display:ze},dt=y||b0,mt=C?f.createElement(hs.Provider,{value:{...ot,...pt}},C(Ce)):f.createElement(fo,Wn({},ot,pt),typeof dt=="function"?dt(Ce):dt),Oe=f.createElement(b,Wn({className:ce(!xe&&r,m),style:g,ref:n},P),_&&f.createElement(fo,Wn({},ot,{responsive:se,responsiveDisabled:!fe,order:-1,className:`${K}-prefix`,registerSize:nt,display:!0}),_),Te.map(St),Se?mt:null,x&&f.createElement(fo,Wn({},ot,{responsive:se,responsiveDisabled:!fe,order:de,className:`${K}-suffix`,registerSize:Ge,display:!0,style:De}),x));return se?f.createElement(No,{onResize:Ae,disabled:!fe},Oe):Oe}const or=f.forwardRef(_0);or.Item=mh,or.RESPONSIVE=gh,or.INVALIDATE=vh,process.env.NODE_ENV!=="production"&&(or.displayName="Overflow");const x0=(e,n,r)=>ce({[`${e}-status-success`]:n==="success",[`${e}-status-warning`]:n==="warning",[`${e}-status-error`]:n==="error",[`${e}-status-validating`]:n==="validating",[`${e}-has-feedback`]:r}),yh=e=>{const{children:n,prefixCls:r,id:o,classNames:s,styles:l,className:c,style:d}=e;return f.createElement("div",{id:o,className:ce(`${r}-container`,s==null?void 0:s.container,c),style:{...l==null?void 0:l.container,...d},role:"tooltip"},typeof n=="function"?n():n)},po={shiftX:64,adjustY:1},mo={adjustX:1,shiftY:!0},In=[0,0],w0={left:{points:["cr","cl"],overflow:mo,offset:[-4,0],targetOffset:In},right:{points:["cl","cr"],overflow:mo,offset:[4,0],targetOffset:In},top:{points:["bc","tc"],overflow:po,offset:[0,-4],targetOffset:In},bottom:{points:["tc","bc"],overflow:po,offset:[0,4],targetOffset:In},topLeft:{points:["bl","tl"],overflow:po,offset:[0,-4],targetOffset:In},leftTop:{points:["tr","tl"],overflow:mo,offset:[-4,0],targetOffset:In},topRight:{points:["br","tr"],overflow:po,offset:[0,-4],targetOffset:In},rightTop:{points:["tl","tr"],overflow:mo,offset:[4,0],targetOffset:In},bottomRight:{points:["tr","br"],overflow:po,offset:[0,4],targetOffset:In},rightBottom:{points:["bl","br"],overflow:mo,offset:[4,0],targetOffset:In},bottomLeft:{points:["tl","bl"],overflow:po,offset:[0,4],targetOffset:In},leftBottom:{points:["br","bl"],overflow:mo,offset:[-4,0],targetOffset:In}};function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Zl.apply(this,arguments)}const C0=f.forwardRef((e,n)=>{const{trigger:r=["hover"],mouseEnterDelay:o=0,mouseLeaveDelay:s=.1,prefixCls:l="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:h,motion:g,placement:m="right",align:v={},destroyOnHidden:y=!1,defaultVisible:C,getTooltipContainer:_,arrowContent:x,overlay:b,id:E,showArrow:S=!0,classNames:P,styles:I,...M}=e,k=Ki(E),N=A.useRef(null);A.useImperativeHandle(n,()=>N.current);const R={...M};"visible"in e&&(R.popupVisible=e.visible);const B=f.useMemo(()=>{if(!S)return!1;const $=S===!0?{}:S;return{...$,className:ce($.className,P==null?void 0:P.arrow),style:{...$.style,...I==null?void 0:I.arrow},content:$.content??x}},[S,P==null?void 0:P.arrow,I==null?void 0:I.arrow,x]),z=({open:$})=>{const j=f.Children.only(c),V={"aria-describedby":b&&$?k:void 0};return f.cloneElement(j,V)};return f.createElement(dl,Zl({popupClassName:P==null?void 0:P.root,prefixCls:l,popup:f.createElement(yh,{key:"content",prefixCls:l,id:k,classNames:P,styles:I},b),action:r,builtinPlacements:w0,popupPlacement:m,ref:N,popupAlign:v,getPopupContainer:_,onOpenChange:d,afterOpenChange:h,popupMotion:g,defaultPopupVisible:C,autoDestroy:y,mouseLeaveDelay:s,popupStyle:I==null?void 0:I.root,mouseEnterDelay:o,arrow:B,uniqueContainerClassName:P==null?void 0:P.uniqueContainer,uniqueContainerStyle:I==null?void 0:I.uniqueContainer},R),z)});function bh(e){const{sizePopupArrow:n,borderRadiusXS:r,borderRadiusOuter:o}=e,s=n/2,l=0,c=s,d=o*1/Math.sqrt(2),h=s-o*(1-1/Math.sqrt(2)),g=s-r*(1/Math.sqrt(2)),m=o*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),v=2*s-g,y=m,C=2*s-d,_=h,x=2*s-l,b=c,E=s*Math.sqrt(2)+o*(Math.sqrt(2)-2),S=o*(Math.sqrt(2)-1),P=`polygon(${S}px 100%, 50% ${S}px, ${2*s-S}px 100%, ${S}px 100%)`,I=`path('M ${l} ${c} A ${o} ${o} 0 0 0 ${d} ${h} L ${g} ${m} A ${r} ${r} 0 0 1 ${v} ${y} L ${C} ${_} A ${o} ${o} 0 0 0 ${x} ${b} Z')`;return{arrowShadowWidth:E,arrowPath:I,arrowPolygon:P}}const S0=(e,n,r)=>{const{sizePopupArrow:o,arrowPolygon:s,arrowPath:l,arrowShadowWidth:c,borderRadiusXS:d,calc:h}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:h(o).div(2).equal(),background:n,clipPath:{_multi_value_:!0,value:[s,l]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Le(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},_h=8;function Ul(e){const{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:r?_h:o}}function ps(e,n){return e?n:{}}const xh=(e,n,r)=>{const{componentCls:o,boxShadowPopoverArrow:s,arrowOffsetVertical:l,arrowOffsetHorizontal:c,antCls:d}=e,[h]=gr(d,"tooltip"),{arrowDistance:g=0,arrowPlacement:m={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[o]:{[`${o}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...S0(e,n,s),"&:before":{background:n}}],...ps(!!m.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:g,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{[h("arrow-offset-horizontal")]:c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{[h("arrow-offset-horizontal")]:`calc(100% - ${Le(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...ps(!!m.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:g,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[h("arrow-offset-horizontal")]:c,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{[h("arrow-offset-horizontal")]:`calc(100% - ${Le(c)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...ps(!!m.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:g},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:l},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:l}}),...ps(!!m.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:g},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:l},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:l}})}}};function E0(e,n,r,o){if(o===!1)return{adjustX:!1,adjustY:!1};const s=o&&typeof o=="object"?o:{},l={};switch(e){case"top":case"bottom":l.shiftX=n.arrowOffsetHorizontal*2+r,l.shiftY=!0,l.adjustY=!0;break;case"left":case"right":l.shiftY=n.arrowOffsetVertical*2+r,l.shiftX=!0,l.adjustX=!0;break}const c={...l,...s};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const wh={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},P0={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},I0=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ch(e){const{arrowWidth:n,autoAdjustOverflow:r,arrowPointAtCenter:o,offset:s,borderRadius:l,visibleFirst:c}=e,d=n/2,h={},g=Ul({contentRadius:l,limitVerticalRadius:!0});return Object.keys(wh).forEach(m=>{const y={...o&&P0[m]||wh[m],offset:[0,0],dynamicInset:!0};switch(h[m]=y,I0.has(m)&&(y.autoArrow=!1),m){case"top":case"topLeft":case"topRight":y.offset[1]=-d-s;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+s;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-s;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+s;break}if(o)switch(m){case"topLeft":case"bottomLeft":y.offset[0]=-g.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=g.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-g.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=g.arrowOffsetHorizontal*2-d;break}y.overflow=E0(m,g,n,r),c&&(y.htmlRegion="visibleFirst")}),h}const T0=(e,n)=>{const r=o=>typeof o=="boolean"?{show:o}:o||{};return A.useMemo(()=>{const o=r(e),s=r(n);return{...s,...o,show:o.show??s.show??!0}},[e,n])},Sh="50%",A0=e=>{const{calc:n,componentCls:r,tooltipMaxWidth:o,tooltipColor:s,tooltipBg:l,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:h,boxShadowSecondary:g,paddingSM:m,paddingXS:v,arrowOffsetHorizontal:y,sizePopupArrow:C,antCls:_}=e,[x,b]=gr(_,"tooltip"),E=n(c).add(C).add(y).equal(),P={minWidth:n(c).mul(2).add(C).equal(),minHeight:h,padding:`${Le(e.calc(m).div(2).equal())} ${Le(v)}`,color:b("overlay-color",s),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:l,borderRadius:c,boxShadow:g,boxSizing:"border-box"},I={[x("valid-offset-x")]:b("arrow-offset-horizontal","var(--arrow-x)"),transformOrigin:[b("valid-offset-x",Sh),`var(--arrow-y, ${Sh})`].join(" ")};return[{[r]:{...Xr(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:o,visibility:"visible",...I,"&-hidden":{display:"none"},[x("arrow-background-color")]:l,[`${r}-container`]:[P,Ab(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[`${r}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:E},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(c,_h)}},[`${r}-content`]:{position:"relative"},...yv(e,(M,{darkColor:k})=>({[`&${r}-${M}`]:{[`${r}-container`]:{backgroundColor:k},[`${r}-arrow`]:{[x("arrow-background-color")]:k}}})),"&-rtl":{direction:"rtl"}}},xh(e,b("arrow-background-color")),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${r}-unique-container`]:{...P,...I,position:"absolute",zIndex:n(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},M0=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Ul({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...bh(_n(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Eh=(e,n,r=!0)=>Vn("Tooltip",s=>{const{borderRadius:l,colorTextLightSolid:c,colorBgSpotlight:d,maxWidth:h}=s,g=_n(s,{tooltipMaxWidth:h,tooltipColor:c,tooltipBorderRadius:l,tooltipBg:d});return[A0(g),Ml(s,"zoom-big-fast")]},M0,{resetStyle:!1,injectStyle:r})(e,n),L0=Or.map(e=>`${e}-inverse`);function O0(e,n=!0){return n?[].concat(bn(L0),bn(Or)).includes(e):Or.includes(e)}const Ph=(e,n,r)=>{const o=O0(r),[s]=gr(e,"tooltip"),l=ce({[`${n}-${r}`]:r&&o}),c={},d={},h=t_(r).toRgb(),m=(.299*h.r+.587*h.g+.114*h.b)/255<.5?"#FFF":"#000";return r&&!o&&(c.background=r,c[s("overlay-color")]=m,d[s("arrow-background-color")]=r),{className:l,overlayStyle:c,arrowStyle:d}},N0=e=>{const{prefixCls:n,className:r,placement:o="top",title:s,color:l,overlayInnerStyle:c,classNames:d,styles:h}=e,{getPrefixCls:g}=f.useContext(Ot),m=g("tooltip",n),v=g(),y=no(m),[C,_]=Eh(m,y),x=Ph(v,m,l),b=x.arrowStyle,E=f.useMemo(()=>({container:{...c,...x.overlayStyle}}),[c,x.overlayStyle]),S={...e,placement:o},[P,I]=kr([d],[E,h],{props:S}),M=ce(y,C,_,m,`${m}-pure`,`${m}-placement-${o}`,r,x.className);return f.createElement("div",{className:M,style:b},f.createElement("div",{className:`${m}-arrow`}),f.createElement(yh,{...e,className:C,prefixCls:m,classNames:P,styles:I},s))},ms=f.forwardRef((e,n)=>{const{prefixCls:r,openClassName:o,getTooltipContainer:s,color:l,children:c,afterOpenChange:d,arrow:h,destroyTooltipOnHide:g,destroyOnHidden:m,title:v,overlay:y,trigger:C,builtinPlacements:_,autoAdjustOverflow:x=!0,motion:b,getPopupContainer:E,placement:S="top",mouseEnterDelay:P=.1,mouseLeaveDelay:I=.1,rootClassName:M,styles:k,classNames:N,onOpenChange:R,overlayInnerStyle:B,overlayStyle:z,overlayClassName:$,...j}=e,[,V]=mr(),{getPopupContainer:W,getPrefixCls:F,direction:X,className:J,style:Z,classNames:le,styles:G,arrow:ie,trigger:ne}=Ur("tooltip"),de=T0(h,ie),oe=de.show,ee=C||ne||"hover",K=hn("Tooltip"),Y=f.useRef(null),se=()=>{var Ve;(Ve=Y.current)==null||Ve.forceAlign()};f.useImperativeHandle(n,()=>{var Ve,Ye;return{forceAlign:se,nativeElement:(Ve=Y.current)==null?void 0:Ve.nativeElement,popupElement:(Ye=Y.current)==null?void 0:Ye.popupElement}}),process.env.NODE_ENV!=="production"&&([["overlayStyle","styles.root"],["overlayInnerStyle","styles.container"],["overlayClassName","classNames.root"],["destroyTooltipOnHide","destroyOnHidden"]].forEach(([Ve,Ye])=>{K.deprecated(!(Ve in e),Ve,Ye)}),process.env.NODE_ENV!=="production"&&K(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."));const[fe,xe]=qn(e.defaultOpen??!1,e.open),Se=!v&&!y&&v!==0,Te=Ve=>{xe(Se?!1:Ve),!Se&&R&&R(Ve)},Ce=f.useMemo(()=>_||Ch({arrowPointAtCenter:(de==null?void 0:de.pointAtCenter)??!1,autoAdjustOverflow:x,arrowWidth:oe?V.sizePopupArrow:0,borderRadius:V.borderRadius,offset:V.marginXXS,visibleFirst:!0}),[de,_,V,oe,x]),te=f.useMemo(()=>v===0?v:y||v||"",[y,v]),we=f.createElement(ph,{space:!0,form:!0},typeof te=="function"?te():te),Pe={...e,trigger:ee,color:l,placement:S,builtinPlacements:_,openClassName:o,arrow:h,autoAdjustOverflow:x,getPopupContainer:E,children:c,destroyTooltipOnHide:g,destroyOnHidden:m},[Ae,Ze]=kr([le,N],[G,k],{props:Pe}),Be=F("tooltip",r),nt=F(),Ge=e["data-popover-inject"];let Ke=fe;!("open"in e)&&Se&&(Ke=!1);const ze=f.isValidElement(c)&&!bf(c)?c:f.createElement("span",null,c),De=ze.props,ot=!De.className||typeof De.className=="string"?ce(De.className,o||`${Be}-open`):De.className,St=no(Be),[pt,dt]=Eh(Be,St,!Ge),mt=Ph(nt,Be,l),Oe=mt.arrowStyle,he=ce(St,pt,dt),_e=ce($,{[`${Be}-rtl`]:X==="rtl"},mt.className,M,he,J,Ae.root),[rt,$e]=rl("Tooltip",j.zIndex),ge={...Ze.container,...B,...mt.overlayStyle},Qe=f.createElement(C0,{unique:!0,...j,trigger:ee,zIndex:rt,showArrow:oe,placement:S,mouseEnterDelay:P,mouseLeaveDelay:I,prefixCls:Be,classNames:{root:_e,container:Ae.container,arrow:Ae.arrow,uniqueContainer:ce(he,Ae.container)},styles:{root:{...Oe,...Ze.root,...Z,...z},container:ge,uniqueContainer:ge,arrow:Ze.arrow},getTooltipContainer:E||s||W,ref:Y,builtinPlacements:Ce,overlay:we,visible:Ke,onVisibleChange:Te,afterVisibleChange:d,arrowContent:f.createElement("span",{className:`${Be}-arrow-content`}),motion:{motionName:Zy(nt,"zoom-big-fast",typeof(b==null?void 0:b.motionName)=="string"?b==null?void 0:b.motionName:void 0),motionDeadline:1e3},destroyOnHidden:m??!!g},Ke?nr(ze,{className:ot}):ze);return f.createElement(nl.Provider,{value:$e},Qe)});process.env.NODE_ENV!=="production"&&(ms.displayName="Tooltip"),ms._InternalPanelDoNotUseOrYouWillBeFired=N0,ms.UniqueProvider=_f;const Ih=ms;var k0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const R0=k0;function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ql.apply(this,arguments)}const $0=(e,n)=>f.createElement(Ko,ql({},e,{ref:n,icon:R0})),Th=f.forwardRef($0);process.env.NODE_ENV!=="production"&&(Th.displayName="LeftOutlined");const Gl=Th,{ESC:B0,TAB:z0}=Ie;function D0({visible:e,triggerRef:n,onVisibleChange:r,autoFocus:o,overlayRef:s}){const l=f.useRef(!1),c=()=>{var g,m;e&&((m=(g=n.current)==null?void 0:g.focus)==null||m.call(g),r==null||r(!1))},d=()=>{var g;return(g=s.current)!=null&&g.focus?(s.current.focus(),l.current=!0,!0):!1},h=g=>{switch(g.keyCode){case B0:c();break;case z0:{let m=!1;l.current||(m=d()),m?g.preventDefault():c();break}}};f.useEffect(()=>e?(window.addEventListener("keydown",h),o&&Ut(d,3),()=>{window.removeEventListener("keydown",h),l.current=!1}):()=>{l.current=!1},[e])}const F0=A.forwardRef((e,n)=>{const{overlay:r,arrow:o,prefixCls:s}=e,l=A.useMemo(()=>{let d;return typeof r=="function"?d=r():d=r,d},[r]),c=Sr(n,dr(l));return A.createElement(A.Fragment,null,o&&A.createElement("div",{className:`${s}-arrow`}),A.cloneElement(l,{ref:Er(l)?c:void 0}))}),go={adjustX:1,adjustY:1},vo=[0,0],H0={topLeft:{points:["bl","tl"],overflow:go,offset:[0,-4],targetOffset:vo},top:{points:["bc","tc"],overflow:go,offset:[0,-4],targetOffset:vo},topRight:{points:["br","tr"],overflow:go,offset:[0,-4],targetOffset:vo},bottomLeft:{points:["tl","bl"],overflow:go,offset:[0,4],targetOffset:vo},bottom:{points:["tc","bc"],overflow:go,offset:[0,4],targetOffset:vo},bottomRight:{points:["tr","br"],overflow:go,offset:[0,4],targetOffset:vo}};function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Kl.apply(this,arguments)}const V0=A.forwardRef((e,n)=>{var G;const{arrow:r=!1,prefixCls:o="rc-dropdown",transitionName:s,animation:l,align:c,placement:d="bottomLeft",placements:h=H0,getPopupContainer:g,showAction:m,hideAction:v,overlayClassName:y,overlayStyle:C,visible:_,trigger:x=["hover"],autoFocus:b,overlay:E,children:S,onVisibleChange:P,...I}=e,[M,k]=A.useState(),N="visible"in e?_:M,R=l?`${o}-${l}`:s,B=A.useRef(null),z=A.useRef(null),$=A.useRef(null);A.useImperativeHandle(n,()=>B.current);const j=ie=>{k(ie),P==null||P(ie)};D0({visible:N,triggerRef:$,onVisibleChange:j,autoFocus:b,overlayRef:z});const V=ie=>{const{onOverlayClick:ne}=e;k(!1),ne&&ne(ie)},W=()=>A.createElement(F0,{ref:z,overlay:E,prefixCls:o,arrow:r}),F=()=>typeof E=="function"?W:W(),X=()=>{const{minOverlayWidthMatchTrigger:ie,alignPoint:ne}=e;return"minOverlayWidthMatchTrigger"in e?ie:!ne},J=()=>{const{openClassName:ie}=e;return ie!==void 0?ie:`${o}-open`},Z=A.cloneElement(S,{className:ce((G=S.props)==null?void 0:G.className,N&&J()),ref:Er(S)?Sr($,dr(S)):void 0});let le=v;return!le&&x.indexOf("contextMenu")!==-1&&(le=["click"]),A.createElement(dl,Kl({builtinPlacements:h},I,{prefixCls:o,ref:B,popupClassName:ce(y,{[`${o}-show-arrow`]:r}),popupStyle:C,action:x,showAction:m,hideAction:le,popupPlacement:d,popupAlign:c,popupMotion:{motionName:R},popupVisible:N,stretch:X()?"minWidth":"",popup:F(),onOpenChange:j,onPopupClick:V,getPopupContainer:g}),Z)}),W0=e=>typeof e!="object"&&typeof e!="function"||e===null,Ah=f.createContext(null);function Mh(e,n){return`${e}-${n}`}function Lh(e){const n=f.useContext(Ah);return Mh(n,e)}const $n=f.createContext(null);function j0(e,n){const r={...e};return Object.keys(n).forEach(o=>{const s=n[o];s!==void 0&&(r[o]=s)}),r}function si({children:e,locked:n,...r}){const o=f.useContext($n),s=Ei(()=>j0(o,r),[o,r],(l,c)=>!n&&(l[0]!==c[0]||!$o(l[1],c[1],!0)));return f.createElement($n.Provider,{value:s},e)}const Z0=[],Oh=f.createContext(null);function gs(){return f.useContext(Oh)}const Nh=f.createContext(Z0);function yo(e){const n=f.useContext(Nh);return f.useMemo(()=>e!==void 0?[...n,e]:n,[n,e])}const kh=f.createContext(null),Ql=f.createContext({}),{LEFT:Yl,RIGHT:Xl,UP:Jl,DOWN:vs,ENTER:ys,ESC:Rh,HOME:ai,END:li}=Ie,$h=[Jl,vs,Yl,Xl];function U0(e,n,r,o){var C;const s="prev",l="next",c="children",d="parent";if(e==="inline"&&o===ys)return{inlineTrigger:!0};const h={[Jl]:s,[vs]:l},g={[Yl]:r?l:s,[Xl]:r?s:l,[vs]:c,[ys]:c},m={[Jl]:s,[vs]:l,[ys]:c,[Rh]:d,[Yl]:r?c:d,[Xl]:r?d:c};switch((C={inline:h,horizontal:g,vertical:m,inlineSub:h,horizontalSub:m,verticalSub:m}[`${e}${n?"":"Sub"}`])==null?void 0:C[o]){case s:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function q0(e){let n=e;for(;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function G0(e,n){let r=e||document.activeElement;for(;r;){if(n.has(r))return r;r=r.parentElement}return null}function ec(e,n){return __(e,!0).filter(o=>n.has(o))}function Bh(e,n,r,o=1){if(!e)return null;const s=ec(e,n),l=s.length;let c=s.findIndex(d=>r===d);return o<0?c===-1?c=l-1:c-=1:o>0&&(c+=1),c=(c+l)%l,s[c]}const bs=(e,n)=>{const r=new Set,o=new Map,s=new Map;return e.forEach(l=>{const c=document.querySelector(`[data-menu-id='${Mh(n,l)}']`);c&&(r.add(c),s.set(c,l),o.set(l,c))}),{elements:r,key2element:o,element2key:s}};function K0(e,n,r,o,s,l,c,d,h,g){const m=f.useRef(),v=f.useRef();v.current=n;const y=()=>{Ut.cancel(m.current)};return f.useEffect(()=>()=>{y()},[]),C=>{const{which:_}=C;if([...$h,ys,Rh,ai,li].includes(_)){const x=l();let b=bs(x,o);const{elements:E,key2element:S,element2key:P}=b,I=S.get(n),M=G0(I,E),k=P.get(M),N=U0(e,c(k,!0).length===1,r,_);if(!N&&_!==ai&&_!==li)return;($h.includes(_)||[ai,li].includes(_))&&C.preventDefault();const R=B=>{if(B){let z=B;const $=B.querySelector("a");$!=null&&$.getAttribute("href")&&(z=$);const j=P.get(B);d(j),y(),m.current=Ut(()=>{v.current===j&&z.focus()})}};if([ai,li].includes(_)||N.sibling||!M){let B;!M||e==="inline"?B=s.current:B=q0(M);let z;const $=ec(B,E);_===ai?z=$[0]:_===li?z=$[$.length-1]:z=Bh(B,E,M,N.offset),R(z)}else if(N.inlineTrigger)h(k);else if(N.offset>0)h(k,!0),y(),m.current=Ut(()=>{b=bs(x,o);const B=M.getAttribute("aria-controls"),z=document.getElementById(B),$=Bh(z,b.elements);R($)},5);else if(N.offset<0){const B=c(k,!0),z=B[B.length-2],$=S.get(z);h(z,!1),R($)}}g==null||g(C)}}function Q0(e){Promise.resolve().then(e)}const tc="__RC_UTIL_PATH_SPLIT__",zh=e=>e.join(tc),Y0=e=>e.split(tc),nc="rc-menu-more";function X0(){const[,e]=f.useState({}),n=A.useRef(new Map),r=A.useRef(new Map),[o,s]=f.useState([]),l=A.useRef(0),c=A.useRef(!1),d=()=>{c.current||e({})},h=A.useCallback((x,b)=>{process.env.NODE_ENV!=="production"&&ct(!n.current.has(x),`Duplicated key '${x}' used in Menu by path [${b.join(" > ")}]`);const E=zh(b);r.current.set(E,x),n.current.set(x,E),l.current+=1;const S=l.current;Q0(()=>{S===l.current&&d()})},[]),g=A.useCallback((x,b)=>{const E=zh(b);r.current.delete(E),n.current.delete(x)},[]),m=A.useCallback(x=>{s(x)},[]),v=A.useCallback((x,b)=>{const E=n.current.get(x)||"",S=Y0(E);return b&&o.includes(S[0])&&S.unshift(nc),S},[o]),y=A.useCallback((x,b)=>x.filter(E=>E!==void 0).some(E=>v(E,!0).includes(b)),[v]),C=()=>{const x=[...n.current.keys()];return o.length&&x.push(nc),x},_=A.useCallback(x=>{const b=`${n.current.get(x)}${tc}`,E=new Set;return[...r.current.keys()].forEach(S=>{S.startsWith(b)&&E.add(r.current.get(S))}),E},[]);return f.useEffect(()=>()=>{c.current=!0},[]),{registerPath:h,unregisterPath:g,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:v,getKeys:C,getSubPathKeys:_}}function ci(e){const n=f.useRef(e);n.current=e;const r=f.useCallback((...o)=>{var s;return(s=n.current)==null?void 0:s.call(n,...o)},[]);return e?r:void 0}function Dh(e,n,r,o){const{activeKey:s,onActive:l,onInactive:c}=f.useContext($n),d={active:s===e};return n||(d.onMouseEnter=h=>{r==null||r({key:e,domEvent:h}),l(e)},d.onMouseLeave=h=>{o==null||o({key:e,domEvent:h}),c(e)}),d}function Fh(e){const{mode:n,rtl:r,inlineIndent:o}=f.useContext($n);if(n!=="inline")return null;const s=e;return r?{paddingRight:s*o}:{paddingLeft:s*o}}function Hh({icon:e,props:n,children:r}){let o;return e===null||e===!1?null:(typeof e=="function"?o=f.createElement(e,{...n}):typeof e!="boolean"&&(o=e),o||r||null)}function _s({item:e,...n}){return Object.defineProperty(n,"item",{get:()=>(ct(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),n}function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ui.apply(this,arguments)}class J0 extends f.Component{render(){const{title:n,attribute:r,elementRef:o,...s}=this.props,l=Sn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ct(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(or.Item,ui({},r,{title:typeof n=="string"?n:void 0},l,{ref:o}))}}const ex=f.forwardRef((e,n)=>{const{style:r,className:o,eventKey:s,warnKey:l,disabled:c,itemIcon:d,children:h,role:g,onMouseEnter:m,onMouseLeave:v,onClick:y,onKeyDown:C,onFocus:_,...x}=e,b=Lh(s),{prefixCls:E,onItemClick:S,disabled:P,overflowDisabled:I,itemIcon:M,selectedKeys:k,onActive:N}=f.useContext($n),{_internalRenderMenuItem:R}=f.useContext(Ql),B=`${E}-item`,z=f.useRef(),$=f.useRef(),j=P||c,V=Wr(n,$),W=yo(s);process.env.NODE_ENV!=="production"&&l&&ct(!1,"MenuItem should not leave undefined `key`.");const F=K=>({key:s,keyPath:[...W].reverse(),item:z.current,domEvent:K}),X=d||M,{active:J,...Z}=Dh(s,j,m,v),le=k.includes(s),G=Fh(W.length),ie=K=>{if(j)return;const Y=F(K);y==null||y(_s(Y)),S(Y)},ne=K=>{if(C==null||C(K),K.which===Ie.ENTER){const Y=F(K);y==null||y(_s(Y)),S(Y)}},de=K=>{N(s),_==null||_(K)},oe={};e.role==="option"&&(oe["aria-selected"]=le);let ee=f.createElement(J0,ui({ref:z,elementRef:V,role:g===null?"none":g||"menuitem",tabIndex:c?null:-1,"data-menu-id":I&&b?null:b},Sn(x,["extra"]),Z,oe,{component:"li","aria-disabled":c,style:{...G,...r},className:ce(B,{[`${B}-active`]:J,[`${B}-selected`]:le,[`${B}-disabled`]:j},o),onClick:ie,onKeyDown:ne,onFocus:de}),h,f.createElement(Hh,{props:{...e,isSelected:le},icon:X}));return R&&(ee=R(ee,e,{selected:le})),ee});function tx(e,n){const{eventKey:r}=e,o=gs(),s=yo(r);return f.useEffect(()=>{if(o)return o.registerPath(r,s),()=>{o.unregisterPath(r,s)}},[s]),o?null:f.createElement(ex,ui({},e,{ref:n}))}const xs=f.forwardRef(tx);function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},rc.apply(this,arguments)}const nx=({className:e,children:n,...r},o)=>{const{prefixCls:s,mode:l,rtl:c}=f.useContext($n);return f.createElement("ul",rc({className:ce(s,c&&`${s}-rtl`,`${s}-sub`,`${s}-${l==="inline"?"inline":"vertical"}`,e),role:"menu"},r,{"data-menu-list":!0,ref:o}),n)},oc=f.forwardRef(nx);process.env.NODE_ENV!=="production"&&(oc.displayName="SubMenuList");function ic(e,n){return Gn(e).map((r,o)=>{var s;if(f.isValidElement(r)){const{key:l}=r;let c=((s=r.props)==null?void 0:s.eventKey)??l;const d=c==null;d&&(c=`tmp_key-${[...n,o].join("-")}`);const h={key:c,eventKey:c};return process.env.NODE_ENV!=="production"&&d&&(h.warnKey=!0),f.cloneElement(r,h)}return r})}const nn={adjustX:1,adjustY:1},rx={topLeft:{points:["bl","tl"],overflow:nn},topRight:{points:["br","tr"],overflow:nn},bottomLeft:{points:["tl","bl"],overflow:nn},bottomRight:{points:["tr","br"],overflow:nn},leftTop:{points:["tr","tl"],overflow:nn},leftBottom:{points:["br","bl"],overflow:nn},rightTop:{points:["tl","tr"],overflow:nn},rightBottom:{points:["bl","br"],overflow:nn}},ox={topLeft:{points:["bl","tl"],overflow:nn},topRight:{points:["br","tr"],overflow:nn},bottomLeft:{points:["tl","bl"],overflow:nn},bottomRight:{points:["tr","br"],overflow:nn},rightTop:{points:["tr","tl"],overflow:nn},rightBottom:{points:["br","bl"],overflow:nn},leftTop:{points:["tl","tr"],overflow:nn},leftBottom:{points:["bl","br"],overflow:nn}};function Vh(e,n,r){if(n)return n;if(r)return r[e]||r.other}const ix={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function sx({prefixCls:e,visible:n,children:r,popup:o,popupStyle:s,popupClassName:l,popupOffset:c,disabled:d,mode:h,onVisibleChange:g}){const{getPopupContainer:m,rtl:v,subMenuOpenDelay:y,subMenuCloseDelay:C,builtinPlacements:_,triggerSubMenuAction:x,forceSubMenuRender:b,rootClassName:E,motion:S,defaultMotions:P}=f.useContext($n),[I,M]=f.useState(!1),k=v?{...ox,..._}:{...rx,..._},N=ix[h],R=Vh(h,S,P),B=f.useRef(R);h!=="inline"&&(B.current=R);const z={...B.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},$=f.useRef();return f.useEffect(()=>($.current=Ut(()=>{M(n)}),()=>{Ut.cancel($.current)}),[n]),f.createElement(dl,{prefixCls:e,popupClassName:ce(`${e}-popup`,{[`${e}-rtl`]:v},l,E),stretch:h==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:k,popupPlacement:N,popupVisible:I,popup:o,popupStyle:s,popupAlign:c&&{offset:c},action:d?[]:[x],mouseEnterDelay:y,mouseLeaveDelay:C,onPopupVisibleChange:g,forceRender:b,popupMotion:z,fresh:!0},r)}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},sc.apply(this,arguments)}function ax({id:e,open:n,keyPath:r,children:o}){const s="inline",{prefixCls:l,forceSubMenuRender:c,motion:d,defaultMotions:h,mode:g}=f.useContext($n),m=f.useRef(!1);m.current=g===s;const[v,y]=f.useState(!m.current),C=m.current?n:!1;f.useEffect(()=>{m.current&&y(!1)},[g]);const _={...Vh(s,d,h)};r.length>1&&(_.motionAppear=!1);const x=_.onVisibleChanged;return _.onVisibleChanged=b=>(!m.current&&!b&&y(!0),x==null?void 0:x(b)),v?null:f.createElement(si,{mode:s,locked:!m.current},f.createElement(Nr,sc({visible:C},_,{forceRender:c,removeOnLeave:!1,leavedClassName:`${l}-hidden`}),({className:b,style:E})=>f.createElement(oc,{id:e,className:b,style:E},o)))}function di(){return di=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},di.apply(this,arguments)}const lx=f.forwardRef((e,n)=>{const{style:r,className:o,styles:s,classNames:l,title:c,eventKey:d,warnKey:h,disabled:g,internalPopupClose:m,children:v,itemIcon:y,expandIcon:C,popupClassName:_,popupOffset:x,popupStyle:b,onClick:E,onMouseEnter:S,onMouseLeave:P,onTitleClick:I,onTitleMouseEnter:M,onTitleMouseLeave:k,popupRender:N,...R}=e,B=Lh(d),{prefixCls:z,mode:$,openKeys:j,disabled:V,overflowDisabled:W,activeKey:F,selectedKeys:X,itemIcon:J,expandIcon:Z,onItemClick:le,onOpenChange:G,onActive:ie,popupRender:ne}=f.useContext($n),{_internalRenderSubMenuItem:de}=f.useContext(Ql),{isSubPathKey:oe}=f.useContext(kh),ee=yo(),K=`${z}-submenu`,Y=V||g,se=f.useRef(),fe=f.useRef();process.env.NODE_ENV!=="production"&&h&&ct(!1,"SubMenu should not leave undefined `key`.");const xe=y??J,Se=C??Z,Te=j.includes(d),Ce=!W&&Te,te=oe(X,d),{active:we,...Pe}=Dh(d,Y,M,k),[Ae,Ze]=f.useState(!1),Be=ge=>{Y||Ze(ge)},nt=ge=>{Be(!0),S==null||S({key:d,domEvent:ge})},Ge=ge=>{Be(!1),P==null||P({key:d,domEvent:ge})},Ke=f.useMemo(()=>we||($!=="inline"?Ae||oe([F],d):!1),[$,we,F,Ae,d,oe]),ze=Fh(ee.length),De=ge=>{Y||(I==null||I({key:d,domEvent:ge}),$==="inline"&&G(d,!Te))},ot=ci(ge=>{E==null||E(_s(ge)),le(ge)}),St=ge=>{$!=="inline"&&G(d,ge)},pt=()=>{ie(d)},dt=B&&`${B}-popup`,mt=f.useMemo(()=>f.createElement(Hh,{icon:$!=="horizontal"?Se:void 0,props:{...e,isOpen:Ce,isSubMenu:!0}},f.createElement("i",{className:`${K}-arrow`})),[$,Se,e,Ce,K]);let Oe=f.createElement("div",di({role:"menuitem",style:ze,className:`${K}-title`,tabIndex:Y?null:-1,ref:se,title:typeof c=="string"?c:null,"data-menu-id":W&&B?null:B,"aria-expanded":Ce,"aria-haspopup":!0,"aria-controls":dt,"aria-disabled":Y,onClick:De,onFocus:pt},Pe),c,mt);const he=f.useRef($);$!=="inline"&&ee.length>1?he.current="vertical":he.current=$;const _e=he.current,rt=f.useMemo(()=>{const ge=f.createElement(si,{classNames:l,styles:s,mode:_e==="horizontal"?"vertical":_e},f.createElement(oc,{id:dt,ref:fe},v)),Qe=N||ne;return Qe?Qe(ge,{item:e,keys:ee}):ge},[N,ne,ee,dt,v,e,_e]);if(!W){const ge=he.current;Oe=f.createElement(sx,{mode:ge,prefixCls:K,visible:!m&&Ce&&$!=="inline",popupClassName:_,popupOffset:x,popupStyle:b,popup:rt,disabled:Y,onVisibleChange:St},Oe)}let $e=f.createElement(or.Item,di({ref:n,role:"none"},R,{component:"li",style:r,className:ce(K,`${K}-${$}`,o,{[`${K}-open`]:Ce,[`${K}-active`]:Ke,[`${K}-selected`]:te,[`${K}-disabled`]:Y}),onMouseEnter:nt,onMouseLeave:Ge}),Oe,!W&&f.createElement(ax,{id:dt,open:Ce,keyPath:ee},v));return de&&($e=de($e,e,{selected:te,active:Ke,open:Ce,disabled:Y})),f.createElement(si,{classNames:l,styles:s,onItemClick:ot,mode:$==="horizontal"?"vertical":$,itemIcon:xe,expandIcon:Se},$e)}),fi=f.forwardRef((e,n)=>{const{eventKey:r,children:o}=e,s=yo(r),l=ic(o,s),c=gs();f.useEffect(()=>{if(c)return c.registerPath(r,s),()=>{c.unregisterPath(r,s)}},[s]);let d;return c?d=l:d=f.createElement(lx,di({ref:n},e),l),f.createElement(Nh.Provider,{value:s},d)});process.env.NODE_ENV!=="production"&&(fi.displayName="SubMenu");function ac({className:e,style:n}){const{prefixCls:r}=f.useContext($n);return gs()?null:f.createElement("li",{role:"separator",className:ce(`${r}-item-divider`,e),style:n})}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ws.apply(this,arguments)}const cx=f.forwardRef((e,n)=>{const{className:r,title:o,eventKey:s,children:l,...c}=e,{prefixCls:d,classNames:h,styles:g}=f.useContext($n),m=`${d}-item-group`;return f.createElement("li",ws({ref:n,role:"presentation"},c,{onClick:v=>v.stopPropagation(),className:ce(m,r)}),f.createElement("div",{role:"presentation",className:ce(`${m}-title`,h==null?void 0:h.listTitle),style:g==null?void 0:g.listTitle,title:typeof o=="string"?o:void 0},o),f.createElement("ul",{role:"group",className:ce(`${m}-list`,h==null?void 0:h.list),style:g==null?void 0:g.list},l))}),Cs=f.forwardRef((e,n)=>{const{eventKey:r,children:o}=e,s=yo(r),l=ic(o,s);return gs()?l:f.createElement(cx,ws({ref:n},Sn(e,["warnKey"])),l)});process.env.NODE_ENV!=="production"&&(Cs.displayName="MenuItemGroup");function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},bo.apply(this,arguments)}function lc(e,n,r){const{item:o,group:s,submenu:l,divider:c}=n;return(e||[]).map((d,h)=>{if(d&&typeof d=="object"){const{label:g,children:m,key:v,type:y,extra:C,..._}=d,x=v??`tmp-${h}`;return m||y==="group"?y==="group"?f.createElement(s,bo({key:x},_,{title:g}),lc(m,n,r)):f.createElement(l,bo({key:x},_,{title:g}),lc(m,n,r)):y==="divider"?f.createElement(c,bo({key:x},_)):f.createElement(o,bo({key:x},_,{extra:C}),g,(!!C||C===0)&&f.createElement("span",{className:`${r}-item-extra`},C))}return null}).filter(d=>d)}function Wh(e,n,r,o,s){let l=e;const c={divider:ac,item:xs,group:Cs,submenu:fi,...o};return n&&(l=lc(n,c,s)),ic(l,r)}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},cc.apply(this,arguments)}const zr=[],hi=f.forwardRef((e,n)=>{var Ee;const{prefixCls:r="rc-menu",rootClassName:o,style:s,className:l,styles:c,classNames:d,tabIndex:h=0,items:g,children:m,direction:v,id:y,mode:C="vertical",inlineCollapsed:_,disabled:x,disabledOverflow:b,subMenuOpenDelay:E=.1,subMenuCloseDelay:S=.1,forceSubMenuRender:P,defaultOpenKeys:I,openKeys:M,activeKey:k,defaultActiveFirst:N,selectable:R=!0,multiple:B=!1,defaultSelectedKeys:z,selectedKeys:$,onSelect:j,onDeselect:V,inlineIndent:W=24,motion:F,defaultMotions:X,triggerSubMenuAction:J="hover",builtinPlacements:Z,itemIcon:le,expandIcon:G,overflowedIndicator:ie="...",overflowedIndicatorPopupClassName:ne,getPopupContainer:de,onClick:oe,onOpenChange:ee,onKeyDown:K,openAnimation:Y,openTransitionName:se,_internalRenderMenuItem:fe,_internalRenderSubMenuItem:xe,_internalComponents:Se,popupRender:Te,...Ce}=e,[te,we]=f.useMemo(()=>[Wh(m,g,zr,Se,r),Wh(m,g,zr,{},r)],[m,g,Se]),[Pe,Ae]=f.useState(!1),Ze=f.useRef(),Be=Ki(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),nt=v==="rtl";process.env.NODE_ENV!=="production"&&ct(!Y&&!se,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");const[Ge,Ke]=qn(I,M),ze=Ge||zr,De=(ye,ae=!1)=>{function pe(){Ke(ye),ee==null||ee(ye)}ae?Ln.flushSync(pe):pe()},[ot,St]=f.useState(ze),pt=f.useRef(!1),[dt,mt]=f.useMemo(()=>(C==="inline"||C==="vertical")&&_?["vertical",_]:[C,!1],[C,_]),Oe=dt==="inline",[he,_e]=f.useState(dt),[rt,$e]=f.useState(mt);f.useEffect(()=>{_e(dt),$e(mt),pt.current&&(Oe?Ke(ot):De(zr))},[dt,mt]);const[ge,Qe]=f.useState(0),Ve=ge>=te.length-1||he!=="horizontal"||b;f.useEffect(()=>{Oe&&St(ze)},[ze]),f.useEffect(()=>(pt.current=!0,()=>{pt.current=!1}),[]);const{registerPath:Ye,unregisterPath:Nt,refreshOverflowKeys:Ht,isSubPathKey:vt,getKeyPath:Et,getKeys:kt,getSubPathKeys:Je}=X0(),rn=f.useMemo(()=>({registerPath:Ye,unregisterPath:Nt}),[Ye,Nt]),mn=f.useMemo(()=>({isSubPathKey:vt}),[vt]);f.useEffect(()=>{Ht(Ve?zr:te.slice(ge+1).map(ye=>ye.key))},[ge,Ve]);const[on,an]=qn(k||N&&((Ee=te[0])==null?void 0:Ee.key),k),ln=ci(ye=>{an(ye)}),cn=ci(()=>{an(void 0)});A.useImperativeHandle(n,()=>({list:Ze.current,focus:ye=>{var Gt,wt;const ae=kt(),{elements:pe,key2element:We,element2key:Fe}=bs(ae,Be),et=ec(Ze.current,pe);let gt;on&&ae.includes(on)?gt=on:gt=et[0]?Fe.get(et[0]):(Gt=te.find(Kt=>!Kt.props.disabled))==null?void 0:Gt.key;const yt=We.get(gt);gt&&yt&&((wt=yt==null?void 0:yt.focus)==null||wt.call(yt,ye))},findItem:({key:ye})=>{const ae=kt(),{key2element:pe}=bs(ae,Be);return pe.get(ye)||null}}));const[Vt,Jt]=qn(z||[],$),Lt=f.useMemo(()=>Array.isArray(Vt)?Vt:Vt==null?zr:[Vt],[Vt]),xt=ye=>{if(R){const{key:ae}=ye,pe=Lt.includes(ae);let We;B?pe?We=Lt.filter(et=>et!==ae):We=[...Lt,ae]:We=[ae],Jt(We);const Fe={...ye,selectedKeys:We};pe?V==null||V(Fe):j==null||j(Fe)}!B&&ze.length&&he!=="inline"&&De(zr)},ve=ci(ye=>{oe==null||oe(_s(ye)),xt(ye)}),Wt=ci((ye,ae)=>{let pe=ze.filter(We=>We!==ye);if(ae)pe.push(ye);else if(he!=="inline"){const We=Je(ye);pe=pe.filter(Fe=>!We.has(Fe))}$o(ze,pe,!0)||De(pe,!0)}),T=K0(he,on,nt,Be,Ze,kt,Et,an,(ye,ae)=>{const pe=ae??!ze.includes(ye);Wt(ye,pe)},K);f.useEffect(()=>{Ae(!0)},[]);const U=f.useMemo(()=>({_internalRenderMenuItem:fe,_internalRenderSubMenuItem:xe}),[fe,xe]),re=he!=="horizontal"||b?te:te.map((ye,ae)=>f.createElement(si,{key:ye.key,overflowDisabled:ae>ge,classNames:d,styles:c},ye)),ue=f.createElement(or,cc({id:y,ref:Ze,prefixCls:`${r}-overflow`,component:"ul",itemComponent:xs,className:ce(r,`${r}-root`,`${r}-${he}`,l,{[`${r}-inline-collapsed`]:rt,[`${r}-rtl`]:nt},o),dir:v,style:s,role:"menu",tabIndex:h,data:re,renderRawItem:ye=>ye,renderRawRest:ye=>{const ae=ye.length,pe=ae?te.slice(-ae):null;return f.createElement(fi,{eventKey:nc,title:ie,disabled:Ve,internalPopupClose:ae===0,popupClassName:ne},pe)},maxCount:he!=="horizontal"||b?or.INVALIDATE:or.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ye=>{Qe(ye)},onKeyDown:T},Ce));return f.createElement(Ql.Provider,{value:U},f.createElement(Ah.Provider,{value:Be},f.createElement(si,{prefixCls:r,rootClassName:o,classNames:d,styles:c,mode:he,openKeys:ze,rtl:nt,disabled:x,motion:Pe?F:null,defaultMotions:Pe?X:null,activeKey:on,onActive:ln,onInactive:cn,selectedKeys:Lt,inlineIndent:W,subMenuOpenDelay:E,subMenuCloseDelay:S,forceSubMenuRender:P,builtinPlacements:Z,triggerSubMenuAction:J,getPopupContainer:de,itemIcon:le,expandIcon:G,onItemClick:ve,onOpenChange:Wt,popupRender:Te},f.createElement(kh.Provider,{value:mn},ue),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(Oh.Provider,{value:rn},we)))))});hi.Item=xs,hi.SubMenu=fi,hi.ItemGroup=Cs,hi.Divider=ac;var ux={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const dx=ux;function uc(){return uc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},uc.apply(this,arguments)}const fx=(e,n)=>f.createElement(Ko,uc({},e,{ref:n,icon:dx})),jh=f.forwardRef(fx);process.env.NODE_ENV!=="production"&&(jh.displayName="BarsOutlined");const hx=jh,px=f.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),mx=e=>{const{antCls:n,componentCls:r,colorText:o,footerBg:s,headerHeight:l,headerPadding:c,headerColor:d,footerPadding:h,fontSize:g,bodyBg:m,headerBg:v}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:l,padding:c,color:d,lineHeight:Le(l),background:v,[`${n}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:h,color:o,fontSize:g,background:s},[`${r}-content`]:{flex:"auto",color:o,minHeight:0}}},Zh=e=>{const{colorBgLayout:n,controlHeight:r,controlHeightLG:o,colorText:s,controlHeightSM:l,marginXXS:c,colorTextLightSolid:d,colorBgContainer:h}=e,g=o*1.25;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140",bodyBg:n,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${g}px`,headerColor:s,footerPadding:`${l}px ${g}px`,footerBg:n,siderBg:"#001529",triggerHeight:o+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:h,lightTriggerBg:h,lightTriggerColor:s}},Uh=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Vn("Layout",mx,Zh,{deprecatedTokens:Uh});const gx=Vn(["Layout","Sider"],e=>{const{componentCls:n,siderBg:r,motionDurationMid:o,motionDurationSlow:s,antCls:l,triggerHeight:c,triggerColor:d,triggerBg:h,headerHeight:g,zeroTriggerWidth:m,zeroTriggerHeight:v,borderRadiusLG:y,lightSiderBg:C,lightTriggerColor:_,lightTriggerBg:x,bodyBg:b}=e;return{[n]:{position:"relative",minWidth:0,background:r,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${n}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${l}-menu${l}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${n}-children`]:{overflow:"hidden"},[`${n}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:d,lineHeight:Le(c),textAlign:"center",background:h,cursor:"pointer",transition:`all ${o}`},[`${n}-zero-width-trigger`]:{position:"absolute",top:g,insetInlineEnd:e.calc(m).mul(-1).equal(),zIndex:1,width:m,height:v,color:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${Le(y)} ${Le(y)} 0`,cursor:"pointer",transition:`background-color ${s} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${s}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(m).mul(-1).equal(),borderRadius:`${Le(y)} 0 0 ${Le(y)}`}},"&-light":{background:C,[`${n}-trigger`]:{color:_,background:x},[`${n}-zero-width-trigger`]:{color:_,background:x,border:`1px solid ${b}`,borderInlineStart:0}}}}},Zh,{deprecatedTokens:Uh}),qh={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},vx=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),dc=f.createContext({}),yx=(()=>{let e=0;return(n="")=>(e+=1,`${n}${e}`)})(),bx=f.forwardRef((e,n)=>{const{prefixCls:r,className:o,trigger:s,children:l,defaultCollapsed:c=!1,theme:d="dark",style:h={},collapsible:g=!1,reverseArrow:m=!1,width:v=200,collapsedWidth:y=80,zeroWidthTriggerStyle:C,breakpoint:_,onCollapse:x,onBreakpoint:b,...E}=e,{siderHook:S}=A.useContext(px),[P,I]=A.useState("collapsed"in e?e.collapsed:c),[M,k]=A.useState(!1);A.useEffect(()=>{"collapsed"in e&&I(e.collapsed)},[e.collapsed]);const N=(Y,se)=>{"collapsed"in e||I(Y),x==null||x(Y,se)},{getPrefixCls:R,direction:B}=A.useContext(Ot),z=R("layout-sider",r),[$,j]=gx(z),V=A.useRef(null);V.current=Y=>{k(Y.matches),b==null||b(Y.matches),P!==Y.matches&&N(Y.matches,"responsive")},A.useEffect(()=>{function Y(fe){var xe;return(xe=V.current)==null?void 0:xe.call(V,fe)}let se;return typeof(window==null?void 0:window.matchMedia)<"u"&&_&&_ in qh&&(se=window.matchMedia(`screen and (max-width: ${qh[_]})`),typeof(se==null?void 0:se.addEventListener)=="function"&&se.addEventListener("change",Y),Y(se)),()=>{typeof(se==null?void 0:se.removeEventListener)=="function"&&se.removeEventListener("change",Y)}},[_]),A.useEffect(()=>{const Y=yx("ant-sider-");return S.addSider(Y),()=>S.removeSider(Y)},[]);const W=()=>{N(!P,"clickTrigger")},F=Sn(E,["collapsed"]),X=P?y:v,J=vx(X)?`${X}px`:String(X),Z=Number.parseFloat(String(y||0))===0?f.createElement("span",{onClick:W,className:ce(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${m?"right":"left"}`),style:C},s||f.createElement(hx,null)):null,le=B==="rtl"==!m,ne={expanded:le?f.createElement(Al,null):f.createElement(Gl,null),collapsed:le?f.createElement(Gl,null):f.createElement(Al,null)}[P?"collapsed":"expanded"],de=s!==null?Z||f.createElement("div",{className:`${z}-trigger`,onClick:W,style:{width:J}},s||ne):null,oe={...h,flex:`0 0 ${J}`,maxWidth:J,minWidth:J,width:J},ee=ce(z,`${z}-${d}`,{[`${z}-collapsed`]:!!P,[`${z}-has-trigger`]:g&&s!==null&&!Z,[`${z}-below`]:!!M,[`${z}-zero-width`]:Number.parseFloat(J)===0},o,$,j),K=f.useMemo(()=>({siderCollapsed:P}),[P]);return f.createElement(dc.Provider,{value:K},f.createElement("aside",{className:ee,...F,style:oe,ref:n},f.createElement("div",{className:`${z}-children`},l),g||M&&Z?de:null))});process.env.NODE_ENV!=="production"&&(bx.displayName="Sider");var _x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const xx=_x;function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},fc.apply(this,arguments)}const wx=(e,n)=>f.createElement(Ko,fc({},e,{ref:n,icon:xx})),Gh=f.forwardRef(wx);process.env.NODE_ENV!=="production"&&(Gh.displayName="EllipsisOutlined");const Kh=Gh,Ss=A.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),Qh=e=>{const{prefixCls:n,className:r,dashed:o,...s}=e,{getPrefixCls:l}=f.useContext(Ot),c=l("menu",n),d=ce({[`${c}-item-divider-dashed`]:!!o},r);return f.createElement(ac,{className:d,...s})},Yh=e=>{var I,M;const{className:n,children:r,icon:o,title:s,danger:l,extra:c}=e,{prefixCls:d,firstLevel:h,direction:g,disableMenuItemTitleTooltip:m,inlineCollapsed:v,styles:y,classNames:C}=f.useContext(Ss),_=k=>{var B,z;const N=r==null?void 0:r[0],R=f.createElement("span",{className:ce(`${d}-title-content`,h?C==null?void 0:C.itemContent:(B=C==null?void 0:C.subMenu)==null?void 0:B.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:h?y==null?void 0:y.itemContent:(z=y==null?void 0:y.subMenu)==null?void 0:z.itemContent},r);return(!o||f.isValidElement(r)&&r.type==="span")&&r&&k&&h&&typeof N=="string"?f.createElement("div",{className:`${d}-inline-collapsed-noicon`},N.charAt(0)):R},{siderCollapsed:x}=f.useContext(dc);let b=s;typeof s>"u"?b=h?r:"":s===!1&&(b="");const E={title:b};!x&&!v&&(E.title=null,E.open=!1);const S=Gn(r).length;let P=f.createElement(xs,{...Sn(e,["title","icon","danger"]),className:ce(h?C==null?void 0:C.item:(I=C==null?void 0:C.subMenu)==null?void 0:I.item,{[`${d}-item-danger`]:l,[`${d}-item-only-child`]:(o?S+1:S)===1},n),style:{...h?y==null?void 0:y.item:(M=y==null?void 0:y.subMenu)==null?void 0:M.item,...e.style},title:typeof s=="string"?s:void 0},nr(o,k=>{var N,R;return{className:ce(`${d}-item-icon`,h?C==null?void 0:C.itemIcon:(N=C==null?void 0:C.subMenu)==null?void 0:N.itemIcon,k.className),style:{...h?y==null?void 0:y.itemIcon:(R=y==null?void 0:y.subMenu)==null?void 0:R.itemIcon,...k.style}}}),_(v));return m||(P=f.createElement(Ih,{...E,placement:g==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},P)),P},Es=f.createContext(null),Cx=f.forwardRef((e,n)=>{const{children:r,...o}=e,s=f.useContext(Es),l=f.useMemo(()=>({...s,...o}),[s,o.prefixCls,o.mode,o.selectable,o.rootClassName]),c=pm(r),d=Wr(n,c?dr(r):null);return f.createElement(Es.Provider,{value:l},f.createElement(ph,{space:!0},c?f.cloneElement(r,{ref:d}):r))}),Sx=e=>{const{componentCls:n,motionDurationSlow:r,horizontalLineHeight:o,colorSplit:s,lineWidth:l,lineType:c,itemPaddingInline:d}=e;return{[`${n}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${Le(l)} ${c} ${s}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${n}-item:hover,
177
177
  > ${n}-item-active,
178
- > ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${r}`,`background-color ${r}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},Ix=({componentCls:e,menuArrowOffset:n,calc:r})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
179
- ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Le(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Le(n)})`}}}}),Yh=e=>Ka(e),Xh=(e,n)=>{const{componentCls:r,itemColor:o,itemSelectedColor:s,subMenuItemSelectedColor:l,groupTitleColor:c,itemBg:d,subMenuItemBg:h,itemSelectedBg:g,activeBarHeight:m,activeBarWidth:v,activeBarBorderWidth:y,motionDurationSlow:C,motionEaseInOut:_,motionEaseOut:x,itemPaddingInline:b,motionDurationMid:E,itemHoverColor:S,lineType:P,colorSplit:T,itemDisabledColor:M,dangerItemColor:N,dangerItemHoverColor:k,dangerItemSelectedColor:R,dangerItemActiveBg:B,dangerItemSelectedBg:z,popupBg:$,itemHoverBg:j,itemActiveBg:V,menuSubMenuBg:W,horizontalItemSelectedColor:F,horizontalItemSelectedBg:X,horizontalItemBorderRadius:J,horizontalItemHoverBg:Z}=e;return{[`${r}-${n}, ${r}-${n} > ${r}`]:{color:o,background:d,[`&${r}-root:focus-visible`]:{...Yh(e)},[`${r}-item`]:{"&-group-title, &-extra":{color:c}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:l},[`${r}-item, ${r}-submenu-title`]:{color:o,[`&:not(${r}-item-disabled):focus-visible`]:{...Yh(e)}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${M} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:S}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:V}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:V}}},[`${r}-item-danger`]:{color:N,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:k}},[`&${r}-item:active`]:{background:B}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:s,[`&${r}-item-danger`]:{color:R},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:g,[`&${r}-item-danger`]:{backgroundColor:z}},[`&${r}-submenu > ${r}`]:{backgroundColor:W},[`&${r}-popup > ${r}`]:{backgroundColor:$},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:$},[`&${r}-horizontal`]:{...n==="dark"?{borderBottom:0}:{},[`> ${r}-item, > ${r}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:J,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${Le(m)} solid transparent`,transition:`border-color ${C} ${_}`,content:'""'},"&:hover, &-active, &-open":{background:Z,"&::after":{borderBottomWidth:m,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:X,"&:hover":{backgroundColor:X},"&::after":{borderBottomWidth:m,borderBottomColor:F}}}},[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${Le(y)} ${P} ${T}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:h},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Le(v)} solid ${s}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${E} ${x}`,`opacity ${E} ${x}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:R}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${E} ${_}`,`opacity ${E} ${_}`].join(",")}}}}}},Jh=e=>{const{componentCls:n,itemHeight:r,itemMarginInline:o,padding:s,menuArrowSize:l,marginXS:c,itemMarginBlock:d,itemWidth:h,itemPaddingInline:g}=e,m=e.calc(l).add(s).add(c).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:r,lineHeight:Le(r),paddingInline:g,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:d,width:h},[`> ${n}-item,
178
+ > ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${r}`,`background-color ${r}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},Ex=({componentCls:e,menuArrowOffset:n,calc:r})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
179
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Le(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Le(n)})`}}}}),Xh=e=>Ga(e),Jh=(e,n)=>{const{componentCls:r,itemColor:o,itemSelectedColor:s,subMenuItemSelectedColor:l,groupTitleColor:c,itemBg:d,subMenuItemBg:h,itemSelectedBg:g,activeBarHeight:m,activeBarWidth:v,activeBarBorderWidth:y,motionDurationSlow:C,motionEaseInOut:_,motionEaseOut:x,itemPaddingInline:b,motionDurationMid:E,itemHoverColor:S,lineType:P,colorSplit:I,itemDisabledColor:M,dangerItemColor:k,dangerItemHoverColor:N,dangerItemSelectedColor:R,dangerItemActiveBg:B,dangerItemSelectedBg:z,popupBg:$,itemHoverBg:j,itemActiveBg:V,menuSubMenuBg:W,horizontalItemSelectedColor:F,horizontalItemSelectedBg:X,horizontalItemBorderRadius:J,horizontalItemHoverBg:Z}=e;return{[`${r}-${n}, ${r}-${n} > ${r}`]:{color:o,background:d,[`&${r}-root:focus-visible`]:{...Xh(e)},[`${r}-item`]:{"&-group-title, &-extra":{color:c}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:l},[`${r}-item, ${r}-submenu-title`]:{color:o,[`&:not(${r}-item-disabled):focus-visible`]:{...Xh(e)}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${M} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:S}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:V}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:V}}},[`${r}-item-danger`]:{color:k,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:N}},[`&${r}-item:active`]:{background:B}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:s,[`&${r}-item-danger`]:{color:R},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:g,[`&${r}-item-danger`]:{backgroundColor:z}},[`&${r}-submenu > ${r}`]:{backgroundColor:W},[`&${r}-popup > ${r}`]:{backgroundColor:$},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:$},[`&${r}-horizontal`]:{...n==="dark"?{borderBottom:0}:{},[`> ${r}-item, > ${r}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:J,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${Le(m)} solid transparent`,transition:`border-color ${C} ${_}`,content:'""'},"&:hover, &-active, &-open":{background:Z,"&::after":{borderBottomWidth:m,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:X,"&:hover":{backgroundColor:X},"&::after":{borderBottomWidth:m,borderBottomColor:F}}}},[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${Le(y)} ${P} ${I}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:h},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Le(v)} solid ${s}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${E} ${x}`,`opacity ${E} ${x}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:R}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${E} ${_}`,`opacity ${E} ${_}`].join(",")}}}}}},ep=e=>{const{componentCls:n,itemHeight:r,itemMarginInline:o,padding:s,menuArrowSize:l,marginXS:c,itemMarginBlock:d,itemWidth:h,itemPaddingInline:g}=e,m=e.calc(l).add(s).add(c).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:r,lineHeight:Le(r),paddingInline:g,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:d,width:h},[`> ${n}-item,
180
180
  > ${n}-submenu > ${n}-submenu-title`]:{height:r,lineHeight:Le(r)},[`${n}-item-group-list ${n}-submenu-title,
181
- ${n}-submenu-title`]:{paddingInlineEnd:m}}},Tx=e=>{const{componentCls:n,iconCls:r,itemHeight:o,colorTextLightSolid:s,dropdownWidth:l,controlHeightLG:c,motionEaseOut:d,paddingXL:h,itemMarginInline:g,fontSizeLG:m,motionDurationFast:v,motionDurationSlow:y,paddingXS:C,boxShadowSecondary:_,collapsedWidth:x,collapsedIconSize:b}=e,E={height:o,lineHeight:Le(o),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":{[`&${n}-root`]:{boxShadow:"none"},...Jh(e)}},[`${n}-submenu-popup`]:{[`${n}-vertical`]:{...Jh(e),boxShadow:_}}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${Le(e.calc(c).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${y}`,`background-color ${y}`,`padding ${v} ${d}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:E,[`& ${n}-item-group-title`]:{paddingInlineStart:h}},[`${n}-item`]:E}},{[`${n}-inline-collapsed`]:{width:x,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${n}-item,
181
+ ${n}-submenu-title`]:{paddingInlineEnd:m}}},Px=e=>{const{componentCls:n,iconCls:r,itemHeight:o,colorTextLightSolid:s,dropdownWidth:l,controlHeightLG:c,motionEaseOut:d,paddingXL:h,itemMarginInline:g,fontSizeLG:m,motionDurationFast:v,motionDurationSlow:y,paddingXS:C,boxShadowSecondary:_,collapsedWidth:x,collapsedIconSize:b}=e,E={height:o,lineHeight:Le(o),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":{[`&${n}-root`]:{boxShadow:"none"},...ep(e)}},[`${n}-submenu-popup`]:{[`${n}-vertical`]:{...ep(e),boxShadow:_}}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${Le(e.calc(c).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${y}`,`background-color ${y}`,`padding ${v} ${d}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:E,[`& ${n}-item-group-title`]:{paddingInlineStart:h}},[`${n}-item`]:E}},{[`${n}-inline-collapsed`]:{width:x,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${n}-item,
182
182
  > ${n}-item-group > ${n}-item-group-list > ${n}-item,
183
183
  > ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
184
184
  > ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Le(e.calc(b).div(2).equal())} - ${Le(g)})`,textOverflow:"clip",[`
185
185
  ${n}-submenu-arrow,
186
186
  ${n}-submenu-expand-icon
187
- `]:{opacity:0},[`${n}-item-icon, ${r}`]:{margin:0,fontSize:b,lineHeight:Le(o),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:s}},[`${n}-item-group-title`]:{...mv,paddingInline:C}}}]},ep=e=>{const{componentCls:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:s,motionEaseOut:l,iconCls:c,iconSize:d,iconMarginInlineEnd:h}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background-color ${r}`,`padding calc(${r} + 0.1s) ${s}`].join(","),[`${n}-item-icon, ${c}`]:{minWidth:d,fontSize:d,transition:[`font-size ${o} ${l}`,`margin ${r} ${s}`,`color ${r}`].join(","),"+ span":{marginInlineStart:h,opacity:1,transition:[`opacity ${r} ${s}`,`margin ${r}`,`color ${r}`].join(",")}},[`${n}-item-icon`]:{...Ga()},[`&${n}-item-only-child`]:{[`> ${c}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},tp=e=>{const{componentCls:n,motionDurationSlow:r,motionEaseInOut:o,borderRadius:s,menuArrowSize:l,menuArrowOffset:c}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${o}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:s,transition:[`background-color ${r} ${o}`,`transform ${r} ${o}`,`top ${r} ${o}`,`color ${r} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Le(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Le(c)})`}}}}},Ax=e=>{const{antCls:n,componentCls:r,fontSize:o,motionDurationSlow:s,motionDurationMid:l,motionEaseInOut:c,paddingXS:d,padding:h,colorSplit:g,lineWidth:m,zIndexPopup:v,borderRadiusLG:y,subMenuItemBorderRadius:C,menuArrowSize:_,menuArrowOffset:x,lineType:b,groupTitleLineHeight:E,groupTitleFontSize:S}=e;return[{"":{[r]:{...gd(),"&-hidden":{display:"none"}}},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:{...Jr(e),...gd(),marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${s} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${Le(d)} ${Le(h)}`,fontSize:S,lineHeight:E,transition:`all ${s}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${s} ${c}`,`background-color ${s} ${c}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${s} ${c}`,`background-color ${s} ${c}`,`padding ${l} ${c}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background-color ${s} ${c}`,`padding ${s} ${c}`].join(",")},[`${r}-title-content`]:{transition:`color ${s}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:g,borderStyle:b,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}},...ep(e),[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${Le(e.calc(o).mul(2).equal())} ${Le(h)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:v,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:{borderRadius:y,...ep(e),...tp(e),[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:C},[`${r}-submenu-title::after`]:{transition:`transform ${s} ${c}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...tp(e),[`&-inline-collapsed ${r}-submenu-arrow,
188
- &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Le(x)})`},"&::after":{transform:`rotate(45deg) translateX(${Le(e.calc(x).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${Le(e.calc(_).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Le(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Le(x)})`}}}},{[`${n}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},Mx=e=>{const{colorPrimary:n,colorError:r,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:h,colorFillContent:g,lineWidth:m,lineWidthBold:v,controlItemBgActive:y,colorBgTextHover:C,controlHeightLG:_,lineHeight:x,colorBgElevated:b,marginXXS:E,padding:S,fontSize:P,controlHeightSM:T,fontSizeLG:M,colorTextLightSolid:N,colorErrorHover:k}=e,R=e.activeBarWidth??0,B=e.activeBarBorderWidth??m,z=e.itemMarginInline??e.marginXXS,$=new Mt(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:n,horizontalItemHoverColor:n,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:n,itemSelectedColor:n,subMenuItemSelectedColor:n,colorItemTextSelectedHorizontal:n,horizontalItemSelectedColor:n,colorItemBg:d,itemBg:d,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:g,itemActiveBg:y,colorSubItemBg:h,subMenuItemBg:h,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:m,activeBarBorderWidth:B,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_,groupTitleLineHeight:x,collapsedWidth:_*2,popupBg:b,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:`${_*1.15}px`,iconSize:P,iconMarginInlineEnd:T-P,collapsedIconSize:M,groupTitleFontSize:P,darkItemDisabledColor:new Mt(N).setA(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:n,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:N,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:r,itemWidth:R?`calc(100% + ${B}px)`:`calc(100% - ${z*2}px)`}},Lx=(e,n=e,r=!0)=>Hn("Menu",s=>{const{colorBgElevated:l,controlHeightLG:c,fontSize:d,darkItemColor:h,darkDangerItemColor:g,darkItemBg:m,darkSubMenuItemBg:v,darkItemSelectedColor:y,darkItemSelectedBg:C,darkDangerItemSelectedBg:_,darkItemHoverBg:x,darkGroupTitleColor:b,darkItemHoverColor:E,darkItemDisabledColor:S,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:T,darkDangerItemActiveBg:M,popupBg:N,darkPopupBg:k}=s,R=s.calc(d).div(7).mul(5).equal(),B=_n(s,{menuArrowSize:R,menuHorizontalHeight:s.calc(c).mul(1.15).equal(),menuArrowOffset:s.calc(R).mul(.25).equal(),menuSubMenuBg:l,calc:s.calc,popupBg:N}),z=_n(B,{itemColor:h,itemHoverColor:E,groupTitleColor:b,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:m,popupBg:k,subMenuItemBg:v,itemActiveBg:"transparent",itemSelectedBg:C,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:S,dangerItemColor:g,dangerItemHoverColor:P,dangerItemSelectedColor:T,dangerItemActiveBg:M,dangerItemSelectedBg:_,menuSubMenuBg:v,horizontalItemSelectedColor:y,horizontalItemSelectedBg:C});return[Ax(B),Px(B),Tx(B),Xh(B,"light"),Xh(z,"dark"),Ix(B),Pb(B),is(B,"slide-up"),is(B,"slide-down"),Ll(B,"zoom-big")]},Mx,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,n),np=e=>{var x,b,E,S,P,T;const{popupClassName:n,icon:r,title:o,theme:s}=e,l=f.useContext(Es),{prefixCls:c,inlineCollapsed:d,theme:h,classNames:g,styles:m}=l,v=yo();let y;if(!r)y=d&&!v.length&&o&&typeof o=="string"?f.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):f.createElement("span",{className:`${c}-title-content`},o);else{const M=f.isValidElement(o)&&o.type==="span";y=f.createElement(f.Fragment,null,tr(r,N=>({className:ce(N.className,`${c}-item-icon`,g==null?void 0:g.itemIcon),style:{...N.style,...m==null?void 0:m.itemIcon}})),M?o:f.createElement("span",{className:`${c}-title-content`},o))}const C=f.useMemo(()=>({...l,firstLevel:!1}),[l]),[_]=ol("Menu");return f.createElement(Es.Provider,{value:C},f.createElement(fi,{...Sn(e,["icon"]),title:y,classNames:{list:(x=g==null?void 0:g.subMenu)==null?void 0:x.list,listTitle:(b=g==null?void 0:g.subMenu)==null?void 0:b.itemTitle},styles:{list:(E=m==null?void 0:m.subMenu)==null?void 0:E.list,listTitle:(S=m==null?void 0:m.subMenu)==null?void 0:S.itemTitle},popupClassName:ce(c,n,(P=g==null?void 0:g.popup)==null?void 0:P.root,`${c}-${s||h}`),popupStyle:{zIndex:_,...e.popupStyle,...(T=m==null?void 0:m.popup)==null?void 0:T.root}}))};function pc(e){return e===null||e===!1}const Ox={item:Qh,submenu:np,divider:Kh},kx=I.forwardRef((e,n)=>{var fe;const r=f.useContext(Ps),o=r||{},{prefixCls:s,className:l,style:c,theme:d="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:m,siderCollapsed:v,rootClassName:y,mode:C,selectable:_,onClick:x,overflowedIndicatorPopupClassName:b,classNames:E,styles:S,...P}=e,{menu:T}=f.useContext(kt),{getPrefixCls:M,getPopupContainer:N,direction:k,className:R,style:B,classNames:z,styles:$}=qr("menu"),j=M(),V=Sn(P,["collapsedWidth"]);if(process.env.NODE_ENV!=="production"){const xe=hn("Menu");process.env.NODE_ENV!=="production"&&xe(!("inlineCollapsed"in e&&C!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),xe.deprecated("items"in e&&!e.children,"children","items")}(fe=o.validator)==null||fe.call(o,{mode:C});const W=ht((...xe)=>{var Se;x==null||x(...xe),(Se=o.onClick)==null||Se.call(o)}),F=o.mode||C,X=_??o.selectable,J=m??v,Z={...e,mode:F,inlineCollapsed:J,selectable:X,theme:d},[le,G]=Rr([z,E],[$,S],{props:Z},{popup:{_default:"root"},subMenu:{_default:"item"}}),ie={horizontal:{motionName:`${j}-slide-up`},inline:Uy(j),other:{motionName:`${j}-zoom-big`}},ne=M("menu",s||o.prefixCls),de=ro(ne),[oe,ee]=Lx(ne,de,!r),K=ce(`${ne}-${d}`,R,l),Y=f.useMemo(()=>{var Se;if(typeof h=="function"||pc(h))return h||null;if(typeof o.expandIcon=="function"||pc(o.expandIcon))return o.expandIcon||null;if(typeof(T==null?void 0:T.expandIcon)=="function"||pc(T==null?void 0:T.expandIcon))return(T==null?void 0:T.expandIcon)||null;const xe=h??(o==null?void 0:o.expandIcon)??(T==null?void 0:T.expandIcon);return tr(xe,{className:ce(`${ne}-submenu-expand-icon`,f.isValidElement(xe)?(Se=xe.props)==null?void 0:Se.className:void 0)})},[h,o==null?void 0:o.expandIcon,T==null?void 0:T.expandIcon,ne]),se=f.useMemo(()=>({prefixCls:ne,inlineCollapsed:J||!1,direction:k,firstLevel:!0,theme:d,mode:F,disableMenuItemTitleTooltip:g,classNames:le,styles:G}),[ne,J,k,g,d,F,le,G]);return f.createElement(Ps.Provider,{value:null},f.createElement(Es.Provider,{value:se},f.createElement(hi,{getPopupContainer:N,overflowedIndicator:f.createElement(Gh,null),overflowedIndicatorPopupClassName:ce(ne,`${ne}-${d}`,b),classNames:{list:le.list,listTitle:le.itemTitle},styles:{list:G.list,listTitle:G.itemTitle},mode:F,selectable:X,onClick:W,...V,inlineCollapsed:J,style:{...G.root,...B,...c},className:K,prefixCls:ne,direction:k,defaultMotions:ie,expandIcon:Y,ref:n,rootClassName:ce(y,oe,o.rootClassName,ee,de,le.root),_internalComponents:Ox})))}),_o=I.forwardRef((e,n)=>{const r=I.useRef(null),o=f.useContext(fc);return I.useImperativeHandle(n,()=>({menu:r.current,focus:s=>{var l;(l=r.current)==null||l.focus(s)}})),f.createElement(kx,{ref:r,...e,...o})});_o.Item=Qh,_o.SubMenu=np,_o.Divider=Kh,_o.ItemGroup=Ss,process.env.NODE_ENV!=="production"&&(_o.displayName="Menu");const Nx=_o,Rx=e=>{const{componentCls:n,menuCls:r,colorError:o,colorTextLightSolid:s}=e,l=`${r}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${r} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:s,backgroundColor:o}}}}}},$x=e=>{const{componentCls:n,menuCls:r,zIndexPopup:o,dropdownArrowDistance:s,sizePopupArrow:l,antCls:c,iconCls:d,motionDurationMid:h,paddingBlock:g,fontSize:m,dropdownEdgeChildPadding:v,colorTextDisabled:y,fontSizeIcon:C,controlPaddingHorizontal:_,colorBgElevated:x}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(s).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${d}-down, & > ${c}-btn-icon > ${d}-down`]:{fontSize:C}},[`${n}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:C},[`${d}-down::before`]:{transition:`transform ${h}`}},[`${n}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${c}-slide-down-enter${c}-slide-down-enter-active${n}-placement-bottomLeft,
187
+ `]:{opacity:0},[`${n}-item-icon, ${r}`]:{margin:0,fontSize:b,lineHeight:Le(o),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:s}},[`${n}-item-group-title`]:{...hv,paddingInline:C}}}]},tp=e=>{const{componentCls:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:s,motionEaseOut:l,iconCls:c,iconSize:d,iconMarginInlineEnd:h}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background-color ${r}`,`padding calc(${r} + 0.1s) ${s}`].join(","),[`${n}-item-icon, ${c}`]:{minWidth:d,fontSize:d,transition:[`font-size ${o} ${l}`,`margin ${r} ${s}`,`color ${r}`].join(","),"+ span":{marginInlineStart:h,opacity:1,transition:[`opacity ${r} ${s}`,`margin ${r}`,`color ${r}`].join(",")}},[`${n}-item-icon`]:{...qa()},[`&${n}-item-only-child`]:{[`> ${c}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},np=e=>{const{componentCls:n,motionDurationSlow:r,motionEaseInOut:o,borderRadius:s,menuArrowSize:l,menuArrowOffset:c}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${o}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:s,transition:[`background-color ${r} ${o}`,`transform ${r} ${o}`,`top ${r} ${o}`,`color ${r} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Le(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Le(c)})`}}}}},Ix=e=>{const{antCls:n,componentCls:r,fontSize:o,motionDurationSlow:s,motionDurationMid:l,motionEaseInOut:c,paddingXS:d,padding:h,colorSplit:g,lineWidth:m,zIndexPopup:v,borderRadiusLG:y,subMenuItemBorderRadius:C,menuArrowSize:_,menuArrowOffset:x,lineType:b,groupTitleLineHeight:E,groupTitleFontSize:S}=e;return[{"":{[r]:{...md(),"&-hidden":{display:"none"}}},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:{...Xr(e),...md(),marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${s} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${Le(d)} ${Le(h)}`,fontSize:S,lineHeight:E,transition:`all ${s}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${s} ${c}`,`background-color ${s} ${c}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${s} ${c}`,`background-color ${s} ${c}`,`padding ${l} ${c}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background-color ${s} ${c}`,`padding ${s} ${c}`].join(",")},[`${r}-title-content`]:{transition:`color ${s}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:g,borderStyle:b,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}},...tp(e),[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${Le(e.calc(o).mul(2).equal())} ${Le(h)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:v,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:{borderRadius:y,...tp(e),...np(e),[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:C},[`${r}-submenu-title::after`]:{transition:`transform ${s} ${c}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...np(e),[`&-inline-collapsed ${r}-submenu-arrow,
188
+ &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Le(x)})`},"&::after":{transform:`rotate(45deg) translateX(${Le(e.calc(x).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${Le(e.calc(_).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Le(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Le(x)})`}}}},{[`${n}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},Tx=e=>{const{colorPrimary:n,colorError:r,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:h,colorFillContent:g,lineWidth:m,lineWidthBold:v,controlItemBgActive:y,colorBgTextHover:C,controlHeightLG:_,lineHeight:x,colorBgElevated:b,marginXXS:E,padding:S,fontSize:P,controlHeightSM:I,fontSizeLG:M,colorTextLightSolid:k,colorErrorHover:N}=e,R=e.activeBarWidth??0,B=e.activeBarBorderWidth??m,z=e.itemMarginInline??e.marginXXS,$=new At(k).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:n,horizontalItemHoverColor:n,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:n,itemSelectedColor:n,subMenuItemSelectedColor:n,colorItemTextSelectedHorizontal:n,horizontalItemSelectedColor:n,colorItemBg:d,itemBg:d,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:g,itemActiveBg:y,colorSubItemBg:h,subMenuItemBg:h,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:m,activeBarBorderWidth:B,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_,groupTitleLineHeight:x,collapsedWidth:_*2,popupBg:b,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:`${_*1.15}px`,iconSize:P,iconMarginInlineEnd:I-P,collapsedIconSize:M,groupTitleFontSize:P,darkItemDisabledColor:new At(k).setA(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:n,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:k,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:r,itemWidth:R?`calc(100% + ${B}px)`:`calc(100% - ${z*2}px)`}},Ax=(e,n=e,r=!0)=>Vn("Menu",s=>{const{colorBgElevated:l,controlHeightLG:c,fontSize:d,darkItemColor:h,darkDangerItemColor:g,darkItemBg:m,darkSubMenuItemBg:v,darkItemSelectedColor:y,darkItemSelectedBg:C,darkDangerItemSelectedBg:_,darkItemHoverBg:x,darkGroupTitleColor:b,darkItemHoverColor:E,darkItemDisabledColor:S,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:M,popupBg:k,darkPopupBg:N}=s,R=s.calc(d).div(7).mul(5).equal(),B=_n(s,{menuArrowSize:R,menuHorizontalHeight:s.calc(c).mul(1.15).equal(),menuArrowOffset:s.calc(R).mul(.25).equal(),menuSubMenuBg:l,calc:s.calc,popupBg:k}),z=_n(B,{itemColor:h,itemHoverColor:E,groupTitleColor:b,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:m,popupBg:N,subMenuItemBg:v,itemActiveBg:"transparent",itemSelectedBg:C,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:S,dangerItemColor:g,dangerItemHoverColor:P,dangerItemSelectedColor:I,dangerItemActiveBg:M,dangerItemSelectedBg:_,menuSubMenuBg:v,horizontalItemSelectedColor:y,horizontalItemSelectedBg:C});return[Ix(B),Sx(B),Px(B),Jh(B,"light"),Jh(z,"dark"),Ex(B),Sb(B),is(B,"slide-up"),is(B,"slide-down"),Ml(B,"zoom-big")]},Tx,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,n),rp=e=>{var x,b,E,S,P,I;const{popupClassName:n,icon:r,title:o,theme:s}=e,l=f.useContext(Ss),{prefixCls:c,inlineCollapsed:d,theme:h,classNames:g,styles:m}=l,v=yo();let y;if(!r)y=d&&!v.length&&o&&typeof o=="string"?f.createElement("div",{className:`${c}-inline-collapsed-noicon`},o.charAt(0)):f.createElement("span",{className:`${c}-title-content`},o);else{const M=f.isValidElement(o)&&o.type==="span";y=f.createElement(f.Fragment,null,nr(r,k=>({className:ce(k.className,`${c}-item-icon`,g==null?void 0:g.itemIcon),style:{...k.style,...m==null?void 0:m.itemIcon}})),M?o:f.createElement("span",{className:`${c}-title-content`},o))}const C=f.useMemo(()=>({...l,firstLevel:!1}),[l]),[_]=rl("Menu");return f.createElement(Ss.Provider,{value:C},f.createElement(fi,{...Sn(e,["icon"]),title:y,classNames:{list:(x=g==null?void 0:g.subMenu)==null?void 0:x.list,listTitle:(b=g==null?void 0:g.subMenu)==null?void 0:b.itemTitle},styles:{list:(E=m==null?void 0:m.subMenu)==null?void 0:E.list,listTitle:(S=m==null?void 0:m.subMenu)==null?void 0:S.itemTitle},popupClassName:ce(c,n,(P=g==null?void 0:g.popup)==null?void 0:P.root,`${c}-${s||h}`),popupStyle:{zIndex:_,...e.popupStyle,...(I=m==null?void 0:m.popup)==null?void 0:I.root}}))};function hc(e){return e===null||e===!1}const Mx={item:Yh,submenu:rp,divider:Qh},Lx=A.forwardRef((e,n)=>{var fe;const r=f.useContext(Es),o=r||{},{prefixCls:s,className:l,style:c,theme:d="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:m,siderCollapsed:v,rootClassName:y,mode:C,selectable:_,onClick:x,overflowedIndicatorPopupClassName:b,classNames:E,styles:S,...P}=e,{menu:I}=f.useContext(Ot),{getPrefixCls:M,getPopupContainer:k,direction:N,className:R,style:B,classNames:z,styles:$}=Ur("menu"),j=M(),V=Sn(P,["collapsedWidth"]);if(process.env.NODE_ENV!=="production"){const xe=hn("Menu");process.env.NODE_ENV!=="production"&&xe(!("inlineCollapsed"in e&&C!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),xe.deprecated("items"in e&&!e.children,"children","items")}(fe=o.validator)==null||fe.call(o,{mode:C});const W=ft((...xe)=>{var Se;x==null||x(...xe),(Se=o.onClick)==null||Se.call(o)}),F=o.mode||C,X=_??o.selectable,J=m??v,Z={...e,mode:F,inlineCollapsed:J,selectable:X,theme:d},[le,G]=kr([z,E],[$,S],{props:Z},{popup:{_default:"root"},subMenu:{_default:"item"}}),ie={horizontal:{motionName:`${j}-slide-up`},inline:jy(j),other:{motionName:`${j}-zoom-big`}},ne=M("menu",s||o.prefixCls),de=no(ne),[oe,ee]=Ax(ne,de,!r),K=ce(`${ne}-${d}`,R,l),Y=f.useMemo(()=>{var Se;if(typeof h=="function"||hc(h))return h||null;if(typeof o.expandIcon=="function"||hc(o.expandIcon))return o.expandIcon||null;if(typeof(I==null?void 0:I.expandIcon)=="function"||hc(I==null?void 0:I.expandIcon))return(I==null?void 0:I.expandIcon)||null;const xe=h??(o==null?void 0:o.expandIcon)??(I==null?void 0:I.expandIcon);return nr(xe,{className:ce(`${ne}-submenu-expand-icon`,f.isValidElement(xe)?(Se=xe.props)==null?void 0:Se.className:void 0)})},[h,o==null?void 0:o.expandIcon,I==null?void 0:I.expandIcon,ne]),se=f.useMemo(()=>({prefixCls:ne,inlineCollapsed:J||!1,direction:N,firstLevel:!0,theme:d,mode:F,disableMenuItemTitleTooltip:g,classNames:le,styles:G}),[ne,J,N,g,d,F,le,G]);return f.createElement(Es.Provider,{value:null},f.createElement(Ss.Provider,{value:se},f.createElement(hi,{getPopupContainer:k,overflowedIndicator:f.createElement(Kh,null),overflowedIndicatorPopupClassName:ce(ne,`${ne}-${d}`,b),classNames:{list:le.list,listTitle:le.itemTitle},styles:{list:G.list,listTitle:G.itemTitle},mode:F,selectable:X,onClick:W,...V,inlineCollapsed:J,style:{...G.root,...B,...c},className:K,prefixCls:ne,direction:N,defaultMotions:ie,expandIcon:Y,ref:n,rootClassName:ce(y,oe,o.rootClassName,ee,de,le.root),_internalComponents:Mx})))}),_o=A.forwardRef((e,n)=>{const r=A.useRef(null),o=f.useContext(dc);return A.useImperativeHandle(n,()=>({menu:r.current,focus:s=>{var l;(l=r.current)==null||l.focus(s)}})),f.createElement(Lx,{ref:r,...e,...o})});_o.Item=Yh,_o.SubMenu=rp,_o.Divider=Qh,_o.ItemGroup=Cs,process.env.NODE_ENV!=="production"&&(_o.displayName="Menu");const Ox=_o,Nx=e=>{const{componentCls:n,menuCls:r,colorError:o,colorTextLightSolid:s}=e,l=`${r}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${r} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:s,backgroundColor:o}}}}}},kx=e=>{const{componentCls:n,menuCls:r,zIndexPopup:o,dropdownArrowDistance:s,sizePopupArrow:l,antCls:c,iconCls:d,motionDurationMid:h,paddingBlock:g,fontSize:m,dropdownEdgeChildPadding:v,colorTextDisabled:y,fontSizeIcon:C,controlPaddingHorizontal:_,colorBgElevated:x}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(s).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${d}-down, & > ${c}-btn-icon > ${d}-down`]:{fontSize:C}},[`${n}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:C},[`${d}-down::before`]:{transition:`transform ${h}`}},[`${n}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${c}-slide-down-enter${c}-slide-down-enter-active${n}-placement-bottomLeft,
189
189
  &${c}-slide-down-appear${c}-slide-down-appear-active${n}-placement-bottomLeft,
190
190
  &${c}-slide-down-enter${c}-slide-down-enter-active${n}-placement-bottom,
191
191
  &${c}-slide-down-appear${c}-slide-down-appear-active${n}-placement-bottom,
@@ -199,10 +199,10 @@ html body {
199
199
  &${c}-slide-down-leave${c}-slide-down-leave-active${n}-placement-bottom,
200
200
  &${c}-slide-down-leave${c}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:jf},[`&${c}-slide-up-leave${c}-slide-up-leave-active${n}-placement-topLeft,
201
201
  &${c}-slide-up-leave${c}-slide-up-leave-active${n}-placement-top,
202
- &${c}-slide-up-leave${c}-slide-up-leave-active${n}-placement-topRight`]:{animationName:Uf}}},_h(e,x,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:{...Jr(e),[r]:{padding:v,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Qa(e),"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${Le(g)} ${Le(_)}`,color:e.colorTextDescription,transition:`all ${h}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${h}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:{display:"flex",margin:0,padding:`${Le(g)} ${Le(_)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${h}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Qa(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Le(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:C,fontStyle:"normal"}}},[`${r}-item-group-list`]:{margin:`0 ${Le(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(_).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:y,backgroundColor:x,cursor:"not-allowed"}},[`${r}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}}}},[is(e,"slide-up"),is(e,"slide-down"),Vf(e,"move-up"),Vf(e,"move-down"),Ll(e,"zoom-big")]]},Bx=Hn("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:r,paddingXXS:o,componentCls:s}=e,l=_n(e,{menuCls:`${s}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(n).equal(),dropdownEdgeChildPadding:o});return[$x(l),Rx(l)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...ql({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...yh(e)}),{resetStyle:!1}),Is=e=>{const{menu:n,arrow:r,prefixCls:o,children:s,trigger:l,disabled:c,dropdownRender:d,popupRender:h,getPopupContainer:g,overlayClassName:m,rootClassName:v,overlayStyle:y,open:C,onOpenChange:_,mouseEnterDelay:x=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:E=!0,placement:S="",transitionName:P,classNames:T,styles:M,destroyPopupOnHide:N,destroyOnHidden:k}=e,{getPrefixCls:R,direction:B,getPopupContainer:z,className:$,style:j,classNames:V,styles:W}=qr("dropdown"),F={...e,mouseEnterDelay:x,mouseLeaveDelay:b,autoAdjustOverflow:E},[X,J]=Rr([V,T],[W,M],{props:F}),Z={...j,...y,...J.root},le=h||d,G=hn("Dropdown");process.env.NODE_ENV!=="production"&&(Object.entries({dropdownRender:"popupRender",destroyPopupOnHide:"destroyOnHidden",overlayClassName:"classNames.root",overlayStyle:"styles.root"}).forEach(([ze,De])=>{G.deprecated(!(ze in e),ze,De)}),S.includes("Center")&&G.deprecated(!S.includes("Center"),`placement: ${S}`,`placement: ${S.slice(0,S.indexOf("Center"))}`));const ie=f.useMemo(()=>{const Ke=R();return P!==void 0?P:S.includes("top")?`${Ke}-slide-down`:`${Ke}-slide-up`},[R,S,P]),ne=f.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:B==="rtl"?"bottomRight":"bottomLeft",[S,B]),de=R("dropdown",o),oe=ro(de),[ee,K]=Bx(de,oe),[,Y]=mr(),se=f.Children.only(Z0(s)?f.createElement("span",null,s):s),fe=tr(se,{className:ce(`${de}-trigger`,{[`${de}-rtl`]:B==="rtl"},se.props.className),disabled:se.props.disabled??c}),xe=c?[]:l,Se=!!(xe!=null&&xe.includes("contextMenu")),[Te,Ce]=Un(!1,C),te=ht(Ke=>{_==null||_(Ke,{source:"trigger"}),Ce(Ke)}),we=ce(m,v,ee,K,oe,$,X.root,{[`${de}-rtl`]:B==="rtl"}),Pe=wh({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:E,offset:Y.marginXXS,arrowWidth:r?Y.sizePopupArrow:0,borderRadius:Y.borderRadius}),Ae=ht(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(_==null||_(!1,{source:"menu"}),Ce(!1))}),Ze=()=>{const Ke=Sn(X,["root"]),ze=Sn(J,["root"]);let De;return n!=null&&n.items&&(De=f.createElement(Nx,{...n,classNames:{...Ke,subMenu:{...Ke}},styles:{...ze,subMenu:{...ze}}})),le&&(De=le(De)),De=f.Children.only(typeof De=="string"?f.createElement("span",null,De):De),f.createElement(Ex,{prefixCls:`${de}-menu`,rootClassName:ce(K,oe),expandIcon:f.createElement("span",{className:`${de}-menu-submenu-arrow`},B==="rtl"?f.createElement(Kl,{className:`${de}-menu-submenu-arrow-icon`}):f.createElement(Ml,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ae,validator:({mode:ot})=>{process.env.NODE_ENV!=="production"&&G(!ot||ot==="vertical","usage",`mode="${ot}" is not supported for Dropdown's Menu.`)}},De)},[Be,nt]=ol("Dropdown",Z.zIndex);let Ge=f.createElement(j0,{alignPoint:Se,...Sn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:x,mouseLeaveDelay:b,visible:Te,builtinPlacements:Pe,arrow:!!r,overlayClassName:we,prefixCls:de,getPopupContainer:g||z,transitionName:ie,trigger:xe,overlay:Ze,placement:ne,onVisibleChange:te,overlayStyle:{...Z,zIndex:Be},autoDestroy:k??N},fe);return Be&&(Ge=f.createElement(rl.Provider,{value:nt},Ge)),Ge},zx=g0(Is,"align",void 0,"dropdown",e=>e),Dx=e=>f.createElement(zx,{...e},f.createElement("span",null));Is._InternalPanelDoNotUseOrYouWillBeFired=Dx,process.env.NODE_ENV!=="production"&&(Is.displayName="Dropdown");const rp=Is;function mc(){return mc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},mc.apply(this,arguments)}const Fx=I.forwardRef((e,n)=>{const{prefixCls:r="rc-checkbox",className:o,style:s,checked:l,disabled:c,defaultChecked:d=!1,type:h="checkbox",title:g,onChange:m,...v}=e,y=I.useRef(null),C=I.useRef(null),[_,x]=Un(d,l);I.useImperativeHandle(n,()=>({focus:S=>{var P;(P=y.current)==null||P.focus(S)},blur:()=>{var S;(S=y.current)==null||S.blur()},input:y.current,nativeElement:C.current}));const b=ce(r,o,{[`${r}-checked`]:_,[`${r}-disabled`]:c}),E=S=>{c||("checked"in e||x(S.target.checked),m==null||m({target:{...e,type:h,checked:S.target.checked},stopPropagation(){S.stopPropagation()},preventDefault(){S.preventDefault()},nativeEvent:S.nativeEvent}))};return f.createElement("span",{className:b,title:g,style:s,ref:C},f.createElement("input",mc({},v,{className:`${r}-input`,ref:y,onChange:E,disabled:c,checked:!!_,type:h})),f.createElement("span",{className:`${r}-inner`}))});function Hx(e){const n=I.useRef(null),r=()=>{qt.cancel(n.current),n.current=null};return[()=>{r(),n.current=qt(()=>{n.current=null})},l=>{n.current&&(l.stopPropagation(),r()),e==null||e(l)}]}const Vx=e=>{const{checkboxCls:n}=e,r=`${n}-wrapper`;return[{[`${n}-group`]:{...Jr(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[r]:{...Jr(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[n]:{...Jr(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Ka(e)},[`${n}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Le(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
202
+ &${c}-slide-up-leave${c}-slide-up-leave-active${n}-placement-topRight`]:{animationName:Uf}}},xh(e,x,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:{...Xr(e),[r]:{padding:v,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Ka(e),"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${Le(g)} ${Le(_)}`,color:e.colorTextDescription,transition:`all ${h}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${h}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:{display:"flex",margin:0,padding:`${Le(g)} ${Le(_)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${h}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Ka(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Le(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:C,fontStyle:"normal"}}},[`${r}-item-group-list`]:{margin:`0 ${Le(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(_).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:y,backgroundColor:x,cursor:"not-allowed"}},[`${r}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}}}},[is(e,"slide-up"),is(e,"slide-down"),Vf(e,"move-up"),Vf(e,"move-down"),Ml(e,"zoom-big")]]},Rx=Vn("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:r,paddingXXS:o,componentCls:s}=e,l=_n(e,{menuCls:`${s}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(n).equal(),dropdownEdgeChildPadding:o});return[kx(l),Nx(l)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Ul({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...bh(e)}),{resetStyle:!1}),Ps=e=>{const{menu:n,arrow:r,prefixCls:o,children:s,trigger:l,disabled:c,dropdownRender:d,popupRender:h,getPopupContainer:g,overlayClassName:m,rootClassName:v,overlayStyle:y,open:C,onOpenChange:_,mouseEnterDelay:x=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:E=!0,placement:S="",transitionName:P,classNames:I,styles:M,destroyPopupOnHide:k,destroyOnHidden:N}=e,{getPrefixCls:R,direction:B,getPopupContainer:z,className:$,style:j,classNames:V,styles:W}=Ur("dropdown"),F={...e,mouseEnterDelay:x,mouseLeaveDelay:b,autoAdjustOverflow:E},[X,J]=kr([V,I],[W,M],{props:F}),Z={...j,...y,...J.root},le=h||d,G=hn("Dropdown");process.env.NODE_ENV!=="production"&&(Object.entries({dropdownRender:"popupRender",destroyPopupOnHide:"destroyOnHidden",overlayClassName:"classNames.root",overlayStyle:"styles.root"}).forEach(([ze,De])=>{G.deprecated(!(ze in e),ze,De)}),S.includes("Center")&&G.deprecated(!S.includes("Center"),`placement: ${S}`,`placement: ${S.slice(0,S.indexOf("Center"))}`));const ie=f.useMemo(()=>{const Ke=R();return P!==void 0?P:S.includes("top")?`${Ke}-slide-down`:`${Ke}-slide-up`},[R,S,P]),ne=f.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:B==="rtl"?"bottomRight":"bottomLeft",[S,B]),de=R("dropdown",o),oe=no(de),[ee,K]=Rx(de,oe),[,Y]=mr(),se=f.Children.only(W0(s)?f.createElement("span",null,s):s),fe=nr(se,{className:ce(`${de}-trigger`,{[`${de}-rtl`]:B==="rtl"},se.props.className),disabled:se.props.disabled??c}),xe=c?[]:l,Se=!!(xe!=null&&xe.includes("contextMenu")),[Te,Ce]=qn(!1,C),te=ft(Ke=>{_==null||_(Ke,{source:"trigger"}),Ce(Ke)}),we=ce(m,v,ee,K,oe,$,X.root,{[`${de}-rtl`]:B==="rtl"}),Pe=Ch({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:E,offset:Y.marginXXS,arrowWidth:r?Y.sizePopupArrow:0,borderRadius:Y.borderRadius}),Ae=ft(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(_==null||_(!1,{source:"menu"}),Ce(!1))}),Ze=()=>{const Ke=Sn(X,["root"]),ze=Sn(J,["root"]);let De;return n!=null&&n.items&&(De=f.createElement(Ox,{...n,classNames:{...Ke,subMenu:{...Ke}},styles:{...ze,subMenu:{...ze}}})),le&&(De=le(De)),De=f.Children.only(typeof De=="string"?f.createElement("span",null,De):De),f.createElement(Cx,{prefixCls:`${de}-menu`,rootClassName:ce(K,oe),expandIcon:f.createElement("span",{className:`${de}-menu-submenu-arrow`},B==="rtl"?f.createElement(Gl,{className:`${de}-menu-submenu-arrow-icon`}):f.createElement(Al,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ae,validator:({mode:ot})=>{process.env.NODE_ENV!=="production"&&G(!ot||ot==="vertical","usage",`mode="${ot}" is not supported for Dropdown's Menu.`)}},De)},[Be,nt]=rl("Dropdown",Z.zIndex);let Ge=f.createElement(V0,{alignPoint:Se,...Sn(e,["rootClassName","onOpenChange"]),mouseEnterDelay:x,mouseLeaveDelay:b,visible:Te,builtinPlacements:Pe,arrow:!!r,overlayClassName:we,prefixCls:de,getPopupContainer:g||z,transitionName:ie,trigger:xe,overlay:Ze,placement:ne,onVisibleChange:te,overlayStyle:{...Z,zIndex:Be},autoDestroy:N??k},fe);return Be&&(Ge=f.createElement(nl.Provider,{value:nt},Ge)),Ge},$x=p0(Ps,"align",void 0,"dropdown",e=>e),Bx=e=>f.createElement($x,{...e},f.createElement("span",null));Ps._InternalPanelDoNotUseOrYouWillBeFired=Bx,process.env.NODE_ENV!=="production"&&(Ps.displayName="Dropdown");const op=Ps;function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},pc.apply(this,arguments)}const zx=A.forwardRef((e,n)=>{const{prefixCls:r="rc-checkbox",className:o,style:s,checked:l,disabled:c,defaultChecked:d=!1,type:h="checkbox",title:g,onChange:m,...v}=e,y=A.useRef(null),C=A.useRef(null),[_,x]=qn(d,l);A.useImperativeHandle(n,()=>({focus:S=>{var P;(P=y.current)==null||P.focus(S)},blur:()=>{var S;(S=y.current)==null||S.blur()},input:y.current,nativeElement:C.current}));const b=ce(r,o,{[`${r}-checked`]:_,[`${r}-disabled`]:c}),E=S=>{c||("checked"in e||x(S.target.checked),m==null||m({target:{...e,type:h,checked:S.target.checked},stopPropagation(){S.stopPropagation()},preventDefault(){S.preventDefault()},nativeEvent:S.nativeEvent}))};return f.createElement("span",{className:b,title:g,style:s,ref:C},f.createElement("input",pc({},v,{className:`${r}-input`,ref:y,onChange:E,disabled:c,checked:!!_,type:h})),f.createElement("span",{className:`${r}-inner`}))});function Dx(e){const n=A.useRef(null),r=()=>{Ut.cancel(n.current),n.current=null};return[()=>{r(),n.current=Ut(()=>{n.current=null})},l=>{n.current&&(l.stopPropagation(),r()),e==null||e(l)}]}const Fx=e=>{const{checkboxCls:n}=e,r=`${n}-wrapper`;return[{[`${n}-group`]:{...Xr(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[r]:{...Xr(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[n]:{...Xr(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Ga(e)},[`${n}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Le(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
203
203
  ${r}:not(${r}-disabled),
204
204
  ${n}:not(${n}-disabled)
205
205
  `]:{[`&:hover ${n}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
206
206
  ${r}-checked:not(${r}-disabled),
207
207
  ${n}-checked:not(${n}-disabled)
208
- `]:{[`&:hover ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{"&":{[`${n}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${n}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:e.colorTextDisabled}}}]};function Wx(e,n){const r=_n(n,{checkboxCls:`.${e}`,checkboxSize:n.controlInteractiveSize});return Vx(r)}const op=Hn("Checkbox",(e,{prefixCls:n})=>[Wx(n,e)]),ip=I.createContext(null),jx=(e,n)=>{const{prefixCls:r,className:o,rootClassName:s,children:l,indeterminate:c=!1,style:d,onMouseEnter:h,onMouseLeave:g,skipGroup:m=!1,disabled:v,classNames:y,styles:C,..._}=e,{getPrefixCls:x,direction:b,className:E,style:S,classNames:P,styles:T}=qr("checkbox"),M=f.useContext(ip),{isFormItemInput:N}=f.useContext(hs),k=f.useContext(pl),R=((M==null?void 0:M.disabled)||v)??k,B={...e,indeterminate:c,disabled:R},[z,$]=Rr([P,y],[T,C],{props:B}),j=f.useRef(_.value),V=f.useRef(null),W=Er(n,V);if(process.env.NODE_ENV!=="production"){const oe=hn("Checkbox");process.env.NODE_ENV!=="production"&&oe("checked"in _||!!M||!("value"in _),"usage","`value` is not a valid prop, do you mean `checked`?")}f.useEffect(()=>{M==null||M.registerValue(_.value)},[]),f.useEffect(()=>{if(!m)return _.value!==j.current&&(M==null||M.cancelValue(j.current),M==null||M.registerValue(_.value),j.current=_.value),()=>M==null?void 0:M.cancelValue(_.value)},[_.value]),f.useEffect(()=>{var oe;(oe=V.current)!=null&&oe.input&&(V.current.input.indeterminate=c)},[c]);const F=x("checkbox",r),X=ro(F),[J,Z]=op(F,X),le={..._};M&&!m&&(le.onChange=(...oe)=>{_.onChange&&_.onChange.apply(_,oe),M.toggleOption&&M.toggleOption({label:l,value:_.value})},le.name=M.name,le.checked=M.value.includes(_.value));const G=ce(`${F}-wrapper`,{[`${F}-rtl`]:b==="rtl",[`${F}-wrapper-checked`]:le.checked,[`${F}-wrapper-disabled`]:R,[`${F}-wrapper-in-form-item`]:N},E,o,z.root,s,Z,X,J),ie=ce(z.icon,{[`${F}-indeterminate`]:c},xl,J),[ne,de]=Hx(le.onClick);return f.createElement(If,{component:"Checkbox",disabled:R},f.createElement("label",{className:G,style:{...$.root,...S,...d},onMouseEnter:h,onMouseLeave:g,onClick:ne},f.createElement(Fx,{...le,onClick:de,prefixCls:F,className:ie,style:$.icon,disabled:R,ref:W}),no(l)&&f.createElement("span",{className:ce(`${F}-label`,z.label),style:$.label},l)))},sp=f.forwardRef(jx);process.env.NODE_ENV!=="production"&&(sp.displayName="Checkbox");const ap=sp,Zx=f.forwardRef((e,n)=>{const{defaultValue:r,children:o,options:s=[],prefixCls:l,className:c,rootClassName:d,style:h,onChange:g,role:m="group",...v}=e,{getPrefixCls:y,direction:C}=f.useContext(kt),[_,x]=f.useState(v.value||r||[]),[b,E]=f.useState([]);f.useEffect(()=>{"value"in v&&x(v.value||[])},[v.value]);const S=f.useMemo(()=>s.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[s]),P=F=>{E(X=>X.filter(J=>J!==F))},T=F=>{E(X=>[].concat(bn(X),[F]))},M=F=>{const X=_.indexOf(F.value),J=bn(_);X===-1?J.push(F.value):J.splice(X,1),"value"in v||x(J),g==null||g(J.filter(Z=>b.includes(Z)).sort((Z,le)=>{const G=S.findIndex(ne=>ne.value===Z),ie=S.findIndex(ne=>ne.value===le);return G-ie}))},N=y("checkbox",l),k=`${N}-group`,R=ro(N),[B,z]=op(N,R),$=Sn(v,["value","disabled"]),j=s.length?S.map(F=>f.createElement(ap,{prefixCls:N,key:F.value.toString(),disabled:"disabled"in F?F.disabled:v.disabled,value:F.value,checked:_.includes(F.value),onChange:F.onChange,className:ce(`${k}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):o,V=f.useMemo(()=>({toggleOption:M,value:_,disabled:v.disabled,name:v.name,registerValue:T,cancelValue:P}),[M,_,v.disabled,v.name,T,P]),W=ce(k,{[`${k}-rtl`]:C==="rtl"},c,d,z,R,B);return f.createElement("div",{className:W,style:h,role:m,...$,ref:n},f.createElement(ip.Provider,{value:V},j))}),Ts=ap;Ts.Group=Zx,Ts.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Ts.displayName="Checkbox");const Ux=Ts,qx=e=>{const{componentCls:n,borderRadius:r,paddingSM:o,colorBorder:s,paddingXS:l,fontSizeLG:c,fontSizeSM:d,borderRadiusLG:h,borderRadiusSM:g,colorBgContainerDisabled:m,lineWidth:v,antCls:y}=e,[C,_]=gr(y,"space");return{[n]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:o,margin:0,borderWidth:v,borderStyle:"solid",borderRadius:r,"&:hover":{zIndex:0},[`&${n}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:c,borderRadius:h},"&-small":{paddingInline:l,borderRadius:g,fontSize:d},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[C("addon-border-color")]:s,[C("addon-background")]:m,[C("addon-border-color-outlined")]:s,[C("addon-background-filled")]:m,borderColor:_("addon-border-color"),background:_("addon-background"),"&-variant-outlined":{[C("addon-border-color")]:_("addon-border-color-outlined")},"&-variant-filled":{[C("addon-border-color")]:"transparent",[C("addon-background")]:_("addon-background-filled"),[`&${n}-disabled`]:{[C("addon-border-color")]:s,[C("addon-background")]:m}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[C("addon-border-color-outlined")]:e.colorError,[C("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[C("addon-border-color-outlined")]:e.colorWarning,[C("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},Gx=Hn(["Space","Addon"],e=>[qx(e),Yf(e,{focus:!1})]),Kx=I.forwardRef((e,n)=>{const{className:r,children:o,style:s,prefixCls:l,variant:c="outlined",disabled:d,status:h,...g}=e,{getPrefixCls:m,direction:v}=I.useContext(kt),y=m("space-addon",l),[C,_]=Gx(y),{compactItemClassnames:x,compactSize:b}=Cl(y,v),E=C0(y,h),S=ce(y,C,x,_,`${y}-variant-${c}`,E,{[`${y}-${b}`]:b,[`${y}-disabled`]:d},r);return I.createElement("div",{ref:n,className:S,style:s,...g},o)});function lp(e){return["small","middle","large"].includes(e)}function cp(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const up=I.createContext({latestIndex:0}),Qx=up.Provider,Yx=e=>{const{className:n,prefix:r,index:o,children:s,separator:l,style:c,classNames:d,styles:h}=e,{latestIndex:g}=f.useContext(up);return no(s)?f.createElement(f.Fragment,null,f.createElement("div",{className:n,style:c},s),o<g&&l&&f.createElement("span",{className:ce(`${r}-item-separator`,d==null?void 0:d.separator),style:h==null?void 0:h.separator},l)):null},Xx=e=>{const{componentCls:n,antCls:r}=e;return{[n]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${n}-item:empty`]:{display:"none"},[`${n}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Jx=e=>{const{componentCls:n}=e;return{[n]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},ew=Hn("Space",e=>{const n=_n(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Xx(n),Jx(n)]},()=>({}),{resetStyle:!1}),As=f.forwardRef((e,n)=>{const{getPrefixCls:r,direction:o,size:s,className:l,style:c,classNames:d,styles:h}=qr("space"),{size:g=s??"small",align:m,className:v,rootClassName:y,children:C,direction:_,orientation:x,prefixCls:b,split:E,separator:S,style:P,vertical:T,wrap:M=!1,classNames:N,styles:k,...R}=e,[B,z]=Array.isArray(g)?g:[g,g],$=lp(z),j=lp(B),V=cp(z),W=cp(B),F=qn(C,{keepEmpty:!0}),[X,J]=Kd(x,T,_),Z=m===void 0&&!J?"center":m,le=S??E,G=r("space",b),[ie,ne]=ew(G),de={...e,size:g,orientation:X,align:Z},[oe,ee]=Rr([d,N],[h,k],{props:de}),K=ce(G,l,ie,`${G}-${X}`,{[`${G}-rtl`]:o==="rtl",[`${G}-align-${Z}`]:Z,[`${G}-gap-row-${z}`]:$,[`${G}-gap-col-${B}`]:j},v,y,ne,oe.root),Y=ce(`${G}-item`,oe.item),se=F.map((Se,Te)=>{const Ce=(Se==null?void 0:Se.key)||`${Y}-${Te}`;return f.createElement(Yx,{prefix:G,classNames:oe,styles:ee,className:Y,key:Ce,index:Te,separator:le,style:ee.item},Se)});if(process.env.NODE_ENV!=="production"){const Se=hn("Space");[["direction","orientation"],["split","separator"]].forEach(([Te,Ce])=>{Se.deprecated(!(Te in e),Te,Ce)})}const fe=f.useMemo(()=>({latestIndex:F.reduce((Te,Ce,te)=>no(Ce)?te:Te,0)}),[F]);if(F.length===0)return null;const xe={};return M&&(xe.flexWrap="wrap"),!j&&W&&(xe.columnGap=B),!$&&V&&(xe.rowGap=z),f.createElement("div",{ref:n,className:K,style:{...xe,...ee.root,...c,...P},...R},f.createElement(Qx,{value:fe},se))});As.Compact=rb,As.Addon=Kx,process.env.NODE_ENV!=="production"&&(As.displayName="Space");const tw=As,dp=e=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=f.useContext(kt),{prefixCls:s,type:l="default",danger:c,disabled:d,loading:h,onClick:g,htmlType:m,children:v,className:y,menu:C,arrow:_,autoFocus:x,trigger:b,align:E,open:S,onOpenChange:P,placement:T,getPopupContainer:M,href:N,icon:k=f.createElement(Gh,null),title:R,buttonsRender:B=xe=>xe,mouseEnterDelay:z,mouseLeaveDelay:$,overlayClassName:j,overlayStyle:V,destroyOnHidden:W,destroyPopupOnHide:F,dropdownRender:X,popupRender:J,...Z}=e,le=r("dropdown",s),G=`${le}-button`,ne={menu:C,arrow:_,autoFocus:x,align:E,disabled:d,trigger:d?[]:b,onOpenChange:P,getPopupContainer:M||n,mouseEnterDelay:z,mouseLeaveDelay:$,classNames:{root:j},styles:{root:V},destroyOnHidden:W,popupRender:J||X},{compactSize:de,compactItemClassnames:oe}=Cl(le,o),ee=ce(G,oe,y);"destroyPopupOnHide"in e&&(ne.destroyPopupOnHide=F),"open"in e&&(ne.open=S),"placement"in e?ne.placement=T:ne.placement=o==="rtl"?"bottomLeft":"bottomRight",process.env.NODE_ENV!=="production"&&hn("Dropdown.Button").deprecated(!1,"Dropdown.Button","Space.Compact + Dropdown + Button");const K=f.createElement(as,{type:l,danger:c,disabled:d,loading:h,onClick:g,htmlType:m,href:N,title:R},v),Y=f.createElement(as,{type:l,danger:c,icon:k}),[se,fe]=B([K,Y]);return f.createElement(tw.Compact,{className:ee,size:de,block:!0,...Z},se,f.createElement(rp,{...ne},fe))};dp.__ANT_BUTTON=!0;const nw=dp,fp=rp;fp.Button=nw;const rw=fp,uS="",hp=({isRollMap:e,setIsRollMap:n,rollIcon:r,normalIcon:o})=>ft.jsx(Ph,{title:e?"切换为普通地图":"切换为卷帘",placement:"left",children:ft.jsx("div",{className:"switch-map-mode",onClick:()=>n(!e),children:e?ft.jsx("img",{src:r,alt:"卷帘模式",className:"map-icon"}):ft.jsx("img",{src:o,alt:"普通模式",className:"map-icon"})})}),pp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAHj0lEQVR4AezajXFTORSGYZxKTCWbdGCoYLcSoBLoAHeQbCWkEry6O5NMHIfY91q6OpIexhr/RD/nvJ/eMWS4+eAPAgj8kQBB/ojGDxD48IEgbgEC7xAgyDtw/AgBgrgDCLxDoKAg75zqRwg0QoAgjQSlzDoECFKHu1MbIUCQRoJSZh0CBKnD3amNEGhTkEbgKrN9AgRpP0MdFCRAkIJwbd0+AYK0n6EOChIgSEG4tm6fAEFeZegtAi8JEOQlDa8ReEWAIK+AeIvASwLFBdntdtvdbne7MzAocAdeXuYSr4sIkmTYfv78+funT58Om83mVxr3xgaDTX4G6Y79mu7adOeaECQVeptk+HU4HP4uUXDDeyq9DIHtdNfSnbtPdy/7ncv+DTIVWoaDXRF4l8A23b0vSZLtu7Nm/jCrIOnr7n7m+aYjkJPA9ubm5kvODbMKkgq7TcMDgWoE0l+3st7BbILk/mqrRtjBrRP4/7emuZrIJkgqKOvf/dJ+HhcTMLEUgZyClKrRvghUI0CQaugd3AIBgrSQkhqrESBINfQOboEAQVpIqWaNg59dVZD0O+uvadwNOP6Ze+8SI6zmQsswv6ogqf5/9/v9w36wkfp+TGPuA6u5xDLMry1IhhZsgUA5AgQpx9bOHRAgSAchttpCC3UTpIWU1FiNAEGqoXdwCwQI0kJKaqxGgCDV0Du4BQIEaSElNc4lkG0+QbKhtFGPBAjSY6p6ykaAINlQ2qhHAgTpMVU9ZSNAkGwobdQjgVNBeuxSTwgsJECQheAsG4MAQcbIWZcLCRBkITjLxiBAkDFy1uVCAqsKsrBGyxCoRoAg1dA7uAUCBGkhJTVWI0CQaugd3AIBgrSQkhqrEehFkGoAHdw3AYL0na/uriRAkCsBWt43AYL0na/uriRAkCsBWt43AYKczdeEkQkQZOT09X6WAEHOIjJhZAIEGTl9vZ8lQJCziEwYmQBBaqbv7PAECBI+IgXWJECQmvSdHZ4AQcJHpMCaBAhSk76zwxMgSPiIlhVoVR4CBMnD0S6dEiBIp8FqKw8BguThaJdOCRCk02C1lYcAQfJwHGmXoXolyFBxa3YuAYLMJWb+UAQIMlTcmp1LgCBziZk/FAGCDBV39Gbj1UeQeJmoKBABggQKQynxCBAkXiYqCkSAIIHCUEo8AgSJl4mKShBYuCdBFoKzbAwCBBkjZ10uJECQheAsG4MAQcbIWZcLCRBkITjLxiBwiSBjkNAlAm8QIMgbUHyEwBMBgjyR8IzAGwQI8gYUHyHwRIAgTyQ8I/AGgcqCvFGRjxAIRIAggcJQSjwCBImXiYoCESBIoDCUEo8AQeJloqJABPoVJBBkpbRLgCDtZqfyFQgQZAXIjmiXAEHazU7lKxAgyAqQHdEuAYIsyM6ScQgQZJysdbqAAEEWQLNkHAIEGSdrnS4gQJAF0CwZhwBBYmWtmmAECBIsEOXEIkCQWHmoJhgBggQLRDmxCBAkVh6qCUaAIMECKVeOnZcQIMgSatYMQ4Agw0St0SUECLKEmjXDECDIMFFrdAkBgiyhZs0xgY7fEaTjcLV2PQGCXM/QDh0TIEjH4WrtegIEuZ6hHTomQJCOw+2htdo9EKR2As4PTYAgoeNRXG0CBKmdgPNDEyBI6HgUV5sAQWon4PxaBC46lyAXYTJpVAIEGTV5fV9EgCAXYTJpVAIEGTV5fV9EgCAXYTJpVALLBBmVlr6HI0CQ4SLX8BwCBJlDy9zhCBBkuMg1PIcAQebQMnc4AuEEGS4BDYcmQJDQ8SiuNgGC1E7A+aEJECR0PIqrTYAgtRNwfmgCIwkSOgjFxSRAkJi5qCoIAYIECUIZMQkQJGYuqgpCgCBBglBGTAIEyZKLTXolQJBek9VXFgIEyYLRJr0SIEivyeorCwGCZMFok14JECR6suqrSoAgVfE7PDoBgkRPSH1VCRCkKn6HRydAkOgJqa8qAYJUxV/3cKefJ0CQ84zMGJgAQQYOX+vnCRDkPCMzBiZAkIHD1/p5ArUF2e52u9vdYCPF8lcacx8tscqWaYK0hFValudRVZDNZvM9jfsBx9e58SVGWM2FlmF+VUEy1G8LBIoSIEhRvDZvnQBBWk9Q/UUJEKQoXpvnJ7DujgRZl7fTGiOQU5DHxnpXbr8Est3FbILs9/tsRfWbm87WIJDzLmYTZGo8/a7+x/RsIFCLQO47mFWQ379/f6sFxrkITASuuoPTBq9GVkGmr7bD4fDPqzO8RWANAo/p7t1NdzDnYVkFmQpLBf5IhX5MY/Z/p5jWGwjMJDD92/fh58+fH9Pde5i59uz07IJMJ6ZCH9P4loreJFEmWe7Ss3E4YJCZQbpjH9O4m+5diVFEkJeFJlEmWR7Ss7HfY5CZwcu7VuJ1cUFKFG1PBNYikEuQtep1DgKrEiDIqrgd1hoBgrSWmHpXJUCQVXE7rDUCBGktMfWuSqABQVbl4TAEjggQ5AiHNwgcEyDIMQ/vEDgiQJAjHN4gcEyAIMc8vEPgiMDYghyh8AaBUwIEOWXiEwSeCRDkGYUXCJwSIMgpE58g8EyAIM8ovEDglABBTplk+cQmfRD4DwAA//90pefjAAAABklEQVQDAHXI/gmG3IivAAAAAElFTkSuQmCC",mp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAQAElEQVR4AeydjV3cutLGgUYuVHKgg5AGTqgEUgncBpLTAZxKyNtIeJ+/YnH3e62RZMn25OeJd72WNHo0j2ZG8i5XF/6vOQJfvnx5vL+/f5V8SN4lr1xrrpgrcOEEaWgEIsE1ZLi8vHySGrcSjmv9d8s1ffaue+J1XfZjagScIFMjPrQnw78WCd719hQBuOeZe3WfHw0QcII0AJ0mRY5nziMkkGTEfX5LBQScIBVAPVelPMI33XPKc+jjreNWZVLu3yrsb+wIVCSIXSkveRCBvw5e9YtVEXCCVIX3cOVXV1fJxq4yJO+HK/Sr1RBwglSD1iteAgJOkCWMovehGgJOkGrQesVLQGCeBFkC8t6HWSDgBJnFMLmSrRBwgrRC3tudBQJOkAmHSZt915Lbj4+P5CVbylBWklx2wi4uriknSOEhxYAl3ySPX79+fb7/85QuT+h+XF5evkte1aRlV5wHGF9VPtSlejm/0gai9mjTUq/U8eMYAk6QHWRS3soog0fQ+fNxdQxY8ix50qwfHympMetTJ97oG+2oPdrkkflP4kgv2k/pkt+7g4ATZAeQc29ldJACQuANEGb1zcfVz1VR+/NP4kAaeZrwHZPBy7iHSUTfCXIGsEgInSFFDJMgBIZ4pnQ3H18PXiZ4mIEs7l1GDI8T5AhIEAJD0iyMl3jSGVIcuXtWlyNZyI9COKa+OlmODKETZAMYGUoMn/AUMYfYuGNxL/GCJP+BLOr/o8TDsI1hdoIIDBkF4RO5RPAWulTj6L1OvpiFpwxhmDBxr6IRWzVBZAQQI3gLYeEzp0AYDsjy6VWGa6s8rZIgO8RY5cCP7DREedJKGD8e8TiyzKJuWxVBnBhm210tUVZBECeGmRi7BVdHlEUTRMTY/N2p3cFe0PvJu7JJFFbCJldgqgYXSxCR41F7F+d+d2oqnJfaDkRZ9K9ALo4gIsYtSaXI0cPG3i/p8aJdbPZUHnS++/nzpy5dvqQyRoWo54Y6JNTFkiz1vKXWVfh+SLLYRH4xBBExYjjF07It3P4mGQIRRIabHz9+PPzzzz/fJS+SLGNW+V+SNwl1fadutXEnwkAc5AEiiQBZ7ai85QhE4ekDxsJSQY9lFkEQDQi7wS3CqTcZ55OM9FKySYZJDVSEgTjIyw5pImEmsz3h8U0kJexaxL7S7AkicpBr4DWmMIJfMoAQLokQkOJOxvl9ioZT25Ben4SRzpveJa0q2914E35TePZ7J7MliIgRQ6opcg2I8SBS3MjwQrhks5s2paTzHlmkSW0vB0nITfAmLUJedTH/mCVBRI4pQipIgbe4GYhBQpyPeOMaIlnUp5i71J5gGCtIMsuQa3YEETlCjFvRzgIxZEDRW/yq2FbTqgeyfI8hmJSp1Ve8ySxDrlkRROQg3xj7ZwM03knHFjGSSs785oEoLCPjVR7UnRpEgSRPjKHqn80xG4KwfKjVkRrhwGqJsWulUxCFMYwk2W2/x/ezIIg2/l4VBhT/foLqZIk2hFI9Dk4rnXaIUnxSgiRMeK36l9Ju9wSBHOpQ6QSP/QsnhoA9dQxECTmKjLroIoUmp28aW/auTqnQ/LNuCSI3HJZxhVBJchBOsVzL/kWNOFvqLu+AKGxAyqhL5yeMMd816XYZuFuCaMYiGS9GDg1uDKeKzoTLo8PxHokoMZEvGXaRvE+10Xu8c0c+6ZIgcr0AVpIceIxudrx///49W+8lkrDpSNhVlCQa85Lh1hFzT7/cHUEEVElyEFKRa9TeNU5F/t/UAiJVcpnUNlLuF1EgyY3KlCL7dY+Je1cEGQAq4jkUor0Mm32lBlC2UOyw6NQbyS9EEiYg9k6KeBOFwfy+cFfPb3VDECXljwBUwgRVzwNJZYm6atQxGNZoo1J/nihTQ5fcOtFLgjcZ3Z9TbWpi62ozsQuCiBw8PlIEYBkT+cYcEvH/ylDGeAW+/9FN/iSdDx4DSQi5Dn6ecrEnkjQniMjBw2ysWKVgeOje4O41UGOM7lD5Sa9JT/QN3ww81rDIzsrb3bHPe7s+9AmSWELIre6IJIRbRcLtrYoT3+wTJLGC3NsFRCly8M29WZAjYoZBSQhPPr+vASkGYXGhe88R+xLP6g/Eh9S5JGH5lwccm+6RNCXIsGKVC8CvIRmfFTmiQXHGqCTh24A6830TJNfAqLqJqA9FSdKkE0OjzQii0IrVilwXGsgx9MVPHSGwQZLciet2sJUmvWtCEHWYvCM3KXdyNDGZ8Y0OJMl+PEVheLN8ZHKCiBzElmwGjkd6/05cOMDvf+JXukJgIEluToLNNMlHJiUII6fZIDspVxI7u4Scvq9VNkiSA0EgSU4FlrKTEkTeg5wDsegayogc7HPkxrWhLv9vOgQGkrAEnNMo+UiW/aQ2PilBcr2HkyN1ePu6fyBJVmica0OpiExGEHkPVq1ylnTZUXbPkTrCnd0vkvDIfM4CzaQPNU5CEJEjd9XqTXsdJHqdDberY0Rg7GM2B6tXJDFZqDUJQeQW8R4HOzvmogA5t6M8phq/pxME5EVyVyEnS9irE0Tegx9bMCdWIocn5Z0Ydkk1SpBksK2Sau3VVZ0gOd5DZfkVc8879oZtGRdEkhfG2Noblc2KTMa0W5UgA8PNiXnP3+kYA67fcx6B379/Ez5bnzu7HmzsfEPGO6oSJIfhhFbGPnmxGSEgL0I+AklMWufY2JgGqxFkYLbVe3S0pDsGRr8nBwGRhC+4WUPpql6kGkFymC3vkbWZlDNYXrYNAjljnmNr53pbhSA53kNAdfv963Ng+ud2BORFCLWsE2M1L1KFIBmMDr+5ZIfZS84cAcIsJLkbGTZ3sq3iBMn0HuZk7WQv/cNZIDB4EXbZLfpW8SLFCSIm/23pncrgPUjW9HIlh3fzEAJ4EOTQZyevZdje0XqLEkTeg1Ur0665cg/3HkeHaT0fZHqR4s9oFSXI1dWVdWfTvcd6ODCmp3gQZMy9W/fIBq0RzFY98U1RgsgLuPeIyPrZjECOF7Ha4DFlixFE4RUPJRJiHWvr6HUB4rnHUXRW+4HJgwgtknXTRK2ye0cxglgTJJVzcuwNS/6FudegSZN9EdMXq2RT1lB/D7ZiBFHNJtYOD6upuB+OwB4C5iXfvZqMF4oQZAivklUQ03mc3fokZ3J7XmBeCOBFpLEl1CoWZhUhiFYO/lJHkg95j67+KExyB7xAdQSUdJuW/zX5FgmzihBEnTCFV5ohPP+obmKzb8AaYZgWjHbRyibIEF4lKyOGOzl2R2Me7yfVUpPoL6OtFAmzsgni4dWk9rLKxhSKW5N1U+i/CXI2QTy82oTTX1dCwBRmyfOwN5elUjZB1LqHVwLBj3oIEGapdutqVrJ9qq3PI4sgQ/7xWdnYF3KZvno1Fiy/LyCgSMUaZrUjiDT/j8RyWGYDSzteZlYInFTWajNZeUiWB1GCbmLn4DJPouEfOgKbCAw2k0wS5SGmLYjYdhZB5PaSG5fCvrwb0ddZYSrLkY86P379+vU5it43+6tKUmtJh2kSjwBkEUSVJDfu+cfFhYz/FiLc399/aMJ4lzwhmnC+RdH7Z8mr7nnnXpXJXpHReM36EDbJHkQdZgJKnshVLhxmgmQMmKWTQdm5/yfMrjF4DF+DPdbgr7lXZZ4pqzrMgz13/KT/5Is7ZoJIWVOCPsSSKr6uQ8b9KiN/V6+Tva7KxINfNX8VSYo8ZxQrndHZtB+i/v11of8sh5kgxgR9dd5DxozXeNXgFJv5RbQnEe6dulXvao5hck22IaOtBlzNBJHbT54JNbDWGSAoO7f/MGD1Ga9RjBwbGERvkjwOG3XM7qXwTLYhi61GYMwEUQXJA6MEPblzame2hwYz+y/6nul8IMmZexb1sdGGkm01gjYpQdTo/0lWcSgEKhpWnQBt0r/Zd0KPqT6y2FATglgAWYUHUWhFSIVYMEouoxBiTXsmJhvSmJhIMsaD7A2YGrMOvqlzewp0fkGh1eSrTGqzdjjXC+pWGypDEBk/Gyt7O7tsVkXRYJgMQKsJW7vFsb5zZ+nEDGnq4NSjiq5q0zqBqKj5YNxatJussDBC15M2dswmsKHkBlUAmz1WJ9elEza2h9+nB9ENYTlSFR3c2cWNR1F7exXp2tkjlk89S6ewqywdTcQ8q1jBGzSAWQ/H5aginLrHhzGUnmdt7JSNGDG6PVWndAo2ptxxa/k8EERK3+qGWsuRxv7sFWPFJqz/733S0QUGoaE6XXtZGR+bpabfupoQU+yMzdjgBAJBRI7uZ54NgIJ73njfzUtNNGMfH6mlM9iEga3VgLVeYYONdanbgT5BkpDTXUlxBrWR4gdUG3FJhD4YL44ouoZbmoV4x8CVjWFwvXuOXfWZbL4pZL7qDtBdTQ+8J5RADnzU9JLp+bSmGk/T+Kwm4AiJJuK/rxQzz1J5daI7Y9Rs05y0Peigsdk6pNMcJ2H6cB1yEF7NTQR6c2OcG2at9DU+HtJK3c12A0GsGy+bFU3+WqBP/t2Ac52UTs2x7EGHAzh1N1YHdNy7pBDrhRDL+msRexVOfOH0Y88TK9NRc5ZnlWqr33zisHRQk82/hFgYGmKpo0kZ5U1Pw3cDmrR/otEeZsrujJGxYsxO4NbjR2/S++VK//GHSh561PCITvw9Q9Mvfh+pr+Tl5sap8ex1siNS6VW3PRsQoYON4UEuBCokuSHm2ruzowtS+unnz583Ham0pQo46kIzI+h5/MBG4/cg6X0/5E063kjfMI6BIBrUQJIfP37QgTvd8ADYp4QyqXKqvmOfSZenQVA6sDq13Snvl67NdFTMzCw9ZXeT2pLRBe8vjG4kZ23smE0kNfq/m9+O1cd16YOd3WkCvkPPWOyTIPGCPgyxF2Q5JtaBULnvx+o8dl36fB+kefgSMTp1lq7MPMip22p8xri1aDe5L8IIorwcG/Nz15MbVAER4KTtSSfsbA+/PYKorjGH1VhXsXfBYIwBseQ9Ldosqf/Yur58+WLd2DbZrIkgYpupMYGwCoIIH+LYKWPt2XgP2UDuYbIhjYnJZk0EGXpoabC7x0OGvtQ4kQ/suewKDb0RN1eot9cqLTZksdXQ/0kJomTI6h6DsnP6jxlLYQ/L5+bBGdFfVh9pY8Sty7jF+IiReQzMBJGxmxtdxlCd78VAkjvdORYr3Tr6+CXPwcpejbpHKzH1jZp0kifZHFs1E0QrUpaBMcWPUw9CyfYiSTSwJXMSwqpu94NK4negrmQbMtpqaNpMEJW2PFbBl1CSZwC1NesDkki+iyQYdU5eQkgV1upnDYhR+YwVLPPzaTkEsXgQoJnrdwPQPUtEEsKiz43YkZWBM6tiD0NIlUOwkU12e1uy9xh6YsbMTBAGW40zeDqNPxQPrs6D7KIj7MImGR5FEgijM38j5EX4vPB6ELzFjYjB7u7q//CQEnTT5Cq8k+00jpmZIEMFloats8DQ5HJODJyEPYwXnT93enk9iHnm20dp/lc0aSRPVc4e5QAACo5JREFUrkw4OT3PIogUtgygEyRnxNZdNtl2chJ0oM4iiCqwJOr8CTJ+SUXF/XAExiGgBN1qM+YEHc1yCWIJsS7k9v6mcRdHYCwC1vxD9VuiHBX7c2QRRHEyBLEokOwq/6jr/68VAYXzJg8y2KgZtiyC0KoUNxFELjM54aI9lw4RqKySbMVEDkUq2St/2QQRNqY8RC7TwyyB58d5BGQrpuVdJeg8MHq+gRN3lCAIYdaJJg5/JM/jHuQwNH51BwGrrSi8skQ3W61nE0RKQBCLIqt87GQLfX9zFoEhvErOWUuEVyiXTRAqEcNN38NWJ/jFb6pwcQQOIiAbMYXiCq9Mof+uEkUIokrxIjolH7eaITzUSoZtPQXUU6t9WKIaNbd9FCFIRph1oQTMNENsd8PfLREB/jSapV/yOjy6Y520t5osQhBqtIZZKmedIWjWZcEIWG2jVHgFtMUIosqsjCVZN61zq00/FoqAQm9sIjk5Bw5FNNn7H9SDFCOIlOLLPKZvzcklerLOaLh8ImC1CZUrRg6UKUYQKpNYN2bciwg8P/4gkOM9FF6NXVH909iZ/4sSBC+i9kyrB2K+exGB58cFD7OabEE2VCw5vxj+FSUIdSqxci8CEC4mBDK9R5G9j03FixNEleNBTAm7ZgDTzKE2/VgIAjk2oAimaP4BpMUJIiVJ1q1xILmIk4SRWaHIezD2ppUrRS5VfkCvOEGGcc3xIvwNdBNIQ9t+miECIkfW31LXxFzcewCjjSCUPCFSNsuLyM0+n6jeP1ogAjljXst7AHMVglCxxOxFVJZntNgo0ks/lo6AvAdjbX6iQhNyFe8B7tUIIqVzvIh5qY9OucwLAXkPcg+T0jW9BwpVIwiVS3K8yLX1YTW168dMEBjG2JxzaiKu5j2AsCpBpHyWF9HsQMKO+0VXl4UhoNDqljG2dktlq6xcbepTlSA0JJLAcDwJb8/K7g24XwFpnmF26/P3fSDAmGpsXzO0Cb9ImVF+VNHqBEGLTKaz/JcDJCq4dIaAyJG1Uimbsu61JSExCUHkRQi1TE/6Dr3xfGQAYgmn+/t7JjzzqpXI8SSbMkclKRhOQpBBIZ7RMj2CQnmBQj5iXu2gDpf2CCi0ghiIVRn+hPQk3gMFJyOIGI8XyUqq5JYhSQ649NmlEQKQQ2OI9zBroIkyy4ZSG56MICgmkuAWEd5ahHzkGaANhb1IQwQYs1xySH0S8xz7URVpx6QEQbVhBjCHWqojksRXtgTGHA6RgzHL8hzqZ/jrXDpPekxOEHkRQq27zF4GwAE+sx4vXhkBxkieI2vFChWHiZWXk8rkBKF3A0lyVrWoJpCEFy79IjCQIytvFDkmW7XaRbIJQVBCJGElIjeevNaS4TuzFHW69IMAY6KxIazKIod6RN6Brejl9EczgtBVzQysSOTkI1QTPAkDwps2ktcqukseEZ5N0pnVutnmWNKfMSGsyiVHk7xjczSbEkRepEQ+Qn8YkFcGhjdzEun8qDDkXfKEaNL4pvOzhP7Mbt9H/WEs3jUGueS4EBZMoKqq3dGUIHR7IEkJIBgYjCp7YNBrCiEEERGO5WL050n3YGxTqJPdhshxq/4U0RdyyDZyQ/DsPjUnCD0QEC8C5JihcMtYwajYJ+l+5pUxoeMYMs/ie/rqD56PnGPsWB29D1vAJo7eMOEHXRCE/gqQ7wDD60yBJE8aMAwws6o6xaVb0HFs7ZqVyUnGkGlslUXvI2+SjuQc2fWqHn7bqllSvtuBbggyKPbfQiThG4khPMEYh7p7Oo039j9ak7Ajf9518j/YKgR81ZiV+s7O248fP0qE28UQ6oog8iKsaPFQY6nYk5mavKQrb3J1dWX5m3v/KTbqBSoSOWK+kUr2Y62//fz5M3cD+Vjd5utdEYReQBLNSMwiJUnSdchFv8+JSNWFBxExQk6kUKhIvjH0u0tyoFt3BEGpDZLgUbiULRrQGHJ15U2yOzZhBSJH8BpgWbDZ5nsdp/rSJUFQeCAJLreUJ6FaQi6IQtjVxYyMUr2LiMETC68iRkmvQbfxHDe86FW6JQiADSR5UMhVYgmYKqMwE0KSVXuTCMaps8gRNjJ1T6lcQ1WFA3IwAYY3vf7XNUEADZLoXGx1S3XFI3oTnuVyokRUhjPE0ApV2OEfLhU7yRO99JiQH+pg9wRBaUgiKbVPQpWb4kTZQGOHGMXDUKKB3pZyN7q/93IWBIlaVyQJTayaKLWJAcAixwNjyOu5yKwIAqgALKBJ7IqtcFHvhmwRRYZTfBbdaKvpS/omeVQo9aGwhzyvVl/DQ6kaO34jrWmfUxufHUHooIAOgIsoDCqXakggigznXQZEQl9qt7iGrkl1ihTfhsdDquQYFxcXm/qQjN9ozEquRm7WX/X1LAkCIgI8/PxLZZLQFMKq17OI8o5hYWBcnJNIZ34xP3qLZ+FWnfBq42kuyfixsZwtQWKHRBSS95ohV2yK87UGnadWuyeLCBF2vCG0iE0IxT5GTY8LPlGCh2ds4oW5nmdPEIDXQIQBkfFOZQA0u0mWDxnhp3eRcZbeM6C9k6I2AyF0jl4ihE/CpLqn2FFs1iHVTl8uFkEQOgVJJHgTNp9qJfA0dUw+CaO85RXCSF6ZwREZbnhkXWdzIkxZCaESdT1SL21I8BCBEGp7ykliE4swSc09pNrsEK8XQxA6g4gkb5o17yStDAU1EIgQft5fuoSwTMZLmPPOe25IEcqoPCSgDr6S+8Q11TG5t1KbW4f0INeYKBHfarr6m8URBMREkpjAk5vMcvWEfsxA8BoQo5svOJXGbJEEiSBBFFw+M5yutQi71OwiD4gRvcaicV00QaJpiighN3GiRETM501iLNZrbKKzCoLQYZEkhl0xP1n0zEefC8rqiBGxWw1BYoedKBGJUed1EeMAJKsjSMRghyglv+Ibm5jzefXEiIO3WoJEAAaihO8nKEe5kbReHo6qTX0OpFD/b7SwseiVqRRgV0+QTbAGspDQQ5S1eJVAjEgKMNjEZO2vnSAHLAAjkWx6lQdt0s3uUe0DXePSL/oiT8Ey7WUkBh+47CPgBNnHZOuKiMLq1wvfgpNR4VniKticNiCDl5D+dxCCvqhfq1im3RpMw5tSBDE0Pb8iMirIEv5ehQwNokCY+KMSvRCG5Wset+FRFAjx6SWkfy86zmbwnSAZQyWDgzDht2QhjORSs/QnaQhlVD1GidHqZdGDOt9oQ21Chgfal5Bk30m37xLaLtro2ipzghQecRnlJ2kIZWSwzOIYbSQPTxtbDBevQF14BIQ672hDbUKGpeRIhUckrzonSB5+SaVlyJCHWZ/ZP6msPEUom1TIb85GwAmSDaFXsGQEZkCQJcPvfesdASdI7yPk+jVFwAnSFH5vvHcEnCC9j5Dr1xQBJ0hT+L3x3hFYN0Eajc7v37+Tl3lV5t9G6q66WSdIm+G3GHsyqdp0bVmtOkEajKc2DNlJR8a2zvNfKfePrdfvO4OAE+QMQLU+/vj44Psmo6pPuXdUhX7TaAScIKOhKnujvAiPoPO7XadCJ+7hwcNT95RVzGvbQsAJsgVHuTdjahpIwmPzfM03hlCQgQcT+UITX32N18dU6fcURuD/AQAA//8CxurwAAAABklEQVQDAHaQEGrigLbJAAAAAElFTkSuQmCC",gp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOcAAADICAYAAAATDvbDAAAQAElEQVR4Aexdi3ncNhOUVYlcSewOzq5ArkRKJXIaiNOB9FcipxH5n4GxDMR78Y5YcEGOP8GkeCS4O9jh4LFH3d7onxAQAiEREDlDNouMEgI3NyKnokAIBEVA5AzaMDJLCIiccWJAlgiBdwiInO/g0C9CIA4CImectpAlQuAdAiLnOzj0ixCIg4DIGactZEkcBEJYInKGaAYZIQT2ERA59zHRESEQAgGRM0QzyAghsI+AyLmPiY4IgRAIiJypGfSfEIiHgMgZr01kkRBICIicCQb9JwTiISByxmsTWSQEEgIiZ4JB/8VBQJYYAiKnIaGtEAiGgMgZrEFkjhAwBEROQ0JbIRAMAZEzWINcas5ut/u02+0evn79+vTly5dXFu7j2D3Kp0vr0/lxEFienHGw6MYSkO4O5QFE/PXhw4dnlMdfv37dw4E7Fu7j2BPKM8555bk4rp/OEBA5O2owkoxkA+leUR4nmn7Hc3ldVlSp6UTglj5N5Fy6Bc7cH4QsVZKEpDqeuergx3dZUaWmB+GJd1DkjNcmNwUhqZAsJGVNS6WmNdF0qkvkdAL2mmqNlOiGGiGvVcmpt3+vpphYog1TL9Z5vgiInL74nq2dZEDh5A4JyVJbJc/akE9IaooHw7PGphmRhTci50INAEKmsSTIYIT0VsmpnkpNpyLlfJ7I6QxwWb0RkjOnBSnLU6Ltj9WUyzXRbFytPSJng6YlKdlVLAgZRSWnem9qmhId4M8DSm8+TPU1xnmwQuQECB4/DF4UjiWZKPDKZQyP+yxQp6lpykaCj1JTp0YQOSsDi2BNqXSFSla+Q6jqSNSkpuwZwHclOFRsHpGzApgIyjS5g7EkVdJS6SrU3E0V1u21BAepaYWmEzlngAhSstvK2VaWpZZAZnjgcqnUtBKsIueFQIKQ71QSl1eZGEE9a/sZq+nD2hz09kfknIBwQUgqJItUcgJuxSlU00d0+181Ni1QObMrcp4AyEhZTO5IJU/gNeEjqekEkOwUkdOQyFsjJJ/yBSnzp9pUREBqegZMkTMDZKQsCCmVzNg4b/bUlG3hfM+T1Uf5cNPkZBCgaMY1SjTe3CQ1xQPSku83vSSzSXKCkHecmEAQ2OSOVPIm1D9T05TggPbaZLrgZsiJBi6XQNaUTheKVQ7GmJoyXfAZ7bgZNV09OdmYI5V0iB9V2QiBT+jtlGq66nTBVZIThCxV8ulM0nmjuNJtKiJgarrqdMFVkROk5OQOXxVpY8mK8aCqgiJAoiY1ZQ8JMbAaNe2enGiMUiWZubOaxglKhqhm2SSSqWn36YJdkrMgJBWShaSMGjSyqz0CVNPu0wW7IqeREpMCRkgtgbQPfM871q67azUNT04jpNLpasft5urrTk3DktNIKZXcHIm8Hd5TU8aa902vqT8UOQkSCmdc2W1l0VjymlbVNVMRSGoKAQiZLhiCnCCk0ummhpPO80DA1DQtySAeQ6QLLkZOAHC32+2oknzvjtLpPEJOdV6DgKnp4umCzckJUt5zsRhdCXVbrwkdXdMSgUXTBZuRE6Q0lVQ6Xcvw0r1qIGBqagkOTRJd3MkJUn7KyyCa3KkRJqpjaQRIVJtAcl1ndyUniHmP7usz0HR1AvXrZzYCquASBPhlCsY2Ytwttt3ICaNTf/0Sh3WuEOgMgaSiXja7kRNPle4Tj71AV72rQiAtA3p45EJOqCa/rd5k0OwBiuoUApcggC6uS6y7kPP29vaPS5zTuUKgcwT4tcWKBP2Nhgs5vZ4kv03W/0IgJALVBcmFnCGhk1FCwBeBf2tX70XOn7UNVX1CIDgCL7XtcyEnurXVDa3tuOoTAtERcCEnnP4LRT9TEdB5vSPw8s8//1TvLbqQk4ZinfN774jLfiEwBYEfP358nnLepee4kJNGvL29/Ylt9acJ6tSPEAiDAIZwLsSkg27kpHpmw194IxUhsDIEfjK+Eedu8e1GTjYEDKcD3+DEN/zu5gTq1o8QqIPAhFoQz4/oyn5EfLvGtCs56Scc+InyHc58hlMfNRYlKiodIkChISk/IJ45ZHN3wZ2cpQdw6ufff/9NJf0IokpNS3C0HxIBxOkjymeIC5WyCSkNiKbktJuSpCiDmsJ5fRHbwNE2AgLvVBKx6tp9PebwIuQsjYHj7Pb+CYJKTUtgtN8agURIxuESKnnI2cXJaUZlkjZXU7u/tptFIJHSCMk4jIJEGHKWgBAgFKlpCYr2ayKQCBlJJQ85F5KcZigIyi7vWE2V2GAAaXspAomUEVXykCOhyVkanIlKNeWSjGZ6S3C0fwqBRMjoKnnIgW7IacZnkkpNDZAVbSu7QlJ+60UlD/neHTlLJzJRBzVVgkOJzib3SUiuS37MpOz6yxddk9PCL5P0e5HgwHVTjU0NoPVvScquVfJQE62CnKVjmah/8snJcYbUtERnVfskZEqnY1uj3btWyUMtszpylk6iwZQuWAKygn08cNltHVRyBS4ddWFJch41qvYHJCnKMIkkNa2NsHt9g0qiHf9EWZ1KHkJwE+QsHUfDSk1LQALvZ5VcJOk8AiybI6eBTpKiDGrKQLDPtF0UgbFKLpJ0vigC+eabJWf2P21AUmYicUlGyfcJkeb/JULiAWlLIE2/mtXc24k3FDkLoDJJt6imBQpNdxMp82wrx5Ja/irgFzkLMMrdTFSpaQlKnf1ESKnkeTBFzjMYZZKO1VRP+DO4Hfg4kVIqeQCZI4dEziPAHDqciUo1Tcn3WpI5hNK7Y4mQUsl3mEz+ReScDNV/J2aSKl3wP0jGeyTlkChAvMYn6PejCAwfiJwDFNftMPBQLF3w84bVlIRcdTrddRFy/VXNybnb7e52v8un682OeSVI+jJKvl/9Gh0fRui2DioZs2WutyrHKmO2ebw2IyecfPjy5csvNOZrLs/4/RXl+evXr0/4vLnz1zfZ6StB0rRuiskPjk3X+K7eQSX5MIK/q0qnQyySjIzX5xyrjFnG6y/E6ys+fzgdAXU+dScnHLmHQyQlv8Y1tvoOBz7hyXsPEOg8Hb/HsdX8IHBXky6IdmLS+SrT6RCnRkgSkYXxekgw7hCrj4hpxirj1y1WXckJhz/BkacLrKfjT9nxB1zv6vwFds0+lSRFGS/J3NzczK7au4JBJWE/EwVW1VVnjKE8IE6NkFNjjrH6jGsPEbhKm7iRk0bD4ecrraTjj7g+dXtR1+rUlIEOJYqaLpgISfvQNW/+pvMrY2byZYinQyo5+friRMbpJeJTXHp+142cIFYto5P6Sk3PN2aFMxIpjZB4gKwq2cJIidi8VCVPQXvHOZNTJ1z7mQs5AQKVbmr3YKrtfEpRTVc3gUQASAQUJji0VtNEyLWqJLFFPHJyh4Rk4ViSh6sVYOfStXUh5+3t7R/VPN+v6A5glBNITWbO9s3wOQKCcqZ3PDb1ULBEyrWrJHpcNhk5QSyublN2k6sT1IWcII8nECWCSU3RAK/sWuAJWR2g8mat9zNRqaZckvmG7tjcJYtESLTPar+ahRjg6oAtgVRXyRMxUF2QXMgJB1qRE7dKP5tQU64pklgoDLpL1JSkHBIFSPqE2kr+AyGpXOy6UiU517GKh7QXOZds9k2oKbujIKmlC46XN0jcF3y+6nQ6kpI9JvQoXMaSFwbxvxeef/Z0F3ICrHGwnDXE4YSxmnKSyuE2y1UJBUzpgiAqu72cSGJ39QN+5/YzPl/dGwVISBSqJAn5igdQlHblA7FqMLiQ8+3t7a+qVs6vjGq6n9wwv94wNYCInEiqHiBRHAQhU9cVD36Skt361kOnk1AA/+qC5EJOeMEgYcFuqB+SlMsxq0xuCIV0BWOMkJzwK0hZoea6VUC9+Ye16laK2lzIiacIJyA+o/7IP6tNbogM+hTbjJQFIUOp5MgH9ljmzqKPqvz9qws5WXUmqMsThfVXLKamq0xuqIiTe1Ug5TCWBDHZdXW/58wb/OT4fmYdRy93IyfvCIJ+h+QT5IhdXJpYlvEE0qqSG0pHI+2DkGks+eX31wkZK5FVsoSOvUNX8XElJz0BQW0RncDzUA8lqSnHOpyqRwCtYt0sEvDAlCq5RLLAXBgSKamYiO3qk0Clce7k5M3gBPvlJCmn+/m0cXWK96xUpKaVgGQ1IORYJbt56LEHiGLfZXUZYxKjsjQhp90wk3TIG8W4oomTdv+ZW6nplQCSlOyBoL1tGeTKmppfRpVMiRyI3ebfZW1KzhJaOFu+IYBd3h7GpXRhrKZRFsFpW5hCQqKw60pCRkoWmIIRSTmkO065wOOcxchpzpCkKPb2uhrJ3VZ1iy3VtExu6Kab5gUOCJm6roVK9jTBw9ewMLuKXzBfvFe3ODnLIAFJe30XLEnK5Aa+B4mvrtiUmhohOYFWkLJs2sj7VEl2XUlIdl3D9OBCkdNaECS1CSTmjPY0gUQXNpPcYKQsCNmrSobMQQ5JTkY4SybpMIGE2TKOTflRD2VQU06GIJBX0+WFL8NYEsTsqU3CquShgA5NztLgTFQtx5SgVNqfUg0ImcaS6LryO5MkZC8qecOHOoqNJUOq5KE26IacZnwmaddqigDv5s0NICVVstdkAY4lPyBmQo0lLZbPbbsjZ+kQQLexqZIbSmBm7oOQY5XspksOheSMqyULdKOSh5qsa3KaQ5mkg5piHLT4NLjZNmGbxqYR1JSk5PgY+HFtkl3XCeaHOMXGkqaSvWSgnQRvFeQsPSRRZ7xrp6yq9f4iyQ0kJAq7rhxLKlmgdauP7lf+ujpymnMkKYolN9i7duzj6FuqqWtyAwiZXobcs0rm5POeekkXxd1qyVmiAJKmd+1gPMKxKbtrYRaaSzsP7JOk1ZIbSEgUqiS7rVLJA4BHOtSMnAgKTjKw8A8UPXBsg2P3KM0mG0BSm0DaVHIDME64FyrZyzJIGkvyodpaJTNmn7BNsZrjlbHbLF6bkBMOMmsmPa0RIFQCzqjxre1P+J0pb02XFjJJhwkkND7VNNJD85Qtg5rmgDkaLMB9UEng3JOPiZSZkE2XQYBZ2d3nElKKVcQI45Wxm+IV57mnaLqSEw7cYRaSDp77a2OLTIaQAZmoSyU30IRryxiz9OYGYo5CUnKCh4TsVSWbLYMAr9SzQKwSsyndfT4gn3BdwvzaBjx3nSs58bS+5u3byXEA9UrnUY4qwznnLvk8k7RrNSVmwJw9FJLyEveXPDeKSl6MGbB+RHy6EdSNnOxyocXnEIsktW5E0296ZKJ2qabAvIsfdBPZXWyeUgcymUryITZFJU/imQk6J86P1u9CTgIA8Gv2yTlmLZcWmnTVMkkHNUVDrHba/miE1P3AVNKSBZrNmjMmUa75C9ZnEUBcuKinCzlvb29djAVKg5pSmQG2yxML99n7IVFHyQ2ryELZc9ThAIKXb2Fs/mYBxMc7lYQdp7quczznrG71WHQhJ1SzuqEj5PYmQ9gQo3NcfiVJUZjcwOWY3pIbXDA5UumgknyoAbNmvQ7GrmLWsAAAB3xJREFUAoqLSh7x1eWwCzlhaZNuJ+7DnyXVtNfkBuLmVUjK5ipJZ0jIBSfFuvn7nM3GEmyUXPbUNB9330AVek5uqIEPCVlO8DRXSZCSyyDstrYUhhK7Pv4EICxegpy47fCT1BQNpuSGARKXnUTKhZIF7jnvgHEkZ11JShcHl6zUpVuLMWeUyZITauoLe6GmzOft7T1Ip8BJhEQbL7kMQpV8gg01VwRO+Tzls+ox70JOePI/lGg/UtN5LZJIuZBKlil14VQS6v2dD+N58O5f7UJOGPpCg/dvF+LIWE2bPX2Bi41Nu1FTqFM5llwipY7d1tnJAp6R9/b29pdH/S7kpKEwmA259NiTppwqVFMlN+wjZCq5qmSBfTfnH+HDCw/d6l1aWuZGThjMBuYf0I1OUOJAkjJV0CaQmqop1wHRyFRTdtlcGppOnivs7cCO5ssgu92uVbLAOQgu+px4Ic4pQhddN/VkN3LSABieCIoGZ9DxUPgCW/nVoKXU1JIbPrLhG4HFNkpvqeNDAm3WfBkEvrLryhhZahnkUqiJ2WfidemFl5zvSk4agsYux1lsgB6UlKabmj5zyn6323lnPfGeqRAzNjweFKamHpgxwJqrJB0ElvxKGwnJwpjg4R5KiZl7D8ednIY4Aw6F3/Rg2ltPSwvjCSSvvGGDatgCL3uwJcygMHNVjcFVTvDMrW+w9dwOCGldVy6DkJA9qeQimDUjpzVeDrjhmx5QBzaUfRx9m9R0qeSGGWqaSLnQMghVkl+471El2d1f7A8cNSdnYl/+LxOVasrum9Q043JqU2BWqumhbm8iJB5+SycL8OHbbEhwCrsJny2G2SHbFiWnGZQDTmpqgEzYGmZUUyoiSYhCwvJt5x94DOcs+f4dknKCJyFOSaRcArNT3ocgZ2kgAsrGWb2rabPlGOKXcXvB1n2igvezMhpLhk4WMJtti4dZOZZ0WxKx+126DUdOcwBBRpIOalphMsSqbrHl2LT5ckwLx+weJCVnsdEuvY4lmydYGHZTt2HJWTpAorL7hicd1ZTdpUNjrPKSKPskaUpuwCRS0/cgTQbgghNJSBRO8JCQXakk3HxB/CyydIR7X/XTBTnNM5IUhQv1JGlvbyFY5D1Iht2cLQiZlkEKlexqGQRjSY7BPyN2mi0dzcHbru2KnGY0twC617cQmJo2T24gblOLERKKn1QSxGSPZerlS5/HCZ6uVPIQYN2S05wBSTk25XIMZyq1HGPAXLk1UoKMJCUJ2ZVKoutqS0ddqeSh5uqenOZUJukwgYRGYmDZx9G3SU2pUpxkAUGarwvinsNYEsTsCTuq5KLJAtWCa1TRashZ+pWJSjXl2FRqWoJT7IOQaSyJh0LvKXXhlkEKmK/eXSU5DY1MUqmpAZK3IGWv799ZrUrmpnm3WTU5S08zUdegplclN4CQpUpGe/9O2VR7+xyioDDzKeW57p2w0gObIae1XybpoKYYX/U0ccCxaZnccHZsSlJyHAs/bYLHoIi+NZW0ZIGmmU8RwNkcOUvQSdQlkxtKWy7cJ0mZ3PCM8SL/Gts7NSUhUYYJHqjOu88vvFfr00nK7pdBaoC2aXIagCQpiiU3fIPK9KymPf4ZAhKyzHPtCX8Lo+pbkXMEKUj6vXM11TLIqE17/VXkPNJyIGmvyQ1HPApzeKySq1wGqYG2yHkGxUzSYQIJ47eelOmMd00/TqT88eNHmnElrk3vfuZmET8WOS9oFQYUSo/LMRd4WfdUPsxQLKVOKnkBvCLnBWDZqSAou7xSUwNkf2sqacsgvXzFb9+TBY+InDPBz0Q1NWWXd3PrcQYhZ7mhkptLFjD/a29FzkqIGkkxpuK3Y1q+FLqSB1dXM6gkZ7mBw2YfTlcjeOTCrZLzCBx1DiNAfzJQoSJMvKearrFbR1IqWaBOyBysReQ8CEudgyQpCru8VNOevh1zDAASUskCx9CpfFzkrAzooepA0N4nkBIp0WXXMsihBnY6JnI6AXus2kxUqim7vJHVNBGSXXMj5TGfdNwHAZHTB9eztWaSRlyOSaQ0QtLOs87MO0FXH0FA5DwCTMvDJADKomoKhSzHkkoWaBkAR+4lch4BZonDIOi7sSnXDZ3tMJVUsoAz0NdUL3Jeg1qDa0jU0XJMtfVDkh5KqWWQBu045xYi5xz0GlxLkqLwu6ZcjpnzIu1BJUl61KnvTDZovzm3WICcc8zd9rUg1DUv0iYppZIdho7I2WGjgaQcm3ICqVRTZiGlgi4rJ3dY7NsgUskO21nk7LDRzORM0qSmXPqwguP8u5wsJKudrm1nCIicnTWYzN0OAiLndtr6gKc6FBkBkTNy68i2TSMgcm66+eV8ZAREzsitI9s2jYDIuenml/NxENi3ROTcx0RHhEAIBETOEM0gI4TAPgIi5z4mOiIEQiAgcoZoBhkhBPYREDn3MWlzRHcRAmcQEDnPAKSPhcBSCIicSyGv+wqBMwiInGcA0sdCYCkERM6lkNd94yAQ1BKRM2jDyCwhIHIqBoRAUAREzqANI7OEgMipGBACQRHYJDmDtoXMEgLvEPg/AAAA//+UJr1OAAAABklEQVQDAIM1OYH/FWvMAAAAAElFTkSuQmCC",dS="",ow=I.forwardRef(({mapView:e,isRollMap:n,leftLayerGroupRef:r,rightLayerGroupRef:o,sideBySideControl:s,baseMapList:l,baseMapSelectIcon:c})=>{const[d,h]=I.useState(l),[g,m]=I.useState(!1),v=(_,x)=>{if(!e)return;const b=d.map(E=>E.id===_.id?{...E,checked:x}:E);if(h(b),x){const E=Ut.tileLayer(_.mapUrl,{id:_.id,maxZoom:18,zIndex:1,pane:"rightPane",zoomOffset:_.zoomOffset||0});o.current.addLayer(E),s&&s.current.setRightLayers(o.current.getLayers())}else o.current.eachLayer(E=>{E.options.id===_.id&&o.current.removeLayer(E)})},y=()=>{if(!e||!o.current)return;o.current.clearLayers();const _=d.find(x=>x.checked);if(_){const x=Ut.tileLayer(_.mapUrl,{id:_.id,pane:"rightPane",zoomOffset:_.zoomOffset||0});o.current.addLayer(x)}};I.useEffect(()=>{y()},[]);const C=()=>ft.jsx("div",{style:{marginLeft:"32px",marginTop:"-34px",backgroundColor:"white",display:"flex",flexDirection:"column",width:"200px",borderRadius:"5px",padding:"10px",gap:"10px",zIndex:1e3},children:d.map(_=>ft.jsx(Ux,{onChange:x=>v(_,x.target.checked),checked:_.checked,style:{width:"200px"},children:ft.jsx("span",{children:_.name})},_.id))});return ft.jsx("div",{id:"select-base-map",children:ft.jsx(rw,{open:g,onOpenChange:m,dropdownRender:C,children:ft.jsx("div",{onClick:_=>{_.preventDefault(),m(!g)},className:"select-base-map-button",children:ft.jsx("img",{src:c,alt:"底图选择器",width:25,height:25})})})})}),iw={center:[35.8617,104.1954],zoom:4},sw=I.forwardRef(({mapSettings:e=iw,rollIcon:n=pp,normalIcon:r=mp,baseMapSelectIcon:o=gp,baseMapList:s=[],onIsRollMapChange:l},c)=>{const d=I.useRef(null),h=I.useRef(null),[g,m]=I.useState(),v=I.useRef(null),y=I.useRef(null),[C,_]=I.useState(e.zoom),x=I.useRef(null),b=I.useRef(null),[E,S]=I.useState(!1),P=I.useRef(null),[T,M]=I.useState(Date.now()),N=I.useRef(E);I.useImperativeHandle(c,()=>({addLeftLayers:R=>{!h.current||!v.current||(R.forEach(z=>{z&&z.addTo(v.current)}),x.current&&x.current.setLeftLayers(v.current.getLayers()))},addRightLayers:R=>{!h.current||!y.current||(R.forEach(z=>{z&&z.addTo(y.current)}),x.current&&x.current.setRightLayers(y.current.getLayers()))},clearLeftLayers:()=>{var R;(R=v.current)==null||R.clearLayers()},clearRightLayers:()=>{var R;(R=y.current)==null||R.clearLayers()},getMapInstance:()=>h.current,toggleRollMap:R=>{var B,z,$;if(S(R),R){const j=((B=v.current)==null?void 0:B.getLayers())||[],V=((z=y.current)==null?void 0:z.getLayers())||[];x.current=new Ut.Control.sideBySide(j,V),x.current.addTo(h.current)}else($=x.current)==null||$.remove(),x.current=null},getIsRollMap:()=>N.current,getLeftLayersGroup:()=>v.current,getRightLayersGroup:()=>y.current,getMapRef:()=>h.current})),I.useEffect(()=>{if(!d.current||h.current)return;const R=Ut.map(d.current,{zoomControl:!1,doubleClickZoom:!1,attributionControl:!1,crs:Ut.CRS.EPSG4326}).setView(e.center,e.zoom);R.invalidateSize(),R.createPane("leftPane").style.zIndex="300",R.createPane("rightPane").style.zIndex="300",v.current=Ut.layerGroup().addTo(R),y.current=Ut.layerGroup().addTo(R);const B=Ut.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=Ut.DomUtil.create("div","leaflet-control-container"),F=Sr(W);F.render(ft.jsx(Uc,{zoomLevel:C}));const X=()=>{const J=V.getZoom();_(J),F.render(ft.jsx(Uc,{zoomLevel:J}))};return V.on("zoomend",X),W}}),z=Ut.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=Ut.DomUtil.create("div","leaflet-control-container"),F=Sr(W);return P.current=F,F.render(ft.jsx(ow,{mapView:V,isRollMap:E,baseMapSelectIcon:o,leftLayerGroupRef:v,rightLayerGroupRef:y,sideBySideControl:x,baseMapList:s},T)),W}}),$=Ut.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=Ut.DomUtil.create("div","leaflet-control-container"),F=Sr(W);return P.current=F,F.render(ft.jsx(hp,{isRollMap:E,setIsRollMap:S,rollIcon:n,normalIcon:r},T)),W}}),j=()=>m(R.getZoom());return R.on("zoomend",j),R.addControl(new B),Ut.control.zoom({position:"topleft"}).addTo(R),R.addControl(new z),R.addControl(new $),h.current=R,()=>{const V=x.current,W=b.current;if(V&&W){V.off("dividermove",W),R.off("move",W);const F=R.getPane("leftPane"),X=R.getPane("rightPane");F&&(F.style.clip=""),X&&(X.style.clip="")}R.off("zoomend",j),R.remove(),h.current=null}},[]);const k=R=>{var $,j,V;if(S(R),N.current=R,!!h.current)if(R){const W=(($=v.current)==null?void 0:$.getLayers())||[],F=((j=y.current)==null?void 0:j.getLayers())||[];x.current=Ut.control.sideBySide(W,F),x.current.addTo(h.current),x.current.on("dividermove",()=>{var X;(X=h.current)==null||X.eachLayer(J=>{J instanceof Ut.Marker})})}else{(V=x.current)==null||V.remove(),x.current=null;var B=h.current.getPane("leftPane"),z=h.current.getPane("rightPane");B&&(B.style.clip=""),z&&(z.style.clip="")}};return I.useEffect(()=>{h.current&&(k(E),l==null||l(E),P.current&&P.current.render(ft.jsx(hp,{isRollMap:E,setIsRollMap:S,rollIcon:n,normalIcon:r},Date.now())))},[E,l]),ft.jsx("div",{ref:d,style:{height:"100%",width:"100%"}})});let aw=[{mapUrl:"http://36.110.12.229:9015/usmaps?service=WMTS&version=1.0.0&request=GetTile&tk=53a6c3d4-4821-418d-8403-27213bac20c6&Layer&Style=1&Format=image/png&TileMatrixSet=l&TileMatrix={z}&TileRow={y}&TileCol={x}",center:[30.5984,114.3118],zoomOffset:0,zoom:6,maxZoom:18,type:"4326",id:"imagesky4326",name:"天地图WMTS影像(4326)",checked:!1},{id:"1154781632637710336",name:"4490天地图影像注记",icon:"ca3fe93b207545558ba5c601a8d36c31",mapUrl:"http://10.17.17.243/tdtyxzj_c/{z}/{y}/{x}.png",type:"4326",centre:[23.641,112.983],bounds:null,zoom:7,zoomOffset:1,checked:!0}];function lw(){const[e,n]=I.useState(!1),r=I.useRef(null),o=()=>{if(!r.current)return;const l=Ut.marker([30.5984,114.3118],{pane:"leftPane"});r.current.addLeftLayers([l])},s=()=>{if(!r.current)return;const l=Ut.geoJSON({type:"Feature",geometry:{type:"Polygon",coordinates:[[[115.796,40.4934],[116.377,40.3945],[116.236,39.9146],[115.659,40.0129],[115.796,40.4934]]]}},{pane:"rightPane",style:{color:"red",weight:3,opacity:.5,fillColor:"red",fillOpacity:.2}}).addTo(r.current.getRightLayersGroup());r.current.getMapRef().fitBounds(l.getBounds())};return ft.jsx(ft.Fragment,{children:ft.jsxs("div",{className:"app-container",children:[ft.jsx("div",{className:"app-content",children:ft.jsx(sw,{ref:r,leftLayers:[],rightLayers:[],rollIcon:pp,normalIcon:mp,baseMapSelectIcon:gp,baseMapList:aw,onIsRollMapChange:n})}),ft.jsxs("div",{className:"app-right",children:[ft.jsx(as,{onClick:o,disabled:!e,children:"添加marker到左侧图层"}),ft.jsx(as,{onClick:s,disabled:!e,children:"添加geojson到右侧图层"})]})]})})}Sr(document.getElementById("root")).render(ft.jsx(I.StrictMode,{children:ft.jsx(lw,{})}))});
208
+ `]:{[`&:hover ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{"&":{[`${n}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${n}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:e.colorTextDisabled}}}]};function Hx(e,n){const r=_n(n,{checkboxCls:`.${e}`,checkboxSize:n.controlInteractiveSize});return Fx(r)}const ip=Vn("Checkbox",(e,{prefixCls:n})=>[Hx(n,e)]),sp=A.createContext(null),Vx=(e,n)=>{const{prefixCls:r,className:o,rootClassName:s,children:l,indeterminate:c=!1,style:d,onMouseEnter:h,onMouseLeave:g,skipGroup:m=!1,disabled:v,classNames:y,styles:C,..._}=e,{getPrefixCls:x,direction:b,className:E,style:S,classNames:P,styles:I}=Ur("checkbox"),M=f.useContext(sp),{isFormItemInput:k}=f.useContext(fs),N=f.useContext(hl),R=((M==null?void 0:M.disabled)||v)??N,B={...e,indeterminate:c,disabled:R},[z,$]=kr([P,y],[I,C],{props:B}),j=f.useRef(_.value),V=f.useRef(null),W=Sr(n,V);if(process.env.NODE_ENV!=="production"){const oe=hn("Checkbox");process.env.NODE_ENV!=="production"&&oe("checked"in _||!!M||!("value"in _),"usage","`value` is not a valid prop, do you mean `checked`?")}f.useEffect(()=>{M==null||M.registerValue(_.value)},[]),f.useEffect(()=>{if(!m)return _.value!==j.current&&(M==null||M.cancelValue(j.current),M==null||M.registerValue(_.value),j.current=_.value),()=>M==null?void 0:M.cancelValue(_.value)},[_.value]),f.useEffect(()=>{var oe;(oe=V.current)!=null&&oe.input&&(V.current.input.indeterminate=c)},[c]);const F=x("checkbox",r),X=no(F),[J,Z]=ip(F,X),le={..._};M&&!m&&(le.onChange=(...oe)=>{_.onChange&&_.onChange.apply(_,oe),M.toggleOption&&M.toggleOption({label:l,value:_.value})},le.name=M.name,le.checked=M.value.includes(_.value));const G=ce(`${F}-wrapper`,{[`${F}-rtl`]:b==="rtl",[`${F}-wrapper-checked`]:le.checked,[`${F}-wrapper-disabled`]:R,[`${F}-wrapper-in-form-item`]:k},E,o,z.root,s,Z,X,J),ie=ce(z.icon,{[`${F}-indeterminate`]:c},_l,J),[ne,de]=Dx(le.onClick);return f.createElement(If,{component:"Checkbox",disabled:R},f.createElement("label",{className:G,style:{...$.root,...S,...d},onMouseEnter:h,onMouseLeave:g,onClick:ne},f.createElement(zx,{...le,onClick:de,prefixCls:F,className:ie,style:$.icon,disabled:R,ref:W}),to(l)&&f.createElement("span",{className:ce(`${F}-label`,z.label),style:$.label},l)))},ap=f.forwardRef(Vx);process.env.NODE_ENV!=="production"&&(ap.displayName="Checkbox");const lp=ap,Wx=f.forwardRef((e,n)=>{const{defaultValue:r,children:o,options:s=[],prefixCls:l,className:c,rootClassName:d,style:h,onChange:g,role:m="group",...v}=e,{getPrefixCls:y,direction:C}=f.useContext(Ot),[_,x]=f.useState(v.value||r||[]),[b,E]=f.useState([]);f.useEffect(()=>{"value"in v&&x(v.value||[])},[v.value]);const S=f.useMemo(()=>s.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[s]),P=F=>{E(X=>X.filter(J=>J!==F))},I=F=>{E(X=>[].concat(bn(X),[F]))},M=F=>{const X=_.indexOf(F.value),J=bn(_);X===-1?J.push(F.value):J.splice(X,1),"value"in v||x(J),g==null||g(J.filter(Z=>b.includes(Z)).sort((Z,le)=>{const G=S.findIndex(ne=>ne.value===Z),ie=S.findIndex(ne=>ne.value===le);return G-ie}))},k=y("checkbox",l),N=`${k}-group`,R=no(k),[B,z]=ip(k,R),$=Sn(v,["value","disabled"]),j=s.length?S.map(F=>f.createElement(lp,{prefixCls:k,key:F.value.toString(),disabled:"disabled"in F?F.disabled:v.disabled,value:F.value,checked:_.includes(F.value),onChange:F.onChange,className:ce(`${N}-item`,F.className),style:F.style,title:F.title,id:F.id,required:F.required},F.label)):o,V=f.useMemo(()=>({toggleOption:M,value:_,disabled:v.disabled,name:v.name,registerValue:I,cancelValue:P}),[M,_,v.disabled,v.name,I,P]),W=ce(N,{[`${N}-rtl`]:C==="rtl"},c,d,z,R,B);return f.createElement("div",{className:W,style:h,role:m,...$,ref:n},f.createElement(sp.Provider,{value:V},j))}),Is=lp;Is.Group=Wx,Is.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Is.displayName="Checkbox");const jx=Is,Zx=e=>{const{componentCls:n,borderRadius:r,paddingSM:o,colorBorder:s,paddingXS:l,fontSizeLG:c,fontSizeSM:d,borderRadiusLG:h,borderRadiusSM:g,colorBgContainerDisabled:m,lineWidth:v,antCls:y}=e,[C,_]=gr(y,"space");return{[n]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:o,margin:0,borderWidth:v,borderStyle:"solid",borderRadius:r,"&:hover":{zIndex:0},[`&${n}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:c,borderRadius:h},"&-small":{paddingInline:l,borderRadius:g,fontSize:d},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[C("addon-border-color")]:s,[C("addon-background")]:m,[C("addon-border-color-outlined")]:s,[C("addon-background-filled")]:m,borderColor:_("addon-border-color"),background:_("addon-background"),"&-variant-outlined":{[C("addon-border-color")]:_("addon-border-color-outlined")},"&-variant-filled":{[C("addon-border-color")]:"transparent",[C("addon-background")]:_("addon-background-filled"),[`&${n}-disabled`]:{[C("addon-border-color")]:s,[C("addon-background")]:m}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[C("addon-border-color-outlined")]:e.colorError,[C("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[C("addon-border-color-outlined")]:e.colorWarning,[C("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},Ux=Vn(["Space","Addon"],e=>[Zx(e),Yf(e,{focus:!1})]),qx=A.forwardRef((e,n)=>{const{className:r,children:o,style:s,prefixCls:l,variant:c="outlined",disabled:d,status:h,...g}=e,{getPrefixCls:m,direction:v}=A.useContext(Ot),y=m("space-addon",l),[C,_]=Ux(y),{compactItemClassnames:x,compactSize:b}=wl(y,v),E=x0(y,h),S=ce(y,C,x,_,`${y}-variant-${c}`,E,{[`${y}-${b}`]:b,[`${y}-disabled`]:d},r);return A.createElement("div",{ref:n,className:S,style:s,...g},o)});function cp(e){return["small","middle","large"].includes(e)}function up(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const dp=A.createContext({latestIndex:0}),Gx=dp.Provider,Kx=e=>{const{className:n,prefix:r,index:o,children:s,separator:l,style:c,classNames:d,styles:h}=e,{latestIndex:g}=f.useContext(dp);return to(s)?f.createElement(f.Fragment,null,f.createElement("div",{className:n,style:c},s),o<g&&l&&f.createElement("span",{className:ce(`${r}-item-separator`,d==null?void 0:d.separator),style:h==null?void 0:h.separator},l)):null},Qx=e=>{const{componentCls:n,antCls:r}=e;return{[n]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${n}-item:empty`]:{display:"none"},[`${n}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Yx=e=>{const{componentCls:n}=e;return{[n]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Xx=Vn("Space",e=>{const n=_n(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Qx(n),Yx(n)]},()=>({}),{resetStyle:!1}),Ts=f.forwardRef((e,n)=>{const{getPrefixCls:r,direction:o,size:s,className:l,style:c,classNames:d,styles:h}=Ur("space"),{size:g=s??"small",align:m,className:v,rootClassName:y,children:C,direction:_,orientation:x,prefixCls:b,split:E,separator:S,style:P,vertical:I,wrap:M=!1,classNames:k,styles:N,...R}=e,[B,z]=Array.isArray(g)?g:[g,g],$=cp(z),j=cp(B),V=up(z),W=up(B),F=Gn(C,{keepEmpty:!0}),[X,J]=Gd(x,I,_),Z=m===void 0&&!J?"center":m,le=S??E,G=r("space",b),[ie,ne]=Xx(G),de={...e,size:g,orientation:X,align:Z},[oe,ee]=kr([d,k],[h,N],{props:de}),K=ce(G,l,ie,`${G}-${X}`,{[`${G}-rtl`]:o==="rtl",[`${G}-align-${Z}`]:Z,[`${G}-gap-row-${z}`]:$,[`${G}-gap-col-${B}`]:j},v,y,ne,oe.root),Y=ce(`${G}-item`,oe.item),se=F.map((Se,Te)=>{const Ce=(Se==null?void 0:Se.key)||`${Y}-${Te}`;return f.createElement(Kx,{prefix:G,classNames:oe,styles:ee,className:Y,key:Ce,index:Te,separator:le,style:ee.item},Se)});if(process.env.NODE_ENV!=="production"){const Se=hn("Space");[["direction","orientation"],["split","separator"]].forEach(([Te,Ce])=>{Se.deprecated(!(Te in e),Te,Ce)})}const fe=f.useMemo(()=>({latestIndex:F.reduce((Te,Ce,te)=>to(Ce)?te:Te,0)}),[F]);if(F.length===0)return null;const xe={};return M&&(xe.flexWrap="wrap"),!j&&W&&(xe.columnGap=B),!$&&V&&(xe.rowGap=z),f.createElement("div",{ref:n,className:K,style:{...xe,...ee.root,...c,...P},...R},f.createElement(Gx,{value:fe},se))});Ts.Compact=tb,Ts.Addon=qx,process.env.NODE_ENV!=="production"&&(Ts.displayName="Space");const Jx=Ts,fp=e=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=f.useContext(Ot),{prefixCls:s,type:l="default",danger:c,disabled:d,loading:h,onClick:g,htmlType:m,children:v,className:y,menu:C,arrow:_,autoFocus:x,trigger:b,align:E,open:S,onOpenChange:P,placement:I,getPopupContainer:M,href:k,icon:N=f.createElement(Kh,null),title:R,buttonsRender:B=xe=>xe,mouseEnterDelay:z,mouseLeaveDelay:$,overlayClassName:j,overlayStyle:V,destroyOnHidden:W,destroyPopupOnHide:F,dropdownRender:X,popupRender:J,...Z}=e,le=r("dropdown",s),G=`${le}-button`,ne={menu:C,arrow:_,autoFocus:x,align:E,disabled:d,trigger:d?[]:b,onOpenChange:P,getPopupContainer:M||n,mouseEnterDelay:z,mouseLeaveDelay:$,classNames:{root:j},styles:{root:V},destroyOnHidden:W,popupRender:J||X},{compactSize:de,compactItemClassnames:oe}=wl(le,o),ee=ce(G,oe,y);"destroyPopupOnHide"in e&&(ne.destroyPopupOnHide=F),"open"in e&&(ne.open=S),"placement"in e?ne.placement=I:ne.placement=o==="rtl"?"bottomLeft":"bottomRight",process.env.NODE_ENV!=="production"&&hn("Dropdown.Button").deprecated(!1,"Dropdown.Button","Space.Compact + Dropdown + Button");const K=f.createElement(Xf,{type:l,danger:c,disabled:d,loading:h,onClick:g,htmlType:m,href:k,title:R},v),Y=f.createElement(Xf,{type:l,danger:c,icon:N}),[se,fe]=B([K,Y]);return f.createElement(Jx.Compact,{className:ee,size:de,block:!0,...Z},se,f.createElement(op,{...ne},fe))};fp.__ANT_BUTTON=!0;const ew=fp,hp=op;hp.Button=ew;const tw=hp,aS="",pp=({isRollMap:e,setIsRollMap:n,rollIcon:r,normalIcon:o})=>Zt.jsx(Ih,{title:e?"切换为普通地图":"切换为卷帘",placement:"left",children:Zt.jsx("div",{className:"switch-map-mode",onClick:()=>n(!e),children:e?Zt.jsx("img",{src:r,alt:"卷帘模式",className:"map-icon"}):Zt.jsx("img",{src:o,alt:"普通模式",className:"map-icon"})})}),nw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAHj0lEQVR4AezajXFTORSGYZxKTCWbdGCoYLcSoBLoAHeQbCWkEry6O5NMHIfY91q6OpIexhr/RD/nvJ/eMWS4+eAPAgj8kQBB/ojGDxD48IEgbgEC7xAgyDtw/AgBgrgDCLxDoKAg75zqRwg0QoAgjQSlzDoECFKHu1MbIUCQRoJSZh0CBKnD3amNEGhTkEbgKrN9AgRpP0MdFCRAkIJwbd0+AYK0n6EOChIgSEG4tm6fAEFeZegtAi8JEOQlDa8ReEWAIK+AeIvASwLFBdntdtvdbne7MzAocAdeXuYSr4sIkmTYfv78+funT58Om83mVxr3xgaDTX4G6Y79mu7adOeaECQVeptk+HU4HP4uUXDDeyq9DIHtdNfSnbtPdy/7ncv+DTIVWoaDXRF4l8A23b0vSZLtu7Nm/jCrIOnr7n7m+aYjkJPA9ubm5kvODbMKkgq7TcMDgWoE0l+3st7BbILk/mqrRtjBrRP4/7emuZrIJkgqKOvf/dJ+HhcTMLEUgZyClKrRvghUI0CQaugd3AIBgrSQkhqrESBINfQOboEAQVpIqWaNg59dVZD0O+uvadwNOP6Ze+8SI6zmQsswv6ogqf5/9/v9w36wkfp+TGPuA6u5xDLMry1IhhZsgUA5AgQpx9bOHRAgSAchttpCC3UTpIWU1FiNAEGqoXdwCwQI0kJKaqxGgCDV0Du4BQIEaSElNc4lkG0+QbKhtFGPBAjSY6p6ykaAINlQ2qhHAgTpMVU9ZSNAkGwobdQjgVNBeuxSTwgsJECQheAsG4MAQcbIWZcLCRBkITjLxiBAkDFy1uVCAqsKsrBGyxCoRoAg1dA7uAUCBGkhJTVWI0CQaugd3AIBgrSQkhqrEehFkGoAHdw3AYL0na/uriRAkCsBWt43AYL0na/uriRAkCsBWt43AYKczdeEkQkQZOT09X6WAEHOIjJhZAIEGTl9vZ8lQJCziEwYmQBBaqbv7PAECBI+IgXWJECQmvSdHZ4AQcJHpMCaBAhSk76zwxMgSPiIlhVoVR4CBMnD0S6dEiBIp8FqKw8BguThaJdOCRCk02C1lYcAQfJwHGmXoXolyFBxa3YuAYLMJWb+UAQIMlTcmp1LgCBziZk/FAGCDBV39Gbj1UeQeJmoKBABggQKQynxCBAkXiYqCkSAIIHCUEo8AgSJl4mKShBYuCdBFoKzbAwCBBkjZ10uJECQheAsG4MAQcbIWZcLCRBkITjLxiBwiSBjkNAlAm8QIMgbUHyEwBMBgjyR8IzAGwQI8gYUHyHwRIAgTyQ8I/AGgcqCvFGRjxAIRIAggcJQSjwCBImXiYoCESBIoDCUEo8AQeJloqJABPoVJBBkpbRLgCDtZqfyFQgQZAXIjmiXAEHazU7lKxAgyAqQHdEuAYIsyM6ScQgQZJysdbqAAEEWQLNkHAIEGSdrnS4gQJAF0CwZhwBBYmWtmmAECBIsEOXEIkCQWHmoJhgBggQLRDmxCBAkVh6qCUaAIMECKVeOnZcQIMgSatYMQ4Agw0St0SUECLKEmjXDECDIMFFrdAkBgiyhZs0xgY7fEaTjcLV2PQGCXM/QDh0TIEjH4WrtegIEuZ6hHTomQJCOw+2htdo9EKR2As4PTYAgoeNRXG0CBKmdgPNDEyBI6HgUV5sAQWon4PxaBC46lyAXYTJpVAIEGTV5fV9EgCAXYTJpVAIEGTV5fV9EgCAXYTJpVALLBBmVlr6HI0CQ4SLX8BwCBJlDy9zhCBBkuMg1PIcAQebQMnc4AuEEGS4BDYcmQJDQ8SiuNgGC1E7A+aEJECR0PIqrTYAgtRNwfmgCIwkSOgjFxSRAkJi5qCoIAYIECUIZMQkQJGYuqgpCgCBBglBGTAIEyZKLTXolQJBek9VXFgIEyYLRJr0SIEivyeorCwGCZMFok14JECR6suqrSoAgVfE7PDoBgkRPSH1VCRCkKn6HRydAkOgJqa8qAYJUxV/3cKefJ0CQ84zMGJgAQQYOX+vnCRDkPCMzBiZAkIHD1/p5ArUF2e52u9vdYCPF8lcacx8tscqWaYK0hFValudRVZDNZvM9jfsBx9e58SVGWM2FlmF+VUEy1G8LBIoSIEhRvDZvnQBBWk9Q/UUJEKQoXpvnJ7DujgRZl7fTGiOQU5DHxnpXbr8Est3FbILs9/tsRfWbm87WIJDzLmYTZGo8/a7+x/RsIFCLQO47mFWQ379/f6sFxrkITASuuoPTBq9GVkGmr7bD4fDPqzO8RWANAo/p7t1NdzDnYVkFmQpLBf5IhX5MY/Z/p5jWGwjMJDD92/fh58+fH9Pde5i59uz07IJMJ6ZCH9P4loreJFEmWe7Ss3E4YJCZQbpjH9O4m+5diVFEkJeFJlEmWR7Ss7HfY5CZwcu7VuJ1cUFKFG1PBNYikEuQtep1DgKrEiDIqrgd1hoBgrSWmHpXJUCQVXE7rDUCBGktMfWuSqABQVbl4TAEjggQ5AiHNwgcEyDIMQ/vEDgiQJAjHN4gcEyAIMc8vEPgiMDYghyh8AaBUwIEOWXiEwSeCRDkGYUXCJwSIMgpE58g8EyAIM8ovEDglABBTplk+cQmfRD4DwAA//90pefjAAAABklEQVQDAHXI/gmG3IivAAAAAElFTkSuQmCC",rw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAQAElEQVR4AeydjV3cutLGgUYuVHKgg5AGTqgEUgncBpLTAZxKyNtIeJ+/YnH3e62RZMn25OeJd72WNHo0j2ZG8i5XF/6vOQJfvnx5vL+/f5V8SN4lr1xrrpgrcOEEaWgEIsE1ZLi8vHySGrcSjmv9d8s1ffaue+J1XfZjagScIFMjPrQnw78WCd719hQBuOeZe3WfHw0QcII0AJ0mRY5nziMkkGTEfX5LBQScIBVAPVelPMI33XPKc+jjreNWZVLu3yrsb+wIVCSIXSkveRCBvw5e9YtVEXCCVIX3cOVXV1fJxq4yJO+HK/Sr1RBwglSD1iteAgJOkCWMovehGgJOkGrQesVLQGCeBFkC8t6HWSDgBJnFMLmSrRBwgrRC3tudBQJOkAmHSZt915Lbj4+P5CVbylBWklx2wi4uriknSOEhxYAl3ySPX79+fb7/85QuT+h+XF5evkte1aRlV5wHGF9VPtSlejm/0gai9mjTUq/U8eMYAk6QHWRS3soog0fQ+fNxdQxY8ix50qwfHympMetTJ97oG+2oPdrkkflP4kgv2k/pkt+7g4ATZAeQc29ldJACQuANEGb1zcfVz1VR+/NP4kAaeZrwHZPBy7iHSUTfCXIGsEgInSFFDJMgBIZ4pnQ3H18PXiZ4mIEs7l1GDI8T5AhIEAJD0iyMl3jSGVIcuXtWlyNZyI9COKa+OlmODKETZAMYGUoMn/AUMYfYuGNxL/GCJP+BLOr/o8TDsI1hdoIIDBkF4RO5RPAWulTj6L1OvpiFpwxhmDBxr6IRWzVBZAQQI3gLYeEzp0AYDsjy6VWGa6s8rZIgO8RY5cCP7DREedJKGD8e8TiyzKJuWxVBnBhm210tUVZBECeGmRi7BVdHlEUTRMTY/N2p3cFe0PvJu7JJFFbCJldgqgYXSxCR41F7F+d+d2oqnJfaDkRZ9K9ALo4gIsYtSaXI0cPG3i/p8aJdbPZUHnS++/nzpy5dvqQyRoWo54Y6JNTFkiz1vKXWVfh+SLLYRH4xBBExYjjF07It3P4mGQIRRIabHz9+PPzzzz/fJS+SLGNW+V+SNwl1fadutXEnwkAc5AEiiQBZ7ai85QhE4ekDxsJSQY9lFkEQDQi7wS3CqTcZ55OM9FKySYZJDVSEgTjIyw5pImEmsz3h8U0kJexaxL7S7AkicpBr4DWmMIJfMoAQLokQkOJOxvl9ioZT25Ben4SRzpveJa0q2914E35TePZ7J7MliIgRQ6opcg2I8SBS3MjwQrhks5s2paTzHlmkSW0vB0nITfAmLUJedTH/mCVBRI4pQipIgbe4GYhBQpyPeOMaIlnUp5i71J5gGCtIMsuQa3YEETlCjFvRzgIxZEDRW/yq2FbTqgeyfI8hmJSp1Ve8ySxDrlkRROQg3xj7ZwM03knHFjGSSs785oEoLCPjVR7UnRpEgSRPjKHqn80xG4KwfKjVkRrhwGqJsWulUxCFMYwk2W2/x/ezIIg2/l4VBhT/foLqZIk2hFI9Dk4rnXaIUnxSgiRMeK36l9Ju9wSBHOpQ6QSP/QsnhoA9dQxECTmKjLroIoUmp28aW/auTqnQ/LNuCSI3HJZxhVBJchBOsVzL/kWNOFvqLu+AKGxAyqhL5yeMMd816XYZuFuCaMYiGS9GDg1uDKeKzoTLo8PxHokoMZEvGXaRvE+10Xu8c0c+6ZIgcr0AVpIceIxudrx///49W+8lkrDpSNhVlCQa85Lh1hFzT7/cHUEEVElyEFKRa9TeNU5F/t/UAiJVcpnUNlLuF1EgyY3KlCL7dY+Je1cEGQAq4jkUor0Mm32lBlC2UOyw6NQbyS9EEiYg9k6KeBOFwfy+cFfPb3VDECXljwBUwgRVzwNJZYm6atQxGNZoo1J/nihTQ5fcOtFLgjcZ3Z9TbWpi62ozsQuCiBw8PlIEYBkT+cYcEvH/ylDGeAW+/9FN/iSdDx4DSQi5Dn6ecrEnkjQniMjBw2ysWKVgeOje4O41UGOM7lD5Sa9JT/QN3ww81rDIzsrb3bHPe7s+9AmSWELIre6IJIRbRcLtrYoT3+wTJLGC3NsFRCly8M29WZAjYoZBSQhPPr+vASkGYXGhe88R+xLP6g/Eh9S5JGH5lwccm+6RNCXIsGKVC8CvIRmfFTmiQXHGqCTh24A6830TJNfAqLqJqA9FSdKkE0OjzQii0IrVilwXGsgx9MVPHSGwQZLciet2sJUmvWtCEHWYvCM3KXdyNDGZ8Y0OJMl+PEVheLN8ZHKCiBzElmwGjkd6/05cOMDvf+JXukJgIEluToLNNMlHJiUII6fZIDspVxI7u4Scvq9VNkiSA0EgSU4FlrKTEkTeg5wDsegayogc7HPkxrWhLv9vOgQGkrAEnNMo+UiW/aQ2PilBcr2HkyN1ePu6fyBJVmica0OpiExGEHkPVq1ylnTZUXbPkTrCnd0vkvDIfM4CzaQPNU5CEJEjd9XqTXsdJHqdDberY0Rg7GM2B6tXJDFZqDUJQeQW8R4HOzvmogA5t6M8phq/pxME5EVyVyEnS9irE0Tegx9bMCdWIocn5Z0Ydkk1SpBksK2Sau3VVZ0gOd5DZfkVc8879oZtGRdEkhfG2Noblc2KTMa0W5UgA8PNiXnP3+kYA67fcx6B379/Ez5bnzu7HmzsfEPGO6oSJIfhhFbGPnmxGSEgL0I+AklMWufY2JgGqxFkYLbVe3S0pDsGRr8nBwGRhC+4WUPpql6kGkFymC3vkbWZlDNYXrYNAjljnmNr53pbhSA53kNAdfv963Ng+ud2BORFCLWsE2M1L1KFIBmMDr+5ZIfZS84cAcIsJLkbGTZ3sq3iBMn0HuZk7WQv/cNZIDB4EXbZLfpW8SLFCSIm/23pncrgPUjW9HIlh3fzEAJ4EOTQZyevZdje0XqLEkTeg1Ur0665cg/3HkeHaT0fZHqR4s9oFSXI1dWVdWfTvcd6ODCmp3gQZMy9W/fIBq0RzFY98U1RgsgLuPeIyPrZjECOF7Ha4DFlixFE4RUPJRJiHWvr6HUB4rnHUXRW+4HJgwgtknXTRK2ye0cxglgTJJVzcuwNS/6FudegSZN9EdMXq2RT1lB/D7ZiBFHNJtYOD6upuB+OwB4C5iXfvZqMF4oQZAivklUQ03mc3fokZ3J7XmBeCOBFpLEl1CoWZhUhiFYO/lJHkg95j67+KExyB7xAdQSUdJuW/zX5FgmzihBEnTCFV5ohPP+obmKzb8AaYZgWjHbRyibIEF4lKyOGOzl2R2Me7yfVUpPoL6OtFAmzsgni4dWk9rLKxhSKW5N1U+i/CXI2QTy82oTTX1dCwBRmyfOwN5elUjZB1LqHVwLBj3oIEGapdutqVrJ9qq3PI4sgQ/7xWdnYF3KZvno1Fiy/LyCgSMUaZrUjiDT/j8RyWGYDSzteZlYInFTWajNZeUiWB1GCbmLn4DJPouEfOgKbCAw2k0wS5SGmLYjYdhZB5PaSG5fCvrwb0ddZYSrLkY86P379+vU5it43+6tKUmtJh2kSjwBkEUSVJDfu+cfFhYz/FiLc399/aMJ4lzwhmnC+RdH7Z8mr7nnnXpXJXpHReM36EDbJHkQdZgJKnshVLhxmgmQMmKWTQdm5/yfMrjF4DF+DPdbgr7lXZZ4pqzrMgz13/KT/5Is7ZoJIWVOCPsSSKr6uQ8b9KiN/V6+Tva7KxINfNX8VSYo8ZxQrndHZtB+i/v11of8sh5kgxgR9dd5DxozXeNXgFJv5RbQnEe6dulXvao5hck22IaOtBlzNBJHbT54JNbDWGSAoO7f/MGD1Ga9RjBwbGERvkjwOG3XM7qXwTLYhi61GYMwEUQXJA6MEPblzame2hwYz+y/6nul8IMmZexb1sdGGkm01gjYpQdTo/0lWcSgEKhpWnQBt0r/Zd0KPqT6y2FATglgAWYUHUWhFSIVYMEouoxBiTXsmJhvSmJhIMsaD7A2YGrMOvqlzewp0fkGh1eSrTGqzdjjXC+pWGypDEBk/Gyt7O7tsVkXRYJgMQKsJW7vFsb5zZ+nEDGnq4NSjiq5q0zqBqKj5YNxatJussDBC15M2dswmsKHkBlUAmz1WJ9elEza2h9+nB9ENYTlSFR3c2cWNR1F7exXp2tkjlk89S6ewqywdTcQ8q1jBGzSAWQ/H5aginLrHhzGUnmdt7JSNGDG6PVWndAo2ptxxa/k8EERK3+qGWsuRxv7sFWPFJqz/733S0QUGoaE6XXtZGR+bpabfupoQU+yMzdjgBAJBRI7uZ54NgIJ73njfzUtNNGMfH6mlM9iEga3VgLVeYYONdanbgT5BkpDTXUlxBrWR4gdUG3FJhD4YL44ouoZbmoV4x8CVjWFwvXuOXfWZbL4pZL7qDtBdTQ+8J5RADnzU9JLp+bSmGk/T+Kwm4AiJJuK/rxQzz1J5daI7Y9Rs05y0Peigsdk6pNMcJ2H6cB1yEF7NTQR6c2OcG2at9DU+HtJK3c12A0GsGy+bFU3+WqBP/t2Ac52UTs2x7EGHAzh1N1YHdNy7pBDrhRDL+msRexVOfOH0Y88TK9NRc5ZnlWqr33zisHRQk82/hFgYGmKpo0kZ5U1Pw3cDmrR/otEeZsrujJGxYsxO4NbjR2/S++VK//GHSh561PCITvw9Q9Mvfh+pr+Tl5sap8ex1siNS6VW3PRsQoYON4UEuBCokuSHm2ruzowtS+unnz583Ham0pQo46kIzI+h5/MBG4/cg6X0/5E063kjfMI6BIBrUQJIfP37QgTvd8ADYp4QyqXKqvmOfSZenQVA6sDq13Snvl67NdFTMzCw9ZXeT2pLRBe8vjG4kZ23smE0kNfq/m9+O1cd16YOd3WkCvkPPWOyTIPGCPgyxF2Q5JtaBULnvx+o8dl36fB+kefgSMTp1lq7MPMip22p8xri1aDe5L8IIorwcG/Nz15MbVAER4KTtSSfsbA+/PYKorjGH1VhXsXfBYIwBseQ9Ldosqf/Yur58+WLd2DbZrIkgYpupMYGwCoIIH+LYKWPt2XgP2UDuYbIhjYnJZk0EGXpoabC7x0OGvtQ4kQ/suewKDb0RN1eot9cqLTZksdXQ/0kJomTI6h6DsnP6jxlLYQ/L5+bBGdFfVh9pY8Sty7jF+IiReQzMBJGxmxtdxlCd78VAkjvdORYr3Tr6+CXPwcpejbpHKzH1jZp0kifZHFs1E0QrUpaBMcWPUw9CyfYiSTSwJXMSwqpu94NK4negrmQbMtpqaNpMEJW2PFbBl1CSZwC1NesDkki+iyQYdU5eQkgV1upnDYhR+YwVLPPzaTkEsXgQoJnrdwPQPUtEEsKiz43YkZWBM6tiD0NIlUOwkU12e1uy9xh6YsbMTBAGW40zeDqNPxQPrs6D7KIj7MImGR5FEgijM38j5EX4vPB6ELzFjYjB7u7q//CQEnTT5Cq8k+00jpmZIEMFloats8DQ5HJODJyEPYwXnT93enk9iHnm20dp/lc0aSRPVc4e5QAACo5JREFUrkw4OT3PIogUtgygEyRnxNZdNtl2chJ0oM4iiCqwJOr8CTJ+SUXF/XAExiGgBN1qM+YEHc1yCWIJsS7k9v6mcRdHYCwC1vxD9VuiHBX7c2QRRHEyBLEokOwq/6jr/68VAYXzJg8y2KgZtiyC0KoUNxFELjM54aI9lw4RqKySbMVEDkUq2St/2QQRNqY8RC7TwyyB58d5BGQrpuVdJeg8MHq+gRN3lCAIYdaJJg5/JM/jHuQwNH51BwGrrSi8skQ3W61nE0RKQBCLIqt87GQLfX9zFoEhvErOWUuEVyiXTRAqEcNN38NWJ/jFb6pwcQQOIiAbMYXiCq9Mof+uEkUIokrxIjolH7eaITzUSoZtPQXUU6t9WKIaNbd9FCFIRph1oQTMNENsd8PfLREB/jSapV/yOjy6Y520t5osQhBqtIZZKmedIWjWZcEIWG2jVHgFtMUIosqsjCVZN61zq00/FoqAQm9sIjk5Bw5FNNn7H9SDFCOIlOLLPKZvzcklerLOaLh8ImC1CZUrRg6UKUYQKpNYN2bciwg8P/4gkOM9FF6NXVH909iZ/4sSBC+i9kyrB2K+exGB58cFD7OabEE2VCw5vxj+FSUIdSqxci8CEC4mBDK9R5G9j03FixNEleNBTAm7ZgDTzKE2/VgIAjk2oAimaP4BpMUJIiVJ1q1xILmIk4SRWaHIezD2ppUrRS5VfkCvOEGGcc3xIvwNdBNIQ9t+miECIkfW31LXxFzcewCjjSCUPCFSNsuLyM0+n6jeP1ogAjljXst7AHMVglCxxOxFVJZntNgo0ks/lo6AvAdjbX6iQhNyFe8B7tUIIqVzvIh5qY9OucwLAXkPcg+T0jW9BwpVIwiVS3K8yLX1YTW168dMEBjG2JxzaiKu5j2AsCpBpHyWF9HsQMKO+0VXl4UhoNDqljG2dktlq6xcbepTlSA0JJLAcDwJb8/K7g24XwFpnmF26/P3fSDAmGpsXzO0Cb9ImVF+VNHqBEGLTKaz/JcDJCq4dIaAyJG1Uimbsu61JSExCUHkRQi1TE/6Dr3xfGQAYgmn+/t7JjzzqpXI8SSbMkclKRhOQpBBIZ7RMj2CQnmBQj5iXu2gDpf2CCi0ghiIVRn+hPQk3gMFJyOIGI8XyUqq5JYhSQ649NmlEQKQQ2OI9zBroIkyy4ZSG56MICgmkuAWEd5ahHzkGaANhb1IQwQYs1xySH0S8xz7URVpx6QEQbVhBjCHWqojksRXtgTGHA6RgzHL8hzqZ/jrXDpPekxOEHkRQq27zF4GwAE+sx4vXhkBxkieI2vFChWHiZWXk8rkBKF3A0lyVrWoJpCEFy79IjCQIytvFDkmW7XaRbIJQVBCJGElIjeevNaS4TuzFHW69IMAY6KxIazKIod6RN6Brejl9EczgtBVzQysSOTkI1QTPAkDwps2ktcqukseEZ5N0pnVutnmWNKfMSGsyiVHk7xjczSbEkRepEQ+Qn8YkFcGhjdzEun8qDDkXfKEaNL4pvOzhP7Mbt9H/WEs3jUGueS4EBZMoKqq3dGUIHR7IEkJIBgYjCp7YNBrCiEEERGO5WL050n3YGxTqJPdhshxq/4U0RdyyDZyQ/DsPjUnCD0QEC8C5JihcMtYwajYJ+l+5pUxoeMYMs/ie/rqD56PnGPsWB29D1vAJo7eMOEHXRCE/gqQ7wDD60yBJE8aMAwws6o6xaVb0HFs7ZqVyUnGkGlslUXvI2+SjuQc2fWqHn7bqllSvtuBbggyKPbfQiThG4khPMEYh7p7Oo039j9ak7Ajf9518j/YKgR81ZiV+s7O248fP0qE28UQ6oog8iKsaPFQY6nYk5mavKQrb3J1dWX5m3v/KTbqBSoSOWK+kUr2Y62//fz5M3cD+Vjd5utdEYReQBLNSMwiJUnSdchFv8+JSNWFBxExQk6kUKhIvjH0u0tyoFt3BEGpDZLgUbiULRrQGHJ15U2yOzZhBSJH8BpgWbDZ5nsdp/rSJUFQeCAJLreUJ6FaQi6IQtjVxYyMUr2LiMETC68iRkmvQbfxHDe86FW6JQiADSR5UMhVYgmYKqMwE0KSVXuTCMaps8gRNjJ1T6lcQ1WFA3IwAYY3vf7XNUEADZLoXGx1S3XFI3oTnuVyokRUhjPE0ApV2OEfLhU7yRO99JiQH+pg9wRBaUgiKbVPQpWb4kTZQGOHGMXDUKKB3pZyN7q/93IWBIlaVyQJTayaKLWJAcAixwNjyOu5yKwIAqgALKBJ7IqtcFHvhmwRRYZTfBbdaKvpS/omeVQo9aGwhzyvVl/DQ6kaO34jrWmfUxufHUHooIAOgIsoDCqXakggigznXQZEQl9qt7iGrkl1ihTfhsdDquQYFxcXm/qQjN9ozEquRm7WX/X1LAkCIgI8/PxLZZLQFMKq17OI8o5hYWBcnJNIZ34xP3qLZ+FWnfBq42kuyfixsZwtQWKHRBSS95ohV2yK87UGnadWuyeLCBF2vCG0iE0IxT5GTY8LPlGCh2ds4oW5nmdPEIDXQIQBkfFOZQA0u0mWDxnhp3eRcZbeM6C9k6I2AyF0jl4ihE/CpLqn2FFs1iHVTl8uFkEQOgVJJHgTNp9qJfA0dUw+CaO85RXCSF6ZwREZbnhkXWdzIkxZCaESdT1SL21I8BCBEGp7ykliE4swSc09pNrsEK8XQxA6g4gkb5o17yStDAU1EIgQft5fuoSwTMZLmPPOe25IEcqoPCSgDr6S+8Q11TG5t1KbW4f0INeYKBHfarr6m8URBMREkpjAk5vMcvWEfsxA8BoQo5svOJXGbJEEiSBBFFw+M5yutQi71OwiD4gRvcaicV00QaJpiighN3GiRETM501iLNZrbKKzCoLQYZEkhl0xP1n0zEefC8rqiBGxWw1BYoedKBGJUed1EeMAJKsjSMRghyglv+Ibm5jzefXEiIO3WoJEAAaihO8nKEe5kbReHo6qTX0OpFD/b7SwseiVqRRgV0+QTbAGspDQQ5S1eJVAjEgKMNjEZO2vnSAHLAAjkWx6lQdt0s3uUe0DXePSL/oiT8Ey7WUkBh+47CPgBNnHZOuKiMLq1wvfgpNR4VniKticNiCDl5D+dxCCvqhfq1im3RpMw5tSBDE0Pb8iMirIEv5ehQwNokCY+KMSvRCG5Wset+FRFAjx6SWkfy86zmbwnSAZQyWDgzDht2QhjORSs/QnaQhlVD1GidHqZdGDOt9oQ21Chgfal5Bk30m37xLaLtro2ipzghQecRnlJ2kIZWSwzOIYbSQPTxtbDBevQF14BIQ672hDbUKGpeRIhUckrzonSB5+SaVlyJCHWZ/ZP6msPEUom1TIb85GwAmSDaFXsGQEZkCQJcPvfesdASdI7yPk+jVFwAnSFH5vvHcEnCC9j5Dr1xQBJ0hT+L3x3hFYN0Eajc7v37+Tl3lV5t9G6q66WSdIm+G3GHsyqdp0bVmtOkEajKc2DNlJR8a2zvNfKfePrdfvO4OAE+QMQLU+/vj44Psmo6pPuXdUhX7TaAScIKOhKnujvAiPoPO7XadCJ+7hwcNT95RVzGvbQsAJsgVHuTdjahpIwmPzfM03hlCQgQcT+UITX32N18dU6fcURuD/AQAA//8CxurwAAAABklEQVQDAHaQEGrigLbJAAAAAElFTkSuQmCC",ow="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOcAAADICAYAAAATDvbDAAAQAElEQVR4Aexdi3ncNhOUVYlcSewOzq5ArkRKJXIaiNOB9FcipxH5n4GxDMR78Y5YcEGOP8GkeCS4O9jh4LFH3d7onxAQAiEREDlDNouMEgI3NyKnokAIBEVA5AzaMDJLCIiccWJAlgiBdwiInO/g0C9CIA4CImectpAlQuAdAiLnOzj0ixCIg4DIGactZEkcBEJYInKGaAYZIQT2ERA59zHRESEQAgGRM0QzyAghsI+AyLmPiY4IgRAIiJypGfSfEIiHgMgZr01kkRBICIicCQb9JwTiISByxmsTWSQEEgIiZ4JB/8VBQJYYAiKnIaGtEAiGgMgZrEFkjhAwBEROQ0JbIRAMAZEzWINcas5ut/u02+0evn79+vTly5dXFu7j2D3Kp0vr0/lxEFienHGw6MYSkO4O5QFE/PXhw4dnlMdfv37dw4E7Fu7j2BPKM8555bk4rp/OEBA5O2owkoxkA+leUR4nmn7Hc3ldVlSp6UTglj5N5Fy6Bc7cH4QsVZKEpDqeuergx3dZUaWmB+GJd1DkjNcmNwUhqZAsJGVNS6WmNdF0qkvkdAL2mmqNlOiGGiGvVcmpt3+vpphYog1TL9Z5vgiInL74nq2dZEDh5A4JyVJbJc/akE9IaooHw7PGphmRhTci50INAEKmsSTIYIT0VsmpnkpNpyLlfJ7I6QxwWb0RkjOnBSnLU6Ltj9WUyzXRbFytPSJng6YlKdlVLAgZRSWnem9qmhId4M8DSm8+TPU1xnmwQuQECB4/DF4UjiWZKPDKZQyP+yxQp6lpykaCj1JTp0YQOSsDi2BNqXSFSla+Q6jqSNSkpuwZwHclOFRsHpGzApgIyjS5g7EkVdJS6SrU3E0V1u21BAepaYWmEzlngAhSstvK2VaWpZZAZnjgcqnUtBKsIueFQIKQ71QSl1eZGEE9a/sZq+nD2hz09kfknIBwQUgqJItUcgJuxSlU00d0+181Ni1QObMrcp4AyEhZTO5IJU/gNeEjqekEkOwUkdOQyFsjJJ/yBSnzp9pUREBqegZMkTMDZKQsCCmVzNg4b/bUlG3hfM+T1Uf5cNPkZBCgaMY1SjTe3CQ1xQPSku83vSSzSXKCkHecmEAQ2OSOVPIm1D9T05TggPbaZLrgZsiJBi6XQNaUTheKVQ7GmJoyXfAZ7bgZNV09OdmYI5V0iB9V2QiBT+jtlGq66nTBVZIThCxV8ulM0nmjuNJtKiJgarrqdMFVkROk5OQOXxVpY8mK8aCqgiJAoiY1ZQ8JMbAaNe2enGiMUiWZubOaxglKhqhm2SSSqWn36YJdkrMgJBWShaSMGjSyqz0CVNPu0wW7IqeREpMCRkgtgbQPfM871q67azUNT04jpNLpasft5urrTk3DktNIKZXcHIm8Hd5TU8aa902vqT8UOQkSCmdc2W1l0VjymlbVNVMRSGoKAQiZLhiCnCCk0ummhpPO80DA1DQtySAeQ6QLLkZOAHC32+2oknzvjtLpPEJOdV6DgKnp4umCzckJUt5zsRhdCXVbrwkdXdMSgUXTBZuRE6Q0lVQ6Xcvw0r1qIGBqagkOTRJd3MkJUn7KyyCa3KkRJqpjaQRIVJtAcl1ndyUniHmP7usz0HR1AvXrZzYCquASBPhlCsY2Ytwttt3ICaNTf/0Sh3WuEOgMgaSiXja7kRNPle4Tj71AV72rQiAtA3p45EJOqCa/rd5k0OwBiuoUApcggC6uS6y7kPP29vaPS5zTuUKgcwT4tcWKBP2Nhgs5vZ4kv03W/0IgJALVBcmFnCGhk1FCwBeBf2tX70XOn7UNVX1CIDgCL7XtcyEnurXVDa3tuOoTAtERcCEnnP4LRT9TEdB5vSPw8s8//1TvLbqQk4ZinfN774jLfiEwBYEfP358nnLepee4kJNGvL29/Ylt9acJ6tSPEAiDAIZwLsSkg27kpHpmw194IxUhsDIEfjK+Eedu8e1GTjYEDKcD3+DEN/zu5gTq1o8QqIPAhFoQz4/oyn5EfLvGtCs56Scc+InyHc58hlMfNRYlKiodIkChISk/IJ45ZHN3wZ2cpQdw6ufff/9NJf0IokpNS3C0HxIBxOkjymeIC5WyCSkNiKbktJuSpCiDmsJ5fRHbwNE2AgLvVBKx6tp9PebwIuQsjYHj7Pb+CYJKTUtgtN8agURIxuESKnnI2cXJaUZlkjZXU7u/tptFIJHSCMk4jIJEGHKWgBAgFKlpCYr2ayKQCBlJJQ85F5KcZigIyi7vWE2V2GAAaXspAomUEVXykCOhyVkanIlKNeWSjGZ6S3C0fwqBRMjoKnnIgW7IacZnkkpNDZAVbSu7QlJ+60UlD/neHTlLJzJRBzVVgkOJzib3SUiuS37MpOz6yxddk9PCL5P0e5HgwHVTjU0NoPVvScquVfJQE62CnKVjmah/8snJcYbUtERnVfskZEqnY1uj3btWyUMtszpylk6iwZQuWAKygn08cNltHVRyBS4ddWFJch41qvYHJCnKMIkkNa2NsHt9g0qiHf9EWZ1KHkJwE+QsHUfDSk1LQALvZ5VcJOk8AiybI6eBTpKiDGrKQLDPtF0UgbFKLpJ0vigC+eabJWf2P21AUmYicUlGyfcJkeb/JULiAWlLIE2/mtXc24k3FDkLoDJJt6imBQpNdxMp82wrx5Ja/irgFzkLMMrdTFSpaQlKnf1ESKnkeTBFzjMYZZKO1VRP+DO4Hfg4kVIqeQCZI4dEziPAHDqciUo1Tcn3WpI5hNK7Y4mQUsl3mEz+ReScDNV/J2aSKl3wP0jGeyTlkChAvMYn6PejCAwfiJwDFNftMPBQLF3w84bVlIRcdTrddRFy/VXNybnb7e52v8un682OeSVI+jJKvl/9Gh0fRui2DioZs2WutyrHKmO2ebw2IyecfPjy5csvNOZrLs/4/RXl+evXr0/4vLnz1zfZ6StB0rRuiskPjk3X+K7eQSX5MIK/q0qnQyySjIzX5xyrjFnG6y/E6ys+fzgdAXU+dScnHLmHQyQlv8Y1tvoOBz7hyXsPEOg8Hb/HsdX8IHBXky6IdmLS+SrT6RCnRkgSkYXxekgw7hCrj4hpxirj1y1WXckJhz/BkacLrKfjT9nxB1zv6vwFds0+lSRFGS/J3NzczK7au4JBJWE/EwVW1VVnjKE8IE6NkFNjjrH6jGsPEbhKm7iRk0bD4ecrraTjj7g+dXtR1+rUlIEOJYqaLpgISfvQNW/+pvMrY2byZYinQyo5+friRMbpJeJTXHp+142cIFYto5P6Sk3PN2aFMxIpjZB4gKwq2cJIidi8VCVPQXvHOZNTJ1z7mQs5AQKVbmr3YKrtfEpRTVc3gUQASAQUJji0VtNEyLWqJLFFPHJyh4Rk4ViSh6sVYOfStXUh5+3t7R/VPN+v6A5glBNITWbO9s3wOQKCcqZ3PDb1ULBEyrWrJHpcNhk5QSyublN2k6sT1IWcII8nECWCSU3RAK/sWuAJWR2g8mat9zNRqaZckvmG7tjcJYtESLTPar+ahRjg6oAtgVRXyRMxUF2QXMgJB1qRE7dKP5tQU64pklgoDLpL1JSkHBIFSPqE2kr+AyGpXOy6UiU517GKh7QXOZds9k2oKbujIKmlC46XN0jcF3y+6nQ6kpI9JvQoXMaSFwbxvxeef/Z0F3ICrHGwnDXE4YSxmnKSyuE2y1UJBUzpgiAqu72cSGJ39QN+5/YzPl/dGwVISBSqJAn5igdQlHblA7FqMLiQ8+3t7a+qVs6vjGq6n9wwv94wNYCInEiqHiBRHAQhU9cVD36Skt361kOnk1AA/+qC5EJOeMEgYcFuqB+SlMsxq0xuCIV0BWOMkJzwK0hZoea6VUC9+Ye16laK2lzIiacIJyA+o/7IP6tNbogM+hTbjJQFIUOp5MgH9ljmzqKPqvz9qws5WXUmqMsThfVXLKamq0xuqIiTe1Ug5TCWBDHZdXW/58wb/OT4fmYdRy93IyfvCIJ+h+QT5IhdXJpYlvEE0qqSG0pHI+2DkGks+eX31wkZK5FVsoSOvUNX8XElJz0BQW0RncDzUA8lqSnHOpyqRwCtYt0sEvDAlCq5RLLAXBgSKamYiO3qk0Clce7k5M3gBPvlJCmn+/m0cXWK96xUpKaVgGQ1IORYJbt56LEHiGLfZXUZYxKjsjQhp90wk3TIG8W4oomTdv+ZW6nplQCSlOyBoL1tGeTKmppfRpVMiRyI3ebfZW1KzhJaOFu+IYBd3h7GpXRhrKZRFsFpW5hCQqKw60pCRkoWmIIRSTmkO065wOOcxchpzpCkKPb2uhrJ3VZ1iy3VtExu6Kab5gUOCJm6roVK9jTBw9ewMLuKXzBfvFe3ODnLIAFJe30XLEnK5Aa+B4mvrtiUmhohOYFWkLJs2sj7VEl2XUlIdl3D9OBCkdNaECS1CSTmjPY0gUQXNpPcYKQsCNmrSobMQQ5JTkY4SybpMIGE2TKOTflRD2VQU06GIJBX0+WFL8NYEsTsqU3CquShgA5NztLgTFQtx5SgVNqfUg0ImcaS6LryO5MkZC8qecOHOoqNJUOq5KE26IacZnwmaddqigDv5s0NICVVstdkAY4lPyBmQo0lLZbPbbsjZ+kQQLexqZIbSmBm7oOQY5XspksOheSMqyULdKOSh5qsa3KaQ5mkg5piHLT4NLjZNmGbxqYR1JSk5PgY+HFtkl3XCeaHOMXGkqaSvWSgnQRvFeQsPSRRZ7xrp6yq9f4iyQ0kJAq7rhxLKlmgdauP7lf+ujpymnMkKYolN9i7duzj6FuqqWtyAwiZXobcs0rm5POeekkXxd1qyVmiAJKmd+1gPMKxKbtrYRaaSzsP7JOk1ZIbSEgUqiS7rVLJA4BHOtSMnAgKTjKw8A8UPXBsg2P3KM0mG0BSm0DaVHIDME64FyrZyzJIGkvyodpaJTNmn7BNsZrjlbHbLF6bkBMOMmsmPa0RIFQCzqjxre1P+J0pb02XFjJJhwkkND7VNNJD85Qtg5rmgDkaLMB9UEng3JOPiZSZkE2XQYBZ2d3nElKKVcQI45Wxm+IV57mnaLqSEw7cYRaSDp77a2OLTIaQAZmoSyU30IRryxiz9OYGYo5CUnKCh4TsVSWbLYMAr9SzQKwSsyndfT4gn3BdwvzaBjx3nSs58bS+5u3byXEA9UrnUY4qwznnLvk8k7RrNSVmwJw9FJLyEveXPDeKSl6MGbB+RHy6EdSNnOxyocXnEIsktW5E0296ZKJ2qabAvIsfdBPZXWyeUgcymUryITZFJU/imQk6J86P1u9CTgIA8Gv2yTlmLZcWmnTVMkkHNUVDrHba/miE1P3AVNKSBZrNmjMmUa75C9ZnEUBcuKinCzlvb29djAVKg5pSmQG2yxML99n7IVFHyQ2ryELZc9ThAIKXb2Fs/mYBxMc7lYQdp7quczznrG71WHQhJ1SzuqEj5PYmQ9gQo3NcfiVJUZjcwOWY3pIbXDA5UumgknyoAbNmvQ7GrmLWsAAAB3xJREFUAoqLSh7x1eWwCzlhaZNuJ+7DnyXVtNfkBuLmVUjK5ipJZ0jIBSfFuvn7nM3GEmyUXPbUNB9330AVek5uqIEPCVlO8DRXSZCSyyDstrYUhhK7Pv4EICxegpy47fCT1BQNpuSGARKXnUTKhZIF7jnvgHEkZ11JShcHl6zUpVuLMWeUyZITauoLe6GmzOft7T1Ip8BJhEQbL7kMQpV8gg01VwRO+Tzls+ox70JOePI/lGg/UtN5LZJIuZBKlil14VQS6v2dD+N58O5f7UJOGPpCg/dvF+LIWE2bPX2Bi41Nu1FTqFM5llwipY7d1tnJAp6R9/b29pdH/S7kpKEwmA259NiTppwqVFMlN+wjZCq5qmSBfTfnH+HDCw/d6l1aWuZGThjMBuYf0I1OUOJAkjJV0CaQmqop1wHRyFRTdtlcGppOnivs7cCO5ssgu92uVbLAOQgu+px4Ic4pQhddN/VkN3LSABieCIoGZ9DxUPgCW/nVoKXU1JIbPrLhG4HFNkpvqeNDAm3WfBkEvrLryhhZahnkUqiJ2WfidemFl5zvSk4agsYux1lsgB6UlKabmj5zyn6323lnPfGeqRAzNjweFKamHpgxwJqrJB0ElvxKGwnJwpjg4R5KiZl7D8ednIY4Aw6F3/Rg2ltPSwvjCSSvvGGDatgCL3uwJcygMHNVjcFVTvDMrW+w9dwOCGldVy6DkJA9qeQimDUjpzVeDrjhmx5QBzaUfRx9m9R0qeSGGWqaSLnQMghVkl+471El2d1f7A8cNSdnYl/+LxOVasrum9Q043JqU2BWqumhbm8iJB5+SycL8OHbbEhwCrsJny2G2SHbFiWnGZQDTmpqgEzYGmZUUyoiSYhCwvJt5x94DOcs+f4dknKCJyFOSaRcArNT3ocgZ2kgAsrGWb2rabPlGOKXcXvB1n2igvezMhpLhk4WMJtti4dZOZZ0WxKx+126DUdOcwBBRpIOalphMsSqbrHl2LT5ckwLx+weJCVnsdEuvY4lmydYGHZTt2HJWTpAorL7hicd1ZTdpUNjrPKSKPskaUpuwCRS0/cgTQbgghNJSBRO8JCQXakk3HxB/CyydIR7X/XTBTnNM5IUhQv1JGlvbyFY5D1Iht2cLQiZlkEKlexqGQRjSY7BPyN2mi0dzcHbru2KnGY0twC617cQmJo2T24gblOLERKKn1QSxGSPZerlS5/HCZ6uVPIQYN2S05wBSTk25XIMZyq1HGPAXLk1UoKMJCUJ2ZVKoutqS0ddqeSh5uqenOZUJukwgYRGYmDZx9G3SU2pUpxkAUGarwvinsNYEsTsCTuq5KLJAtWCa1TRashZ+pWJSjXl2FRqWoJT7IOQaSyJh0LvKXXhlkEKmK/eXSU5DY1MUqmpAZK3IGWv799ZrUrmpnm3WTU5S08zUdegplclN4CQpUpGe/9O2VR7+xyioDDzKeW57p2w0gObIae1XybpoKYYX/U0ccCxaZnccHZsSlJyHAs/bYLHoIi+NZW0ZIGmmU8RwNkcOUvQSdQlkxtKWy7cJ0mZ3PCM8SL/Gts7NSUhUYYJHqjOu88vvFfr00nK7pdBaoC2aXIagCQpiiU3fIPK9KymPf4ZAhKyzHPtCX8Lo+pbkXMEKUj6vXM11TLIqE17/VXkPNJyIGmvyQ1HPApzeKySq1wGqYG2yHkGxUzSYQIJ47eelOmMd00/TqT88eNHmnElrk3vfuZmET8WOS9oFQYUSo/LMRd4WfdUPsxQLKVOKnkBvCLnBWDZqSAou7xSUwNkf2sqacsgvXzFb9+TBY+InDPBz0Q1NWWXd3PrcQYhZ7mhkptLFjD/a29FzkqIGkkxpuK3Y1q+FLqSB1dXM6gkZ7mBw2YfTlcjeOTCrZLzCBx1DiNAfzJQoSJMvKearrFbR1IqWaBOyBysReQ8CEudgyQpCru8VNOevh1zDAASUskCx9CpfFzkrAzooepA0N4nkBIp0WXXMsihBnY6JnI6AXus2kxUqim7vJHVNBGSXXMj5TGfdNwHAZHTB9eztWaSRlyOSaQ0QtLOs87MO0FXH0FA5DwCTMvDJADKomoKhSzHkkoWaBkAR+4lch4BZonDIOi7sSnXDZ3tMJVUsoAz0NdUL3Jeg1qDa0jU0XJMtfVDkh5KqWWQBu045xYi5xz0GlxLkqLwu6ZcjpnzIu1BJUl61KnvTDZovzm3WICcc8zd9rUg1DUv0iYppZIdho7I2WGjgaQcm3ICqVRTZiGlgi4rJ3dY7NsgUskO21nk7LDRzORM0qSmXPqwguP8u5wsJKudrm1nCIicnTWYzN0OAiLndtr6gKc6FBkBkTNy68i2TSMgcm66+eV8ZAREzsitI9s2jYDIuenml/NxENi3ROTcx0RHhEAIBETOEM0gI4TAPgIi5z4mOiIEQiAgcoZoBhkhBPYREDn3MWlzRHcRAmcQEDnPAKSPhcBSCIicSyGv+wqBMwiInGcA0sdCYCkERM6lkNd94yAQ1BKRM2jDyCwhIHIqBoRAUAREzqANI7OEgMipGBACQRHYJDmDtoXMEgLvEPg/AAAA//+UJr1OAAAABklEQVQDAIM1OYH/FWvMAAAAAElFTkSuQmCC",lS="",iw=A.forwardRef(({mapView:e,isRollMap:n,leftLayerGroupRef:r,rightLayerGroupRef:o,sideBySideControl:s,baseMapList:l,baseMapSelectIcon:c})=>{const[d,h]=A.useState(l),[g,m]=A.useState(!1),v=(_,x)=>{if(!e)return;const b=d.map(E=>E.id===_.id?{...E,checked:x}:E);if(h(b),x){const E=tn.tileLayer(_.mapUrl,{id:_.id,maxZoom:18,zIndex:1,pane:"rightPane",zoomOffset:_.zoomOffset||0});o.current.addLayer(E),s&&s.current.setRightLayers(o.current.getLayers())}else o.current.eachLayer(E=>{E.options.id===_.id&&o.current.removeLayer(E)})},y=()=>{if(!e||!o.current)return;o.current.clearLayers();const _=d.find(x=>x.checked);if(_){const x=tn.tileLayer(_.mapUrl,{id:_.id,pane:"rightPane",zoomOffset:_.zoomOffset||0});o.current.addLayer(x)}};A.useEffect(()=>{y()},[]);const C=()=>Zt.jsx("div",{style:{marginLeft:"32px",marginTop:"-34px",backgroundColor:"white",display:"flex",flexDirection:"column",width:"200px",borderRadius:"5px",padding:"10px",gap:"10px",zIndex:1e3},children:d.map(_=>Zt.jsx(jx,{onChange:x=>v(_,x.target.checked),checked:_.checked,style:{width:"200px"},children:Zt.jsx("span",{children:_.name})},_.id))});return Zt.jsx("div",{id:"select-base-map",children:Zt.jsx(tw,{open:g,onOpenChange:m,dropdownRender:C,children:Zt.jsx("div",{onClick:_=>{_.preventDefault(),m(!g)},className:"select-base-map-button",children:Zt.jsx("img",{src:c,alt:"底图选择器",width:25,height:25})})})})}),sw={center:[35.8617,104.1954],zoom:4},aw=A.forwardRef(({mapSettings:e=sw,rollIcon:n=nw,normalIcon:r=rw,baseMapSelectIcon:o=ow,baseMapList:s=[],onIsRollMapChange:l},c)=>{const d=A.useRef(null),h=A.useRef(null),[g,m]=A.useState(),v=A.useRef(null),y=A.useRef(null),[C,_]=A.useState(e.zoom),x=A.useRef(null),b=A.useRef(null),[E,S]=A.useState(!1),P=A.useRef(null),[I,M]=A.useState(Date.now()),k=A.useRef(E);A.useImperativeHandle(c,()=>({addLeftLayers:R=>{!h.current||!v.current||(R.forEach(z=>{z&&z.addTo(v.current)}),x.current&&x.current.setLeftLayers(v.current.getLayers()))},addRightLayers:R=>{!h.current||!y.current||(R.forEach(z=>{z&&z.addTo(y.current)}),x.current&&x.current.setRightLayers(y.current.getLayers()))},clearLeftLayers:()=>{var R;(R=v.current)==null||R.clearLayers()},clearRightLayers:()=>{var R;(R=y.current)==null||R.clearLayers()},getMapInstance:()=>h.current,toggleRollMap:R=>{var B,z,$;if(S(R),R){const j=((B=v.current)==null?void 0:B.getLayers())||[],V=((z=y.current)==null?void 0:z.getLayers())||[];x.current=new tn.Control.sideBySide(j,V),x.current.addTo(h.current)}else($=x.current)==null||$.remove(),x.current=null},getIsRollMap:()=>k.current,getLeftLayersGroup:()=>v.current,getRightLayersGroup:()=>y.current,getMapRef:()=>h.current})),A.useEffect(()=>{if(!d.current||h.current)return;const R=tn.map(d.current,{zoomControl:!1,doubleClickZoom:!1,attributionControl:!1,crs:tn.CRS.EPSG4326}).setView(e.center,e.zoom);R.invalidateSize(),R.createPane("leftPane").style.zIndex="300",R.createPane("rightPane").style.zIndex="300",v.current=tn.layerGroup().addTo(R),y.current=tn.layerGroup().addTo(R);const B=tn.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=tn.DomUtil.create("div","leaflet-control-container"),F=oo(W);F.render(Zt.jsx(Zc,{zoomLevel:C}));const X=()=>{const J=V.getZoom();_(J),F.render(Zt.jsx(Zc,{zoomLevel:J}))};return V.on("zoomend",X),W}}),z=tn.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=tn.DomUtil.create("div","leaflet-control-container"),F=oo(W);return P.current=F,F.render(Zt.jsx(iw,{mapView:V,isRollMap:E,baseMapSelectIcon:o,leftLayerGroupRef:v,rightLayerGroupRef:y,sideBySideControl:x,baseMapList:s},I)),W}}),$=tn.Control.extend({options:{position:"topleft"},onAdd:V=>{const W=tn.DomUtil.create("div","leaflet-control-container"),F=oo(W);return P.current=F,F.render(Zt.jsx(pp,{isRollMap:E,setIsRollMap:S,rollIcon:n,normalIcon:r},I)),W}}),j=()=>m(R.getZoom());return R.on("zoomend",j),R.addControl(new B),tn.control.zoom({position:"topleft"}).addTo(R),R.addControl(new z),R.addControl(new $),h.current=R,()=>{const V=x.current,W=b.current;if(V&&W){V.off("dividermove",W),R.off("move",W);const F=R.getPane("leftPane"),X=R.getPane("rightPane");F&&(F.style.clip=""),X&&(X.style.clip="")}R.off("zoomend",j),R.remove(),h.current=null}},[]);const N=R=>{var $,j,V;if(S(R),k.current=R,!!h.current)if(R){const W=(($=v.current)==null?void 0:$.getLayers())||[],F=((j=y.current)==null?void 0:j.getLayers())||[];x.current=tn.control.sideBySide(W,F),x.current.addTo(h.current),x.current.on("dividermove",()=>{var X;(X=h.current)==null||X.eachLayer(J=>{J instanceof tn.Marker})})}else{(V=x.current)==null||V.remove(),x.current=null;var B=h.current.getPane("leftPane"),z=h.current.getPane("rightPane");B&&(B.style.clip=""),z&&(z.style.clip="")}};return A.useEffect(()=>{h.current&&(N(E),l==null||l(E),P.current&&P.current.render(Zt.jsx(pp,{isRollMap:E,setIsRollMap:S,rollIcon:n,normalIcon:r},Date.now())))},[E,l]),Zt.jsx("div",{ref:d,style:{height:"100%",width:"100%"}})});fn.default=aw,Object.defineProperties(fn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});