diff --git a/apps/com.awspaas.user.apps.cmp/monitor/css/app.0d1a1e74.css b/apps/com.awspaas.user.apps.cmp/monitor/css/app.0d1a1e74.css deleted file mode 100644 index e7c1d53..0000000 --- a/apps/com.awspaas.user.apps.cmp/monitor/css/app.0d1a1e74.css +++ /dev/null @@ -1,3 +0,0 @@ -.camera-item[data-v-553e2dec]{background-color:#fff;border-radius:1.33333vw;margin-bottom:2.66667vw;position:relative}.camera-item .camera-name[data-v-553e2dec]{display:flex;justify-content:center;align-items:center;position:absolute;background-color:#c6c6c6;border-radius:1.33333vw 1.33333vw 0 0;color:#fff;top:0;left:0;font-size:2.66667vw;height:6.66667vw;width:100%;z-index:99}.camera-item .camera-player[data-v-553e2dec]{width:100%;height:53.33333vw;border-radius:1.33333vw}.camera-item .overlay[data-v-553e2dec]{width:100%;height:100%;position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;z-index:99}.camera-item .modal-overlay[data-v-553e2dec]{width:100vw;height:100vh;position:fixed;left:0;top:0;z-index:999;background-color:hsla(0,0%,60%,.363)}.camera-item .modal-overlay .quit-fullscreen[data-v-553e2dec]{position:fixed;font-size:8vw;left:3.33333vw;bottom:3.33333vw;z-index:100}.camera-item .modal-overlay .modal[data-v-553e2dec]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:90vw;background-color:#fff;border-radius:2vw}.camera-item .modal-overlay .modal .fullscreen-video[data-v-553e2dec]{transform-origin:center;transform:scale(var(--scale)) rotate(90deg)}.camera-item .modal-overlay .modal .video-overlay[data-v-553e2dec]{width:100%;height:100%;position:absolute;left:0;top:0}.camera-item .modal-overlay .modal .video-overlay .fullscreen[data-v-553e2dec]{position:absolute;z-index:99;right:1.33333vw;bottom:1.33333vw;font-size:8vw;width:8vw;height:8vw;background-color:#eee;color:#777;display:flex;justify-content:center;align-items:center;border-radius:1.6vw}.camera-item .modal-overlay .modal .video-overlay .exit-fullscreen[data-v-553e2dec]{position:absolute;font-size:5.33333vw;color:#fff;z-index:99999;right:.66667vw;bottom:.66667vw}.camera-item .modal-overlay .modal .video-overlay .arrow-control[data-v-553e2dec]{width:13.33333vw;height:13.33333vw;border-radius:50%;background-color:hsla(0,0%,100%,.56);position:absolute;right:3.33333vw;bottom:3.33333vw;z-index:9999}.camera-item .modal-overlay .modal .video-overlay .arrow-control .iconfont[data-v-553e2dec]{width:4.26667vw;height:4.26667vw;font-size:4.26667vw;position:absolute;border-radius:50%;display:flex;justify-content:center;align-items:center}.camera-item .modal-overlay .modal .video-overlay .arrow-control .iconfont.pressed[data-v-553e2dec]{background-color:gray}.camera-item .modal-overlay .modal .video-overlay .arrow-control .up[data-v-553e2dec]{left:50%;transform:translateX(-50%);top:.53333vw}.camera-item .modal-overlay .modal .video-overlay .arrow-control .down[data-v-553e2dec]{left:50%;transform:translateX(-50%);bottom:.53333vw}.camera-item .modal-overlay .modal .video-overlay .arrow-control .left[data-v-553e2dec]{top:50%;transform:translateY(-50%);left:.53333vw}.camera-item .modal-overlay .modal .video-overlay .arrow-control .right[data-v-553e2dec]{top:50%;transform:translateY(-50%);right:.53333vw}.app-container[data-v-c7f60b88]{height:100vh;display:flex;flex-direction:column;overflow:scroll}.naive-select-wrap[data-v-c7f60b88]{width:100vw;padding:2.66667vw 2.66667vw 0}.naive-tabs[data-v-c7f60b88]{padding:2.66667vw 2.66667vw 0}.nav-bar[data-v-c7f60b88]{width:100vw;height:11.73333vw;background:linear-gradient(to top right,#496df6,#2e9ee8);display:flex;align-items:center;justify-content:center;color:#fff;font-size:4.26667vw;position:fixed}.switch[data-v-c7f60b88]{width:91.46667vw;height:10.13333vw;background:#e4e4e4;border-radius:1.06667vw;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:0 1.06667vw}.switch .switch-item[data-v-c7f60b88]{width:44.13333vw;height:8vw;border-radius:1.06667vw;display:flex;justify-content:center;align-items:center}.switch .switch-item.active[data-v-c7f60b88]{background-color:#fff}.image-list .image-item[data-v-c7f60b88]{margin-bottom:2.66667vw;position:relative}.image-list .image-item .uplode-time[data-v-c7f60b88]{color:#cd5c5c;position:absolute;font-weight:700;right:2.66667vw;bottom:2.66667vw;background-color:hsla(0,0%,100%,.4);border-radius:133.2vw;padding:0 1.33333vw}.image-list .image-item[data-v-c7f60b88] .n-image-item img{width:94.66667vw;height:56vw;object-fit:cover;border-radius:1.33333vw}#proj-select[data-v-c7f60b88]{border:none;box-shadow:inset 0 0 0 1px #dcdfe6;height:10vw;border-radius:1vw;margin:2vw 2vw 5vw 2vw;outline:none}.empty[data-v-c7f60b88]{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.empty img[data-v-c7f60b88]{width:80%}#app{background-color:#f6f6f6;//width:100vw;//height:100vh} - -/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:after,:before{box-sizing:border-box}html{-moz-tab-size:4;tab-size:4;line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}hr{height:0;color:inherit}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}@font-face{font-family:iconfont;src:url(data:font/woff2;base64,d09GMgABAAAAAATMAAsAAAAACqwAAAR8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACELgqGXIYBATYCJAMsCxgABCAFhGcHgQcbdgkRFaQ3kP0ssJuXHsg4CwdKpxm1oRH9tn2ET/q+CB4+2/LPzALLcKZR2Y1s6CLie0QcjTtHRKRLdd7GOvFe9KQixKzMAwI4293eXwc00AluNkok3bQiiwIKJC4Alrb14ulDXEhYpL51regGvvsx7A+OJX9ZC9w3AGT3CmwTTK5IwQbfdEI08UFIePY6KfmSsy+CADQOI5DjJkxzyVu7Yut62mEgowUkhWLtqsQKzIEWo4EkMBXeZTc0EOeIQR6XP+Bs8PHiC0FNkHgUcqhZ8fFR7qX9X66rM1sN6gOp7bWwsAQ8gAL6HZle1DRbb4RRtB8KXfUbR2wFSihAYaT96QWZwZnhmVGZ8V+Wfln75Xo220de6yxjC0r0Hzzw4kEiUBiY+PGhQXhBmtPBHItpSPsdJryQXsCEBzKDmZCQGa5GTGWjUKOQjYcJA74sZcKEL2vV+JFdQ40P2XWq0AAEPHkZOT9ArEewLkOFog2xF1KHQr+rtFSpjsYwkt3smBONzY0n4rNiiTlb4nNj0TkJc0uxWbviV67yxFVNNejiREn00lkau1x6slF4dU/8yqPuWmmsRF1/ssVaV0QbQAvXilT1CZHyxkN2VVGbG1ikzOubfyL0Sompea+JJ6teEqvdF5rQSSSpSskJJNVMq0Wu2kMsK2PXishuFCumitWHosg9OPfFE8HhMlNQa7LFWncbPkLTu7E4qYtglD88SPaOzitueVA37ObNrr5ut2415EcFbn6c39DSfLzd8eYPjYUU3AvIw/lcrq8/Vil8xy51Uo9WFlYeq6v3V2DFi7Dd2GiHTz2b/5xE1Gy42dAz69SpZriJ9Lm3o/DJVzOlN9eZPXDgHGfuY8cdOHtM7TqP5zpzBlI77mNn7sA5O5jrhK3QFHuiZU20pzQtk61JFvUUu2myPcmitic3LVOsiX+ayfaXkS8v2+cuxSae32KotP6l9VJWtV/ScQtbjQ12OJlsXp90WSY3bDU0WKeshHM6otOepaHRavSSbEOOIS/JL4AaKbsAyMfZn+8K2WQ4qxRkb6tJTQJQIfkGUNXyH3CqvkNAwPNFv4Igf/1nBgwA2ibcrPFkkxHb82MiXwYpH2DZseSIxkwL2xgQpwYBBAimXoMENBr4zDqLaNm+vHjpMAjMDK8PEh/tQWHSDWFgLKlnDzzAi8lw0NiM3zxAMRtRCMMP9OKgBYIC6kGSx11QFPAUYWBeg4cyPoKXAv6DJiTqnQXoZTO5CEaKKcQzFAm3ZBQajPeJWV9HUhb6onQFAXAtJ594YIuyiVW6IfNUCUi4gXvvcFjXDEa4xEStXNX4tk1V92Il3CwugpFiCsQzUCTckjeyZr/eE7O+jmRJxNcsXYdjjx9wsXCWQDyk7VIdj2T2bsg8VKmzGAk3wH1mxlqjDJjq+UpM1CJfI2x8bHskWlZq7V/ePNiCf0IXedGACAyNjE1MzcwtLK2I1iLpJuWx3UqR5brqzcYIDpsWJz3/+qmI2Js7ak3RZgEfYqYoNB//0f3kRENODZrFAgAAAA==) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAAZ8AAsAAAAACqwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA8H05pY21hcAAAAYgAAACoAAACLmfdNiVnbHlmAAACMAAAAhEAAANcJlWS5WhlYWQAAAREAAAALwAAADYjrK4XaGhlYQAABHQAAAAcAAAAJAfeA4xobXR4AAAEkAAAAA8AAAAsLAAAAGxvY2EAAASgAAAAGAAAABgDHgPwbWF4cAAABLgAAAAfAAAAIAEZAD5uYW1lAAAE2AAAAUAAAAJnEKM8sHBvc3QAAAYYAAAAYwAAAIdrMeAoeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFhYJzAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnnG+nsnc8L+BgYH5DkMjUJgRRRETAHVWDQh4nOWRsQ3CMBBFv4kJxKKgYAwWSBEpTYZIkwlSMgQjJB0Vo0Un3RDJPx8VYQPOepbuWz5b/wM4AijInUQgvBFg9aIasl4gZT3iwf6GK5W4VEsvtTTSSqeDjjqvK7BTJ1N3FTjlewEl/3LgGafjjAqn/G754/6/1SXvz0+XzGeHnmHpHUtSaoc+QhrHUpTWsaSlcyxtHRz6DR0dOg+dHGYAnR2kDQ0DN4V4nJVRPW8TQRCd2Yt93hzCH9yHHcQJnxWf8BoR+86+BmxKx+mS2F2aQ6JxQcEP4KjxFZES/gPn1ERUKJZc8AOckl9AiSkXds8yIogirFaafTNv387OAwSxyBn5DBkAdCkGSM58Pseez1fkncfnfO6hBilP6ZOHkkdRpegS4CsPe9jzUEfN41fY99Y8sljrCTXJO+ErH/v8ysdI8qTib73qmiceVv/Q+8R/ePJGyvv5RnmgvIX7ABms+wF2n6FfZ+iomNUtNL1Wu9tpdZUiHyoKXmpmPpPXeJVS/KoVC2V8ih+JKgv5rYKhcWd7Z5vX7pQL+VT7UtGVARRkD3XnLlpUiJpt8YivaHxMK0WkeM4ntFSh+EEcMaGlMuUTPslVShSTXAVgK/3LmMwgB0XYgRrAbq3jGbWO6u5aqmtIgG5gpbmql+LAwjCcsdjG71N7ymY8iO2YzfCLSE7tJZuFIi22gChYsYgiF9uweS8i16DDI2jCE4Cq49ZdMZxu0G1bpmXqalbNum2JfVlxJNZl5Z5atFyDGOHocK/V2jscLY6P5OHo+MX4YMCaTTY4uBjuy8P+8Nv16UtZWtwgsxucC3kLn79Hdj44/au3x9D6r96M9dhu2Z3ZWLLbdZcsxfqnTxszMht7cGNYdWMh2mL2kY2vIjtqJPy1CMKnOEwakT1qJKHAYgtImIypT5Hw6RfBdLxkAAAAeJxjYGRgYADim9Ef4+P5bb4ycLMwgMADt628CPp/PQsDcyOQy8HABBIFADDcChUAeJxjYGRgYG7438AQw8IAAkCSkQEVcAMARxECdHicY2FgYGAhEgMABEwALQAAAAAAABQAKAA8AFAAfgCiANoBKAF2Aa54nGNgZGBg4GYwYmBhAAEmIOYCQgaG/2A+AwAOsQFYAHichZE9bsJAEIWfwZAElChKpDRpVikoEsn8lEipUKCnoAez5ke211ovSNQ5TY6QE+QI6Whzikh52EMDRbza2W/evpkdyQDusIeH8rvnLtnDJbOSK7jAo3CV+pOwT34WrqGJnnCd+qtwAy94E26yY8YOnn/FrIV3YQ+3+BCu4AafwlXqX8I++Vu4hgf8CNep/wo3MPGuhZtoeeHA6qnTczXbqVVo0sik7niO9WITT+2pPNE2X5lUdYPOURrpVNtjm3y76DkXqciaRA15q+PYqMyatQ5dsHQu67fbkehBaBIMYKExhWOcQ2GGHeMKIQxSREV0Z/mY7gU2iFlp/3VP6LbIqR9yhS4CdM5cI7rSwnk6TY4tX+tRdXQrbsuahDSUWs1JYrLiDzzcramE1AMsi6oMfbS5ohN/UMyQ/AHYk29XeJxtiUEPRDAUBt9Xz6Ic/MNNRdFEXktaK/vrBQcXc5rMkKIbTe/UUMjAyPFBgRIVNGo0xLMdIvf+J/nqximqFDisdmOxe2yXtDvjl2QkOBm/vuz8YE6p/kbilfRziQ53thyRAA==) format("woff"),url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI8H05pAAABjAAAAGBjbWFwZ902JQAAAhgAAAIuZ2x5ZiZVkuUAAARgAAADXGhlYWQjrK4XAAAA4AAAADZoaGVhB94DjAAAALwAAAAkaG10eCwAAAAAAAHsAAAALGxvY2EDHgPwAAAESAAAABhtYXhwARkAPgAAARgAAAAgbmFtZRCjPLAAAAe8AAACZ3Bvc3RrMeAoAAAKJAAAAIcAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAsAAQAAAAEAANlb8V9fDzz1AAsEAAAAAADgRrUNAAAAAOBGtQ0AAP9/BAADgQAAAAgAAgAAAAAAAAABAAAACwAyAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQEAAGQAAUAAAKJAswAAACPAokCzAAAAesAMgEIAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwOYJ65kDgP+AAAAD3ACBAAAAAQAAAAAAAAAAAAAAAAACBAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABpgABAAAAAACgAAMAAQAAACwAAwAKAAABpgAEAHQAAAAUABAAAwAE5gnmWeg56D3oQOhF617rbOuZ//8AAOYJ5lnoOeg96EDoRete62zrmP//AAAAAAAAAAAAAAAAAAAAAAAAAAEAFAAUABQAFAAUABQAFAAUABQAAAAGAAUAAgABAAMABAAIAAkABwAKAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAACIAAAAAAAAAAoAAOYJAADmCQAAAAYAAOZZAADmWQAAAAUAAOg5AADoOQAAAAIAAOg9AADoPQAAAAEAAOhAAADoQAAAAAMAAOhFAADoRQAAAAQAAOteAADrXgAAAAgAAOtsAADrbAAAAAkAAOuYAADrmAAAAAcAAOuZAADrmQAAAAoAAAAAAAAAFAAoADwAUAB+AKIA2gEoAXYBrgABAAAAAAKUAr8ABQAAAScJATcBApQ0/sIBPjT+9QKLM/7C/sIzAQsAAQAAAAADPwIgAAUAAAkBBwkBJwIA/vUzAT4BPjMBFAELM/7BAT8zAAEAAAAAAsUCvwAFAAAJATcJAScCXf71NAE//sE0AYABCzP+wv7CMwABAAAAAAM/AiEABQAACQEnCQEHAgD+9TMBPgE+MwG5/vYzAT/+wTMAAQAA/38DHQOBABsAAAUBJjQ3ATY9ATQmKwEiBwEGFBcBFjMxMjY1MTYDEf5KAwMBtwsWDwUPC/4hCQkB3gsREBgBPAG2AgcDAbcLDwQQFQv+IgoaCv4jDBgQDwABAAD/twMUA0gAEAAACQEmIg4BFwkBBhQWMjcBNjQDC/5WCRkRAQkBlf5rCRIZCQGpCQGVAaoJEhgJ/mv+awgZEgkBqggZAAAEAAAAAANWAqsACAARABoAIwAAJSM1MxUjNQcnJRcHJxUjNTMVASc3FzUzFSM1ITMVIzUzFTcXAWJiqyuNHgH0jB6MK6v+N40ejSurAcliqyuMHtUrq2KMHoyMHoxiqysBK40ejWKrKyurYo0eAAAABAAAAAADgALWABQAKQAsAC8AACEiJyYnJjQ3Njc2MhcWFxYUBwYHBicyNzY3NjQnJicmIgcGBwYUFxYXFhMHERcnFQIVYlVSMDExMFJVxVRTMDExMFNUY1ZLSCssLCtIS6xKSSssLCtJSuzWkWYxMFNUxVVSMDExMFJVxVRTMDErLCtIS6xKSSssLCtJSqxLSCssAUCWASuVSJEABAAAAAADgALWABQAKQAtADEAACEiJyYnJjQ3Njc2MhcWFxYUBwYHBicyNzY3NjQnJicmIgcGBwYUFxYXFhMVIzUzFSM1AhViVVIwMTEwUlXFVFMwMTEwU1RjVktIKywsK0hLrEpJKywsK0lKFirVKzEwU1TFVVIwMTEwUlXFVFMwMSssK0hLrEpJKywsK0lKrEtIKywBqtXV1dUABAAAAAADVgKrAAgAEQAaACMAACUzFSM1MxU3FwUnNxc1MxUjNQEXBycVIzUzFSEjNTMVIzUHJwEeYqsrgB4Bb4AegCqq/nOAHoArqwGNYqoqgB5VKqpigB6AgB6AYqoqAiuAHoBiqysrq2KAHgAAAAAAEgDeAAEAAAAAAAAAEwAAAAEAAAAAAAEACAATAAEAAAAAAAIABwAbAAEAAAAAAAMACAAiAAEAAAAAAAQACAAqAAEAAAAAAAUACwAyAAEAAAAAAAYACAA9AAEAAAAAAAoAKwBFAAEAAAAAAAsAEwBwAAMAAQQJAAAAJgCDAAMAAQQJAAEAEACpAAMAAQQJAAIADgC5AAMAAQQJAAMAEADHAAMAAQQJAAQAEADXAAMAAQQJAAUAFgDnAAMAAQQJAAYAEAD9AAMAAQQJAAoAVgENAAMAAQQJAAsAJgFjQ3JlYXRlZCBieSBpY29uZm9udGljb25mb250UmVndWxhcmljb25mb250aWNvbmZvbnRWZXJzaW9uIDEuMGljb25mb250R2VuZXJhdGVkIGJ5IHN2ZzJ0dGYgZnJvbSBGb250ZWxsbyBwcm9qZWN0Lmh0dHA6Ly9mb250ZWxsby5jb20AQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdABpAGMAbwBuAGYAbwBuAHQAUgBlAGcAdQBsAGEAcgBpAGMAbwBuAGYAbwBuAHQAaQBjAG8AbgBmAG8AbgB0AFYAZQByAHMAaQBvAG4AIAAxAC4AMABpAGMAbwBuAGYAbwBuAHQARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAACAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsBAgEDAQQBBQEGAQcBCAEJAQoBCwEMAARsZWZ0BGRvd24FcmlnaHQCdXAEcHJldgRuZXh0EHF1eGlhb3F1YW5waW5nX28IYm9mYW5nX28JemFudGluZ19vCnF1YW5waW5nX28AAAA=) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-left:before{content:"\e83d"}.icon-down:before{content:"\e839"}.icon-right:before{content:"\e840"}.icon-up:before{content:"\e845"}.icon-prev:before{content:"\e659"}.icon-next:before{content:"\e609"}.icon-quxiaoquanping_o:before{content:"\eb98"}.icon-bofang_o:before{content:"\eb5e"}.icon-zanting_o:before{content:"\eb6c"}.icon-quanping_o:before{content:"\eb99"} \ No newline at end of file diff --git a/apps/com.awspaas.user.apps.cmp/monitor/img/empty.e6141d4d.png b/apps/com.awspaas.user.apps.cmp/monitor/img/empty.e6141d4d.png deleted file mode 100644 index 8b28751..0000000 Binary files a/apps/com.awspaas.user.apps.cmp/monitor/img/empty.e6141d4d.png and /dev/null differ diff --git a/apps/com.awspaas.user.apps.cmp/monitor/js/app.d5919224.js b/apps/com.awspaas.user.apps.cmp/monitor/js/app.d5919224.js deleted file mode 100644 index 6649fe6..0000000 --- a/apps/com.awspaas.user.apps.cmp/monitor/js/app.d5919224.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){"use strict";var e={2675:function(e,a,n){var t=n(9242),o=n(3396);function l(e,a,n,t,l,i){const r=(0,o.up)("CameraList");return(0,o.wg)(),(0,o.j4)(r)}var i=n(4870),r=n(7139),s=n.p+"../apps/com.awspaas.user.apps.cmp/monitor/img/empty.e6141d4d.png",c=n(2747),u=n.n(c),p=n(70);const d=e=>((0,o.dD)("data-v-553e2dec"),e=e(),(0,o.Cn)(),e),v={class:"camera-item"},f={class:"camera-name"},m={ref:"previewVideoRef",class:"camera-player"},g=d((()=>(0,o._)("span",{class:"iconfont icon-bofang_o",style:{"font-size":"60px"}},null,-1))),y=[g],h=["onClick"],w=["onClick"],_={key:0,class:"arrow-control"},k=["onClick"];var C={__name:"camera",props:{name:{type:String},source:{type:String,default:"https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv"}},setup(e){const a=e,{source:n}=(0,i.BK)(a),l=(0,i.iH)(!1);let s;const c=()=>{l.value=!0,(0,o.Y3)((()=>{s=u().createPlayer({type:"flv",url:a.source}),u().isSupported()&&(s.attachMediaElement(g.value),s.load(),s.on("ERROR",C),s.play())}))},d=()=>{s.on("ERROR",C),s.pause(),s.unload(),s.detachMediaElement(),s.destroy(),s=null,l.value=!1},g=(0,i.iH)(),C=e=>{console.log(e)},b=()=>{g.value&&(g.value.paused?(console.log(s),s.play()):s.pause())},H=(0,i.iH)(!1),R=(0,i.iH)(),D=()=>{const e=screen.availWidth/g.value.offsetHeight;g.value.style.setProperty("--scale",e),g.value.parentNode.style.setProperty("--scale",e),H.value=!0},q=(0,i.iH)(""),O=async()=>{const e=new URL(n.value),a=await p.ZP.get(`${e.protocol}//${e.host}/api/v1/login?username=admin&password=de240967f3dff8b62df33e719d646e3e`);return a.data.URLToken},P=(0,i.qj)({left:!1,right:!1,up:!1,down:!1}),j=async e=>{q.value||(q.value=await O());const a=n.value.split("/flv/hls/")[1].split("_")[0],t=new URL(n.value);await p.ZP.get(`${t.protocol}//${t.host}/api/v1/control/ptz?serial=${a}&code=${a}&command=${e}&token=${q.value}`),"stop"===e?(P.left=!1,P.right=!1,P.up=!1,P.down=!1):P[e]=!0},E=()=>{H.value=!1};return(0,o.Ah)((()=>{function e(){s.off("ERROR",C),s.pause(),s.unload(),s.detachMediaElement(),s.destroy(),s=null}console.log("destroy player here"),s&&e()})),(e,n)=>((0,o.wg)(),(0,o.iD)("div",v,[(0,o._)("div",f,(0,r.zw)(a.name),1),(0,o._)("video",m,null,512),(0,o._)("div",{class:"overlay",onClick:c},y),l.value?((0,o.wg)(),(0,o.iD)("div",{key:0,class:"modal-overlay",onClick:d},[H.value?((0,o.wg)(),(0,o.iD)("span",{key:0,class:"quit-fullscreen iconfont icon-quxiaoquanping_o",onClick:(0,t.iM)(E,["stop"])},null,8,h)):(0,o.kq)("",!0),(0,o._)("div",{ref_key:"rotateElementRef",ref:R,class:(0,r.C_)("modal")},[(0,o._)("video",{ref_key:"videoElementRef",ref:g,class:(0,r.C_)("camera-player "+(H.value?"fullscreen-video":""))},null,2),(0,o._)("div",{class:(0,r.C_)("video-overlay "+(H.value?"fullscreen-video":"")),onClick:(0,t.iM)(b,["stop"])},[H.value?((0,o.wg)(),(0,o.iD)("div",_,[(0,o._)("div",{class:(0,r.C_)("up iconfont icon-up "+(P.up?"pressed":"")),onTouchend:n[0]||(n[0]=e=>j("stop")),onTouchstart:n[1]||(n[1]=e=>j("up")),onContextmenu:n[2]||(n[2]=(0,t.iM)((()=>{}),["prevent"]))},null,34),(0,o._)("div",{class:(0,r.C_)("down iconfont icon-down "+(P.down?"pressed":"")),onTouchend:n[3]||(n[3]=e=>j("stop")),onTouchstart:n[4]||(n[4]=e=>j("down")),onContextmenu:n[5]||(n[5]=(0,t.iM)((()=>{}),["prevent"]))},null,34),(0,o._)("div",{class:(0,r.C_)("left iconfont icon-left "+(P.left?"pressed":"")),onTouchend:n[6]||(n[6]=e=>j("stop")),onTouchstart:n[7]||(n[7]=e=>j("left")),onContextmenu:n[8]||(n[8]=(0,t.iM)((()=>{}),["prevent"]))},null,34),(0,o._)("div",{class:(0,r.C_)("right iconfont icon-right "+(P.right?"pressed":"")),onTouchend:n[9]||(n[9]=e=>j("stop")),onTouchstart:n[10]||(n[10]=e=>j("right")),onContextmenu:n[11]||(n[11]=(0,t.iM)((()=>{}),["prevent"]))},null,34)])):(0,o.kq)("",!0),H.value?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("div",{key:1,class:"iconfont icon-quanping_o fullscreen",onClick:(0,t.iM)(D,["stop"])},null,8,k))],10,w)],512)])):(0,o.kq)("",!0)]))}},b=n(89);const H=(0,b.Z)(C,[["__scopeId","data-v-553e2dec"]]);var R=H,D=n(254),q=n(3424),O=n(2979),P=n(705),j=n(2695),E=n(3417);const U=e=>((0,o.dD)("data-v-c7f60b88"),e=e(),(0,o.Cn)(),e),Z={class:"app-container"},M={class:"naive-select-wrap"},T={key:0,class:"naive-tabs"},x={key:0,class:"empty"},S=U((()=>(0,o._)("img",{src:s,alt:""},null,-1))),$=(0,o.Uk)(" 摄像头列表为空 "),L=[S,$],I={class:"image-list"},W={class:"uplode-time"},z={key:0,class:"empty"},N=U((()=>(0,o._)("img",{src:s,alt:""},null,-1))),A=(0,o.Uk)(" 图片列表为空 "),K=[N,A],Y={key:1,class:"empty"},B=U((()=>(0,o._)("img",{src:s,alt:""},null,-1))),F=(0,o.Uk)(" 请选择项目 "),V=[B,F];var G={__name:"CameraList",setup(e){const a=(0,i.iH)(!0),n=(0,i.iH)([]),t=(0,i.iH)([]),l=(0,i.iH)([]),s=(0,i.iH)(0),c=(0,i.iH)("");c.value=location.protocol;const u=(0,i.iH)("");u.value=location.host;const d=(0,i.qj)({cmd:"com.awspaas.user.apps.cmp_camera_list",pageNum:1,pageSize:10,sid:"b9e99f78-2f6e-4d1c-aea9-4364f4191d30",query:void 0}),v=async()=>{const e=await p.ZP.get("/api/portal/r/jd?cmd=com.awspaas.user.apps.cmp_screen_getProjectList&sid=b9e99f78-2f6e-4d1c-aea9-4364f4191d30");return e.data},f=()=>{d.pageNum=1,m(),g()},m=async()=>{a.value=!0;const e=await(0,p.ZP)("/api/portal/r/jd",{params:d});t.value=e.data.rows,s.value=e.data.total,a.value=!1},g=async()=>{const e=await p.ZP.get(`/api/portal/r/jd?cmd=com.awspaas.user.apps.cmp_photo_list&sid=b9e99f78-2f6e-4d1c-aea9-4364f4191d30&proId=${d.query}`);l.value=e.data},y=(0,i.iH)(),h=e=>{if(console.log(e),!y.value)return;let n=document.documentElement,t=Math.max(n.scrollHeight,n.scrollHeight),o=n.scrollTop,l=n.innerHeight||Math.min(n.clientHeight,n.clientHeight);if(console.log(l,o,t),l+o>=t){if(d.pageSize*d.pageNum>s.value)return;if(a.value)return;d.pageNum++,m(),console.log("到底了")}};return window.addEventListener("scroll",h,!0),v().then((e=>{if(n.value=e,n.value.length)return n.value[0].PROID})),(e,a)=>((0,o.wg)(),(0,o.iD)("div",Z,[(0,o._)("div",M,[(0,o.Wm)((0,i.SU)(D.Z),{locale:(0,i.SU)(q.Z)},{default:(0,o.w5)((()=>[(0,o.Wm)((0,i.SU)(O.Z),{value:d.query,"onUpdate:value":[a[0]||(a[0]=e=>d.query=e),f],options:n.value,placeholder:"请选择项目","label-field":"PRONAME","value-field":"PROID"},null,8,["value","options"])])),_:1},8,["locale"])]),d.query?((0,o.wg)(),(0,o.iD)("div",T,[(0,o.Wm)((0,i.SU)(P.Z),{type:"segment"},{default:(0,o.w5)((()=>[(0,o.Wm)((0,i.SU)(j.Z),{name:"camera",tab:"摄像头列表"},{default:(0,o.w5)((()=>[(0,o._)("div",{class:"camera-list",ref_key:"cameraListRef",ref:y},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.value,((e,a)=>((0,o.wg)(),(0,o.j4)(R,{key:a,name:e.address,source:e.flvUrl},null,8,["name","source"])))),128)),t.value.length?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("div",x,L))],512)])),_:1}),(0,o.Wm)((0,i.SU)(j.Z),{name:"image",tab:"图片列表"},{default:(0,o.w5)((()=>[(0,o._)("div",I,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(l.value,(e=>((0,o.wg)(),(0,o.iD)("div",{class:"image-item",key:e.PIC},[(0,o.Wm)((0,i.SU)(E.Z),{class:"n-image-item",src:`http://81.68.90.198:8088/portal/r/${e.PIC}`,"previewed-img-props":{draggable:!0,style:{border:"none"}}},null,8,["src"]),(0,o._)("div",W,(0,r.zw)(e.CREATEDATE),1)])))),128)),l.value.length?(0,o.kq)("",!0):((0,o.wg)(),(0,o.iD)("div",z,K))])])),_:1})])),_:1})])):((0,o.wg)(),(0,o.iD)("div",Y,V))]))}};const J=(0,b.Z)(G,[["__scopeId","data-v-c7f60b88"]]);var Q=J,X={name:"App",components:{CameraList:Q}};const ee=(0,b.Z)(X,[["render",l]]);var ae=ee;(0,t.ri)(ae).mount("#app")}},a={};function n(t){var o=a[t];if(void 0!==o)return o.exports;var l=a[t]={exports:{}};return e[t](l,l.exports,n),l.exports}n.m=e,function(){var e=[];n.O=function(a,t,o,l){if(!t){var i=1/0;for(u=0;u=l)&&Object.keys(n.O).every((function(e){return n.O[e](t[s])}))?t.splice(s--,1):(r=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[t,o,l]}}(),function(){n.n=function(e){var a=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(a,{a:a}),a}}(),function(){n.d=function(e,a){for(var t in a)n.o(a,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)}}(),function(){n.p=""}(),function(){var e={143:0};n.O.j=function(a){return 0===e[a]};var a=function(a,t){var o,l,i=t[0],r=t[1],s=t[2],c=0;if(i.some((function(a){return 0!==e[a]}))){for(o in r)n.o(r,o)&&(n.m[o]=r[o]);if(s)var u=s(n)}for(a&&a(t);c\n \n \n\n\n\n\n\n","\r\n\r\n\r\n","import script from \"./camera.vue?vue&type=script&name=camera&setup=true&lang=js\"\nexport * from \"./camera.vue?vue&type=script&name=camera&setup=true&lang=js\"\n\nimport \"./camera.vue?vue&type=style&index=0&id=553e2dec&lang=scss&scoped=true\"\n\nimport exportComponent from \"/Users/ailanyin/WebstormProjects/monitor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-553e2dec\"]])\n\nexport default __exports__","\n\n\n\n\n","import script from \"./CameraList.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./CameraList.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./CameraList.vue?vue&type=style&index=0&id=c7f60b88&lang=css\"\nimport \"./CameraList.vue?vue&type=style&index=1&id=c7f60b88&scoped=true&lang=scss\"\n\nimport exportComponent from \"/Users/ailanyin/WebstormProjects/monitor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-c7f60b88\"]])\n\nexport default __exports__","import { render } from \"./App.vue?vue&type=template&id=452ff665\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=452ff665&lang=css\"\n\nimport exportComponent from \"/Users/ailanyin/WebstormProjects/monitor/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { createApp } from \"vue\";\n// import \"vant/lib/index.css\";\nimport App from \"./App.vue\";\nimport \"modern-normalize/modern-normalize.css\";\n// import { createWebHashHistory, createRouter } from \"vue-router\";\nimport \"./assets/fonts/iconfont.css\";\n// import naive from \"naive-ui\";\n\n// const Home = { template: \"
Home
\" };\n// const About = { template: \"
About
\" };\n\n// 2. 定义一些路由\n// 每个路由都需要映射到一个组件。\n// 我们后面再讨论嵌套路由。\n// const routes = [\n// { path: \"/\", component: () => import(\"./components/HelloWorld.vue\") },\n// { path: \"/detail\", component: () => import(\"./components/site-detail.vue\") },\n// ];\n\n// 3. 创建路由实例并传递 `routes` 配置\n// 你可以在这里输入更多的配置,但我们在这里\n// 暂时保持简单\n// const router = createRouter({\n// // 4. 内部提供了 history 模式的实现。为了简单起见,我们在这里使用 hash 模式。\n// history: createWebHashHistory(),\n// routes, // `routes: routes` 的缩写\n// });\n\ncreateApp(App).mount(\"#app\");\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmonitor\"] = self[\"webpackChunkmonitor\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(2675); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_createBlock","_component_CameraList","source","toRefs","props","showModal","ref","flvPlayer","openPlayModal","value","nextTick","flvjs","type","url","attachMediaElement","videoElementRef","load","on","flvPlayerEventHandler","play","closePlayModal","pause","unload","detachMediaElement","destroy","e","console","log","switchPlayStatus","paused","isFullscreen","rotateElementRef","videoFullscreen","scale","screen","availWidth","offsetHeight","style","setProperty","parentNode","token","loadToken","async","URL","resp","axios","protocol","host","data","URLToken","pressed","reactive","left","right","up","down","moveCamera","serial","split","arrow","exitFullscreen","onUnmounted","flvDestroy","off","__exports__","cameraLoading","projectList","cameraList","imageList","total","location","queryParams","cmd","pageNum","pageSize","sid","query","undefined","loadProjectList","projectClicked","loadCameraList","loadImageList","params","rows","cameraListRef","handleScroll","dom","document","documentElement","scrollHeight","Math","max","scrollTop","clientHeight","innerHeight","min","window","addEventListener","then","length","PROID","name","components","CameraList","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","this","Function","obj","prop","prototype","hasOwnProperty","call","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/apps/com.awspaas.user.apps.cmp/monitor/js/chunk-vendors.1c2f8b11.js b/apps/com.awspaas.user.apps.cmp/monitor/js/chunk-vendors.1c2f8b11.js deleted file mode 100644 index 78a09e0..0000000 --- a/apps/com.awspaas.user.apps.cmp/monitor/js/chunk-vendors.1c2f8b11.js +++ /dev/null @@ -1,378 +0,0 @@ -(self["webpackChunkmonitor"]=self["webpackChunkmonitor"]||[]).push([[998],{9662:function(e,t,n){var r=n(614),o=n(6330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},6077:function(e,t,n){var r=n(614),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},5787:function(e,t,n){var r=n(7976),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},9670:function(e,t,n){var r=n(111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},3013:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(e,t,n){"use strict";var r,o,i,a=n(3013),s=n(9781),l=n(7854),u=n(614),c=n(111),d=n(2597),f=n(648),h=n(6330),p=n(8880),v=n(8052),m=n(3070).f,g=n(7976),b=n(9518),y=n(7674),_=n(5112),w=n(9711),S=n(9909),x=S.enforce,E=S.get,C=l.Int8Array,R=C&&C.prototype,T=l.Uint8ClampedArray,A=T&&T.prototype,O=C&&b(C),k=R&&b(R),L=Object.prototype,P=l.TypeError,M=_("toStringTag"),I=w("TYPED_ARRAY_TAG"),B="TypedArrayConstructor",D=a&&!!y&&"Opera"!==f(l.opera),j=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},N=function(e){if(!c(e))return!1;var t=f(e);return"DataView"===t||d(F,t)||d(z,t)},$=function(e){var t=b(e);if(c(t)){var n=E(t);return n&&d(n,B)?n[B]:$(t)}},U=function(e){if(!c(e))return!1;var t=f(e);return d(F,t)||d(z,t)},Z=function(e){if(U(e))return e;throw P("Target is not a typed array")},H=function(e){if(u(e)&&(!y||g(O,e)))return e;throw P(h(e)+" is not a typed array constructor")},V=function(e,t,n,r){if(s){if(n)for(var o in F){var i=l[o];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(u){}}}k[e]&&!n||v(k,e,n?t:D&&R[e]||t,r)}},W=function(e,t,n){var r,o;if(s){if(y){if(n)for(r in F)if(o=l[r],o&&d(o,e))try{delete o[e]}catch(i){}if(O[e]&&!n)return;try{return v(O,e,n?t:D&&O[e]||t)}catch(i){}}for(r in F)o=l[r],!o||o[e]&&!n||v(o,e,t)}};for(r in F)o=l[r],i=o&&o.prototype,i?x(i)[B]=o:D=!1;for(r in z)o=l[r],i=o&&o.prototype,i&&(x(i)[B]=o);if((!D||!u(O)||O===Function.prototype)&&(O=function(){throw P("Incorrect invocation")},D))for(r in F)l[r]&&y(l[r],O);if((!D||!k||k===L)&&(k=O.prototype,D))for(r in F)l[r]&&y(l[r].prototype,k);if(D&&b(A)!==k&&y(A,k),s&&!d(k,M))for(r in j=!0,m(k,M,{get:function(){return c(this)?this[I]:void 0}}),F)l[r]&&p(l[r],I,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:j&&I,aTypedArray:Z,aTypedArrayConstructor:H,exportTypedArrayMethod:V,exportTypedArrayStaticMethod:W,getTypedArrayConstructor:$,isView:N,isTypedArray:U,TypedArray:O,TypedArrayPrototype:k}},1318:function(e,t,n){var r=n(5656),o=n(1400),i=n(6244),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9671:function(e,t,n){var r=n(9974),o=n(8361),i=n(7908),a=n(6244),s=function(e){var t=1==e;return function(n,s,l){var u,c,d=i(n),f=o(d),h=r(s,l),p=a(f);while(p-- >0)if(u=f[p],c=h(u,p,d),c)switch(e){case 0:return u;case 1:return p}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},3658:function(e,t,n){"use strict";var r=n(9781),o=n(3157),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,n){var r=n(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:function(e,t,n){var r=n(1694),o=n(614),i=n(4326),a=n(5112),s=a("toStringTag"),l=Object,u="Arguments"==i(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=l(e),s))?n:u?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},9920:function(e,t,n){var r=n(2597),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t,n){for(var s=o(t),l=a.f,u=i.f,c=0;cn)throw t("Maximum allowed index exceeded");return e}},3678:function(e){e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,o,i=n(7854),a=n(8113),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),e.exports=o},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(e,t,n){var r=n(1702),o=Error,i=r("".replace),a=function(e){return String(o(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!o.prepareStackTrace)while(t--)e=i(e,s,"");return e}},2914:function(e,t,n){var r=n(7293),o=n(9114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},2109:function(e,t,n){var r=n(7854),o=n(1236).f,i=n(8880),a=n(8052),s=n(3072),l=n(9920),u=n(4705);e.exports=function(e,t){var n,c,d,f,h,p,v=e.target,m=e.global,g=e.stat;if(c=m?r:g?r[v]||s(v,{}):(r[v]||{}).prototype,c)for(d in t){if(h=t[d],e.dontCallGetSet?(p=o(c,d),f=p&&p.value):f=c[d],n=u(m?d:v+(g?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof h==typeof f)continue;l(h,f)}(e.sham||f&&f.sham)&&i(h,"sham",!0),a(c,d,h,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},2104:function(e,t,n){var r=n(4374),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},9974:function(e,t,n){var r=n(1702),o=n(9662),i=n(4374),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var r=n(9781),o=n(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},1702:function(e,t,n){var r=n(4374),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5005:function(e,t,n){var r=n(7854),o=n(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662),o=n(8554);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),o=n(7293),i=n(4326),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},9587:function(e,t,n){var r=n(614),o=n(111),i=n(7674);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},2788:function(e,t,n){var r=n(1702),o=n(614),i=n(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},8340:function(e,t,n){var r=n(111),o=n(8880);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},9909:function(e,t,n){var r,o,i,a=n(4811),s=n(7854),l=n(1702),u=n(111),c=n(8880),d=n(2597),f=n(5465),h=n(6200),p=n(3501),v="Object already initialized",m=s.TypeError,g=s.WeakMap,b=function(e){return i(e)?o(e):r(e,{})},y=function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(a||f.state){var _=f.state||(f.state=new g),w=l(_.get),S=l(_.has),x=l(_.set);r=function(e,t){if(S(_,e))throw m(v);return t.facade=e,x(_,e,t),t},o=function(e){return w(_,e)||{}},i=function(e){return S(_,e)}}else{var E=h("state");p[E]=!0,r=function(e,t){if(d(e,E))throw m(v);return t.facade=e,c(e,E,t),t},o=function(e){return d(e,E)?e[E]:{}},i=function(e){return d(e,E)}}e.exports={set:r,get:o,has:i,enforce:b,getterFor:y}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e){e.exports=function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},8554:function(e){e.exports=function(e){return null===e||void 0===e}},111:function(e,t,n){var r=n(614),o="object"==typeof document&&document.all,i="undefined"==typeof o&&void 0!==o;e.exports=i?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),o=n(614),i=n(7976),a=n(3307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(7293),o=n(614),i=n(2597),a=n(9781),s=n(6530).CONFIGURABLE,l=n(2788),u=n(9909),c=u.enforce,d=u.get,f=Object.defineProperty,h=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),p=String(String).split("String"),v=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),h&&n&&i(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=c(e);return i(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=v((function(){return o(this)&&d(this).source||l(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},6277:function(e,t,n){var r=n(1340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},3070:function(e,t,n){var r=n(9781),o=n(4664),i=n(3353),a=n(9670),s=n(4948),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",h="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var r=c(e,t);r&&r[h]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),o=n(6916),i=n(5296),a=n(9114),s=n(5656),l=n(4948),u=n(2597),c=n(4664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),o=n(748),i=o.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var r=n(2597),o=n(614),i=n(7908),a=n(6200),s=n(8544),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),o=n(2597),i=n(5656),a=n(1318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&l(c,n);while(t.length>u)o(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:function(e,t,n){var r=n(1702),o=n(9670),i=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},2140:function(e,t,n){var r=n(6916),o=n(614),i=n(111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),o=n(1702),i=n(8006),a=n(5181),s=n(9670),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},2626:function(e,t,n){var r=n(3070).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},7066:function(e,t,n){"use strict";var r=n(9670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},4488:function(e,t,n){var r=n(8554),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},6200:function(e,t,n){var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:function(e,t,n){var r=n(7854),o=n(3072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:function(e,t,n){var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(e,t,n){var r=n(7392),o=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(e,t,n){var r=n(9303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:function(e,t,n){var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9303:function(e,t,n){var r=n(4758);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),o=Object;e.exports=function(e){return o(r(e))}},7593:function(e,t,n){var r=n(6916),o=n(111),i=n(2190),a=n(8173),s=n(2140),l=n(5112),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:function(e,t,n){var r=n(7593),o=n(2190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},1694:function(e,t,n){var r=n(5112),o=r("toStringTag"),i={};i[o]="z",e.exports="[object z]"===String(i)},1340:function(e,t,n){var r=n(648),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9711:function(e,t,n){var r=n(1702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},3307:function(e,t,n){var r=n(6293);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),o=n(7293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,n){var r=n(7854),o=n(614),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},5112:function(e,t,n){var r=n(7854),o=n(2309),i=n(2597),a=n(9711),s=n(6293),l=n(3307),u=o("wks"),c=r.Symbol,d=c&&c["for"],f=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(c,e)?u[e]=c[e]:u[e]=l&&d?d(t):f(t)}return u[e]}},9191:function(e,t,n){"use strict";var r=n(5005),o=n(2597),i=n(8880),a=n(7976),s=n(7674),l=n(9920),u=n(2626),c=n(9587),d=n(6277),f=n(8340),h=n(1060),p=n(2914),v=n(9781),m=n(1913);e.exports=function(e,t,n,g){var b="stackTraceLimit",y=g?2:1,_=e.split("."),w=_[_.length-1],S=r.apply(null,_);if(S){var x=S.prototype;if(!m&&o(x,"cause")&&delete x.cause,!n)return S;var E=r("Error"),C=t((function(e,t){var n=d(g?t:e,void 0),r=g?new S(e):new S;return void 0!==n&&i(r,"message",n),p&&i(r,"stack",h(r.stack,2)),this&&a(x,this)&&c(r,this,C),arguments.length>y&&f(r,arguments[y]),r}));if(C.prototype=x,"Error"!==w?s?s(C,E):l(C,E,{name:!0}):v&&b in S&&(u(C,S,b),u(C,S,"prepareStackTrace")),l(C,S),!m)try{x.name!==w&&i(x,"name",w),x.constructor=C}catch(R){}return C}}},7658:function(e,t,n){"use strict";var r=n(2109),o=n(7908),i=n(6244),a=n(3658),s=n(7207),l=n(7293),u=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||c},{push:function(e){var t=o(this),n=i(t),r=arguments.length;s(n+r);for(var l=0;l=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},4590:function(e,t,n){"use strict";var r=n(260),o=n(9671).findLastIndex,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLastIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3408:function(e,t,n){"use strict";var r=n(260),o=n(9671).findLast,i=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLast",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2801:function(e,t,n){"use strict";var r=n(2109),o=n(7854),i=n(5005),a=n(9114),s=n(3070).f,l=n(2597),u=n(5787),c=n(9587),d=n(6277),f=n(3678),h=n(1060),p=n(9781),v=n(1913),m="DOMException",g=i("Error"),b=i(m),y=function(){u(this,_);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new b(t,n),o=g(t);return o.name=m,s(r,"stack",a(1,h(o.stack,1))),c(r,this,y),r},_=y.prototype=b.prototype,w="stack"in g(m),S="stack"in new b(1,2),x=b&&p&&Object.getOwnPropertyDescriptor(o,m),E=!!x&&!(x.writable&&x.configurable),C=w&&!E&&!S;r({global:!0,constructor:!0,forced:v||C},{DOMException:C?y:b});var R=i(m),T=R.prototype;if(T.constructor!==R)for(var A in v||s(T,"constructor",a(1,R)),f)if(l(f,A)){var O=f[A],k=O.s;l(R,k)||s(R,k,a(6,O.c))}},1496:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});n(7658);var r=n(3396);const o=Symbol("@css-render/vue3-ssr");function i(e,t){return``}function a(e,t){const n=(0,r.f3)(o,null);if(null===n)return void console.error("[css-render/vue3-ssr]: no ssr context found.");const{styles:a,ids:s}=n;s.has(e)||null!==a&&(s.add(e),a.push(i(e,t)))}const s="undefined"!==typeof document;function l(){if(s)return;const e=(0,r.f3)(o,null);return null!==e?{adapter:a,context:e}:void 0}},7535:function(e,t){"use strict";function n(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24,t=1540483477*(65535&t)+(59797*(t>>>16)<<16),t^=t>>>24,n=1540483477*(65535&t)+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=1540483477*(65535&n)+(59797*(n>>>16)<<16)}return n^=n>>>13,n=1540483477*(65535&n)+(59797*(n>>>16)<<16),((n^n>>>15)>>>0).toString(36)}t["Z"]=n},4870:function(e,t,n){"use strict";n.d(t,{BK:function(){return $e},Bj:function(){return i},Fl:function(){return We},IU:function(){return Ae},Jd:function(){return x},OT:function(){return Se},PG:function(){return Ee},SU:function(){return Fe},Um:function(){return we},Vh:function(){return Ze},WL:function(){return Ne},X$:function(){return T},X3:function(){return Te},Xl:function(){return Oe},dq:function(){return Ie},iH:function(){return Be},j:function(){return C},lk:function(){return E},qj:function(){return _e},qq:function(){return y},yT:function(){return Re}});n(7658);var r=n(7139);let o;class i{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active){const t=o;try{return o=this,e()}finally{o=t}}else 0}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},l=e=>(e.w&p)>0,u=e=>(e.n&p)>0,c=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&u.push(e)}));else switch(void 0!==n&&u.push(l.get(n)),t){case"add":(0,r.kJ)(e)?(0,r.S0)(n)&&u.push(l.get("length")):(u.push(l.get(g)),(0,r._N)(e)&&u.push(l.get(b)));break;case"delete":(0,r.kJ)(e)||(u.push(l.get(g)),(0,r._N)(e)&&u.push(l.get(b)));break;case"set":(0,r._N)(e)&&u.push(l.get(g));break}if(1===u.length)u[0]&&A(u[0]);else{const e=[];for(const t of u)t&&e.push(...t);A(s(e))}}function A(e,t){const n=(0,r.kJ)(e)?e:[...e];for(const r of n)r.computed&&O(r,t);for(const r of n)r.computed||O(r,t)}function O(e,t){(e!==m||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const k=(0,r.fY)("__proto__,__v_isRef,__isVue"),L=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.yk)),P=j(),M=j(!1,!0),I=j(!0),B=D();function D(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ae(this);for(let t=0,o=this.length;t{e[t]=function(...e){x();const n=Ae(this)[t].apply(this,e);return E(),n}})),e}function j(e=!1,t=!1){return function(n,o,i){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&i===(e?t?ge:me:t?ve:pe).get(n))return n;const a=(0,r.kJ)(n);if(!e&&a&&(0,r.RI)(B,o))return Reflect.get(B,o,i);const s=Reflect.get(n,o,i);return((0,r.yk)(o)?L.has(o):k(o))?s:(e||C(n,"get",o),t?s:Ie(s)?a&&(0,r.S0)(o)?s:s.value:(0,r.Kn)(s)?e?Se(s):_e(s):s)}}const F=N(),z=N(!0);function N(e=!1){return function(t,n,o,i){let a=t[n];if(Ce(a)&&Ie(a)&&!Ie(o))return!1;if(!e&&(Re(o)||Ce(o)||(a=Ae(a),o=Ae(o)),!(0,r.kJ)(t)&&Ie(a)&&!Ie(o)))return a.value=o,!0;const s=(0,r.kJ)(t)&&(0,r.S0)(n)?Number(n)e,K=e=>Reflect.getPrototypeOf(e);function q(e,t,n=!1,r=!1){e=e["__v_raw"];const o=Ae(e),i=Ae(t);n||(t!==i&&C(o,"get",t),C(o,"get",i));const{has:a}=K(o),s=r?G:n?Le:ke;return a.call(o,t)?s(e.get(t)):a.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function Y(e,t=!1){const n=this["__v_raw"],r=Ae(n),o=Ae(e);return t||(e!==o&&C(r,"has",e),C(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function X(e,t=!1){return e=e["__v_raw"],!t&&C(Ae(e),"iterate",g),Reflect.get(e,"size",e)}function J(e){e=Ae(e);const t=Ae(this),n=K(t),r=n.has.call(t,e);return r||(t.add(e),T(t,"add",e,e)),this}function Q(e,t){t=Ae(t);const n=Ae(this),{has:o,get:i}=K(n);let a=o.call(n,e);a||(e=Ae(e),a=o.call(n,e));const s=i.call(n,e);return n.set(e,t),a?(0,r.aU)(t,s)&&T(n,"set",e,t,s):T(n,"add",e,t),this}function ee(e){const t=Ae(this),{has:n,get:r}=K(t);let o=n.call(t,e);o||(e=Ae(e),o=n.call(t,e));const i=r?r.call(t,e):void 0,a=t.delete(e);return o&&T(t,"delete",e,void 0,i),a}function te(){const e=Ae(this),t=0!==e.size,n=void 0,r=e.clear();return t&&T(e,"clear",void 0,void 0,n),r}function ne(e,t){return function(n,r){const o=this,i=o["__v_raw"],a=Ae(i),s=t?G:e?Le:ke;return!e&&C(a,"iterate",g),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function re(e,t,n){return function(...o){const i=this["__v_raw"],a=Ae(i),s=(0,r._N)(a),l="entries"===e||e===Symbol.iterator&&s,u="keys"===e&&s,c=i[e](...o),d=n?G:t?Le:ke;return!t&&C(a,"iterate",u?b:g),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&this}}function ie(){const e={get(e){return q(this,e)},get size(){return X(this)},has:Y,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return q(this,e,!1,!0)},get size(){return X(this)},has:Y,add:J,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return q(this,e,!0)},get size(){return X(this,!0)},has(e){return Y.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!1)},r={get(e){return q(this,e,!0,!0)},get size(){return X(this,!0)},has(e){return Y.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=re(o,!1,!1),n[o]=re(o,!0,!1),t[o]=re(o,!1,!0),r[o]=re(o,!0,!0)})),[e,n,t,r]}const[ae,se,le,ue]=ie();function ce(e,t){const n=t?e?ue:le:e?se:ae;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.RI)(n,o)&&o in t?n:t,o,i)}const de={get:ce(!1,!1)},fe={get:ce(!1,!0)},he={get:ce(!0,!1)};const pe=new WeakMap,ve=new WeakMap,me=new WeakMap,ge=new WeakMap;function be(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ye(e){return e["__v_skip"]||!Object.isExtensible(e)?0:be((0,r.W7)(e))}function _e(e){return Ce(e)?e:xe(e,!1,H,de,pe)}function we(e){return xe(e,!1,W,fe,ve)}function Se(e){return xe(e,!0,V,he,me)}function xe(e,t,n,o,i){if(!(0,r.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=i.get(e);if(a)return a;const s=ye(e);if(0===s)return e;const l=new Proxy(e,2===s?o:n);return i.set(e,l),l}function Ee(e){return Ce(e)?Ee(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ce(e){return!(!e||!e["__v_isReadonly"])}function Re(e){return!(!e||!e["__v_isShallow"])}function Te(e){return Ee(e)||Ce(e)}function Ae(e){const t=e&&e["__v_raw"];return t?Ae(t):e}function Oe(e){return(0,r.Nj)(e,"__v_skip",!0),e}const ke=e=>(0,r.Kn)(e)?_e(e):e,Le=e=>(0,r.Kn)(e)?Se(e):e;function Pe(e){w&&m&&(e=Ae(e),R(e.dep||(e.dep=s())))}function Me(e,t){e=Ae(e),e.dep&&A(e.dep)}function Ie(e){return!(!e||!0!==e.__v_isRef)}function Be(e){return De(e,!1)}function De(e,t){return Ie(e)?e:new je(e,t)}class je{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ae(e),this._value=t?e:ke(e)}get value(){return Pe(this),this._value}set value(e){const t=this.__v_isShallow||Re(e)||Ce(e);e=t?e:Ae(e),(0,r.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:ke(e),Me(this,e))}}function Fe(e){return Ie(e)?e.value:e}const ze={get:(e,t,n)=>Fe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ie(o)&&!Ie(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Ne(e){return Ee(e)?e:new Proxy(e,ze)}function $e(e){const t=(0,r.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=Ze(e,n);return t}class Ue{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Ze(e,t,n){const r=e[t];return Ie(r)?r:new Ue(e,t,n)}var He;class Ve{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[He]=!1,this._dirty=!0,this.effect=new y(e,(()=>{this._dirty||(this._dirty=!0,Me(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=Ae(this);return Pe(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function We(e,t,n=!1){let o,i;const a=(0,r.mf)(e);a?(o=e,i=r.dG):(o=e.get,i=e.set);const s=new Ve(o,i,a||!i,n);return s}He="__v_isReadonly"},3396:function(e,t,n){"use strict";n.d(t,{$d:function(){return a},Ah:function(){return Ae},Cn:function(){return D},FN:function(){return Sn},Fl:function(){return Fn},HY:function(){return $t},Ho:function(){return cn},JJ:function(){return W},Jd:function(){return Te},Ko:function(){return Ne},P$:function(){return oe},Q6:function(){return ce},U2:function(){return ae},Uk:function(){return dn},Us:function(){return At},WI:function(){return $e},Wm:function(){return sn},Y3:function(){return b},Y8:function(){return te},YP:function(){return Y},_:function(){return an},aZ:function(){return de},bv:function(){return Ee},dD:function(){return B},dG:function(){return mn},dl:function(){return ve},f3:function(){return G},h:function(){return zn},iD:function(){return Jt},ic:function(){return Re},j4:function(){return Qt},kq:function(){return fn},lA:function(){return en},lR:function(){return Nt},m0:function(){return K},nK:function(){return ue},se:function(){return me},sv:function(){return Zt},up:function(){return De},w5:function(){return j},wF:function(){return xe},wg:function(){return Gt},wy:function(){return Me}});n(7658),n(1703),n(541);var r=n(4870),o=n(7139);function i(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){s(i,t,n)}return o}function a(e,t,n,r){if((0,o.mf)(e)){const a=i(e,t,n,r);return a&&(0,o.tI)(a)&&a.catch((e=>{s(e,t,n)})),a}const l=[];for(let o=0;o>>1,o=R(d[r]);of&&d.splice(t,1)}function x(e){(0,o.kJ)(e)?h.push(...e):p&&p.includes(e,e.allowRecurse?v+1:v)||h.push(e),w()}function E(e,t=(u?f+1:0)){for(0;tR(e)-R(t))),v=0;vnull==e.id?1/0:e.id,T=(e,t)=>{const n=R(e)-R(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function A(e){c=!1,u=!0,d.sort(T);o.dG;try{for(f=0;fe.trim()))),t&&(i=n.map(o.He))}let u;let c=r[u=(0,o.hR)(t)]||r[u=(0,o.hR)((0,o._A)(t))];!c&&s&&(c=r[u=(0,o.hR)((0,o.rs)(t))]),c&&a(c,e,6,i);const d=r[u+"Once"];if(d){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,a(d,e,6,i)}}function k(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const a=e.emits;let s={},l=!1;if(!(0,o.mf)(e)){const r=e=>{const n=k(e,t,!0);n&&(l=!0,(0,o.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||l?((0,o.kJ)(a)?a.forEach((e=>s[e]=null)):(0,o.l7)(s,a),(0,o.Kn)(e)&&r.set(e,s),s):((0,o.Kn)(e)&&r.set(e,null),null)}function L(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let P=null,M=null;function I(e){const t=P;return P=e,M=e&&e.type.__scopeId||null,t}function B(e){M=e}function D(){M=null}function j(e,t=P,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Yt(-1);const o=I(t),i=e(...n);return I(o),r._d&&Yt(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function F(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[l],slots:u,attrs:c,emit:d,render:f,renderCache:h,data:p,setupState:v,ctx:m,inheritAttrs:g}=e;let b,y;const _=I(e);try{if(4&n.shapeFlag){const e=i||r;b=hn(f.call(e,e,h,a,v,p,m)),y=c}else{const e=t;0,b=hn(e.length>1?e(a,{attrs:c,slots:u,emit:d}):e(a,null)),y=t.props?c:z(c)}}catch(S){Vt.length=0,s(S,e,1),b=sn(Zt)}let w=b;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(o.tR)&&(y=N(y,l)),w=cn(w,y))}return n.dirs&&(w=cn(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),b=w,I(_),b}const z=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},N=(e,t)=>{const n={};for(const r in e)(0,o.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function $(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||U(r,a,u):!!a);if(1024&l)return!0;if(16&l)return r?U(r,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;te.__isSuspense;function V(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):x(e)}function W(e,t){if(wn){let n=wn.provides;const r=wn.parent&&wn.parent.provides;r===n&&(n=wn.provides=Object.create(r)),n[e]=t}else 0}function G(e,t,n=!1){const r=wn||P;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(r.proxy):t}else 0}function K(e,t){return X(e,null,t)}const q={};function Y(e,t,n){return X(e,t,n)}function X(e,t,{immediate:n,deep:s,flush:l,onTrack:u,onTrigger:c}=o.kT){const d=wn;let f,h,p=!1,v=!1;if((0,r.dq)(e)?(f=()=>e.value,p=(0,r.yT)(e)):(0,r.PG)(e)?(f=()=>e,s=!0):(0,o.kJ)(e)?(v=!0,p=e.some((e=>(0,r.PG)(e)||(0,r.yT)(e))),f=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?ee(e):(0,o.mf)(e)?i(e,d,2):void 0))):f=(0,o.mf)(e)?t?()=>i(e,d,2):()=>{if(!d||!d.isUnmounted)return h&&h(),a(e,d,3,[m])}:o.dG,t&&s){const e=f;f=()=>ee(e())}let m=e=>{h=w.onStop=()=>{i(e,d,4)}};if(An)return m=o.dG,t?n&&a(t,d,3,[f(),v?[]:void 0,m]):f(),o.dG;let g=v?[]:q;const b=()=>{if(w.active)if(t){const e=w.run();(s||p||(v?e.some(((e,t)=>(0,o.aU)(e,g[t]))):(0,o.aU)(e,g)))&&(h&&h(),a(t,d,3,[e,g===q?void 0:g,m]),g=e)}else w.run()};let y;b.allowRecurse=!!t,"sync"===l?y=b:"post"===l?y=()=>Tt(b,d&&d.suspense):(b.pre=!0,d&&(b.id=d.uid),y=()=>_(b));const w=new r.qq(f,y);return t?n?b():g=w.run():"post"===l?Tt(w.run.bind(w),d&&d.suspense):w.run(),()=>{w.stop(),d&&d.scope&&(0,o.Od)(d.scope.effects,w)}}function J(e,t,n){const r=this.proxy,i=(0,o.HD)(e)?e.includes(".")?Q(r,e):()=>r[e]:e.bind(r,r);let a;(0,o.mf)(t)?a=t:(a=t.handler,n=t);const s=wn;xn(this);const l=X(i,a.bind(r),n);return s?xn(s):En(),l}function Q(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{ee(e,t)}));else if((0,o.PO)(e))for(const n in e)ee(e[n],t);return e}function te(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ee((()=>{e.isMounted=!0})),Te((()=>{e.isUnmounting=!0})),e}const ne=[Function,Array],re={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ne,onEnter:ne,onAfterEnter:ne,onEnterCancelled:ne,onBeforeLeave:ne,onLeave:ne,onAfterLeave:ne,onLeaveCancelled:ne,onBeforeAppear:ne,onAppear:ne,onAfterAppear:ne,onAppearCancelled:ne},setup(e,{slots:t}){const n=Sn(),o=te();let i;return()=>{const a=t.default&&ce(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==Zt){0,s=t,e=!0;break}}const l=(0,r.IU)(e),{mode:u}=l;if(o.isLeaving)return se(s);const c=le(s);if(!c)return se(s);const d=ae(c,l,o,n);ue(c,d);const f=n.subTree,h=f&&le(f);let p=!1;const{getTransitionKey:v}=c.type;if(v){const e=v();void 0===i?i=e:e!==i&&(i=e,p=!0)}if(h&&h.type!==Zt&&(!tn(c,h)||p)){const e=ae(h,l,o,n);if(ue(h,e),"out-in"===u)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},se(s);"in-out"===u&&c.type!==Zt&&(e.delayLeave=(e,t,n)=>{const r=ie(o,h);r[String(h.key)]=h,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return s}}},oe=re;function ie(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ae(e,t,n,r){const{appear:i,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:y,onAppearCancelled:_}=t,w=String(e.key),S=ie(n,e),x=(e,t)=>{e&&a(e,r,9,t)},E=(e,t)=>{const n=t[1];x(e,t),(0,o.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:s,persisted:l,beforeEnter(t){let r=u;if(!n.isMounted){if(!i)return;r=g||u}t._leaveCb&&t._leaveCb(!0);const o=S[w];o&&tn(e,o)&&o.el._leaveCb&&o.el._leaveCb(),x(r,[t])},enter(e){let t=c,r=d,o=f;if(!n.isMounted){if(!i)return;t=b||c,r=y||d,o=_||f}let a=!1;const s=e._enterCb=t=>{a||(a=!0,x(t?o:r,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?E(t,[e,s]):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();x(h,[t]);let i=!1;const a=t._leaveCb=n=>{i||(i=!0,r(),x(n?m:v,[t]),t._leaveCb=void 0,S[o]===e&&delete S[o])};S[o]=e,p?E(p,[t,a]):a()},clone(e){return ae(e,t,n,r)}};return C}function se(e){if(he(e))return e=cn(e),e.children=null,e}function le(e){return he(e)?e.children?e.children[0]:void 0:e}function ue(e,t){6&e.shapeFlag&&e.component?ue(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ce(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;const he=e=>e.type.__isKeepAlive;RegExp,RegExp;function pe(e,t){return(0,o.kJ)(e)?e.some((e=>pe(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function ve(e,t){ge(e,"a",t)}function me(e,t){ge(e,"da",t)}function ge(e,t,n=wn){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(we(t,r,n),n){let e=n.parent;while(e&&e.parent)he(e.parent.vnode)&&be(r,t,n,e),e=e.parent}}function be(e,t,n,r){const i=we(t,e,r,!0);Ae((()=>{(0,o.Od)(r[t],i)}),n)}function ye(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function _e(e){return 128&e.shapeFlag?e.ssContent:e}function we(e,t,n=wn,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.Jd)(),xn(n);const i=a(t,n,e,o);return En(),(0,r.lk)(),i});return o?i.unshift(s):i.push(s),s}}const Se=e=>(t,n=wn)=>(!An||"sp"===e)&&we(e,t,n),xe=Se("bm"),Ee=Se("m"),Ce=Se("bu"),Re=Se("u"),Te=Se("bum"),Ae=Se("um"),Oe=Se("sp"),ke=Se("rtg"),Le=Se("rtc");function Pe(e,t=wn){we("ec",e,t)}function Me(e,t){const n=P;if(null===n)return e;const r=Bn(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;at(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r!en(e)||e.type!==Zt&&!(e.type===$t&&!Ue(e.children))))?e:null}const Ze=e=>e?Cn(e)?Bn(e)||e.proxy:Ze(e.parent):null,He=(0,o.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ze(e.parent),$root:e=>Ze(e.root),$emit:e=>e.emit,$options:e=>Xe(e),$forceUpdate:e=>e.f||(e.f=()=>_(e.update)),$nextTick:e=>e.n||(e.n=b.bind(e.proxy)),$watch:e=>J.bind(e)}),Ve={get({_:e},t){const{ctx:n,setupState:i,data:a,props:s,accessCache:l,type:u,appContext:c}=e;let d;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(i!==o.kT&&(0,o.RI)(i,t))return l[t]=1,i[t];if(a!==o.kT&&(0,o.RI)(a,t))return l[t]=2,a[t];if((d=e.propsOptions[0])&&(0,o.RI)(d,t))return l[t]=3,s[t];if(n!==o.kT&&(0,o.RI)(n,t))return l[t]=4,n[t];We&&(l[t]=0)}}const f=He[t];let h,p;return f?("$attrs"===t&&(0,r.j)(e,"get",t),f(e)):(h=u.__cssModules)&&(h=h[t])?h:n!==o.kT&&(0,o.RI)(n,t)?(l[t]=4,n[t]):(p=c.config.globalProperties,(0,o.RI)(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return i!==o.kT&&(0,o.RI)(i,t)?(i[t]=n,!0):r!==o.kT&&(0,o.RI)(r,t)?(r[t]=n,!0):!(0,o.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let l;return!!n[s]||e!==o.kT&&(0,o.RI)(e,s)||t!==o.kT&&(0,o.RI)(t,s)||(l=a[0])&&(0,o.RI)(l,s)||(0,o.RI)(r,s)||(0,o.RI)(He,s)||(0,o.RI)(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let We=!0;function Ge(e){const t=Xe(e),n=e.proxy,i=e.ctx;We=!1,t.beforeCreate&&qe(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:u,provide:c,inject:d,created:f,beforeMount:h,mounted:p,beforeUpdate:v,updated:m,activated:g,deactivated:b,beforeDestroy:y,beforeUnmount:_,destroyed:w,unmounted:S,render:x,renderTracked:E,renderTriggered:C,errorCaptured:R,serverPrefetch:T,expose:A,inheritAttrs:O,components:k,directives:L,filters:P}=t,M=null;if(d&&Ke(d,i,M,e.appContext.config.unwrapInjectedRef),l)for(const r in l){const e=l[r];(0,o.mf)(e)&&(i[r]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,o.Kn)(t)&&(e.data=(0,r.qj)(t))}if(We=!0,s)for(const r in s){const e=s[r],t=(0,o.mf)(e)?e.bind(n,n):(0,o.mf)(e.get)?e.get.bind(n,n):o.dG;0;const a=!(0,o.mf)(e)&&(0,o.mf)(e.set)?e.set.bind(n):o.dG,l=Fn({get:t,set:a});Object.defineProperty(i,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const r in u)Ye(u[r],i,n,r);if(c){const e=(0,o.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{W(t,e[t])}))}function I(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&qe(f,e,"c"),I(xe,h),I(Ee,p),I(Ce,v),I(Re,m),I(ve,g),I(me,b),I(Pe,R),I(Le,E),I(ke,C),I(Te,_),I(Ae,S),I(Oe,T),(0,o.kJ)(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===o.dG&&(e.render=x),null!=O&&(e.inheritAttrs=O),k&&(e.components=k),L&&(e.directives=L)}function Ke(e,t,n=o.dG,i=!1){(0,o.kJ)(e)&&(e=nt(e));for(const a in e){const n=e[a];let s;s=(0,o.Kn)(n)?"default"in n?G(n.from||a,n.default,!0):G(n.from||a):G(n),(0,r.dq)(s)&&i?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[a]=s}}function qe(e,t,n){a((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Ye(e,t,n,r){const i=r.includes(".")?Q(n,r):()=>n[r];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&Y(i,n)}else if((0,o.mf)(e))Y(i,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>Ye(e,t,n,r)));else{const r=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(r)&&Y(i,r,e)}else 0}function Xe(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let u;return l?u=l:i.length||n||r?(u={},i.length&&i.forEach((e=>Je(u,e,s,!0))),Je(u,t,s)):u=t,(0,o.Kn)(t)&&a.set(t,u),u}function Je(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Je(e,i,n,!0),o&&o.forEach((t=>Je(e,t,n,!0)));for(const a in t)if(r&&"expose"===a);else{const r=Qe[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Qe={data:et,props:ot,emits:ot,methods:ot,computed:ot,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:ot,directives:ot,watch:it,provide:et,inject:tt};function et(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function tt(e,t){return ot(nt(e),nt(t))}function nt(e){if((0,o.kJ)(e)){const t={};for(let n=0;n0)||16&l){let r;lt(e,t,a,s)&&(d=!0);for(const i in u)t&&((0,o.RI)(t,i)||(r=(0,o.rs)(i))!==i&&(0,o.RI)(t,r))||(c?!n||void 0===n[i]&&void 0===n[r]||(a[i]=ut(c,u,i,void 0,e,!0)):delete a[i]);if(s!==u)for(const e in s)t&&(0,o.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r{u=!0;const[n,r]=ct(e,t,!0);(0,o.l7)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!u)return(0,o.Kn)(e)&&r.set(e,o.Z6),o.Z6;if((0,o.kJ)(a))for(let d=0;d-1,r[1]=n<0||e-1||(0,o.RI)(r,"default"))&&l.push(t)}}}}const c=[s,l];return(0,o.Kn)(e)&&r.set(e,c),c}function dt(e){return"$"!==e[0]}function ft(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function ht(e,t){return ft(e)===ft(t)}function pt(e,t){return(0,o.kJ)(t)?t.findIndex((t=>ht(t,e))):(0,o.mf)(t)&&ht(t,e)?0:-1}const vt=e=>"_"===e[0]||"$stable"===e,mt=e=>(0,o.kJ)(e)?e.map(hn):[hn(e)],gt=(e,t,n)=>{if(t._n)return t;const r=j(((...e)=>mt(t(...e))),n);return r._c=!1,r},bt=(e,t,n)=>{const r=e._ctx;for(const i in e){if(vt(i))continue;const n=e[i];if((0,o.mf)(n))t[i]=gt(i,n,r);else if(null!=n){0;const e=mt(n);t[i]=()=>e}}},yt=(e,t)=>{const n=mt(t);e.slots.default=()=>n},_t=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,o.Nj)(t,"_",n)):bt(t,e.slots={})}else e.slots={},t&&yt(e,t);(0,o.Nj)(e.slots,nn,1)},wt=(e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=o.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,o.l7)(i,t),n||1!==e||delete i._):(a=!t.$stable,bt(t,i)),s=t}else t&&(yt(e,t),s={default:1});if(a)for(const o in i)vt(o)||o in s||delete i[o]};function St(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xt=0;function Et(e,t){return function(n,r=null){(0,o.mf)(n)||(n=Object.assign({},n)),null==r||(0,o.Kn)(r)||(r=null);const i=St(),a=new Set;let s=!1;const l=i.app={_uid:xt++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Nn,get config(){return i.config},set config(e){0},use(e,...t){return a.has(e)||(e&&(0,o.mf)(e.install)?(a.add(e),e.install(l,...t)):(0,o.mf)(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(o,a,u){if(!s){0;const c=sn(n,r);return c.appContext=i,a&&t?t(c,o):e(c,o,u),s=!0,l._container=o,o.__vue_app__=l,Bn(c.component)||c.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l}};return l}}function Ct(e,t,n,a,s=!1){if((0,o.kJ)(e))return void e.forEach(((e,r)=>Ct(e,t&&((0,o.kJ)(t)?t[r]:t),n,a,s)));if(fe(a)&&!s)return;const l=4&a.shapeFlag?Bn(a.component)||a.component.proxy:a.el,u=s?null:l,{i:c,r:d}=e;const f=t&&t.r,h=c.refs===o.kT?c.refs={}:c.refs,p=c.setupState;if(null!=f&&f!==d&&((0,o.HD)(f)?(h[f]=null,(0,o.RI)(p,f)&&(p[f]=null)):(0,r.dq)(f)&&(f.value=null)),(0,o.mf)(d))i(d,c,12,[u,h]);else{const t=(0,o.HD)(d),i=(0,r.dq)(d);if(t||i){const r=()=>{if(e.f){const n=t?h[d]:d.value;s?(0,o.kJ)(n)&&(0,o.Od)(n,l):(0,o.kJ)(n)?n.includes(l)||n.push(l):t?(h[d]=[l],(0,o.RI)(p,d)&&(p[d]=h[d])):(d.value=[l],e.k&&(h[e.k]=d.value))}else t?(h[d]=u,(0,o.RI)(p,d)&&(p[d]=u)):i&&(d.value=u,e.k&&(h[e.k]=u))};u?(r.id=-1,Tt(r,n)):r()}else 0}}function Rt(){}const Tt=V;function At(e){return Ot(e)}function Ot(e,t){Rt();const n=(0,o.E9)();n.__VUE__=!0;const{insert:i,remove:a,patchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:f,parentNode:h,nextSibling:p,setScopeId:v=o.dG,cloneNode:m,insertStaticContent:g}=e,b=(e,t,n,r=null,o=null,i=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!tn(e,t)&&(r=Q(e),K(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case Ut:y(e,t,n,r);break;case Zt:w(e,t,n,r);break;case Ht:null==e&&x(t,n,r,a);break;case $t:B(e,t,n,r,o,i,a,s,l);break;default:1&d?A(e,t,n,r,o,i,a,s,l):6&d?D(e,t,n,r,o,i,a,s,l):(64&d||128&d)&&u.process(e,t,n,r,o,i,a,s,l,te)}null!=c&&o&&Ct(c,e&&e.ref,i,t||e,!t)},y=(e,t,n,r)=>{if(null==e)i(t.el=u(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,n,r)=>{null==e?i(t.el=c(t.children||""),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=g(e.children,t,n,r,e.el,e.anchor)},R=({el:e,anchor:t},n,r)=>{let o;while(e&&e!==t)o=p(e),i(e,n,r),e=o;i(t,n,r)},T=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=p(e),a(e),e=n;a(t)},A=(e,t,n,r,o,i,a,s,l)=>{a=a||"svg"===t.type,null==e?O(t,n,r,o,i,a,s,l):P(e,t,o,i,a,s,l)},O=(e,t,n,r,a,u,c,d)=>{let h,p;const{type:v,props:g,shapeFlag:b,transition:y,patchFlag:_,dirs:w}=e;if(e.el&&void 0!==m&&-1===_)h=e.el=m(e.el);else{if(h=e.el=l(e.type,u,g&&g.is,g),8&b?f(h,e.children):16&b&&L(e.children,h,null,r,a,u&&"foreignObject"!==v,c,d),w&&Ie(e,null,r,"created"),g){for(const t in g)"value"===t||(0,o.Gg)(t)||s(h,t,null,g[t],u,e.children,r,a,J);"value"in g&&s(h,"value",null,g.value),(p=g.onVnodeBeforeMount)&&gn(p,r,e)}k(h,e,e.scopeId,c,r)}w&&Ie(e,null,r,"beforeMount");const S=(!a||a&&!a.pendingBranch)&&y&&!y.persisted;S&&y.beforeEnter(h),i(h,t,n),((p=g&&g.onVnodeMounted)||S||w)&&Tt((()=>{p&&gn(p,r,e),S&&y.enter(h),w&&Ie(e,null,r,"mounted")}),a)},k=(e,t,n,r,o)=>{if(n&&v(e,n),r)for(let i=0;i{for(let u=l;u{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:h}=t;c|=16&e.patchFlag;const p=e.props||o.kT,v=t.props||o.kT;let m;n&&kt(n,!1),(m=v.onVnodeBeforeUpdate)&&gn(m,n,t,e),h&&Ie(t,e,n,"beforeUpdate"),n&&kt(n,!0);const g=i&&"foreignObject"!==t.type;if(d?M(e.dynamicChildren,d,u,n,r,g,a):l||H(e,t,u,null,n,r,g,a,!1),c>0){if(16&c)I(u,t,p,v,n,r,i);else if(2&c&&p.class!==v.class&&s(u,"class",null,v.class,i),4&c&&s(u,"style",p.style,v.style,i),8&c){const o=t.dynamicProps;for(let t=0;t{m&&gn(m,n,t,e),h&&Ie(t,e,n,"updated")}),r)},M=(e,t,n,r,o,i,a)=>{for(let s=0;s{if(n!==r){for(const u in r){if((0,o.Gg)(u))continue;const c=r[u],d=n[u];c!==d&&"value"!==u&&s(e,u,d,c,l,t.children,i,a,J)}if(n!==o.kT)for(const u in n)(0,o.Gg)(u)||u in r||s(e,u,n[u],null,l,t.children,i,a,J);"value"in r&&s(e,"value",n.value,r.value)}},B=(e,t,n,r,o,a,s,l,c)=>{const d=t.el=e?e.el:u(""),f=t.anchor=e?e.anchor:u("");let{patchFlag:h,dynamicChildren:p,slotScopeIds:v}=t;v&&(l=l?l.concat(v):v),null==e?(i(d,n,r),i(f,n,r),L(t.children,n,f,o,a,s,l,c)):h>0&&64&h&&p&&e.dynamicChildren?(M(e.dynamicChildren,p,n,o,a,s,l),(null!=t.key||o&&t===o.subTree)&&Lt(e,t,!0)):H(e,t,n,f,o,a,s,l,c)},D=(e,t,n,r,o,i,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,l):j(t,n,r,o,i,a,l):z(e,t,l)},j=(e,t,n,r,o,i,a)=>{const s=e.component=_n(e,r,o);if(he(e)&&(s.ctx.renderer=te),On(s),s.asyncDep){if(o&&o.registerDep(s,N),!e.el){const e=s.subTree=sn(Zt);w(null,e,t,n)}}else N(s,e,t,n,o,i,a)},z=(e,t,n)=>{const r=t.component=e.component;if($(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void U(r,t,n);r.next=t,S(r.update),r.update()}else t.el=e.el,r.vnode=t},N=(e,t,n,i,a,s,l)=>{const u=()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:u,vnode:c}=e,d=n;0,kt(e,!1),n?(n.el=c.el,U(e,n,l)):n=c,r&&(0,o.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&gn(t,u,n,c),kt(e,!0);const f=F(e);0;const p=e.subTree;e.subTree=f,b(p,f,h(p.el),Q(p),e,a,s),n.el=f.el,null===d&&Z(e,f.el),i&&Tt(i,a),(t=n.props&&n.props.onVnodeUpdated)&&Tt((()=>gn(t,u,n,c)),a)}else{let r;const{el:l,props:u}=t,{bm:c,m:d,parent:f}=e,h=fe(t);if(kt(e,!1),c&&(0,o.ir)(c),!h&&(r=u&&u.onVnodeBeforeMount)&&gn(r,f,t),kt(e,!0),l&&re){const n=()=>{e.subTree=F(e),re(l,e.subTree,e,a,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const r=e.subTree=F(e);0,b(null,r,n,i,e,a,s),t.el=r.el}if(d&&Tt(d,a),!h&&(r=u&&u.onVnodeMounted)){const e=t;Tt((()=>gn(r,f,e)),a)}(256&t.shapeFlag||f&&fe(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&Tt(e.a,a),e.isMounted=!0,t=n=i=null}},c=e.effect=new r.qq(u,(()=>_(d)),e.scope),d=e.update=()=>c.run();d.id=e.uid,kt(e,!0),d()},U=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,st(e,t.props,o,n),wt(e,t.children,n),(0,r.Jd)(),E(),(0,r.lk)()},H=(e,t,n,r,o,i,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:p}=t;if(h>0){if(128&h)return void W(u,d,n,r,o,i,a,s,l);if(256&h)return void V(u,d,n,r,o,i,a,s,l)}8&p?(16&c&&J(u,o,i),d!==u&&f(n,d)):16&c?16&p?W(u,d,n,r,o,i,a,s,l):J(u,o,i,!0):(8&c&&f(n,""),16&p&&L(d,n,r,o,i,a,s,l))},V=(e,t,n,r,i,a,s,l,u)=>{e=e||o.Z6,t=t||o.Z6;const c=e.length,d=t.length,f=Math.min(c,d);let h;for(h=0;hd?J(e,i,a,!0,!1,f):L(t,n,r,i,a,s,l,u,f)},W=(e,t,n,r,i,a,s,l,u)=>{let c=0;const d=t.length;let f=e.length-1,h=d-1;while(c<=f&&c<=h){const r=e[c],o=t[c]=u?pn(t[c]):hn(t[c]);if(!tn(r,o))break;b(r,o,n,null,i,a,s,l,u),c++}while(c<=f&&c<=h){const r=e[f],o=t[h]=u?pn(t[h]):hn(t[h]);if(!tn(r,o))break;b(r,o,n,null,i,a,s,l,u),f--,h--}if(c>f){if(c<=h){const e=h+1,o=eh)while(c<=f)K(e[c],i,a,!0),c++;else{const p=c,v=c,m=new Map;for(c=v;c<=h;c++){const e=t[c]=u?pn(t[c]):hn(t[c]);null!=e.key&&m.set(e.key,c)}let g,y=0;const _=h-v+1;let w=!1,S=0;const x=new Array(_);for(c=0;c<_;c++)x[c]=0;for(c=p;c<=f;c++){const r=e[c];if(y>=_){K(r,i,a,!0);continue}let o;if(null!=r.key)o=m.get(r.key);else for(g=v;g<=h;g++)if(0===x[g-v]&&tn(r,t[g])){o=g;break}void 0===o?K(r,i,a,!0):(x[o-v]=c+1,o>=S?S=o:w=!0,b(r,t[o],n,null,i,a,s,l,u),y++)}const E=w?Pt(x):o.Z6;for(g=E.length-1,c=_-1;c>=0;c--){const e=v+c,o=t[e],f=e+1{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void G(e.component.subTree,t,n,r);if(128&c)return void e.suspense.move(t,n,r);if(64&c)return void s.move(e,t,n,te);if(s===$t){i(a,t,n);for(let e=0;el.enter(a)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=l,s=()=>i(a,t,n),u=()=>{e(a,(()=>{s(),o&&o()}))};r?r(a,s,u):u()}else i(a,t,n)},K=(e,t,n,r=!1,o=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:f}=e;if(null!=s&&Ct(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const h=1&c&&f,p=!fe(e);let v;if(p&&(v=a&&a.onVnodeBeforeUnmount)&&gn(v,t,e),6&c)X(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);h&&Ie(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,o,te,r):u&&(i!==$t||d>0&&64&d)?J(u,t,n,!1,!0):(i===$t&&384&d||!o&&16&c)&&J(l,t,n),r&&q(e)}(p&&(v=a&&a.onVnodeUnmounted)||h)&&Tt((()=>{v&&gn(v,t,e),h&&Ie(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===$t)return void Y(n,r);if(t===Ht)return void T(e);const i=()=>{a(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,a=()=>t(n,i);r?r(e.el,i,a):a()}else i()},Y=(e,t)=>{let n;while(e!==t)n=p(e),a(e),e=n;a(t)},X=(e,t,n)=>{const{bum:r,scope:i,update:a,subTree:s,um:l}=e;r&&(0,o.ir)(r),i.stop(),a&&(a.active=!1,K(s,e,t,n)),l&&Tt(l,t),Tt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,r=!1,o=!1,i=0)=>{for(let a=i;a6&e.shapeFlag?Q(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),ee=(e,t,n)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),E(),C(),t._vnode=e},te={p:b,um:K,m:G,r:q,mt:j,mc:L,pc:H,pbc:M,n:Q,o:e};let ne,re;return t&&([ne,re]=t(te)),{render:ee,hydrate:ne,createApp:Et(ee,ne)}}function kt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Lt(e,t,n=!1){const r=e.children,i=t.children;if((0,o.kJ)(r)&&(0,o.kJ)(i))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1];while(i-- >0)n[i]=a,a=t[a];return n}const Mt=e=>e.__isTeleport,It=e=>e&&(e.disabled||""===e.disabled),Bt=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Dt=(e,t)=>{const n=e&&e.to;if((0,o.HD)(n)){if(t){const e=t(n);return e}return null}return n},jt={__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:p,createText:v,createComment:m}}=u,g=It(t.props);let{shapeFlag:b,children:y,dynamicChildren:_}=t;if(null==e){const e=t.el=v(""),u=t.anchor=v("");h(e,n,r),h(u,n,r);const d=t.target=Dt(t.props,p),f=t.targetAnchor=v("");d&&(h(f,d),a=a||Bt(d));const m=(e,t)=>{16&b&&c(y,e,t,o,i,a,s,l)};g?m(n,u):d&&m(d,f)}else{t.el=e.el;const r=t.anchor=e.anchor,c=t.target=e.target,h=t.targetAnchor=e.targetAnchor,v=It(e.props),m=v?n:c,b=v?r:h;if(a=a||Bt(c),_?(f(e.dynamicChildren,_,m,o,i,a,s),Lt(e,t,!0)):l||d(e,t,m,b,o,i,a,s,!1),g)v||Ft(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Dt(t.props,p);e&&Ft(t,e,null,u,0)}else v&&Ft(t,c,h,u,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:d,props:f}=e;if(d&&i(c),(a||!It(f))&&(i(u),16&s))for(let h=0;h0?Wt||o.Z6:null,Kt(),qt>0&&Wt&&Wt.push(e),e}function Jt(e,t,n,r,o,i){return Xt(an(e,t,n,r,o,i,!0))}function Qt(e,t,n,r,o){return Xt(sn(e,t,n,r,o,!0))}function en(e){return!!e&&!0===e.__v_isVNode}function tn(e,t){return e.type===t.type&&e.key===t.key}const nn="__vInternal",rn=({key:e})=>null!=e?e:null,on=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||(0,r.dq)(e)||(0,o.mf)(e)?{i:P,r:e,k:t,f:!!n}:e:null;function an(e,t=null,n=null,r=0,i=null,a=(e===$t?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rn(t),ref:t&&on(t),scopeId:M,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return l?(vn(u,n),128&a&&e.normalize(u)):n&&(u.shapeFlag|=(0,o.HD)(n)?8:16),qt>0&&!s&&Wt&&(u.patchFlag>0||6&a)&&32!==u.patchFlag&&Wt.push(u),u}const sn=ln;function ln(e,t=null,n=null,i=0,a=null,s=!1){if(e&&e!==je||(e=Zt),en(e)){const r=cn(e,t,!0);return n&&vn(r,n),qt>0&&!s&&Wt&&(6&r.shapeFlag?Wt[Wt.indexOf(e)]=r:Wt.push(r)),r.patchFlag|=-2,r}if(jn(e)&&(e=e.__vccOpts),t){t=un(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&((0,r.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}const l=(0,o.HD)(e)?1:H(e)?128:Mt(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0;return an(e,t,n,i,a,l,s,!0)}function un(e){return e?(0,r.X3)(e)||nn in e?(0,o.l7)({},e):e:null}function cn(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:s}=e,l=t?mn(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&rn(l),ref:t&&t.ref?n&&i?(0,o.kJ)(i)?i.concat(on(t)):[i,on(t)]:on(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==$t?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cn(e.ssContent),ssFallback:e.ssFallback&&cn(e.ssFallback),el:e.el,anchor:e.anchor};return u}function dn(e=" ",t=0){return sn(Ut,null,e,t)}function fn(e="",t=!1){return t?(Gt(),Qt(Zt,null,e)):sn(Zt,null,e)}function hn(e){return null==e||"boolean"===typeof e?sn(Zt):(0,o.kJ)(e)?sn($t,null,e.slice()):"object"===typeof e?pn(e):sn(Ut,null,String(e))}function pn(e){return null===e.el||e.memo?e:cn(e)}function vn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),vn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||nn in t?3===r&&P&&(1===P.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=P}}else(0,o.mf)(t)?(t={default:t,_ctx:P},n=32):(t=String(t),64&r?(n=16,t=[dn(t)]):n=8);e.children=t,e.shapeFlag|=n}function mn(...e){const t={};for(let n=0;nwn||P,xn=e=>{wn=e,e.scope.on()},En=()=>{wn&&wn.scope.off(),wn=null};function Cn(e){return 4&e.vnode.shapeFlag}let Rn,Tn,An=!1;function On(e,t=!1){An=t;const{props:n,children:r}=e.vnode,o=Cn(e);at(e,n,o,t),_t(e,r);const i=o?kn(e,t):void 0;return An=!1,i}function kn(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,Ve));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?In(e):null;xn(e),(0,r.Jd)();const l=i(a,e,0,[e.props,n]);if((0,r.lk)(),En(),(0,o.tI)(l)){if(l.then(En,En),t)return l.then((n=>{Ln(e,n,t)})).catch((t=>{s(t,e,0)}));e.asyncDep=l}else Ln(e,l,t)}else Pn(e,t)}function Ln(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(e.setupState=(0,r.WL)(t)),Pn(e,n)}function Pn(e,t,n){const i=e.type;if(!e.render){if(!t&&Rn&&!i.render){const t=i.template||Xe(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=i,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:a},r),s);i.render=Rn(t,l)}}e.render=i.render||o.dG,Tn&&Tn(e)}xn(e),(0,r.Jd)(),Ge(e),(0,r.lk)(),En()}function Mn(e){return new Proxy(e.attrs,{get(t,n){return(0,r.j)(e,"get","$attrs"),t[n]}})}function In(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=Mn(e))},slots:e.slots,emit:e.emit,expose:t}}function Bn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in He?He[n](e):void 0}}))}function Dn(e,t=!0){return(0,o.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function jn(e){return(0,o.mf)(e)&&"__vccOpts"in e}const Fn=(e,t)=>(0,r.Fl)(e,t,An);function zn(e,t,n){const r=arguments.length;return 2===r?(0,o.Kn)(t)&&!(0,o.kJ)(t)?en(t)?sn(e,null,[t]):sn(e,t):sn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&en(n)&&(n=[n]),sn(e,t,n))}Symbol("");const Nn="3.2.39"},9242:function(e,t,n){"use strict";n.d(t,{F8:function(){return fe},W3:function(){return oe},iM:function(){return de},ri:function(){return ge},uT:function(){return F}});n(7658);var r=n(7139),o=n(3396),i=n(4870);const a="http://www.w3.org/2000/svg",s="undefined"!==typeof document?document:null,l=s&&s.createElement("template"),u={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?s.createElementNS(a,e):s.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>s.createTextNode(e),createComment:e=>s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>s.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),n),o===i||!(o=o.nextSibling))break}else{l.innerHTML=r?`${e}`:e;const o=l.content;if(r){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function c(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function d(e,t,n){const o=e.style,i=(0,r.HD)(n);if(n&&!i){for(const e in n)h(o,e,n[e]);if(t&&!(0,r.HD)(t))for(const e in t)null==n[e]&&h(o,e,"")}else{const r=o.display;i?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const f=/\s*!important$/;function h(e,t,n){if((0,r.kJ)(n))n.forEach((n=>h(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=m(e,t);f.test(n)?e.setProperty((0,r.rs)(o),n.replace(f,""),"important"):e[o]=n}}const p=["Webkit","Moz","ms"],v={};function m(e,t){const n=v[t];if(n)return n;let o=(0,r._A)(t);if("filter"!==o&&o in e)return v[t]=o;o=(0,r.kC)(o);for(let r=0;r{let e=Date.now,t=!1;if("undefined"!==typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let S=0;const x=Promise.resolve(),E=()=>{S=0},C=()=>S||(x.then(E),S=_());function R(e,t,n,r){e.addEventListener(t,n,r)}function T(e,t,n,r){e.removeEventListener(t,n,r)}function A(e,t,n,r,o=null){const i=e._vei||(e._vei={}),a=i[t];if(r&&a)a.value=r;else{const[n,s]=k(t);if(r){const a=i[t]=L(r,o);R(e,n,a,s)}else a&&(T(e,n,a,s),i[t]=void 0)}}const O=/(?:Once|Passive|Capture)$/;function k(e){let t;if(O.test(e)){let n;t={};while(n=e.match(O))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):(0,r.rs)(e.slice(2));return[n,t]}function L(e,t){const n=e=>{const r=e.timeStamp||_();(w||r>=n.attached-1)&&(0,o.$d)(P(e,n.value),t,5,[e])};return n.value=e,n.attached=C(),n}function P(e,t){if((0,r.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const M=/^on[a-z]/,I=(e,t,n,o,i=!1,a,s,l,u)=>{"class"===t?c(e,o,i):"style"===t?d(e,n,o):(0,r.F7)(t)?(0,r.tR)(t)||A(e,t,n,o,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):B(e,t,o,i))?y(e,t,o,a,s,l,u):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),b(e,t,o,i))};function B(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&M.test(t)&&(0,r.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!M.test(t)||!(0,r.HD)(n))&&t in e))))}"undefined"!==typeof HTMLElement&&HTMLElement;const D="transition",j="animation",F=(e,{slots:t})=>(0,o.h)(o.P$,Z(e),t);F.displayName="Transition";const z={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},N=F.props=(0,r.l7)({},o.P$.props,z),$=(e,t=[])=>{(0,r.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},U=e=>!!e&&((0,r.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function Z(e){const t={};for(const r in e)r in z||(t[r]=e[r]);if(!1===e.css)return t;const{name:n="v",type:o,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=H(i),m=v&&v[0],g=v&&v[1],{onBeforeEnter:b,onEnter:y,onEnterCancelled:_,onLeave:w,onLeaveCancelled:S,onBeforeAppear:x=b,onAppear:E=y,onAppearCancelled:C=_}=t,R=(e,t,n)=>{G(e,t?d:l),G(e,t?c:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,G(e,f),G(e,p),G(e,h),t&&t()},A=e=>(t,n)=>{const r=e?E:y,i=()=>R(t,e,n);$(r,[t,i]),K((()=>{G(t,e?u:a),W(t,e?d:l),U(r)||Y(t,o,m,i)}))};return(0,r.l7)(t,{onBeforeEnter(e){$(b,[e]),W(e,a),W(e,s)},onBeforeAppear(e){$(x,[e]),W(e,u),W(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);W(e,f),ee(),W(e,h),K((()=>{e._isLeaving&&(G(e,f),W(e,p),U(w)||Y(e,o,g,n))})),$(w,[e,n])},onEnterCancelled(e){R(e,!1),$(_,[e])},onAppearCancelled(e){R(e,!0),$(C,[e])},onLeaveCancelled(e){T(e),$(S,[e])}})}function H(e){if(null==e)return null;if((0,r.Kn)(e))return[V(e.enter),V(e.leave)];{const t=V(e);return[t,t]}}function V(e){const t=(0,r.He)(e);return t}function W(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function G(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function K(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let q=0;function Y(e,t,n,r){const o=e._endId=++q,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=X(e,t);if(!a)return r();const u=a+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=t=>{t.target===e&&++c>=l&&d()};setTimeout((()=>{c(n[e]||"").split(", "),o=r(D+"Delay"),i=r(D+"Duration"),a=J(o,i),s=r(j+"Delay"),l=r(j+"Duration"),u=J(s,l);let c=null,d=0,f=0;t===D?a>0&&(c=D,d=a,f=i.length):t===j?u>0&&(c=j,d=u,f=l.length):(d=Math.max(a,u),c=d>0?a>u?D:j:null,f=c?c===D?i.length:l.length:0);const h=c===D&&/\b(transform|all)(,|$)/.test(n[D+"Property"]);return{type:c,timeout:d,propCount:f,hasTransform:h}}function J(e,t){while(e.lengthQ(t)+Q(e[n]))))}function Q(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ee(){return document.body.offsetHeight}const te=new WeakMap,ne=new WeakMap,re={name:"TransitionGroup",props:(0,r.l7)({},N,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,o.FN)(),r=(0,o.Y8)();let a,s;return(0,o.ic)((()=>{if(!a.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!le(a[0].el,n.vnode.el,t))return;a.forEach(ie),a.forEach(ae);const r=a.filter(se);ee(),r.forEach((e=>{const n=e.el,r=n.style;W(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,G(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const l=(0,i.IU)(e),u=Z(l);let c=l.tag||o.HY;a=s,s=t.default?(0,o.Q6)(t.default()):[];for(let e=0;e{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=X(r);return o.removeChild(r),i}const ue=["ctrl","shift","alt","meta"],ce={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ue.some((n=>e[`${n}Key`]&&!t.includes(n)))},de=(e,t)=>(n,...r)=>{for(let e=0;e{he(e,!1)})):he(e,t))},beforeUnmount(e,{value:t}){he(e,t)}};function he(e,t){e.style.display=t?e._vod:"none"}const pe=(0,r.l7)({patchProp:I},u);let ve;function me(){return ve||(ve=(0,o.Us)(pe))}const ge=(...e)=>{const t=me().createApp(...e);const{mount:n}=t;return t.mount=e=>{const o=be(e);if(!o)return;const i=t._component;(0,r.mf)(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function be(e){if((0,r.HD)(e)){const t=document.querySelector(e);return t}return e}},7139:function(e,t,n){"use strict";n.d(t,{C_:function(){return h},DM:function(){return P},E9:function(){return re},F7:function(){return E},Gg:function(){return H},HD:function(){return B},He:function(){return te},Kn:function(){return j},NO:function(){return S},Nj:function(){return ee},Od:function(){return T},PO:function(){return U},Pq:function(){return s},RI:function(){return O},S0:function(){return Z},W7:function(){return $},WV:function(){return v},Z6:function(){return _},_A:function(){return G},_N:function(){return L},aU:function(){return J},dG:function(){return w},e1:function(){return i},fY:function(){return r},hR:function(){return X},hq:function(){return m},ir:function(){return Q},j5:function(){return u},kC:function(){return Y},kJ:function(){return k},kT:function(){return y},l7:function(){return R},mf:function(){return I},rs:function(){return q},tI:function(){return F},tR:function(){return C},yA:function(){return l},yk:function(){return D},zw:function(){return g}});n(7658);function r(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[e.toLowerCase()]:e=>!!n[e]}const o="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",i=r(o);const a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s=r(a);function l(e){return!!e||""===e}function u(e){if(k(e)){const t={};for(let n=0;n{if(e){const n=e.split(d);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function h(e){let t="";if(B(e))t=e;else if(k(e))for(let n=0;nv(e,t)))}const g=e=>B(e)?e:null==e?"":k(e)||j(e)&&(e.toString===z||!I(e.toString))?JSON.stringify(e,b,2):String(e),b=(e,t)=>t&&t.__v_isRef?b(e,t.value):L(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:P(t)?{[`Set(${t.size})`]:[...t.values()]}:!j(t)||k(t)||U(t)?t:String(t),y={},_=[],w=()=>{},S=()=>!1,x=/^on[^a-z]/,E=e=>x.test(e),C=e=>e.startsWith("onUpdate:"),R=Object.assign,T=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},A=Object.prototype.hasOwnProperty,O=(e,t)=>A.call(e,t),k=Array.isArray,L=e=>"[object Map]"===N(e),P=e=>"[object Set]"===N(e),M=e=>"[object Date]"===N(e),I=e=>"function"===typeof e,B=e=>"string"===typeof e,D=e=>"symbol"===typeof e,j=e=>null!==e&&"object"===typeof e,F=e=>j(e)&&I(e.then)&&I(e.catch),z=Object.prototype.toString,N=e=>z.call(e),$=e=>N(e).slice(8,-1),U=e=>"[object Object]"===N(e),Z=e=>B(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,H=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},W=/-(\w)/g,G=V((e=>e.replace(W,((e,t)=>t?t.toUpperCase():"")))),K=/\B([A-Z])/g,q=V((e=>e.replace(K,"-$1").toLowerCase())),Y=V((e=>e.charAt(0).toUpperCase()+e.slice(1))),X=V((e=>e?`on${Y(e)}`:"")),J=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},te=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ne;const re=()=>ne||(ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},7298:function(e,t,n){"use strict";n.d(t,{j:function(){return T}});n(7658);function r(e){let t=0;for(let n=0;n{let o=r(t);if(!o)return void e.forEach((e=>{n.push((e&&e+" ")+t)}));if(1===o)return void e.forEach((e=>{n.push(t.replace("&",e))}));let i=[t];while(o--){const t=[];i.forEach((n=>{e.forEach((e=>{t.push(n.replace("&",e))}))})),i=t}i.forEach((e=>n.push(e)))})),n}function s(e,t){const n=[];return t.split(o).forEach((t=>{e.forEach((e=>{n.push((e&&e+" ")+t)}))})),n}function l(e){let t=[""];return e.forEach((e=>{e=e&&e.trim(),e&&(t=e.includes("&")?a(t,e):s(t,e))})),t.join(", ").replace(i," ")}var u=n(5690);const c=/[A-Z]/g;function d(e){return e.replace(c,(e=>"-"+e.toLowerCase()))}function f(e,t=" "){return"object"===typeof e&&null!==e?" {\n"+Object.entries(e).map((e=>t+` ${d(e[0])}: ${e[1]};`)).join("\n")+"\n"+t+"}":`: ${e};`}function h(e,t,n){return"function"===typeof e?e({context:t.context,props:n}):e}function p(e,t,n,r){if(!t)return"";const o=h(t,n,r);if(!o)return"";if("string"===typeof o)return`${e} {\n${o}\n}`;const i=Object.keys(o);if(0===i.length)return n.config.keepEmptyBlock?e+" {\n}":"";const a=e?[e+" {"]:[];return i.forEach((e=>{const t=o[e];"raw"!==e?(e=d(e),null!==t&&void 0!==t&&a.push(` ${e}${f(t)}`)):a.push("\n"+t+"\n")})),e&&a.push("}"),a.join("\n")}function v(e,t,n){e&&e.forEach((e=>{if(Array.isArray(e))v(e,t,n);else if("function"===typeof e){const r=e(t);Array.isArray(r)?v(r,t,n):r&&n(r)}else e&&n(e)}))}function m(e,t,n,r,o,i){const a=e.$;let s="";if(a&&"string"!==typeof a)if("function"===typeof a){const e=a({context:r.context,props:o});(0,u.Yo)(e)?s=e:t.push(e)}else if(a.before&&a.before(r.context),a.$&&"string"!==typeof a.$){if(a.$){const e=a.$({context:r.context,props:o});(0,u.Yo)(e)?s=e:t.push(e)}}else(0,u.Yo)(a.$)?s=a.$:t.push(a.$);else(0,u.Yo)(a)?s=a:t.push(a);const c=l(t),d=p(c,e.props,r,o);s?(n.push(`${s} {`),i&&d&&i.insertRule(`${s} {\n${d}\n}\n`)):(i&&d&&i.insertRule(d),!i&&d.length&&n.push(d)),e.children&&v(e.children,{context:r.context,props:o},(e=>{if("string"===typeof e){const t=p(c,{raw:e},r,o);i?i.insertRule(t):n.push(t)}else m(e,t,n,r,o,i)})),t.pop(),s&&n.push("}"),a&&a.after&&a.after(r.context)}function g(e,t,n,r=!1){const o=[];return m(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join("\n\n")}var b=n(7535);function y(e,t,n){const{els:r}=t;if(void 0===n)r.forEach(u.bX),t.els=[];else{const e=(0,u.$F)(n);e&&r.includes(e)&&((0,u.bX)(e),t.els=r.filter((t=>t!==e)))}}function _(e,t){e.push(t)}function w(e,t,n,r,o,i,a,s,l){if(i&&!l){if(void 0===n)return void console.error("[css-render/mount]: `id` is required in `silent` mode.");const o=window.__cssrContext;return void(o[n]||(o[n]=!0,g(t,e,r,i)))}let c;if(void 0===n&&(c=t.render(r),n=(0,b.Z)(c)),l)return void l.adapter(n,null!==c&&void 0!==c?c:t.render(r));const d=(0,u.$F)(n);if(null!==d&&!a)return d;const f=null!==d&&void 0!==d?d:(0,u.az)(n);if(void 0===c&&(c=t.render(r)),f.textContent=c,null!==d)return d;if(s){const e=document.head.querySelector(`meta[name="${s}"]`);if(e)return document.head.insertBefore(f,e),_(t.els,f),f}return o?document.head.insertBefore(f,document.head.querySelector("style, link")):document.head.appendChild(f),_(t.els,f),f}function S(e){return g(this,this.instance,e)}function x(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e,l=w(this.instance,this,t,r,o,i,a,s,n);return l}function E(e={}){const{id:t}=e;y(this.instance,this,t)}"undefined"!==typeof window&&(window.__cssrContext={});const C=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:S,mount:x,unmount:E}},R=function(e,t,n,r){return Array.isArray(t)?C(e,{$:null},null,t):Array.isArray(n)?C(e,t,null,n):Array.isArray(r)?C(e,t,n,r):C(e,t,n,null)};function T(e={}){let t=null;const n={c:(...e)=>R(n,...e),use:(e,...t)=>e.install(n,...t),find:u.$F,context:{},config:e,get __styleSheet(){if(!t){const e=document.createElement("style");return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}},5690:function(e,t,n){"use strict";function r(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function o(e){return document.head.querySelector(`style[cssr-id="${e}"]`)}function i(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function a(e){return!!e&&/^\s*@(s|m)/.test(e)}n.d(t,{$F:function(){return o},Yo:function(){return a},az:function(){return i},bX:function(){return r}})},5755:function(e,t,n){"use strict";n.d(t,{S:function(){return d},on:function(){return c}});n(7658);function r(e){const t=e.composedPath();return t[0]}const o={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function i(e,t,n){if("mousemoveoutside"===e){const e=e=>{t.contains(r(e))||n(e)};return{mousemove:e,touchstart:e}}if("clickoutside"===e){let e=!1;const o=n=>{e=!t.contains(r(n))},i=o=>{e&&(t.contains(r(o))||n(o))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function a(e,t,n){const r=o[e];let a=r.get(t);void 0===a&&r.set(t,a=new WeakMap);let s=a.get(n);return void 0===s&&a.set(n,s=i(e,t,n)),s}function s(e,t,n,r){if("mousemoveoutside"===e||"clickoutside"===e){const o=a(e,t,n);return Object.keys(o).forEach((e=>{c(e,document,o[e],r)})),!0}return!1}function l(e,t,n,r){if("mousemoveoutside"===e||"clickoutside"===e){const o=a(e,t,n);return Object.keys(o).forEach((e=>{d(e,document,o[e],r)})),!0}return!1}function u(){if("undefined"===typeof window)return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){const r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}const u=new WeakMap,c=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function d(){var e;return null!==(e=u.get(this))&&void 0!==e?e:null}function f(e,t){void 0!==c&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:null!==t&&void 0!==t?t:c.get})}const h={bubble:{},capture:{}},p={};function v(){const s=function(s){const{type:l,eventPhase:c,bubbles:p}=s,v=r(s);if(2===c)return;const m=1===c?"capture":"bubble";let g=v;const b=[];while(1){if(null===g&&(g=window),b.push(g),g===window)break;g=g.parentNode||null}const y=h.capture[l],_=h.bubble[l];if(i(s,"stopPropagation",n),i(s,"stopImmediatePropagation",o),f(s,d),"capture"===m){if(void 0===y)return;for(let n=b.length-1;n>=0;--n){if(e.has(s))break;const r=b[n],o=y.get(r);if(void 0!==o){u.set(s,r);for(const e of o){if(t.has(s))break;e(s)}}if(0===n&&!p&&void 0!==_){const e=_.get(r);if(void 0!==e)for(const n of e){if(t.has(s))break;n(s)}}}}else if("bubble"===m){if(void 0===_)return;for(let n=0;nt(e)))};return e.displayName="evtdUnifiedWindowEventHandler",e}const g=v(),b=m();function y(e,t){const n=h[e];return void 0===n[t]&&(n[t]=new Map,window.addEventListener(t,g,"capture"===e)),n[t]}function _(e){const t=p[e];return void 0===t&&(p[e]=new Set,window.addEventListener(e,b)),p[e]}function w(e,t){let n=e.get(t);return void 0===n&&e.set(t,n=new Set),n}function S(e,t,n,r){const o=h[t][n];if(void 0!==o){const t=o.get(e);if(void 0!==t&&t.has(r))return!0}return!1}function x(e,t){const n=p[e];return!(void 0===n||!n.has(t))}function E(e,t,n,r){let o;o="object"===typeof r&&!0===r.once?i=>{C(e,t,o,r),n(i)}:n;const i=s(e,t,o,r);if(i)return;const a=!0===r||"object"===typeof r&&!0===r.capture?"capture":"bubble",l=y(a,e),u=w(l,t);if(u.has(o)||u.add(o),t===window){const t=_(e);t.has(o)||t.add(o)}}function C(e,t,n,r){const o=l(e,t,n,r);if(o)return;const i=!0===r||"object"===typeof r&&!0===r.capture,a=i?"capture":"bubble",s=y(a,e),u=w(s,t);if(t===window){const r=i?"bubble":"capture";if(!S(t,r,e,n)&&x(e,n)){const t=p[e];t.delete(n),0===t.size&&(window.removeEventListener(e,b),p[e]=void 0)}}u.has(n)&&u.delete(n),0===u.size&&s.delete(t),0===s.size&&(window.removeEventListener(e,g,"capture"===a),h[a][e]=void 0)}return{on:E,off:C}}const{on:c,off:d}=u()},2747:function(e,t,n){n(8675),n(3408),n(4590),n(1703),n(7658),n(541),n(2087),function(t,n){e.exports=n()}(self,(function(){return function(){var e={"./node_modules/es6-promise/dist/es6-promise.js": -/*!******************************************************!*\ - !*** ./node_modules/es6-promise/dist/es6-promise.js ***! - \******************************************************/ -function(e,t,n){ -/*! - * @overview es6-promise - a tiny implementation of Promises/A+. - * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) - * @license Licensed under MIT license - * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE - * @version v4.2.8+1e68dce6 - */ -(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"===typeof e}var r=void 0;r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var o=r,i=0,a=void 0,s=void 0,l=function(e,t){w[i]=e,w[i+1]=t,i+=2,2===i&&(s?s(S):E())};function u(e){s=e}function c(e){l=e}var d="undefined"!==typeof window?window:void 0,f=d||{},h=f.MutationObserver||f.WebKitMutationObserver,p="undefined"===typeof self&&"undefined"!==typeof process&&"[object process]"==={}.toString.call(process),v="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function m(){return function(){return process.nextTick(S)}}function g(){return"undefined"!==typeof a?function(){a(S)}:_()}function b(){var e=0,t=new h(S),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function y(){var e=new MessageChannel;return e.port1.onmessage=S,function(){return e.port2.postMessage(0)}}function _(){var e=setTimeout;return function(){return e(S,1)}}var w=new Array(1e3);function S(){for(var e=0;e0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,o(c)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?g(o):v(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)r(l,this,t);else{var u=l.length,c=v(l,u);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():m(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},"./node_modules/webworkify-webpack/index.js": -/*!**************************************************!*\ - !*** ./node_modules/webworkify-webpack/index.js ***! - \**************************************************/ -function(e,t,n){function r(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n.oe=function(e){throw console.error(e),e};var r=n(n.s=ENTRY_MODULE);return r.default||r}var o="[\\.|\\-|\\+|\\w|/|@]+",i="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+o+").*?\\)";function a(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function s(e){return!isNaN(1*e)}function l(e,t,r){var l={};l[r]=[];var u=t.toString(),c=u.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!c)return l;var d,f=c[1],h=new RegExp("(\\\\n|\\W)"+a(f)+i,"g");while(d=h.exec(u))"dll-reference"!==d[3]&&l[r].push(d[3]);h=new RegExp("\\("+a(f)+'\\("(dll-reference\\s('+o+'))"\\)\\)'+i,"g");while(d=h.exec(u))e[d[2]]||(l[r].push(d[1]),e[d[2]]=n(d[1]).m),l[d[2]]=l[d[2]]||[],l[d[2]].push(d[4]);for(var p=Object.keys(l),v=0;v0}),!1)}function c(e,t){var n={main:[t]},r={main:[]},o={main:{}};while(u(n))for(var i=Object.keys(n),a=0;a=e[o]&&t0&&e[0].originalDts=t[o].dts&&et[r].lastSample.originalDts&&e=t[r].lastSample.originalDts&&(r===t.length-1||r0&&(o=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=o,this._list.splice(o,0,n)},e.prototype.getLastSegmentBefore=function(e){var t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null},e.prototype.getLastSampleBefore=function(e){var t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null},e.prototype.getLastSyncPointBefore=function(e){var t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;while(0===n.length&&t>0)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null},e}()},"./src/core/mse-controller.js": -/*!************************************!*\ - !*** ./src/core/mse-controller.js ***! - \************************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! events */ -"./node_modules/events/events.js"),o=n.n(r),i=n( -/*! ../utils/logger.js */ -"./src/utils/logger.js"),a=n( -/*! ../utils/browser.js */ -"./src/utils/browser.js"),s=n( -/*! ./mse-events.js */ -"./src/core/mse-events.js"),l=n( -/*! ./media-segment-info.js */ -"./src/core/media-segment-info.js"),u=n( -/*! ../utils/exception.js */ -"./src/utils/exception.js"),c=function(){function e(e){this.TAG="MSEController",this._config=e,this._emitter=new(o()),this._config.isLive&&void 0==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new l.IDRSampleList}return e.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.attachMediaElement=function(e){if(this._mediaSource)throw new u.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL},e.prototype.detachMediaElement=function(){if(this._mediaSource){var e=this._mediaSource;for(var t in this._sourceBuffers){var n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;var r=this._sourceBuffers[t];if(r){if("closed"!==e.readyState){try{e.removeSourceBuffer(r)}catch(o){i.default.e(this.TAG,o.message)}r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if("open"===e.readyState)try{e.endOfStream()}catch(o){i.default.e(this.TAG,o.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},e.prototype.appendInitSegment=function(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);var n=e,r=""+n.container;n.codec&&n.codec.length>0&&(r+=";codecs="+n.codec);var o=!1;if(i.default.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[n.type]=n,r!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])i.default.v(this.TAG,"Notice: "+n.type+" mimeType changed, origin: "+this._mimeTypes[n.type]+", target: "+r);else{o=!0;try{var l=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);l.addEventListener("error",this.e.onSourceBufferError),l.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(u){return i.default.e(this.TAG,u.message),void this._emitter.emit(s.default.ERROR,{code:u.code,msg:u.message})}}this._mimeTypes[n.type]=r}t||this._pendingSegments[n.type].push(n),o||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),a.default.safari&&"audio/mpeg"===n.container&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())},e.prototype.appendMediaSegment=function(e){var t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var n=this._sourceBuffers[t.type];!n||n.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()},e.prototype.seek=function(e){for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var n=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{n.abort()}catch(c){i.default.e(this.TAG,c.message)}this._idrList.clear();var r=this._pendingSegments[t];if(r.splice(0,r.length),"closed"!==this._mediaSource.readyState){for(var o=0;o=1&&e-r.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},e.prototype._doCleanupSourceBuffer=function(){var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){for(var r=n.buffered,o=!1,i=0;i=this._config.autoCleanupMaxBackwardDuration){o=!0;var l=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:a,end:l})}}else s0&&(isNaN(t)||n>t)&&(i.default.v(this.TAG,"Update MediaSource duration from "+t+" to "+n),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},e.prototype._doRemoveRanges=function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating){var t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];while(n.length&&!t.updating){var r=n.shift();t.remove(r.start,r.end)}}},e.prototype._doAppendSegments=function(){var e=this._pendingSegments;for(var t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&e[t].length>0){var n=e[t].shift();if(n.timestampOffset){var r=this._sourceBuffers[t].timestampOffset,o=n.timestampOffset/1e3,a=Math.abs(r-o);a>.1&&(i.default.v(this.TAG,"Update MPEG audio timestampOffset from "+r+" to "+o),this._sourceBuffers[t].timestampOffset=o),delete n.timestampOffset}if(!n.data||0===n.data.byteLength)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,"video"===t&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(l){this._pendingSegments[t].unshift(n),22===l.code?(this._isBufferFull||this._emitter.emit(s.default.BUFFER_FULL),this._isBufferFull=!0):(i.default.e(this.TAG,l.message),this._emitter.emit(s.default.ERROR,{code:l.code,msg:l.message}))}}},e.prototype._onSourceOpen=function(){if(i.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){var e=this._pendingSourceBufferInit;while(e.length){var t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(s.default.SOURCE_OPEN)},e.prototype._onSourceEnded=function(){i.default.v(this.TAG,"MediaSource onSourceEnded")},e.prototype._onSourceClose=function(){i.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},e.prototype._hasPendingSegments=function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0},e.prototype._hasPendingRemoveRanges=function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0},e.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(s.default.UPDATE_END)},e.prototype._onSourceBufferError=function(e){i.default.e(this.TAG,"SourceBuffer Error: "+e)},e}();t["default"]=c},"./src/core/mse-events.js": -/*!********************************!*\ - !*** ./src/core/mse-events.js ***! - \********************************/ -function(e,t,n){"use strict";n.r(t);var r={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};t["default"]=r},"./src/core/transmuxer.js": -/*!********************************!*\ - !*** ./src/core/transmuxer.js ***! - \********************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! events */ -"./node_modules/events/events.js"),o=n.n(r),i=n( -/*! webworkify-webpack */ -"./node_modules/webworkify-webpack/index.js"),a=n.n(i),s=n( -/*! ../utils/logger.js */ -"./src/utils/logger.js"),l=n( -/*! ../utils/logging-control.js */ -"./src/utils/logging-control.js"),u=n( -/*! ./transmuxing-controller.js */ -"./src/core/transmuxing-controller.js"),c=n( -/*! ./transmuxing-events.js */ -"./src/core/transmuxing-events.js"),d=n( -/*! ./media-info.js */ -"./src/core/media-info.js"),f=function(){function e(e,t){if(this.TAG="Transmuxer",this._emitter=new(o()),t.enableWorker&&"undefined"!==typeof Worker)try{this._worker=a()( -/*! ./transmuxing-worker */ -"./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},l.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:l.default.getConfig()})}catch(r){s.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new u.default(e,t)}else this._controller=new u.default(e,t);if(this._controller){var n=this._controller;n.on(c.default.IO_ERROR,this._onIOError.bind(this)),n.on(c.default.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(c.default.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(c.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(c.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(c.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(c.default.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(c.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(c.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(c.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(c.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return e.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),l.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.hasWorker=function(){return null!=this._worker},e.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},e.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},e.prototype.seek=function(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)},e.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},e.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},e.prototype._onInitSegment=function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(c.default.INIT_SEGMENT,e,t)}))},e.prototype._onMediaSegment=function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(c.default.MEDIA_SEGMENT,e,t)}))},e.prototype._onLoadingComplete=function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(c.default.LOADING_COMPLETE)}))},e.prototype._onRecoveredEarlyEof=function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(c.default.RECOVERED_EARLY_EOF)}))},e.prototype._onMediaInfo=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.MEDIA_INFO,e)}))},e.prototype._onMetaDataArrived=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.METADATA_ARRIVED,e)}))},e.prototype._onScriptDataArrived=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.SCRIPTDATA_ARRIVED,e)}))},e.prototype._onStatisticsInfo=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.STATISTICS_INFO,e)}))},e.prototype._onIOError=function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(c.default.IO_ERROR,e,t)}))},e.prototype._onDemuxError=function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(c.default.DEMUX_ERROR,e,t)}))},e.prototype._onRecommendSeekpoint=function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(c.default.RECOMMEND_SEEKPOINT,e)}))},e.prototype._onLoggingConfigChanged=function(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})},e.prototype._onWorkerMessage=function(e){var t=e.data,n=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case c.default.INIT_SEGMENT:case c.default.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case c.default.LOADING_COMPLETE:case c.default.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case c.default.MEDIA_INFO:Object.setPrototypeOf(n,d.default.prototype),this._emitter.emit(t.msg,n);break;case c.default.METADATA_ARRIVED:case c.default.SCRIPTDATA_ARRIVED:case c.default.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case c.default.IO_ERROR:case c.default.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case c.default.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":s.default.emitter.emit("log",n.type,n.logcat);break;default:break}},e}();t["default"]=f},"./src/core/transmuxing-controller.js": -/*!********************************************!*\ - !*** ./src/core/transmuxing-controller.js ***! - \********************************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! events */ -"./node_modules/events/events.js"),o=n.n(r),i=n( -/*! ../utils/logger.js */ -"./src/utils/logger.js"),a=n( -/*! ../utils/browser.js */ -"./src/utils/browser.js"),s=n( -/*! ./media-info.js */ -"./src/core/media-info.js"),l=n( -/*! ../demux/flv-demuxer.js */ -"./src/demux/flv-demuxer.js"),u=n( -/*! ../remux/mp4-remuxer.js */ -"./src/remux/mp4-remuxer.js"),c=n( -/*! ../demux/demux-errors.js */ -"./src/demux/demux-errors.js"),d=n( -/*! ../io/io-controller.js */ -"./src/io/io-controller.js"),f=n( -/*! ./transmuxing-events.js */ -"./src/core/transmuxing-events.js"),h=function(){function e(e,t){this.TAG="TransmuxingController",this._emitter=new(o()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),"boolean"!==typeof e.cors&&(e.cors=!0),"boolean"!==typeof e.withCredentials&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;var n=0;this._mediaDataSource.segments.forEach((function(r){r.timestampBase=n,n+=r.duration,r.cors=e.cors,r.withCredentials=e.withCredentials,t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy)})),isNaN(n)||this._mediaDataSource.duration===n||(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return e.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addListener(e,t)},e.prototype.off=function(e,t){this._emitter.removeListener(e,t)},e.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},e.prototype._loadSegment=function(e,t){this._currentSegmentIndex=e;var n=this._mediaDataSource.segments[e],r=this._ioctl=new d.default(n,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.open(t)},e.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},e.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},e.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},e.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},e.prototype.seek=function(e){if(null!=this._mediaInfo&&this._mediaInfo.isSeekable()){var t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){var n=this._mediaInfo.segments[t];if(void 0==n)this._pendingSeekTime=e;else{var r=n.getNearestKeyframe(e);this._remuxer.seek(r.milliseconds),this._ioctl.seek(r.fileposition),this._pendingResolveSeekPoint=r.milliseconds}}else{var o=this._mediaInfo.segments[t];if(void 0==o)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{r=o.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,r.fileposition),this._pendingResolveSeekPoint=r.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}},e.prototype._searchSegmentIndexContains=function(e){for(var t=this._mediaDataSource.segments,n=t.length-1,r=0;r0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,o=this._demuxer.parseChunks(e,t);else if((r=l.default.probe(e)).match){this._demuxer=new l.default(r,this._config),this._remuxer||(this._remuxer=new u.default(this._config));var a=this._mediaDataSource;void 0==a.duration||isNaN(a.duration)||(this._demuxer.overridedDuration=a.duration),"boolean"===typeof a.hasAudio&&(this._demuxer.overridedHasAudio=a.hasAudio),"boolean"===typeof a.hasVideo&&(this._demuxer.overridedHasVideo=a.hasVideo),this._demuxer.timestampBase=a.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),o=this._demuxer.parseChunks(e,t)}else r=null,i.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((function(){n._internalAbort()})),this._emitter.emit(f.default.DEMUX_ERROR,c.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),o=0;return o},e.prototype._onMediaInfo=function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,s.default.prototype));var n=Object.assign({},e);Object.setPrototypeOf(n,s.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=n,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)}))},e.prototype._onMetaDataArrived=function(e){this._emitter.emit(f.default.METADATA_ARRIVED,e)},e.prototype._onScriptDataArrived=function(e){this._emitter.emit(f.default.SCRIPTDATA_ARRIVED,e)},e.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},e.prototype._onIOComplete=function(e){var t=e,n=t+1;n0&&n[0].originalDts===r&&(r=n[0].pts),this._emitter.emit(f.default.RECOMMEND_SEEKPOINT,r)}},e.prototype._enableStatisticsReporter=function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},e.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype._reportSegmentMediaInfo=function(e){var t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(f.default.MEDIA_INFO,n)},e.prototype._reportStatisticsInfo=function(){var e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(f.default.STATISTICS_INFO,e)},e}();t["default"]=h},"./src/core/transmuxing-events.js": -/*!****************************************!*\ - !*** ./src/core/transmuxing-events.js ***! - \****************************************/ -function(e,t,n){"use strict";n.r(t);var r={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};t["default"]=r},"./src/core/transmuxing-worker.js": -/*!****************************************!*\ - !*** ./src/core/transmuxing-worker.js ***! - \****************************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! ../utils/logging-control.js */ -"./src/utils/logging-control.js"),o=n( -/*! ../utils/polyfill.js */ -"./src/utils/polyfill.js"),i=n( -/*! ./transmuxing-controller.js */ -"./src/core/transmuxing-controller.js"),a=n( -/*! ./transmuxing-events.js */ -"./src/core/transmuxing-events.js"),s=function(e){var t=null,n=b.bind(this);function s(t,n){var r={msg:a.default.INIT_SEGMENT,data:{type:t,data:n}};e.postMessage(r,[n.data])}function l(t,n){var r={msg:a.default.MEDIA_SEGMENT,data:{type:t,data:n}};e.postMessage(r,[n.data])}function u(){var t={msg:a.default.LOADING_COMPLETE};e.postMessage(t)}function c(){var t={msg:a.default.RECOVERED_EARLY_EOF};e.postMessage(t)}function d(t){var n={msg:a.default.MEDIA_INFO,data:t};e.postMessage(n)}function f(t){var n={msg:a.default.METADATA_ARRIVED,data:t};e.postMessage(n)}function h(t){var n={msg:a.default.SCRIPTDATA_ARRIVED,data:t};e.postMessage(n)}function p(t){var n={msg:a.default.STATISTICS_INFO,data:t};e.postMessage(n)}function v(t,n){e.postMessage({msg:a.default.IO_ERROR,data:{type:t,info:n}})}function m(t,n){e.postMessage({msg:a.default.DEMUX_ERROR,data:{type:t,info:n}})}function g(t){e.postMessage({msg:a.default.RECOMMEND_SEEKPOINT,data:t})}function b(t,n){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:n}})}o.default.install(),e.addEventListener("message",(function(o){switch(o.data.cmd){case"init":t=new i.default(o.data.param[0],o.data.param[1]),t.on(a.default.IO_ERROR,v.bind(this)),t.on(a.default.DEMUX_ERROR,m.bind(this)),t.on(a.default.INIT_SEGMENT,s.bind(this)),t.on(a.default.MEDIA_SEGMENT,l.bind(this)),t.on(a.default.LOADING_COMPLETE,u.bind(this)),t.on(a.default.RECOVERED_EARLY_EOF,c.bind(this)),t.on(a.default.MEDIA_INFO,d.bind(this)),t.on(a.default.METADATA_ARRIVED,f.bind(this)),t.on(a.default.SCRIPTDATA_ARRIVED,h.bind(this)),t.on(a.default.STATISTICS_INFO,p.bind(this)),t.on(a.default.RECOMMEND_SEEKPOINT,g.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(o.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":var b=o.data.param;r.default.applyConfig(b),!0===b.enableCallback?r.default.addLogListener(n):r.default.removeLogListener(n);break}}))};t["default"]=s},"./src/demux/amf-parser.js": -/*!*********************************!*\ - !*** ./src/demux/amf-parser.js ***! - \*********************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! ../utils/logger.js */ -"./src/utils/logger.js"),o=n( -/*! ../utils/utf8-conv.js */ -"./src/utils/utf8-conv.js"),i=n( -/*! ../utils/exception.js */ -"./src/utils/exception.js"),a=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}(),s=function(){function e(){}return e.parseScriptData=function(t,n,o){var i={};try{var a=e.parseValue(t,n,o),s=e.parseValue(t,n+a.size,o-a.size);i[a.data]=s.data}catch(l){r.default.e("AMF",l.toString())}return i},e.parseObject=function(t,n,r){if(r<3)throw new i.IllegalStateException("Data not enough when parse ScriptDataObject");var o=e.parseString(t,n,r),a=e.parseValue(t,n+o.size,r-o.size),s=a.objectEnd;return{data:{name:o.data,value:a.data},size:o.size+a.size,objectEnd:s}},e.parseVariable=function(t,n,r){return e.parseObject(t,n,r)},e.parseString=function(e,t,n){if(n<2)throw new i.IllegalStateException("Data not enough when parse String");var r,s=new DataView(e,t,n),l=s.getUint16(0,!a);return r=l>0?(0,o.default)(new Uint8Array(e,t+2,l)):"",{data:r,size:2+l}},e.parseLongString=function(e,t,n){if(n<4)throw new i.IllegalStateException("Data not enough when parse LongString");var r,s=new DataView(e,t,n),l=s.getUint32(0,!a);return r=l>0?(0,o.default)(new Uint8Array(e,t+4,l)):"",{data:r,size:4+l}},e.parseDate=function(e,t,n){if(n<10)throw new i.IllegalStateException("Data size invalid when parse Date");var r=new DataView(e,t,n),o=r.getFloat64(0,!a),s=r.getInt16(8,!a);return o+=60*s*1e3,{data:new Date(o),size:10}},e.parseValue=function(t,n,o){if(o<1)throw new i.IllegalStateException("Data not enough when parse Value");var s,l=new DataView(t,n,o),u=1,c=l.getUint8(0),d=!1;try{switch(c){case 0:s=l.getFloat64(1,!a),u+=8;break;case 1:var f=l.getUint8(1);s=!!f,u+=1;break;case 2:var h=e.parseString(t,n+1,o-1);s=h.data,u+=h.size;break;case 3:s={};var p=0;9===(16777215&l.getUint32(o-4,!a))&&(p=3);while(u32)throw new r.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;var o=e-this._current_word_bits_left;this._fillCurrentWord();var i=Math.min(o,this._current_word_bits_left),a=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,n=n<>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()},e.prototype.readUEG=function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1},e.prototype.readSEG=function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)},e}();t["default"]=o},"./src/demux/flv-demuxer.js": -/*!**********************************!*\ - !*** ./src/demux/flv-demuxer.js ***! - \**********************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! ../utils/logger.js */ -"./src/utils/logger.js"),o=n( -/*! ./amf-parser.js */ -"./src/demux/amf-parser.js"),i=n( -/*! ./sps-parser.js */ -"./src/demux/sps-parser.js"),a=n( -/*! ./demux-errors.js */ -"./src/demux/demux-errors.js"),s=n( -/*! ../core/media-info.js */ -"./src/core/media-info.js"),l=n( -/*! ../utils/exception.js */ -"./src/utils/exception.js");function u(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}var c=function(){function e(e,t){this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new s.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}()}return e.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},e.probe=function(e){var t=new Uint8Array(e),n={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return n;var r=(4&t[4])>>>2!==0,o=0!==(1&t[4]),i=u(t,5);return i<9?n:{match:!0,consumed:i,dataOffset:i,hasAudioTrack:r,hasVideoTrack:o}},e.prototype.bindDataSource=function(e){return e.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(e.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(e){this._onTrackMetadata=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(e){this._onMediaInfo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(e){this._onMetaDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(e){this._onScriptDataArrived=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(e){this._onDataAvailable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(e){this._timestampBase=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedDuration",{get:function(){return this._duration},set:function(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasAudio",{set:function(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overridedHasVideo",{set:function(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e},enumerable:!1,configurable:!0}),e.prototype.resetMediaInfo=function(){this._mediaInfo=new s.default},e.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched},e.prototype.parseChunks=function(t,n){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var o=0,i=this._littleEndian;if(0===n){if(!(t.byteLength>13))return 0;var a=e.probe(t);o=a.dataOffset}if(this._firstParse){this._firstParse=!1,n+o!==this._dataOffset&&r.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var s=new DataView(t,o),u=s.getUint32(0,!i);0!==u&&r.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),o+=4}while(ot.byteLength)break;var c=s.getUint8(0),d=16777215&s.getUint32(0,!i);if(o+11+d+4>t.byteLength)break;if(8===c||9===c||18===c){var f=s.getUint8(4),h=s.getUint8(5),p=s.getUint8(6),v=s.getUint8(7),m=p|h<<8|f<<16|v<<24,g=16777215&s.getUint32(7,!i);0!==g&&r.default.w(this.TAG,"Meet tag which has StreamID != 0!");var b=o+11;switch(c){case 8:this._parseAudioData(t,b,d,m);break;case 9:this._parseVideoData(t,b,d,m,n+o);break;case 18:this._parseScriptData(t,b,d);break}var y=s.getUint32(11+d,!i);y!==11+d&&r.default.w(this.TAG,"Invalid PrevTagSize "+y),o+=11+d+4}else r.default.w(this.TAG,"Unsupported tag type "+c+", skipped"),o+=11+d+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),o},e.prototype._parseScriptData=function(e,t,n){var i=o.default.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(null==i.onMetaData||"object"!==typeof i.onMetaData)return void r.default.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&r.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;var a=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},a)),"boolean"===typeof a.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=a.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"===typeof a.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=a.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"===typeof a.audiodatarate&&(this._mediaInfo.audioDataRate=a.audiodatarate),"number"===typeof a.videodatarate&&(this._mediaInfo.videoDataRate=a.videodatarate),"number"===typeof a.width&&(this._mediaInfo.width=a.width),"number"===typeof a.height&&(this._mediaInfo.height=a.height),"number"===typeof a.duration){if(!this._durationOverrided){var s=Math.floor(a.duration*this._timescale);this._duration=s,this._mediaInfo.duration=s}}else this._mediaInfo.duration=0;if("number"===typeof a.framerate){var l=Math.floor(1e3*a.framerate);if(l>0){var u=l/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=u,this._referenceFrameRate.fps_num=l,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=u}}if("object"===typeof a.keyframes){this._mediaInfo.hasKeyframesIndex=!0;var c=a.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(c),a.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=a,r.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))},e.prototype._parseKeyframesIndex=function(e){for(var t=[],n=[],r=1;r>>4;if(2===l||10===l){var u=0,c=(12&s)>>>2;if(c>=0&&c<=4){u=this._flvSoundRateTable[c];var d=1&s,f=this._audioMetadata,h=this._audioTrack;if(f||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),f=this._audioMetadata={},f.type="audio",f.id=h.id,f.timescale=this._timescale,f.duration=this._duration,f.audioSampleRate=u,f.channelCount=0===d?1:2),10===l){var p=this._parseAACAudioData(e,t+1,n-1);if(void 0==p)return;if(0===p.packetType){f.config&&r.default.w(this.TAG,"Found another AudioSpecificConfig!");var v=p.data;f.audioSampleRate=v.samplingRate,f.channelCount=v.channelCount,f.codec=v.codec,f.originalCodec=v.originalCodec,f.config=v.config,f.refSampleDuration=1024/f.audioSampleRate*f.timescale,r.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",f);var m=this._mediaInfo;m.audioCodec=f.originalCodec,m.audioSampleRate=f.audioSampleRate,m.audioChannelCount=f.channelCount,m.hasVideo?null!=m.videoCodec&&(m.mimeType='video/x-flv; codecs="'+m.videoCodec+","+m.audioCodec+'"'):m.mimeType='video/x-flv; codecs="'+m.audioCodec+'"',m.isComplete()&&this._onMediaInfo(m)}else if(1===p.packetType){var g=this._timestampBase+o,b={unit:p.data,length:p.data.byteLength,dts:g,pts:g};h.samples.push(b),h.length+=p.data.length}else r.default.e(this.TAG,"Flv: Unsupported AAC data type "+p.packetType)}else if(2===l){if(!f.codec){v=this._parseMP3AudioData(e,t+1,n-1,!0);if(void 0==v)return;f.audioSampleRate=v.samplingRate,f.channelCount=v.channelCount,f.codec=v.codec,f.originalCodec=v.originalCodec,f.refSampleDuration=1152/f.audioSampleRate*f.timescale,r.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",f);m=this._mediaInfo;m.audioCodec=f.codec,m.audioSampleRate=f.audioSampleRate,m.audioChannelCount=f.channelCount,m.audioDataRate=v.bitRate,m.hasVideo?null!=m.videoCodec&&(m.mimeType='video/x-flv; codecs="'+m.videoCodec+","+m.audioCodec+'"'):m.mimeType='video/x-flv; codecs="'+m.audioCodec+'"',m.isComplete()&&this._onMediaInfo(m)}var y=this._parseMP3AudioData(e,t+1,n-1,!1);if(void 0==y)return;g=this._timestampBase+o;var _={unit:y,length:y.byteLength,dts:g,pts:g};h.samples.push(_),h.length+=y.length}}else this._onError(a.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+c)}else this._onError(a.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+l)}},e.prototype._parseAACAudioData=function(e,t,n){if(!(n<=1)){var o={},i=new Uint8Array(e,t,n);return o.packetType=i[0],0===i[0]?o.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):o.data=i.subarray(1),o}r.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")},e.prototype._parseAACAudioSpecificConfig=function(e,t,n){var r=new Uint8Array(e,t,n),o=null,i=0,s=0,l=0,u=null;if(i=s=r[0]>>>3,l=(7&r[0])<<1|r[1]>>>7,l<0||l>=this._mpegSamplingRates.length)this._onError(a.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var c=this._mpegSamplingRates[l],d=(120&r[1])>>>3;if(!(d<0||d>=8)){5===i&&(u=(7&r[1])<<1|r[2]>>>7,(124&r[2])>>>2);var f=self.navigator.userAgent.toLowerCase();return-1!==f.indexOf("firefox")?l>=6?(i=5,o=new Array(4),u=l-3):(i=2,o=new Array(2),u=l):-1!==f.indexOf("android")?(i=2,o=new Array(2),u=l):(i=5,u=l,o=new Array(4),l>=6?u=l-3:1===d&&(i=2,o=new Array(2),u=l)),o[0]=i<<3,o[0]|=(15&l)>>>1,o[1]=(15&l)<<7,o[1]|=(15&d)<<3,5===i&&(o[1]|=(15&u)>>>1,o[2]=(1&u)<<7,o[2]|=8,o[3]=0),{config:o,samplingRate:c,channelCount:d,codec:"mp4a.40."+i,originalCodec:"mp4a.40."+s}}this._onError(a.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}},e.prototype._parseMP3AudioData=function(e,t,n,o){if(!(n<4)){this._littleEndian;var i=new Uint8Array(e,t,n),a=null;if(o){if(255!==i[0])return;var s=i[1]>>>3&3,l=(6&i[1])>>1,u=(240&i[2])>>>4,c=(12&i[2])>>>2,d=i[3]>>>6&3,f=3!==d?2:1,h=0,p=0,v="mp3";switch(s){case 0:h=this._mpegAudioV25SampleRateTable[c];break;case 2:h=this._mpegAudioV20SampleRateTable[c];break;case 3:h=this._mpegAudioV10SampleRateTable[c];break}switch(l){case 1:34,u>>4,u=15&s;7===u?this._parseAVCVideoPacket(e,t+1,n-1,o,i,l):this._onError(a.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+u)}},e.prototype._parseAVCVideoPacket=function(e,t,n,o,i,s){if(n<4)r.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var l=this._littleEndian,u=new DataView(e,t,n),c=u.getUint8(0),d=16777215&u.getUint32(0,!l),f=d<<8>>8;if(0===c)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(1===c)this._parseAVCVideoData(e,t+4,n-4,o,i,s,f);else if(2!==c)return void this._onError(a.default.FORMAT_ERROR,"Flv: Invalid video packet type "+c)}},e.prototype._parseAVCDecoderConfigurationRecord=function(e,t,n){if(n<7)r.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var o=this._videoMetadata,s=this._videoTrack,l=this._littleEndian,u=new DataView(e,t,n);o?"undefined"!==typeof o.avcc&&r.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),o=this._videoMetadata={},o.type="video",o.id=s.id,o.timescale=this._timescale,o.duration=this._duration);var c=u.getUint8(0),d=u.getUint8(1);u.getUint8(2),u.getUint8(3);if(1===c&&0!==d)if(this._naluLengthSize=1+(3&u.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var f=31&u.getUint8(5);if(0!==f){f>1&&r.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+f);for(var h=6,p=0;p1&&r.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+C),h++;for(p=0;p=n){r.default.w(this.TAG,"Malformed Nalu near timestamp "+p+", offset = "+f+", dataSize = "+n);break}var m=u.getUint32(f,!l);if(3===h&&(m>>>=8),m>n-h)return void r.default.w(this.TAG,"Malformed Nalus near timestamp "+p+", NaluSize > DataSize!");var g=31&u.getUint8(f+h);5===g&&(v=!0);var b=new Uint8Array(e,t+f,h+m),y={type:g,data:b};c.push(y),d+=b.byteLength,f+=h+m}if(c.length){var _=this._videoTrack,w={units:c,length:d,isKeyframe:v,dts:p,cts:s,pts:p+s};v&&(w.fileposition=i),_.samples.push(w),_.length+=d}},e}();t["default"]=c},"./src/demux/sps-parser.js": -/*!*********************************!*\ - !*** ./src/demux/sps-parser.js ***! - \*********************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! ./exp-golomb.js */ -"./src/demux/exp-golomb.js"),o=function(){function e(){}return e._ebsp2rbsp=function(e){for(var t=e,n=t.byteLength,r=new Uint8Array(n),o=0,i=0;i=2&&3===t[i]&&0===t[i-1]&&0===t[i-2]||(r[o]=t[i],o++);return new Uint8Array(r.buffer,0,o)},e.parseSPS=function(t){var n=e._ebsp2rbsp(t),o=new r.default(n);o.readByte();var i=o.readByte();o.readByte();var a=o.readByte();o.readUEG();var s=e.getProfileString(i),l=e.getLevelString(a),u=1,c=420,d=[0,420,422,444],f=8;if((100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||144===i)&&(u=o.readUEG(),3===u&&o.readBits(1),u<=3&&(c=d[u]),f=o.readUEG()+8,o.readUEG(),o.readBits(1),o.readBool()))for(var h=3!==u?8:12,p=0;p0&&M<16?(R=I[M-1],T=B[M-1]):255===M&&(R=o.readByte()<<8|o.readByte(),T=o.readByte()<<8|o.readByte())}if(o.readBool()&&o.readBool(),o.readBool()&&(o.readBits(4),o.readBool()&&o.readBits(24)),o.readBool()&&(o.readUEG(),o.readUEG()),o.readBool()){var D=o.readBits(32),j=o.readBits(32);O=o.readBool(),k=j,L=2*D,A=k/L}}var F=1;1===R&&1===T||(F=R/T);var z=0,N=0;if(0===u)z=1,N=2-_;else{var $=3===u?1:2,U=1===u?2:1;z=$,N=U*(2-_)}var Z=16*(b+1),H=16*(y+1)*(2-_);Z-=(w+S)*z,H-=(x+E)*N;var V=Math.ceil(Z*F);return o.destroy(),o=null,{profile_string:s,level_string:l,bit_depth:f,ref_frames:g,chroma_format:c,chroma_format_string:e.getChromaFormatString(c),frame_rate:{fixed:O,fps:A,fps_den:L,fps_num:k},sar_ratio:{width:R,height:T},codec_size:{width:Z,height:H},present_size:{width:V,height:H}}},e._skipScalingList=function(e,t){for(var n=8,r=8,o=0,i=0;i=15048,t=!r.default.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(n){return!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){var n=this;this._dataSource=e,this._range=t;var r=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(r=e.redirectedURL);var a=this._seekHandler.getConfig(r,t),s=new self.Headers;if("object"===typeof a.headers){var l=a.headers;for(var u in l)l.hasOwnProperty(u)&&s.append(u,l[u])}var c={method:"GET",headers:s,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===typeof this._config.headers)for(var u in this._config.headers)s.append(u,this._config.headers[u]);!1===e.cors&&(c.mode="same-origin"),e.withCredentials&&(c.credentials="include"),e.referrerPolicy&&(c.referrerPolicy=e.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,c.signal=this._abortController.signal),this._status=o.LoaderStatus.kConnecting,self.fetch(a.url,c).then((function(e){if(n._requestAbort)return n._status=o.LoaderStatus.kIdle,void e.body.cancel();if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==a.url&&n._onURLRedirect){var t=n._seekHandler.removeURLParameters(e.url);n._onURLRedirect(t)}var r=e.headers.get("Content-Length");return null!=r&&(n._contentLength=parseInt(r),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,e.body.getReader())}if(n._status=o.LoaderStatus.kError,!n._onError)throw new i.RuntimeException("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);n._onError(o.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})})).catch((function(e){if(!n._abortController||!n._abortController.signal.aborted){if(n._status=o.LoaderStatus.kError,!n._onError)throw e;n._onError(o.LoaderErrors.EXCEPTION,{code:-1,msg:e.message})}}))},t.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==o.LoaderStatus.kBuffering||!r.default.chrome)&&this._abortController)try{this._abortController.abort()}catch(e){}},t.prototype._pump=function(e){var t=this;return e.read().then((function(n){if(n.done)if(null!==t._contentLength&&t._receivedLength0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===t.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new o.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return e.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},e.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},e.prototype.isPaused=function(){return this._paused},Object.defineProperty(e.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extraData",{get:function(){return this._extraData},set:function(e){this._extraData=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(e){this._onSeeked=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(e){this._onError=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onComplete",{get:function(){return this._onComplete},set:function(e){this._onComplete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(e){this._onRedirect=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasRedirect",{get:function(){return null!=this._redirectedURL||void 0!=this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentSpeed",{get:function(){return this._loaderClass===l.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),e.prototype._selectSeekHandler=function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new c.default(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new d.default(t,n)}else{if("custom"!==e.seekType)throw new f.InvalidArgumentException("Invalid seekType in config: "+e.seekType);if("function"!==typeof e.customSeekHandler)throw new f.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}},e.prototype._selectLoader=function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=u.default;else if(a.default.isSupported())this._loaderClass=a.default;else if(s.default.isSupported())this._loaderClass=s.default;else{if(!l.default.isSupported())throw new f.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=l.default}},e.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},e.prototype.open=function(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},e.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},e.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},e.prototype.resume=function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}},e.prototype.seek=function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)},e.prototype._internalSeek=function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;var n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()},e.prototype.updateUrl=function(e){if(!e||"string"!==typeof e||0===e.length)throw new f.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=e},e.prototype._expandBuffer=function(e){var t=this._stashSize;while(t+10485760){var r=new Uint8Array(this._stashBuffer,0,this._stashUsed),o=new Uint8Array(n,0,t);o.set(r,0)}this._stashBuffer=n,this._bufferSize=t}},e.prototype._normalizeSpeed=function(e){var t=this._speedNormalizeList,n=t.length-1,r=0,o=0,i=n;if(e=t[r]&&e=512&&e<=1024?Math.floor(1.5*e):2*e,t>8192&&(t=8192);var n=1024*t+1048576;this._bufferSize0){var i=this._stashBuffer.slice(0,this._stashUsed);a=this._dispatchChunks(i,this._stashByteStart);if(a0){u=new Uint8Array(i,a);l.set(u,0),this._stashUsed=u.byteLength,this._stashByteStart+=a}}else this._stashUsed=0,this._stashByteStart+=a;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),l=new Uint8Array(this._stashBuffer,0,this._bufferSize)),l.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{a=this._dispatchChunks(e,t);if(athis._bufferSize&&(this._expandBuffer(s),l=new Uint8Array(this._stashBuffer,0,this._bufferSize)),l.set(new Uint8Array(e,a),0),this._stashUsed+=s,this._stashByteStart=t+a}}}else if(0===this._stashUsed){var a=this._dispatchChunks(e,t);if(athis._bufferSize&&this._expandBuffer(s);var l=new Uint8Array(this._stashBuffer,0,this._bufferSize);l.set(new Uint8Array(e,a),0),this._stashUsed+=s,this._stashByteStart=t+a}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);var l=new Uint8Array(this._stashBuffer,0,this._bufferSize);l.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;var a=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(a0){var u=new Uint8Array(this._stashBuffer,a);l.set(u,0)}this._stashUsed-=a,this._stashByteStart+=a}}},e.prototype._flushStashBuffer=function(e){if(this._stashUsed>0){var t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),o=t.byteLength-n;if(n0){var i=new Uint8Array(this._stashBuffer,0,this._bufferSize),a=new Uint8Array(t,n);i.set(a,0),this._stashUsed=a.byteLength,this._stashByteStart+=n}return 0}r.default.w(this.TAG,o+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashUsed=0,this._stashByteStart=0,o}return 0},e.prototype._onLoaderComplete=function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},e.prototype._onLoaderError=function(e,t){switch(r.default.e(this.TAG,"Loader error, code = "+t.code+", msg = "+t.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=i.LoaderErrors.UNRECOVERABLE_EARLY_EOF),e){case i.LoaderErrors.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n0)for(var i=n.split("&"),a=0;a0;s[0]!==this._startName&&s[0]!==this._endName&&(l&&(o+="&"),o+=i[a])}return 0===o.length?t:t+"?"+o},e}();t["default"]=r},"./src/io/range-seek-handler.js": -/*!**************************************!*\ - !*** ./src/io/range-seek-handler.js ***! - \**************************************/ -function(e,t,n){"use strict";n.r(t);var r=function(){function e(e){this._zeroStart=e||!1}return e.prototype.getConfig=function(e,t){var n={};if(0!==t.from||-1!==t.to){var r=void 0;r=-1!==t.to?"bytes="+t.from.toString()+"-"+t.to.toString():"bytes="+t.from.toString()+"-",n["Range"]=r}else this._zeroStart&&(n["Range"]="bytes=0-");return{url:e,headers:n}},e.prototype.removeURLParameters=function(e){return e},e}();t["default"]=r},"./src/io/speed-sampler.js": -/*!*********************************!*\ - !*** ./src/io/speed-sampler.js ***! - \*********************************/ -function(e,t,n){"use strict";n.r(t);var r=function(){function e(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return e.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},e.prototype.addBytes=function(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())},Object.defineProperty(e.prototype,"currentKBps",{get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"averageKBps",{get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024},enumerable:!1,configurable:!0}),e}();t["default"]=r},"./src/io/websocket-loader.js": -/*!************************************!*\ - !*** ./src/io/websocket-loader.js ***! - \************************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! ./loader.js */ -"./src/io/loader.js"),o=n( -/*! ../utils/exception.js */ -"./src/utils/exception.js"),i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(){var t=e.call(this,"websocket-loader")||this;return t.TAG="WebSocketLoader",t._needStash=!0,t._ws=null,t._requestAbort=!1,t._receivedLength=0,t}return i(t,e),t.isSupported=function(){try{return"undefined"!==typeof self.WebSocket}catch(e){return!1}},t.prototype.destroy=function(){this._ws&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e){try{var t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=r.LoaderStatus.kConnecting}catch(i){this._status=r.LoaderStatus.kError;var n={code:i.code,msg:i.message};if(!this._onError)throw new o.RuntimeException(n.msg);this._onError(r.LoaderErrors.EXCEPTION,n)}},t.prototype.abort=function(){var e=this._ws;!e||0!==e.readyState&&1!==e.readyState||(this._requestAbort=!0,e.close()),this._ws=null,this._status=r.LoaderStatus.kComplete},t.prototype._onWebSocketOpen=function(e){this._status=r.LoaderStatus.kBuffering},t.prototype._onWebSocketClose=function(e){!0!==this._requestAbort?(this._status=r.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1},t.prototype._onWebSocketMessage=function(e){var t=this;if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){var n=new FileReader;n.onload=function(){t._dispatchArrayBuffer(n.result)},n.readAsArrayBuffer(e.data)}else{this._status=r.LoaderStatus.kError;var i={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new o.RuntimeException(i.msg);this._onError(r.LoaderErrors.EXCEPTION,i)}},t.prototype._dispatchArrayBuffer=function(e){var t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)},t.prototype._onWebSocketError=function(e){this._status=r.LoaderStatus.kError;var t={code:e.code,msg:e.message};if(!this._onError)throw new o.RuntimeException(t.msg);this._onError(r.LoaderErrors.EXCEPTION,t)},t}(r.BaseLoader);t["default"]=a},"./src/io/xhr-moz-chunked-loader.js": -/*!******************************************!*\ - !*** ./src/io/xhr-moz-chunked-loader.js ***! - \******************************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! ../utils/logger.js */ -"./src/utils/logger.js"),o=n( -/*! ./loader.js */ -"./src/io/loader.js"),i=n( -/*! ../utils/exception.js */ -"./src/utils/exception.js"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e){function t(t,n){var r=e.call(this,"xhr-moz-chunked-loader")||this;return r.TAG="MozChunkedLoader",r._seekHandler=t,r._config=n,r._needStash=!0,r._xhr=null,r._requestAbort=!1,r._contentLength=null,r._receivedLength=0,r}return a(t,e),t.isSupported=function(){try{var e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===e.responseType}catch(t){return r.default.w("MozChunkedLoader",t.message),!1}},t.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){this._dataSource=e,this._range=t;var n=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(n=e.redirectedURL);var r=this._seekHandler.getConfig(n,t);this._requestURL=r.url;var i=this._xhr=new XMLHttpRequest;if(i.open("GET",r.url,!0),i.responseType="moz-chunked-arraybuffer",i.onreadystatechange=this._onReadyStateChange.bind(this),i.onprogress=this._onProgress.bind(this),i.onloadend=this._onLoadEnd.bind(this),i.onerror=this._onXhrError.bind(this),e.withCredentials&&(i.withCredentials=!0),"object"===typeof r.headers){var a=r.headers;for(var s in a)a.hasOwnProperty(s)&&i.setRequestHeader(s,a[s])}if("object"===typeof this._config.headers){a=this._config.headers;for(var s in a)a.hasOwnProperty(s)&&i.setRequestHeader(s,a[s])}this._status=o.LoaderStatus.kConnecting,i.send()},t.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=o.LoaderStatus.kComplete},t.prototype._onReadyStateChange=function(e){var t=e.target;if(2===t.readyState){if(void 0!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect){var n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(0!==t.status&&(t.status<200||t.status>299)){if(this._status=o.LoaderStatus.kError,!this._onError)throw new i.RuntimeException("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(o.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=o.LoaderStatus.kBuffering}},t.prototype._onProgress=function(e){if(this._status!==o.LoaderStatus.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}},t.prototype._onLoadEnd=function(e){!0!==this._requestAbort?this._status!==o.LoaderStatus.kError&&(this._status=o.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1},t.prototype._onXhrError=function(e){this._status=o.LoaderStatus.kError;var t=0,n=null;if(this._contentLength&&e.loaded=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)},t.prototype._internalOpen=function(e,t){this._lastTimeLoaded=0;var n=e.url;this._config.reuseRedirectedURL&&(void 0!=this._currentRedirectedURL?n=this._currentRedirectedURL:void 0!=e.redirectedURL&&(n=e.redirectedURL));var r=this._seekHandler.getConfig(n,t);this._currentRequestURL=r.url;var o=this._xhr=new XMLHttpRequest;if(o.open("GET",r.url,!0),o.responseType="arraybuffer",o.onreadystatechange=this._onReadyStateChange.bind(this),o.onprogress=this._onProgress.bind(this),o.onload=this._onLoad.bind(this),o.onerror=this._onXhrError.bind(this),e.withCredentials&&(o.withCredentials=!0),"object"===typeof r.headers){var i=r.headers;for(var a in i)i.hasOwnProperty(a)&&o.setRequestHeader(a,i[a])}if("object"===typeof this._config.headers){i=this._config.headers;for(var a in i)i.hasOwnProperty(a)&&o.setRequestHeader(a,i[a])}o.send()},t.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=i.LoaderStatus.kComplete},t.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},t.prototype._onReadyStateChange=function(e){var t=e.target;if(2===t.readyState){if(void 0!=t.responseURL){var n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=i.LoaderStatus.kBuffering}else{if(this._status=i.LoaderStatus.kError,!this._onError)throw new a.RuntimeException("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(i.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}},t.prototype._onProgress=function(e){if(this._status!==i.LoaderStatus.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;var n=e.total;this._internalAbort(),null!=n&0!==n&&(this._totalLength=n)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var r=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(r)}},t.prototype._normalizeSpeed=function(e){var t=this._chunkSizeKBList,n=t.length-1,r=0,o=0,i=n;if(e=t[r]&&e=3&&(t=this._speedSampler.currentKBps)),0!==t){var n=this._normalizeSpeed(t);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var r=e.target.response,o=this._range.from+this._receivedLength;this._receivedLength+=r.byteLength;var a=!1;null!=this._contentLength&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new l.default(this._mediaDataSource,this._config),this._transmuxer.on(u.default.INIT_SEGMENT,(function(t,n){e._msectl.appendInitSegment(n)})),this._transmuxer.on(u.default.MEDIA_SEGMENT,(function(t,n){if(e._msectl.appendMediaSegment(n),e._config.lazyLoad&&!e._config.isLive){var r=e._mediaElement.currentTime;n.info.endDts>=1e3*(r+e._config.lazyLoadMaxDuration)&&null==e._progressChecker&&(i.default.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}})),this._transmuxer.on(u.default.LOADING_COMPLETE,(function(){e._msectl.endOfStream(),e._emitter.emit(s.default.LOADING_COMPLETE)})),this._transmuxer.on(u.default.RECOVERED_EARLY_EOF,(function(){e._emitter.emit(s.default.RECOVERED_EARLY_EOF)})),this._transmuxer.on(u.default.IO_ERROR,(function(t,n){e._emitter.emit(s.default.ERROR,f.ErrorTypes.NETWORK_ERROR,t,n)})),this._transmuxer.on(u.default.DEMUX_ERROR,(function(t,n){e._emitter.emit(s.default.ERROR,f.ErrorTypes.MEDIA_ERROR,t,{code:-1,msg:n})})),this._transmuxer.on(u.default.MEDIA_INFO,(function(t){e._mediaInfo=t,e._emitter.emit(s.default.MEDIA_INFO,Object.assign({},t))})),this._transmuxer.on(u.default.METADATA_ARRIVED,(function(t){e._emitter.emit(s.default.METADATA_ARRIVED,t)})),this._transmuxer.on(u.default.SCRIPTDATA_ARRIVED,(function(t){e._emitter.emit(s.default.SCRIPTDATA_ARRIVED,t)})),this._transmuxer.on(u.default.STATISTICS_INFO,(function(t){e._statisticsInfo=e._fillStatisticsInfo(t),e._emitter.emit(s.default.STATISTICS_INFO,Object.assign({},e._statisticsInfo))})),this._transmuxer.on(u.default.RECOMMEND_SEEKPOINT,(function(t){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=t/1e3)})),this._transmuxer.open()))},e.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},e.prototype.play=function(){return this._mediaElement.play()},e.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statisticsInfo",{get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),e.prototype._fillStatisticsInfo=function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var o=this._mediaElement.getVideoPlaybackQuality();n=o.totalVideoFrames,r=o.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e},e.prototype._onmseUpdateEnd=function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,r=0;r=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(i.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},e.prototype._onmseBufferFull=function(){i.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()},e.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},e.prototype._checkProgressAndResume=function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1,r=0;r=o&&e=a-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(i.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},e.prototype._isTimepointBuffered=function(e){for(var t=this._mediaElement.buffered,n=0;n=r&&e0){var o=this._mediaElement.buffered.start(0);(o<1&&e0&&t.currentTime0){var r=n.start(0);if(r<1&&t0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},e.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},e.prototype.play=function(){return this._mediaElement.play()},e.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mediaInfo",{get:function(){var e=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",t={mimeType:e+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statisticsInfo",{get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var o=this._mediaElement.getVideoPlaybackQuality();n=o.totalVideoFrames,r=o.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e},enumerable:!1,configurable:!0}),e.prototype._onvLoadedMetadata=function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(i.default.MEDIA_INFO,this.mediaInfo)},e.prototype._reportStatisticsInfo=function(){this._emitter.emit(i.default.STATISTICS_INFO,this.statisticsInfo)},e}();t["default"]=l},"./src/player/player-errors.js": -/*!*************************************!*\ - !*** ./src/player/player-errors.js ***! - \*************************************/ -function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorTypes:function(){return i},ErrorDetails:function(){return a}});var r=n( -/*! ../io/loader.js */ -"./src/io/loader.js"),o=n( -/*! ../demux/demux-errors.js */ -"./src/demux/demux-errors.js"),i={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},a={NETWORK_EXCEPTION:r.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:r.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:r.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:r.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:o.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:o.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:o.default.CODEC_UNSUPPORTED}},"./src/player/player-events.js": -/*!*************************************!*\ - !*** ./src/player/player-events.js ***! - \*************************************/ -function(e,t,n){"use strict";n.r(t);var r={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};t["default"]=r},"./src/remux/aac-silent.js": -/*!*********************************!*\ - !*** ./src/remux/aac-silent.js ***! - \*********************************/ -function(e,t,n){"use strict";n.r(t);var r=function(){function e(){}return e.getSilentFrame=function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},e}();t["default"]=r},"./src/remux/mp4-generator.js": -/*!************************************!*\ - !*** ./src/remux/mp4-generator.js ***! - \************************************/ -function(e,t,n){"use strict";n.r(t);var r=function(){function e(){}return e.init=function(){for(var t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=e.constants={};n.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),n.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),n.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSC=n.STCO=n.STTS,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),n.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},e.box=function(e){for(var t=8,n=null,r=Array.prototype.slice.call(arguments,1),o=r.length,i=0;i>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n.set(e,4);var a=8;for(i=0;i>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},e.trak=function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.tkhd=function(t){var n=t.id,r=t.duration,o=t.presentWidth,i=t.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,o>>>8&255,255&o,0,0,i>>>8&255,255&i,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))},e.mdhd=function(t){var n=t.timescale,r=t.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,85,196,0,0]))},e.hdlr=function(t){var n=null;return n="audio"===t.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,n)},e.minf=function(t){var n=null;return n="audio"===t.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,n,e.dinf(),e.stbl(t))},e.dinf=function(){var t=e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF));return t},e.stbl=function(t){var n=e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO));return n},e.stsd=function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(t))},e.mp3=function(t){var n=t.channelCount,r=t.audioSampleRate,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types[".mp3"],o)},e.mp4a=function(t){var n=t.channelCount,r=t.audioSampleRate,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types.mp4a,o,e.esds(t))},e.esds=function(t){var n=t.config||[],r=n.length,o=new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(n).concat([6,1,2]));return e.box(e.types.esds,o)},e.avc1=function(t){var n=t.avcc,r=t.codecWidth,o=t.codecHeight,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,r>>>8&255,255&r,o>>>8&255,255&o,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,i,e.box(e.types.avcC,n))},e.mvex=function(t){return e.box(e.types.mvex,e.trex(t))},e.trex=function(t){var n=t.id,r=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,r)},e.moof=function(t,n){return e.box(e.types.moof,e.mfhd(t.sequenceNumber),e.traf(t,n))},e.mfhd=function(t){var n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,n)},e.traf=function(t,n){var r=t.id,o=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r])),i=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),a=e.sdtp(t),s=e.trun(t,a.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,o,i,s,a)},e.sdtp=function(t){for(var n=t.samples||[],r=n.length,o=new Uint8Array(4+r),i=0;i>>24&255,o>>>16&255,o>>>8&255,255&o,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var s=0;s>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,c.isLeading<<2|c.dependsOn,c.isDependedOn<<6|c.hasRedundancy<<4|c.isNonSync,0,0,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*s)}return e.box(e.types.trun,a)},e.mdat=function(t){return e.box(e.types.mdat,t)},e}();r.init(),t["default"]=r},"./src/remux/mp4-remuxer.js": -/*!**********************************!*\ - !*** ./src/remux/mp4-remuxer.js ***! - \**********************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! ../utils/logger.js */ -"./src/utils/logger.js"),o=n( -/*! ./mp4-generator.js */ -"./src/remux/mp4-generator.js"),i=n( -/*! ./aac-silent.js */ -"./src/remux/aac-silent.js"),a=n( -/*! ../utils/browser.js */ -"./src/utils/browser.js"),s=n( -/*! ../core/media-segment-info.js */ -"./src/core/media-segment-info.js"),l=n( -/*! ../utils/exception.js */ -"./src/utils/exception.js"),u=function(){function e(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new s.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new s.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!a.default.chrome||!(a.default.version.major<50||50===a.default.version.major&&a.default.version.build<2661)),this._fillSilentAfterSeek=a.default.msedge||a.default.msie,this._mp3UseMpegAudio=!a.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return e.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},e.prototype.bindDataSource=function(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(e.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e},enumerable:!1,configurable:!0}),e.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},e.prototype.seek=function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},e.prototype.remux=function(e,t){if(!this._onMediaSegment)throw new l.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)},e.prototype._onTrackMetadataReceived=function(e,t){var n=null,r="mp4",i=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(r="mpeg",i="",n=new Uint8Array):n=o.default.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,n=o.default.generateInitSegment(t)}if(!this._onInitSegment)throw new l.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:i,container:e+"/"+r,mediaDuration:t.duration})},e.prototype._calculateDtsBase=function(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},e.prototype.flushStashedSamples=function(){var e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(n.samples.push(e),n.length=e.length);var r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(r,!0)},e.prototype._remuxAudio=function(e,t){if(null!=this._audioMeta){var n=e,l=n.samples,u=void 0,c=-1,d=-1,f=this._audioMeta.refSampleDuration,h="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,p=this._dtsBaseInited&&void 0===this._audioNextDts,v=!1;if(l&&0!==l.length&&(1!==l.length||t)){var m=0,g=null,b=0;h?(m=0,b=n.length):(m=8,b=8+n.length);var y=null;if(l.length>1&&(y=l.pop(),b-=y.length),null!=this._audioStashedLastSample){var _=this._audioStashedLastSample;this._audioStashedLastSample=null,l.unshift(_),b+=_.length}null!=y&&(this._audioStashedLastSample=y);var w=l[0].dts-this._dtsBase;if(this._audioNextDts)u=w-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())u=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(v=!0);else{var S=this._audioSegmentInfoList.getLastSampleBefore(w);if(null!=S){var x=w-(S.originalDts+S.duration);x<=3&&(x=0);var E=S.dts+S.duration+x;u=w-E}else u=0}if(v){var C=w-u,R=this._videoSegmentInfoList.getLastSegmentBefore(w);if(null!=R&&R.beginDts=F*f&&this._fillAudioTimestampGap&&!a.default.safari){I=!0;var z=Math.floor(u/f);r.default.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\noriginalDts: "+M+" ms, curRefDts: "+j+" ms, dtsCorrection: "+Math.round(u)+" ms, generate: "+z+" frames"),A=Math.floor(j),D=Math.floor(j+f)-A;T=i.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==T&&(r.default.w(this.TAG,"Unable to generate silent frame for "+this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame"),T=P),B=[];for(var N=0;N=1?k[k.length-1].duration:Math.floor(f);this._audioNextDts=A+D}-1===c&&(c=A),k.push({dts:A,pts:A,cts:0,unit:_.unit,size:_.unit.byteLength,duration:D,originalDts:M,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),I&&k.push.apply(k,B)}}if(0===k.length)return n.samples=[],void(n.length=0);h?g=new Uint8Array(b):(g=new Uint8Array(b),g[0]=b>>>24&255,g[1]=b>>>16&255,g[2]=b>>>8&255,g[3]=255&b,g.set(o.default.types.mdat,4));for(L=0;L1&&(p=r.pop(),h-=p.length),null!=this._videoStashedLastSample){var v=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(v),h+=v.length}null!=p&&(this._videoStashedLastSample=p);var m=r[0].dts-this._dtsBase;if(this._videoNextDts)i=m-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())i=0;else{var g=this._videoSegmentInfoList.getLastSampleBefore(m);if(null!=g){var b=m-(g.originalDts+g.duration);b<=3&&(b=0);var y=g.dts+g.duration+b;i=m-y}else i=0}for(var _=new s.MediaSegmentInfo,w=[],S=0;S=1?w[w.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(E){var k=new s.SampleInfo(C,T,A,v.dts,!0);k.fileposition=v.fileposition,_.appendSyncPoint(k)}w.push({dts:C,pts:T,cts:R,units:v.units,size:v.length,isKeyframe:E,duration:A,originalDts:x,flags:{isLeading:0,dependsOn:E?2:1,isDependedOn:E?1:0,hasRedundancy:0,isNonSync:E?0:1}})}f=new Uint8Array(h),f[0]=h>>>24&255,f[1]=h>>>16&255,f[2]=h>>>8&255,f[3]=255&h,f.set(o.default.types.mdat,4);for(S=0;S=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],o={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:n[0]||""},i={};if(o.browser){i[o.browser]=!0;var a=o.majorVersion.split(".");i.version={major:parseInt(o.majorVersion,10),string:o.version},a.length>1&&(i.version.minor=parseInt(a[1],10)),a.length>2&&(i.version.build=parseInt(a[2],10))}if(o.platform&&(i[o.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;var s="msie";o.browser=s,i[s]=!0}if(i.edge){delete i.edge;var l="msedge";o.browser=l,i[l]=!0}if(i.opr){var u="opera";o.browser=u,i[u]=!0}if(i.safari&&i.android){var c="android";o.browser=c,i[c]=!0}for(var d in i.name=o.browser,i.platform=o.platform,r)r.hasOwnProperty(d)&&delete r[d];Object.assign(r,i)}o(),t["default"]=r},"./src/utils/exception.js": -/*!********************************!*\ - !*** ./src/utils/exception.js ***! - \********************************/ -function(e,t,n){"use strict";n.r(t),n.d(t,{RuntimeException:function(){return o},IllegalStateException:function(){return i},InvalidArgumentException:function(){return a},NotImplementedException:function(){return s}});var r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(){function e(e){this._message=e}return Object.defineProperty(e.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this.name+": "+this.message},e}(),i=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),t}(o),a=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),t}(o),s=function(e){function t(t){return e.call(this,t)||this}return r(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),t}(o)},"./src/utils/logger.js": -/*!*****************************!*\ - !*** ./src/utils/logger.js ***! - \*****************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! events */ -"./node_modules/events/events.js"),o=n.n(r),i=function(){function e(){}return e.e=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","error",r),e.ENABLE_ERROR&&(console.error?console.error(r):console.warn?console.warn(r):console.log(r))},e.i=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","info",r),e.ENABLE_INFO&&(console.info?console.info(r):console.log(r))},e.w=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",r),e.ENABLE_WARN&&(console.warn?console.warn(r):console.log(r))},e.d=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",r),e.ENABLE_DEBUG&&(console.debug?console.debug(r):console.log(r))},e.v=function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="["+t+"] > "+n;e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",r),e.ENABLE_VERBOSE&&console.log(r)},e}();i.GLOBAL_TAG="flv.js",i.FORCE_GLOBAL_TAG=!1,i.ENABLE_ERROR=!0,i.ENABLE_INFO=!0,i.ENABLE_WARN=!0,i.ENABLE_DEBUG=!0,i.ENABLE_VERBOSE=!0,i.ENABLE_CALLBACK=!1,i.emitter=new(o()),t["default"]=i},"./src/utils/logging-control.js": -/*!**************************************!*\ - !*** ./src/utils/logging-control.js ***! - \**************************************/ -function(e,t,n){"use strict";n.r(t);var r=n( -/*! events */ -"./node_modules/events/events.js"),o=n.n(r),i=n( -/*! ./logger.js */ -"./src/utils/logger.js"),a=function(){function e(){}return Object.defineProperty(e,"forceGlobalTag",{get:function(){return i.default.FORCE_GLOBAL_TAG},set:function(t){i.default.FORCE_GLOBAL_TAG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"globalTag",{get:function(){return i.default.GLOBAL_TAG},set:function(t){i.default.GLOBAL_TAG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableAll",{get:function(){return i.default.ENABLE_VERBOSE&&i.default.ENABLE_DEBUG&&i.default.ENABLE_INFO&&i.default.ENABLE_WARN&&i.default.ENABLE_ERROR},set:function(t){i.default.ENABLE_VERBOSE=t,i.default.ENABLE_DEBUG=t,i.default.ENABLE_INFO=t,i.default.ENABLE_WARN=t,i.default.ENABLE_ERROR=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableDebug",{get:function(){return i.default.ENABLE_DEBUG},set:function(t){i.default.ENABLE_DEBUG=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableVerbose",{get:function(){return i.default.ENABLE_VERBOSE},set:function(t){i.default.ENABLE_VERBOSE=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableInfo",{get:function(){return i.default.ENABLE_INFO},set:function(t){i.default.ENABLE_INFO=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableWarn",{get:function(){return i.default.ENABLE_WARN},set:function(t){i.default.ENABLE_WARN=t,e._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"enableError",{get:function(){return i.default.ENABLE_ERROR},set:function(t){i.default.ENABLE_ERROR=t,e._notifyChange()},enumerable:!1,configurable:!0}),e.getConfig=function(){return{globalTag:i.default.GLOBAL_TAG,forceGlobalTag:i.default.FORCE_GLOBAL_TAG,enableVerbose:i.default.ENABLE_VERBOSE,enableDebug:i.default.ENABLE_DEBUG,enableInfo:i.default.ENABLE_INFO,enableWarn:i.default.ENABLE_WARN,enableError:i.default.ENABLE_ERROR,enableCallback:i.default.ENABLE_CALLBACK}},e.applyConfig=function(e){i.default.GLOBAL_TAG=e.globalTag,i.default.FORCE_GLOBAL_TAG=e.forceGlobalTag,i.default.ENABLE_VERBOSE=e.enableVerbose,i.default.ENABLE_DEBUG=e.enableDebug,i.default.ENABLE_INFO=e.enableInfo,i.default.ENABLE_WARN=e.enableWarn,i.default.ENABLE_ERROR=e.enableError,i.default.ENABLE_CALLBACK=e.enableCallback},e._notifyChange=function(){var t=e.emitter;if(t.listenerCount("change")>0){var n=e.getConfig();t.emit("change",n)}},e.registerListener=function(t){e.emitter.addListener("change",t)},e.removeListener=function(t){e.emitter.removeListener("change",t)},e.addLogListener=function(t){i.default.emitter.addListener("log",t),i.default.emitter.listenerCount("log")>0&&(i.default.ENABLE_CALLBACK=!0,e._notifyChange())},e.removeLogListener=function(t){i.default.emitter.removeListener("log",t),0===i.default.emitter.listenerCount("log")&&(i.default.ENABLE_CALLBACK=!1,e._notifyChange())},e}();a.emitter=new(o()),t["default"]=a},"./src/utils/polyfill.js": -/*!*******************************!*\ - !*** ./src/utils/polyfill.js ***! - \*******************************/ -function(e,t,n){"use strict";n.r(t);var r=function(){function e(){}return e.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n=128){t.push(String.fromCharCode(65535&a)),o+=2;continue}}}else if(n[o]<240){if(r(n,o,2)){a=(15&n[o])<<12|(63&n[o+1])<<6|63&n[o+2];if(a>=2048&&55296!==(63488&a)){t.push(String.fromCharCode(65535&a)),o+=3;continue}}}else if(n[o]<248&&r(n,o,3)){a=(7&n[o])<<18|(63&n[o+1])<<12|(63&n[o+2])<<6|63&n[o+3];if(a>65536&&a<1114112){a-=65536,t.push(String.fromCharCode(a>>>10|55296)),t.push(String.fromCharCode(1023&a|56320)),o+=4;continue}}t.push(String.fromCharCode(65533)),++o}return t.join("")}n.r(t),t["default"]=o}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}();var r=n("./src/index.js");return r}()}))},6237:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},5556:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(3396),o=n(4870),i=n(7772),a=n(9611),s=n(1087),l=(0,s.f)("close",(0,r.h)("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},(0,r.h)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{fill:"currentColor","fill-rule":"nonzero"},(0,r.h)("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),u=n(411),c=(0,u.cB)("base-close","\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n background-color: transparent;\n color: var(--n-close-icon-color);\n border-radius: var(--n-close-border-radius);\n height: var(--n-close-size);\n width: var(--n-close-size);\n font-size: var(--n-close-icon-size);\n outline: none;\n border: none;\n position: relative;\n padding: 0;\n",[(0,u.cM)("absolute","\n height: var(--n-close-icon-size);\n width: var(--n-close-icon-size);\n "),(0,u.c)("&::before",'\n content: "";\n position: absolute;\n width: var(--n-close-size);\n height: var(--n-close-size);\n left: 50%;\n top: 50%;\n transform: translateY(-50%) translateX(-50%);\n transition: inherit;\n border-radius: inherit;\n '),(0,u.u4)("disabled",[(0,u.c)("&:hover","\n color: var(--n-close-icon-color-hover);\n "),(0,u.c)("&:hover::before","\n background-color: var(--n-close-color-hover);\n "),(0,u.c)("&:focus::before","\n background-color: var(--n-close-color-hover);\n "),(0,u.c)("&:active","\n color: var(--n-close-icon-color-pressed);\n "),(0,u.c)("&:active::before","\n background-color: var(--n-close-color-pressed);\n ")]),(0,u.cM)("disabled","\n cursor: not-allowed;\n color: var(--n-close-icon-color-disabled);\n background-color: transparent;\n "),(0,u.cM)("round",[(0,u.c)("&::before","\n border-radius: 50%;\n ")])]),d=(0,r.aZ)({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return(0,i.Z)("-base-close",c,(0,o.Vh)(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:o,round:i,isButtonTag:s}=e,u=s?"button":"div";return(0,r.h)(u,{type:s?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:s?void 0:"button",disabled:n,class:[`${t}-base-close`,o&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,i&&`${t}-base-close--round`],onMousedown:t=>{e.focusable||t.preventDefault()},onClick:e.onClick},(0,r.h)(a.Z,{clsPrefix:t},{default:()=>(0,r.h)(l,null)}))}}})},9611:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(3396),o=n(4870),i=n(7772),a=n(411),s=(0,a.cB)("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[(0,a.c)("svg","\n height: 1em;\n width: 1em;\n ")]),l=(0,r.aZ)({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){(0,i.Z)("-base-icon",s,(0,o.Vh)(e,"clsPrefix"))},render(){return(0,r.h)("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}})},1087:function(e,t,n){"use strict";function r(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;var i=Array(o);while(++r=r?e:o(e,t,n)}var a=i,s="\\ud800-\\udfff",l="\\u0300-\\u036f",u="\\ufe20-\\ufe2f",c="\\u20d0-\\u20ff",d=l+u+c,f="\\ufe0e\\ufe0f",h="\\u200d",p=RegExp("["+h+s+d+f+"]");function v(e){return p.test(e)}var m=v;function g(e){return e.split("")}var b=g,y="\\ud800-\\udfff",_="\\u0300-\\u036f",w="\\ufe20-\\ufe2f",S="\\u20d0-\\u20ff",x=_+w+S,E="\\ufe0e\\ufe0f",C="["+y+"]",R="["+x+"]",T="\\ud83c[\\udffb-\\udfff]",A="(?:"+R+"|"+T+")",O="[^"+y+"]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",L="[\\ud800-\\udbff][\\udc00-\\udfff]",P="\\u200d",M=A+"?",I="["+E+"]?",B="(?:"+P+"(?:"+[O,k,L].join("|")+")"+I+M+")*",D=I+M+B,j="(?:"+[O+R+"?",R,k,L,C].join("|")+")",F=RegExp(T+"(?="+T+")|"+j+D,"g");function z(e){return e.match(F)||[]}var N=z;function $(e){return m(e)?N(e):b(e)}var U=$,Z=n(5554);function H(e){return function(t){t=(0,Z.Z)(t);var n=m(t)?U(t):void 0,r=n?n[0]:t.charAt(0),o=n?a(n,1).join(""):t.slice(1);return r[e]()+o}}var V=H,W=V("toUpperCase"),G=W,K=n(3396),q=n(8090);function Y(e,t){return(0,K.aZ)({name:G(e),setup(){var n;const r=null===(n=(0,K.f3)(q.Y,null))||void 0===n?void 0:n.mergedIconsRef;return()=>{var n;const o=null===(n=null===r||void 0===r?void 0:r.value)||void 0===n?void 0:n[e];return o?o():t}}})}},3091:function(e,t,n){"use strict";n.d(t,{u:function(){return E},Z:function(){return x}});var r=n(3396),o=n(4870),i=n(9242),a=n(5755),s=n(8125);const l="undefined"!==typeof window&&(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream;function u(){return l}var c=n(2503),d=n(8107),f=n(9420),h=n(8506),p=n(6455);function v(e){const t={isDeactivated:!1};let n=!1;return(0,r.dl)((()=>{t.isDeactivated=!1,n?e():n=!0})),(0,r.se)((()=>{t.isDeactivated=!0,n||(n=!0)})),t}var m=n(9486),g=n(1238),b=n(411),y=n(7671),_=(0,b.cB)("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[(0,b.c)(">",[(0,b.cB)("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n max-height: inherit;\n scrollbar-width: none;\n ",[(0,b.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),(0,b.c)(">",[(0,b.cB)("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])])]),(0,b.c)(">, +",[(0,b.cB)("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n ",[(0,b.cM)("horizontal","\n left: 2px;\n right: 2px;\n bottom: 4px;\n height: var(--n-scrollbar-height);\n ",[(0,b.c)(">",[(0,b.cE)("scrollbar","\n height: var(--n-scrollbar-height);\n border-radius: var(--n-scrollbar-border-radius);\n right: 0;\n ")])]),(0,b.cM)("vertical","\n right: 4px;\n top: 2px;\n bottom: 2px;\n width: var(--n-scrollbar-width);\n ",[(0,b.c)(">",[(0,b.cE)("scrollbar","\n width: var(--n-scrollbar-width);\n border-radius: var(--n-scrollbar-border-radius);\n bottom: 0;\n ")])]),(0,b.cM)("disabled",[(0,b.c)(">",[(0,b.cE)("scrollbar",{pointerEvents:"none"})])]),(0,b.c)(">",[(0,b.cE)("scrollbar","\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--n-scrollbar-color);\n transition: background-color .2s var(--n-scrollbar-bezier);\n ",[(0,y.h)(),(0,b.c)("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]);const w=Object.assign(Object.assign({},d.Z.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),S=(0,r.aZ)({name:"Scrollbar",props:w,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:i}=(0,f.Z)(e),s=(0,h.V)("Scrollbar",i,t),l=(0,o.iH)(null),m=(0,o.iH)(null),b=(0,o.iH)(null),y=(0,o.iH)(null),w=(0,o.iH)(null),S=(0,o.iH)(null),x=(0,o.iH)(null),E=(0,o.iH)(null),C=(0,o.iH)(null),R=(0,o.iH)(null),T=(0,o.iH)(null),A=(0,o.iH)(0),O=(0,o.iH)(0),k=(0,o.iH)(!1),L=(0,o.iH)(!1);let P,M,I=!1,B=!1,D=0,j=0,F=0,z=0;const N=u(),$=(0,r.Fl)((()=>{const{value:t}=E,{value:n}=S,{value:r}=R;return null===t||null===n||null===r?0:Math.min(t,r*t/n+1.5*e.size)})),U=(0,r.Fl)((()=>`${$.value}px`)),Z=(0,r.Fl)((()=>{const{value:t}=C,{value:n}=x,{value:r}=T;return null===t||null===n||null===r?0:r*t/n+1.5*e.size})),H=(0,r.Fl)((()=>`${Z.value}px`)),V=(0,r.Fl)((()=>{const{value:e}=E,{value:t}=A,{value:n}=S,{value:r}=R;if(null===e||null===n||null===r)return 0;{const o=n-e;return o?t/o*(r-$.value):0}})),W=(0,r.Fl)((()=>`${V.value}px`)),G=(0,r.Fl)((()=>{const{value:e}=C,{value:t}=O,{value:n}=x,{value:r}=T;if(null===e||null===n||null===r)return 0;{const o=n-e;return o?t/o*(r-Z.value):0}})),K=(0,r.Fl)((()=>`${G.value}px`)),q=(0,r.Fl)((()=>{const{value:e}=E,{value:t}=S;return null!==e&&null!==t&&t>e})),Y=(0,r.Fl)((()=>{const{value:e}=C,{value:t}=x;return null!==e&&null!==t&&t>e})),X=(0,r.Fl)((()=>{const{trigger:t}=e;return"none"===t||k.value})),J=(0,r.Fl)((()=>{const{trigger:t}=e;return"none"===t||L.value})),Q=(0,r.Fl)((()=>{const{container:t}=e;return t?t():m.value})),ee=(0,r.Fl)((()=>{const{content:t}=e;return t?t():b.value})),te=v((()=>{e.container||oe({top:A.value,left:O.value})})),ne=()=>{te.isDeactivated||be()},re=t=>{if(te.isDeactivated)return;const{onResize:n}=e;n&&n(t),be()},oe=(t,n)=>{if(!e.scrollable)return;if("number"===typeof t)return void ae(null!==n&&void 0!==n?n:0,t,0,!1,"auto");const{left:r,top:o,index:i,elSize:a,position:s,behavior:l,el:u,debounce:c=!0}=t;void 0===r&&void 0===o||ae(null!==r&&void 0!==r?r:0,null!==o&&void 0!==o?o:0,0,!1,l),void 0!==u?ae(0,u.offsetTop,u.offsetHeight,c,l):void 0!==i&&void 0!==a?ae(0,i*a,a,c,l):"bottom"===s?ae(0,Number.MAX_SAFE_INTEGER,0,!1,l):"top"===s&&ae(0,0,0,!1,l)},ie=(t,n)=>{if(!e.scrollable)return;const{value:r}=Q;r&&("object"===typeof t?r.scrollBy(t):r.scrollBy(t,n||0))};function ae(e,t,n,r,o){const{value:i}=Q;if(i){if(r){const{scrollTop:r,offsetHeight:a}=i;if(t>r)return void(t+n<=r+a||i.scrollTo({left:e,top:t+n-a,behavior:o}))}i.scrollTo({left:e,top:t,behavior:o})}}function se(){fe(),he(),be()}function le(){ue()}function ue(){ce(),de()}function ce(){void 0!==M&&window.clearTimeout(M),M=window.setTimeout((()=>{L.value=!1}),e.duration)}function de(){void 0!==P&&window.clearTimeout(P),P=window.setTimeout((()=>{k.value=!1}),e.duration)}function fe(){void 0!==P&&window.clearTimeout(P),k.value=!0}function he(){void 0!==M&&window.clearTimeout(M),L.value=!0}function pe(t){const{onScroll:n}=e;n&&n(t),ve()}function ve(){const{value:e}=Q;e&&(A.value=e.scrollTop,O.value=e.scrollLeft*((null===s||void 0===s?void 0:s.value)?-1:1))}function me(){const{value:e}=ee;e&&(S.value=e.offsetHeight,x.value=e.offsetWidth);const{value:t}=Q;t&&(E.value=t.offsetHeight,C.value=t.offsetWidth);const{value:n}=w,{value:r}=y;n&&(T.value=n.offsetWidth),r&&(R.value=r.offsetHeight)}function ge(){const{value:e}=Q;e&&(A.value=e.scrollTop,O.value=e.scrollLeft*((null===s||void 0===s?void 0:s.value)?-1:1),E.value=e.offsetHeight,C.value=e.offsetWidth,S.value=e.scrollHeight,x.value=e.scrollWidth);const{value:t}=w,{value:n}=y;t&&(T.value=t.offsetWidth),n&&(R.value=n.offsetHeight)}function be(){e.scrollable&&(e.useUnifiedContainer?ge():(me(),ve()))}function ye(e){var t;return!(null===(t=l.value)||void 0===t?void 0:t.contains((0,c.p)(e)))}function _e(e){e.preventDefault(),e.stopPropagation(),B=!0,(0,a.on)("mousemove",window,we,!0),(0,a.on)("mouseup",window,Se,!0),j=O.value,F=(null===s||void 0===s?void 0:s.value)?window.innerWidth-e.clientX:e.clientX}function we(t){if(!B)return;void 0!==P&&window.clearTimeout(P),void 0!==M&&window.clearTimeout(M);const{value:n}=C,{value:r}=x,{value:o}=Z;if(null===n||null===r)return;const i=(null===s||void 0===s?void 0:s.value)?window.innerWidth-t.clientX-F:t.clientX-F,a=i*(r-n)/(n-o),l=r-n;let u=j+a;u=Math.min(l,u),u=Math.max(u,0);const{value:c}=Q;if(c){c.scrollLeft=u*((null===s||void 0===s?void 0:s.value)?-1:1);const{internalOnUpdateScrollLeft:t}=e;t&&t(u)}}function Se(e){e.preventDefault(),e.stopPropagation(),(0,a.S)("mousemove",window,we,!0),(0,a.S)("mouseup",window,Se,!0),B=!1,be(),ye(e)&&ue()}function xe(e){e.preventDefault(),e.stopPropagation(),I=!0,(0,a.on)("mousemove",window,Ee,!0),(0,a.on)("mouseup",window,Ce,!0),D=A.value,z=e.clientY}function Ee(e){if(!I)return;void 0!==P&&window.clearTimeout(P),void 0!==M&&window.clearTimeout(M);const{value:t}=E,{value:n}=S,{value:r}=$;if(null===t||null===n)return;const o=e.clientY-z,i=o*(n-t)/(t-r),a=n-t;let s=D+i;s=Math.min(a,s),s=Math.max(s,0);const{value:l}=Q;l&&(l.scrollTop=s)}function Ce(e){e.preventDefault(),e.stopPropagation(),(0,a.S)("mousemove",window,Ee,!0),(0,a.S)("mouseup",window,Ce,!0),I=!1,be(),ye(e)&&ue()}(0,r.m0)((()=>{const{value:e}=Y,{value:n}=q,{value:r}=t,{value:o}=w,{value:i}=y;o&&(e?o.classList.remove(`${r}-scrollbar-rail--disabled`):o.classList.add(`${r}-scrollbar-rail--disabled`)),i&&(n?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`))})),(0,r.bv)((()=>{e.container||be()})),(0,r.Jd)((()=>{void 0!==P&&window.clearTimeout(P),void 0!==M&&window.clearTimeout(M),(0,a.S)("mousemove",window,Ee,!0),(0,a.S)("mouseup",window,Ce,!0)}));const Re=(0,d.Z)("Scrollbar","-scrollbar",_,g.Z,e,t),Te=(0,r.Fl)((()=>{const{common:{cubicBezierEaseInOut:e,scrollbarBorderRadius:t,scrollbarHeight:n,scrollbarWidth:r},self:{color:o,colorHover:i}}=Re.value;return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":o,"--n-scrollbar-color-hover":i,"--n-scrollbar-border-radius":t,"--n-scrollbar-width":r,"--n-scrollbar-height":n}})),Ae=n?(0,p.F)("scrollbar",void 0,Te,e):void 0,Oe={scrollTo:oe,scrollBy:ie,sync:be,syncUnifiedContainer:ge,handleMouseEnterWrapper:se,handleMouseLeaveWrapper:le};return Object.assign(Object.assign({},Oe),{mergedClsPrefix:t,rtlEnabled:s,containerScrollTop:A,wrapperRef:l,containerRef:m,contentRef:b,yRailRef:y,xRailRef:w,needYBar:q,needXBar:Y,yBarSizePx:U,xBarSizePx:H,yBarTopPx:W,xBarLeftPx:K,isShowXBar:X,isShowYBar:J,isIos:N,handleScroll:pe,handleContentResize:ne,handleContainerResize:re,handleYScrollMouseDown:xe,handleXScrollMouseDown:_e,cssVars:n?void 0:Te,themeClass:null===Ae||void 0===Ae?void 0:Ae.themeClass,onRender:null===Ae||void 0===Ae?void 0:Ae.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:o,rtlEnabled:a,internalHoistYRail:l}=this;if(!this.scrollable)return null===(e=t.default)||void 0===e?void 0:e.call(t);const u="none"===this.trigger,c=()=>(0,r.h)("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},(0,r.h)(u?m.i:i.uT,u?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?(0,r.h)("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),d=()=>{var e,d;return null===(e=this.onRender)||void 0===e||e.call(this),(0,r.h)("div",(0,r.dG)(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,a&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?null===(d=t.default)||void 0===d?void 0:d.call(t):(0,r.h)("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},(0,r.h)(s.Z,{onResize:this.handleContentResize},{default:()=>(0,r.h)("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),l?null:c(),this.xScrollable&&(0,r.h)("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},(0,r.h)(u?m.i:i.uT,u?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?(0,r.h)("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:a?this.xBarLeftPx:void 0,left:a?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},f=this.container?d():(0,r.h)(s.Z,{onResize:this.handleContainerResize},{default:d});return l?(0,r.h)(r.HY,null,f,c()):f}});var x=S;const E=S},1238:function(e,t,n){"use strict";var r=n(8308);const o=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},i={name:"Scrollbar",common:r.Z,self:o};t["Z"]=i},6102:function(e,t,n){"use strict";n.d(t,{G:function(){return i},M:function(){return o}});var r=n(1295);const o=(0,r.U)("n-internal-select-menu"),i=(0,r.U)("n-internal-select-menu-body")},8650:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});const r="naive-ui-style"},9420:function(e,t,n){"use strict";n.d(t,{Z:function(){return a},b:function(){return i}});var r=n(3396),o=n(8090);const i="n";function a(e={},t={defaultBordered:!0}){const n=(0,r.f3)(o.Y,null);return{inlineThemeDisabled:null===n||void 0===n?void 0:n.inlineThemeDisabled,mergedRtlRef:null===n||void 0===n?void 0:n.mergedRtlRef,mergedComponentPropsRef:null===n||void 0===n?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:null===n||void 0===n?void 0:n.mergedBreakpointsRef,mergedBorderedRef:(0,r.Fl)((()=>{var r,o;const{bordered:i}=e;return void 0!==i?i:null===(o=null!==(r=null===n||void 0===n?void 0:n.mergedBorderedRef.value)&&void 0!==r?r:t.defaultBordered)||void 0===o||o})),mergedClsPrefixRef:(0,r.Fl)((()=>{const e=null===n||void 0===n?void 0:n.mergedClsPrefixRef.value;return e||i})),namespaceRef:(0,r.Fl)((()=>null===n||void 0===n?void 0:n.mergedNamespaceRef.value))}}},6455:function(e,t,n){"use strict";n.d(t,{F:function(){return c}});var r=n(3396),o=n(4870),i=n(7535),a=n(1496),s=n(8090),l=n(8448),u=n(411);function c(e,t,n,c){var d;n||(0,l._y)("useThemeClass","cssVarsRef is not passed");const f=null===(d=(0,r.f3)(s.Y,null))||void 0===d?void 0:d.mergedThemeHashRef,h=(0,o.iH)(""),p=(0,a.O)();let v;const m=`__${e}`,g=()=>{let e=m;const r=t?t.value:void 0,o=null===f||void 0===f?void 0:f.value;o&&(e+="-"+o),r&&(e+="-"+r);const{themeOverrides:a,builtinThemeOverrides:s}=c;a&&(e+="-"+(0,i.Z)(JSON.stringify(a))),s&&(e+="-"+(0,i.Z)(JSON.stringify(s))),h.value=e,v=()=>{const t=n.value;let r="";for(const e in t)r+=`${e}: ${t[e]};`;(0,u.c)(`.${e}`,r).mount({id:e,ssr:p}),v=void 0}};return(0,r.m0)((()=>{g()})),{themeClass:h,onRender:()=>{null===v||void 0===v||v()}}}},797:function(e,t,n){"use strict";n.d(t,{Z:function(){return X}});var r=n(3396);const o={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};var i=o,a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},s=function(e,t,n){var r,o=a[e];return r="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},l=s;function u(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var c={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},d={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},f={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},h={date:u({formats:c,defaultWidth:"full"}),time:u({formats:d,defaultWidth:"full"}),dateTime:u({formats:f,defaultWidth:"full"})},p=h,v={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},m=function(e,t,n,r){return v[e]},g=m;function b(e){return function(t,n){var r,o=null!==n&&void 0!==n&&n.context?String(n.context):"standalone";if("formatting"===o&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=null!==n&&void 0!==n&&n.width?String(n.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return r[u]}}var y={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},w={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},S={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},x={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},E={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},C=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},R={ordinalNumber:C,era:b({values:y,defaultWidth:"wide"}),quarter:b({values:_,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:b({values:w,defaultWidth:"wide"}),day:b({values:S,defaultWidth:"wide"}),dayPeriod:b({values:x,defaultWidth:"wide",formattingValues:E,defaultFormattingWidth:"wide"})},T=R;function A(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?k(l,(function(e){return e.test(s)})):O(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=n.valueCallback?n.valueCallback(a):a;var c=t.slice(s.length);return{value:a,rest:c}}}function O(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function k(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var P=/^(\d+)(th|st|nd|rd)?/i,M=/\d+/i,I={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},B={any:[/^b/i,/^(a|c)/i]},D={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},j={any:[/1/i,/2/i,/3/i,/4/i]},F={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},z={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},N={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},$={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},U={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Z={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},H={ordinalNumber:L({matchPattern:P,parsePattern:M,valueCallback:function(e){return parseInt(e,10)}}),era:A({matchPatterns:I,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any"}),quarter:A({matchPatterns:D,defaultMatchWidth:"wide",parsePatterns:j,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:A({matchPatterns:F,defaultMatchWidth:"wide",parsePatterns:z,defaultParseWidth:"any"}),day:A({matchPatterns:N,defaultMatchWidth:"wide",parsePatterns:$,defaultParseWidth:"any"}),dayPeriod:A({matchPatterns:U,defaultMatchWidth:"any",parsePatterns:Z,defaultParseWidth:"any"})},V=H,W={code:"en-US",formatDistance:l,formatLong:p,formatRelative:g,localize:T,match:V,options:{weekStartsOn:0,firstWeekContainsDate:1}},G=W;const K={name:"en-US",locale:G};var q=K,Y=n(8090);function X(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=(0,r.f3)(Y.Y,null)||{},o=(0,r.Fl)((()=>{var n,r;return null!==(r=null===(n=null===t||void 0===t?void 0:t.value)||void 0===n?void 0:n[e])&&void 0!==r?r:i[e]})),a=(0,r.Fl)((()=>{var e;return null!==(e=null===n||void 0===n?void 0:n.value)&&void 0!==e?e:q}));return{dateLocaleRef:a,localeRef:o}}},8506:function(e,t,n){"use strict";n.d(t,{V:function(){return l}});var r=n(3396),o=n(5690);function i(e,t){if(void 0===e)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return null!==(0,o.$F)(e)}var a=n(1496),s=n(8650);function l(e,t,n){if(!t)return;const o=(0,a.O)(),l=(0,r.Fl)((()=>{const{value:n}=t;if(!n)return;const r=n[e];return r||void 0})),u=()=>{(0,r.m0)((()=>{const{value:t}=n,r=`${t}${e}Rtl`;if(i(r,o))return;const{value:a}=l;a&&a.style.mount({id:r,head:!0,anchorMetaName:s.A,props:{bPrefix:t?`.${t}-`:void 0},ssr:o})}))};return o?u():(0,r.wF)(u),l}},7772:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(3396),o=n(1496),i=n(8090),a=n(3126),s=n(8650);function l(e,t,n){if(!t)return void 0;const l=(0,o.O)(),u=(0,r.f3)(i.Y,null),c=()=>{const r=null===n||void 0===n?void 0:n.value;t.mount({id:void 0===r?e:r+e,head:!0,anchorMetaName:s.A,props:{bPrefix:r?`.${r}-`:void 0},ssr:l}),(null===u||void 0===u?void 0:u.preflightStyleDisabled)||a.Z.mount({id:"n-global",head:!0,anchorMetaName:s.A,ssr:l})};l?c():(0,r.wF)(c)}},8107:function(e,t,n){"use strict";n.d(t,{j:function(){return u}});var r=n(3396),o=n(4074),i=n(1496),a=n(3126),s=n(8090),l=n(8650);function u(e){return e}function c(e,t,n,u,c,d){const f=(0,i.O)(),h=(0,r.f3)(s.Y,null);if(n){const e=()=>{const e=null===d||void 0===d?void 0:d.value;n.mount({id:void 0===e?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:l.A,ssr:f}),(null===h||void 0===h?void 0:h.preflightStyleDisabled)||a.Z.mount({id:"n-global",head:!0,anchorMetaName:l.A,ssr:f})};f?e():(0,r.wF)(e)}const p=(0,r.Fl)((()=>{var t;const{theme:{common:n,self:r,peers:i={}}={},themeOverrides:a={},builtinThemeOverrides:s={}}=c,{common:l,peers:d}=a,{common:f,[e]:{common:p,self:v,peers:m={}}={}}=(null===h||void 0===h?void 0:h.mergedThemeRef.value)||{},{common:g,[e]:b={}}=(null===h||void 0===h?void 0:h.mergedThemeOverridesRef.value)||{},{common:y,peers:_={}}=b,w=(0,o.Z)({},n||p||f||u.common,g,y,l),S=(0,o.Z)(null===(t=r||v||u.self)||void 0===t?void 0:t(w),s,b,a);return{common:w,self:S,peers:(0,o.Z)({},u.peers,m,i),peerOverrides:(0,o.Z)({},s.peers,_,d)}}));return p}c.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object},t["Z"]=c},823:function(e,t){"use strict";t["Z"]={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"}},8308:function(e,t,n){"use strict";var r=n(4750),o=n(823);const i={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},a=(0,r.m4)(i.neutralBase),s=(0,r.m4)(i.neutralInvertBase),l="rgba("+s.slice(0,3).join(", ")+", ";function u(e){return l+String(e)+")"}function c(e){const t=Array.from(s);return t[3]=Number(e),(0,r.h$)(a,t)}const d=Object.assign(Object.assign({name:"common"},o.Z),{baseColor:i.neutralBase,primaryColor:i.primaryDefault,primaryColorHover:i.primaryHover,primaryColorPressed:i.primaryActive,primaryColorSuppl:i.primarySuppl,infoColor:i.infoDefault,infoColorHover:i.infoHover,infoColorPressed:i.infoActive,infoColorSuppl:i.infoSuppl,successColor:i.successDefault,successColorHover:i.successHover,successColorPressed:i.successActive,successColorSuppl:i.successSuppl,warningColor:i.warningDefault,warningColorHover:i.warningHover,warningColorPressed:i.warningActive,warningColorSuppl:i.warningSuppl,errorColor:i.errorDefault,errorColorHover:i.errorHover,errorColorPressed:i.errorActive,errorColorSuppl:i.errorSuppl,textColorBase:i.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:c(i.alpha4),placeholderColor:c(i.alpha4),placeholderColorDisabled:c(i.alpha5),iconColor:c(i.alpha4),iconColorHover:(0,r.tn)(c(i.alpha4),{lightness:.75}),iconColorPressed:(0,r.tn)(c(i.alpha4),{lightness:.9}),iconColorDisabled:c(i.alpha5),opacity1:i.alpha1,opacity2:i.alpha2,opacity3:i.alpha3,opacity4:i.alpha4,opacity5:i.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:c(Number(i.alphaClose)),closeIconColorHover:c(Number(i.alphaClose)),closeIconColorPressed:c(Number(i.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:c(i.alpha4),clearColorHover:(0,r.tn)(c(i.alpha4),{lightness:.75}),clearColorPressed:(0,r.tn)(c(i.alpha4),{lightness:.9}),scrollbarColor:u(i.alphaScrollbar),scrollbarColorHover:u(i.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:c(i.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:i.neutralPopover,tableColor:i.neutralCard,cardColor:i.neutralCard,modalColor:i.neutralModal,bodyColor:i.neutralBody,tagColor:"#eee",avatarColor:c(i.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:c(i.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:i.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"});t["Z"]=d},3126:function(e,t,n){"use strict";var r=n(411),o=n(823);const{fontSize:i,fontFamily:a,lineHeight:s}=o.Z;t["Z"]=(0,r.c)("body",`\n margin: 0;\n font-size: ${i};\n font-family: ${a};\n line-height: ${s};\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: transparent;\n`,[(0,r.c)("input","\n font-family: inherit;\n font-size: inherit;\n ")])},419:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(411),o=n(823);const{cubicBezierEaseIn:i,cubicBezierEaseOut:a}=o.Z;function s({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:o="",originalTransition:s=""}={}){return[(0,r.c)("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${i}, transform ${t} ${i} ${s&&","+s}`}),(0,r.c)("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${a}, transform ${t} ${a} ${s&&","+s}`}),(0,r.c)("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${n})`}),(0,r.c)("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}},7671:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(411),o=n(823);const{cubicBezierEaseInOut:i}=o.Z;function a({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:o=i,leaveCubicBezier:a=i}={}){return[(0,r.c)(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),(0,r.c)(`&.${e}-transition-leave-active`,{transition:`all ${n} ${a}!important`}),(0,r.c)(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),(0,r.c)(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}},7624:function(e,t,n){"use strict";n.d(t,{n:function(){return f}});var r=n(4498),o=n(5755),i=n(3396),a=n(4870),s=n(6102),l=n(6002),u=n(2097),c=n(8377);const d="__disabled__";function f(e){const t=(0,i.f3)(l.Z,null),n=(0,i.f3)(u.H,null),f=(0,i.f3)(c.c,null),h=(0,i.f3)(s.G,null),p=(0,a.iH)();if("undefined"!==typeof document){p.value=document.fullscreenElement;const e=()=>{p.value=document.fullscreenElement};(0,i.bv)((()=>{(0,o.on)("fullscreenchange",document,e)})),(0,i.Jd)((()=>{(0,o.S)("fullscreenchange",document,e)}))}return(0,r.Z)((()=>{var r;const{to:o}=e;return void 0!==o?!1===o?d:!0===o?p.value||"body":o:(null===t||void 0===t?void 0:t.value)?null!==(r=t.value.$el)&&void 0!==r?r:t.value:(null===n||void 0===n?void 0:n.value)?n.value:(null===f||void 0===f?void 0:f.value)?f.value:(null===h||void 0===h?void 0:h.value)?h.value:null!==o&&void 0!==o?o:p.value||"body"}))}f.tdkey=d,f.propTo={type:[String,Object,Boolean],default:void 0}},5608:function(e,t,n){"use strict";function r(e,t){return e+("default"===t?"":t.replace(/^[a-z]/,(e=>e.toUpperCase())))}n.d(t,{T:function(){return r}}),r("abc","def")},411:function(e,t,n){"use strict";n.d(t,{c:function(){return d},cB:function(){return h},kE:function(){return g},cE:function(){return p},cM:function(){return v},u4:function(){return m}});var r=n(7298);n(1703);function o(e){let t,n=".",r="__",o="--";if(e){let t=e.blockPrefix;t&&(n=t),t=e.elementPrefix,t&&(r=t),t=e.modifierPrefix,t&&(o=t)}const i={install(e){t=e.c;const n=e.context;n.bem={},n.bem.b=null,n.bem.els=null}};function a(e){let t,r;return{before(e){t=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=t,e.bem.els=r},$({context:t,props:r}){return e="string"===typeof e?e:e({context:t,props:r}),t.bem.b=e,`${(null===r||void 0===r?void 0:r.bPrefix)||n}${t.bem.b}`}}}function s(e){let t;return{before(e){t=e.bem.els},after(e){e.bem.els=t},$({context:t,props:o}){return e="string"===typeof e?e:e({context:t,props:o}),t.bem.els=e.split(",").map((e=>e.trim())),t.bem.els.map((e=>`${(null===o||void 0===o?void 0:o.bPrefix)||n}${t.bem.b}${r}${e}`)).join(", ")}}}function l(e){return{$({context:t,props:i}){e="string"===typeof e?e:e({context:t,props:i});const a=e.split(",").map((e=>e.trim()));function s(e){return a.map((a=>`&${(null===i||void 0===i?void 0:i.bPrefix)||n}${t.bem.b}${void 0!==e?`${r}${e}`:""}${o}${a}`)).join(", ")}const l=t.bem.els;return null!==l?s(l[0]):s()}}}function u(e){return{$({context:t,props:i}){e="string"===typeof e?e:e({context:t,props:i});const a=t.bem.els;return`&:not(${(null===i||void 0===i?void 0:i.bPrefix)||n}${t.bem.b}${null!==a&&a.length>0?`${r}${a[0]}`:""}${o}${e})`}}}const c=(...e)=>t(a(e[0]),e[1],e[2]),d=(...e)=>t(s(e[0]),e[1],e[2]),f=(...e)=>t(l(e[0]),e[1],e[2]),h=(...e)=>t(u(e[0]),e[1],e[2]);return Object.assign(i,{cB:c,cE:d,cM:f,cNotM:h}),i}const i="n",a=`.${i}-`,s="__",l="--",u=(0,r.j)(),c=o({blockPrefix:a,elementPrefix:s,modifierPrefix:l});u.use(c);const{c:d,find:f}=u,{cB:h,cE:p,cM:v,cNotM:m}=c;const g=(...e)=>d(">",[h(...e)])},8448:function(e,t,n){"use strict";n.d(t,{ZK:function(){return r},_y:function(){return o}});n(1703);new Set;function r(e,t){console.error(`[naive/${e}]: ${t}`)}function o(e,t){throw new Error(`[naive/${e}]: ${t}`)}},8089:function(e,t,n){"use strict";function r(e,...t){if(!Array.isArray(e))return e(...t);e.forEach((e=>r(e,...t)))}n.d(t,{R:function(){return r}})},1295:function(e,t,n){"use strict";function r(e){return e}n.d(t,{U:function(){return r}})},9940:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});n(7658);var r=n(3396);function o(e,t=!0,n=[]){return e.forEach((e=>{if(null!==e)if("object"===typeof e)if(Array.isArray(e))o(e,t,n);else if(e.type===r.HY){if(null===e.children)return;Array.isArray(e.children)&&o(e.children,t,n)}else e.type!==r.sv&&n.push(e);else"string"!==typeof e&&"number"!==typeof e||n.push((0,r.Uk)(String(e)))})),n}},7902:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(3396);const o=(e,...t)=>"function"===typeof e?e(...t):"string"===typeof e?(0,r.Uk)(e):"number"===typeof e?(0,r.Uk)(String(e)):null},4092:function(e,t,n){"use strict";n.d(t,{K9:function(){return a},aD:function(){return s},gI:function(){return i}});var r=n(3396);function o(e){return e.some((e=>!(0,r.lA)(e)||e.type!==r.sv&&!(e.type===r.HY&&!o(e.children))))?e:null}function i(e,t){return e&&o(e())||t()}function a(e,t){const n=e&&o(e());return t(n||null)}function s(e){return!(e&&o(e()))}},9486:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(3396);const o=(0,r.aZ)({render(){var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}})},254:function(e,t,n){"use strict";var r=n(3396),o=n(4870),i=n(4498),a=n(4074),s=n(7535),l=n(8448),u=n(9420),c=n(8090);const d={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>((0,l.ZK)("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};t["Z"]=(0,r.aZ)({name:"ConfigProvider",alias:["App"],props:d,setup(e){const t=(0,r.f3)(c.Y,null),n=(0,r.Fl)((()=>{const{theme:n}=e;if(null===n)return;const r=null===t||void 0===t?void 0:t.mergedThemeRef.value;return void 0===n?r:void 0===r?n:Object.assign({},r,n)})),l=(0,r.Fl)((()=>{const{themeOverrides:n}=e;if(null!==n){if(void 0===n)return null===t||void 0===t?void 0:t.mergedThemeOverridesRef.value;{const e=null===t||void 0===t?void 0:t.mergedThemeOverridesRef.value;return void 0===e?n:(0,a.Z)({},e,n)}}})),u=(0,i.Z)((()=>{const{namespace:n}=e;return void 0===n?null===t||void 0===t?void 0:t.mergedNamespaceRef.value:n})),d=(0,i.Z)((()=>{const{bordered:n}=e;return void 0===n?null===t||void 0===t?void 0:t.mergedBorderedRef.value:n})),f=(0,r.Fl)((()=>{const{icons:n}=e;return void 0===n?null===t||void 0===t?void 0:t.mergedIconsRef.value:n})),h=(0,r.Fl)((()=>{const{componentOptions:n}=e;return void 0!==n?n:null===t||void 0===t?void 0:t.mergedComponentPropsRef.value})),p=(0,r.Fl)((()=>{const{clsPrefix:n}=e;return void 0!==n?n:null===t||void 0===t?void 0:t.mergedClsPrefixRef.value})),v=(0,r.Fl)((()=>{var n;const{rtl:r}=e;if(void 0===r)return null===t||void 0===t?void 0:t.mergedRtlRef.value;const i={};for(const e of r)i[e.name]=(0,o.Xl)(e),null===(n=e.peers)||void 0===n||n.forEach((e=>{e.name in i||(i[e.name]=(0,o.Xl)(e))}));return i})),m=(0,r.Fl)((()=>e.breakpoints||(null===t||void 0===t?void 0:t.mergedBreakpointsRef.value))),g=e.inlineThemeDisabled||(null===t||void 0===t?void 0:t.inlineThemeDisabled),b=e.preflightStyleDisabled||(null===t||void 0===t?void 0:t.preflightStyleDisabled),y=(0,r.Fl)((()=>{const{value:e}=n,{value:t}=l,r=t&&0!==Object.keys(t).length,o=null===e||void 0===e?void 0:e.name;return o?r?`${o}-${(0,s.Z)(JSON.stringify(l.value))}`:o:r?(0,s.Z)(JSON.stringify(l.value)):""}));return(0,r.JJ)(c.Y,{mergedThemeHashRef:y,mergedBreakpointsRef:m,mergedRtlRef:v,mergedIconsRef:f,mergedComponentPropsRef:h,mergedBorderedRef:d,mergedNamespaceRef:u,mergedClsPrefixRef:p,mergedLocaleRef:(0,r.Fl)((()=>{const{locale:n}=e;if(null!==n)return void 0===n?null===t||void 0===t?void 0:t.mergedLocaleRef.value:n})),mergedDateLocaleRef:(0,r.Fl)((()=>{const{dateLocale:n}=e;if(null!==n)return void 0===n?null===t||void 0===t?void 0:t.mergedDateLocaleRef.value:n})),mergedHljsRef:(0,r.Fl)((()=>{const{hljs:n}=e;return void 0===n?null===t||void 0===t?void 0:t.mergedHljsRef.value:n})),mergedKatexRef:(0,r.Fl)((()=>{const{katex:n}=e;return void 0===n?null===t||void 0===t?void 0:t.mergedKatexRef.value:n})),mergedThemeRef:n,mergedThemeOverridesRef:l,inlineThemeDisabled:g||!1,preflightStyleDisabled:b||!1}),{mergedClsPrefix:p,mergedBordered:d,mergedNamespace:u,mergedTheme:n,mergedThemeOverrides:l}},render(){var e,t,n,o;return this.abstract?null===(o=(n=this.$slots).default)||void 0===o?void 0:o.call(n):(0,r.h)(this.as||this.tag,{class:`${this.mergedClsPrefix||u.b}-config-provider`},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))}})},8090:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(1295);const o=(0,r.U)("n-config-provider")},2097:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(1295);const o=(0,r.U)("n-drawer-body");(0,r.U)("n-drawer")},3417:function(e,t,n){"use strict";n.d(t,{Z:function(){return St}});var r=n(3396),o=n(4870);const i=!1;var a=n(9420),s=n(8107),l=n(1295);const u=Object.assign(Object.assign({},s.Z.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),c=(0,l.U)("n-image"),d=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):null!==(t=e.threshold)&&void 0!==t?t:"0"}`,options:Object.assign(Object.assign({},e),{root:("string"===typeof n?document.querySelector(n):n)||document.documentElement})}},f=new WeakMap,h=new WeakMap,p=new WeakMap,v=(e,t,n)=>{if(!e)return()=>{};const r=d(t),{root:o}=r.options;let i;const a=f.get(o);let s,l;a?i=a:(i=new Map,f.set(o,i)),i.has(r.hash)?(l=i.get(r.hash),l[1].has(e)||(s=l[0],l[1].add(e),s.observe(e))):(s=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=h.get(e.target),n=p.get(e.target);t&&t(),n&&(n.value=!0)}}))}),r.options),s.observe(e),l=[s,new Set([e])],i.set(r.hash,l));let u=!1;const c=()=>{u||(h.delete(e),p.delete(e),u=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&i.delete(r.hash),i.size||f.delete(o))};return h.set(e,c),p.set(e,n),c};var m=n(5306),g=n(7139),b=n(9242),y=n(3542),_=n(3269),w=n(5638),S=n(5755),x=n(5805);function E(e,t,n,r){var o=-1,i=null==e?0:e.length;r&&i&&(n=e[++o]);while(++o{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},tt),{borderRadius:t,boxShadow:n,color:(0,nt.h$)(r,"rgba(0, 0, 0, .85)"),textColor:r})},ot=(0,s.j)({name:"Tooltip",common:Qe.Z,peers:{Popover:et.Z},self:rt});var it=ot;const at=Object.assign(Object.assign({},Je.Kd),s.Z.props);var st=(0,r.aZ)({name:"Tooltip",props:at,__popover__:!0,setup(e){const t=(0,s.Z)("Tooltip","-tooltip",void 0,it,e),n=(0,o.iH)(null),i={syncPosition(){n.value.syncPosition()},setShow(e){n.value.setShow(e)}};return Object.assign(Object.assign({},i),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:(0,r.Fl)((()=>t.value.self))})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return(0,r.h)(Je.ZP,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}});function lt(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const ut=(0,s.j)({name:"Image",common:Qe.Z,peers:{Tooltip:it},self:lt}),ct=(0,r.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),dt=(0,r.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),ft=(0,r.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"}));var ht=n(411),pt=n(7671),vt=n(419),mt=(0,ht.c)([(0,ht.c)("body >",[(0,ht.cB)("image-container","position: fixed;")]),(0,ht.cB)("image-preview-container","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n "),(0,ht.cB)("image-preview-overlay","\n z-index: -1;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0, 0, 0, .3);\n ",[(0,pt.h)()]),(0,ht.cB)("image-preview-toolbar","\n z-index: 1;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n border-radius: var(--n-toolbar-border-radius);\n height: 48px;\n bottom: 40px;\n padding: 0 12px;\n background: var(--n-toolbar-color);\n box-shadow: var(--n-toolbar-box-shadow);\n color: var(--n-toolbar-icon-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n ",[(0,ht.cB)("base-icon","\n padding: 0 8px;\n font-size: 28px;\n cursor: pointer;\n "),(0,pt.h)()]),(0,ht.cB)("image-preview-wrapper","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n pointer-events: none;\n ",[(0,vt.h)()]),(0,ht.cB)("image-preview","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: all;\n margin: auto;\n max-height: calc(100vh - 32px);\n max-width: calc(100vw - 32px);\n transition: transform .3s var(--n-bezier);\n "),(0,ht.cB)("image","\n display: inline-flex;\n max-height: 100%;\n max-width: 100%;\n ",[(0,ht.u4)("preview-disabled","\n cursor: pointer;\n "),(0,ht.c)("img","\n border-radius: inherit;\n ")])]);const gt=32;var bt=(0,r.aZ)({name:"ImagePreview",props:Object.assign(Object.assign({},u),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=(0,s.Z)("Image","-image",mt,ut,e,(0,o.Vh)(e,"clsPrefix"));let n=null;const i=(0,o.iH)(null),l=(0,o.iH)(null),u=(0,o.iH)(void 0),d=(0,o.iH)(!1),f=(0,o.iH)(!1),{localeRef:h}=(0,qe.Z)("Image");function p(){const{value:e}=l;if(!n||!e)return;const{style:t}=e,r=n.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;t.transformOrigin=`${o}px ${i}px`}function v(t){var n,r;switch(t.key){case" ":t.preventDefault();break;case"ArrowLeft":null===(n=e.onPrev)||void 0===n||n.call(e);break;case"ArrowRight":null===(r=e.onNext)||void 0===r||r.call(e);break;case"Escape":Y();break}}(0,r.YP)(d,(e=>{e?(0,S.on)("keydown",document,v):(0,S.S)("keydown",document,v)})),(0,r.Jd)((()=>{(0,S.S)("keydown",document,v)}));let m=0,b=0,y=0,w=0,E=0,C=0,R=0,T=0,A=!1;function O(e){const{clientX:t,clientY:n}=e;y=t-m,w=n-b,(0,x.J)(q)}function k(e){const{mouseUpClientX:t,mouseUpClientY:n,mouseDownClientX:r,mouseDownClientY:o}=e,i=r-t,a=o-n,s="vertical"+(a>0?"Top":"Bottom"),l="horizontal"+(i>0?"Left":"Right");return{moveVerticalDirection:s,moveHorizontalDirection:l,deltaHorizontal:i,deltaVertical:a}}function L(e){const{value:t}=i;if(!t)return{offsetX:0,offsetY:0};const n=t.getBoundingClientRect(),{moveVerticalDirection:r,moveHorizontalDirection:o,deltaHorizontal:a,deltaVertical:s}=e||{};let l=0,u=0;return l=n.width<=window.innerWidth?0:n.left>0?(n.width-window.innerWidth)/2:n.right0?(n.height-window.innerHeight)/2:n.bottom.5){const e=F;j-=1,F=Math.max(.5,Math.pow(D,j));const t=e-F;q(!1);const n=L();F+=t,q(!1),F-=t,y=n.offsetX,w=n.offsetY,q()}}function q(e=!0){const{value:t}=i;if(!t)return;const{style:n}=t,r=(0,g.j5)(null===M||void 0===M?void 0:M.previewedImgPropsRef.value.style);let o="";if("string"===typeof r)o=r+";";else for(const i in r)o+=`${Ue(i)}: ${r[i]};`;const a=`transform-origin: center; transform: translateX(${y}px) translateY(${w}px) rotate(${z}deg) scale(${F});`;n.cssText=A?o+"cursor: grabbing; transition: none;"+a:o+"cursor: grab;"+a+(e?"":"transition: none;"),e||t.offsetHeight}function Y(){d.value=!d.value,f.value=!0}function X(){F=W(),j=Math.ceil(Math.log(F)/Math.log(D)),y=0,w=0,q()}const J={setPreviewSrc:e=>{u.value=e},setThumbnailEl:e=>{n=e},toggleShow:Y};function Q(n,o){if(e.showToolbarTooltip){const{value:e}=t;return(0,r.h)(st,{to:!1,theme:e.peers.Tooltip,themeOverrides:e.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>h.value[o],trigger:()=>n})}return n}const ee=(0,r.Fl)((()=>{const{common:{cubicBezierEaseInOut:e},self:{toolbarIconColor:n,toolbarBorderRadius:r,toolbarBoxShadow:o,toolbarColor:i}}=t.value;return{"--n-bezier":e,"--n-toolbar-icon-color":n,"--n-toolbar-color":i,"--n-toolbar-border-radius":r,"--n-toolbar-box-shadow":o}})),{inlineThemeDisabled:te}=(0,a.Z)(),ne=te?(0,Ye.F)("image-preview",void 0,ee,e):void 0;return Object.assign({previewRef:i,previewWrapperRef:l,previewSrc:u,show:d,appear:(0,_.Z)(),displayed:f,previewedImgProps:null===M||void 0===M?void 0:M.previewedImgPropsRef,handleWheel(e){e.preventDefault()},handlePreviewMousedown:I,handlePreviewDblclick:B,syncTransformOrigin:p,handleAfterLeave:()=>{N(),z=0,f.value=!1},handleDragStart:e=>{var t,n;null===(n=null===M||void 0===M?void 0:(t=M.previewedImgPropsRef.value).onDragstart)||void 0===n||n.call(t,e),e.preventDefault()},zoomIn:G,zoomOut:K,rotateCounterclockwise:Z,rotateClockwise:H,handleSwitchPrev:$,handleSwitchNext:U,withTooltip:Q,resizeToOrignalImageSize:X,cssVars:te?void 0:ee,themeClass:null===ne||void 0===ne?void 0:ne.themeClass,onRender:null===ne||void 0===ne?void 0:ne.onRender},J)},render(){var e,t;const{clsPrefix:n}=this;return(0,r.h)(r.HY,null,null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e),(0,r.h)(w.Z,{show:this.show},{default:()=>{var e;return this.show||this.displayed?(null===(e=this.onRender)||void 0===e||e.call(this),(0,r.wy)((0,r.h)("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},(0,r.h)(b.uT,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?(0,r.h)("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?(0,r.h)(b.uT,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:e}=this;return(0,r.h)("div",{class:`${n}-image-preview-toolbar`},this.onPrev?(0,r.h)(r.HY,null,e((0,r.h)(Xe.Z,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>ct}),"tipPrevious"),e((0,r.h)(Xe.Z,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>dt}),"tipNext")):null,e((0,r.h)(Xe.Z,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>(0,r.h)(He,null)}),"tipCounterclockwise"),e((0,r.h)(Xe.Z,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>(0,r.h)(Ve,null)}),"tipClockwise"),e((0,r.h)(Xe.Z,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>(0,r.h)(We,null)}),"tipOriginalSize"),e((0,r.h)(Xe.Z,{clsPrefix:n,onClick:this.zoomOut},{default:()=>(0,r.h)(Ge,null)}),"tipZoomOut"),e((0,r.h)(Xe.Z,{clsPrefix:n,onClick:this.zoomIn},{default:()=>(0,r.h)(Ke,null)}),"tipZoomIn"),e((0,r.h)(Xe.Z,{clsPrefix:n,onClick:this.toggleShow},{default:()=>ft}),"tipClose"))}}):null,(0,r.h)(b.uT,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:e={}}=this;return(0,r.wy)((0,r.h)("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},(0,r.h)("img",Object.assign({},e,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,e.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[b.F8,this.show]])}})),[[y.Z,{enabled:this.show}]])):null}}))}});const yt=(0,l.U)("n-image-group"),_t=u;(0,r.aZ)({name:"ImageGroup",props:_t,setup(e){let t;const{mergedClsPrefixRef:n}=(0,a.Z)(e),i=`c${(0,m.Mc)()}`,s=(0,r.FN)(),l=e=>{var n;t=e,null===(n=c.value)||void 0===n||n.setPreviewSrc(e)};function u(e){if(!(null===s||void 0===s?void 0:s.proxy))return;const n=s.proxy.$el.parentElement,r=n.querySelectorAll(`[data-group-id=${i}]:not([data-error=true])`);if(!r.length)return;const o=Array.from(r).findIndex((e=>e.dataset.previewSrc===t));l(~o?r[(o+e+r.length)%r.length].dataset.previewSrc:r[0].dataset.previewSrc)}(0,r.JJ)(yt,{mergedClsPrefixRef:n,setPreviewSrc:l,setThumbnailEl:e=>{var t;null===(t=c.value)||void 0===t||t.setThumbnailEl(e)},toggleShow:()=>{var e;null===(e=c.value)||void 0===e||e.toggleShow()},groupId:i});const c=(0,o.iH)(null);return{mergedClsPrefix:n,previewInstRef:c,next:()=>u(1),prev:()=>u(-1)}},render(){return(0,r.h)(bt,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}});const wt=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},u);var St=(0,r.aZ)({name:"Image",props:wt,inheritAttrs:!1,setup(e){const t=(0,o.iH)(null),n=(0,o.iH)(!1),s=(0,o.iH)(null),l=(0,r.f3)(yt,null),{mergedClsPrefixRef:u}=l||(0,a.Z)(e),d={click:()=>{if(e.previewDisabled||n.value)return;const r=e.previewSrc||e.src;if(l)return l.setPreviewSrc(r),l.setThumbnailEl(t.value),void l.toggleShow();const{value:o}=s;o&&(o.setPreviewSrc(r),o.setThumbnailEl(t.value),o.toggleShow())}},f=(0,o.iH)(!e.lazy);(0,r.bv)((()=>{var e;null===(e=t.value)||void 0===e||e.setAttribute("data-group-id",(null===l||void 0===l?void 0:l.groupId)||"")})),(0,r.bv)((()=>{if(i)return;let n;const o=(0,r.m0)((()=>{null===n||void 0===n||n(),n=void 0,e.lazy&&(n=v(t.value,e.intersectionObserverOptions,f))}));(0,r.Jd)((()=>{o(),null===n||void 0===n||n()}))})),(0,r.m0)((()=>{var t;e.src,null===(t=e.imgProps)||void 0===t||t.src,n.value=!1}));const h=(0,o.iH)(!1);return(0,r.JJ)(c,{previewedImgPropsRef:(0,o.Vh)(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:u,groupId:null===l||void 0===l?void 0:l.groupId,previewInstRef:s,imageRef:t,showError:n,shouldStartLoading:f,loaded:h,mergedOnClick:t=>{var n,r;d.click(),null===(r=null===(n=e.imgProps)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,t)},mergedOnError:t=>{if(!f.value)return;n.value=!0;const{onError:r,imgProps:{onError:o}={}}=e;null===r||void 0===r||r(t),null===o||void 0===o||o(t)},mergedOnLoad:t=>{const{onLoad:n,imgProps:{onLoad:r}={}}=e;null===n||void 0===n||n(t),null===r||void 0===r||r(t),h.value=!0}},d)},render(){var e,t;const{mergedClsPrefix:n,imgProps:o={},loaded:a,$attrs:s,lazy:l}=this,u=null===(t=(e=this.$slots).placeholder)||void 0===t?void 0:t.call(e),c=this.src||o.src||"",d=(0,r.h)("img",Object.assign(Object.assign({},o),{ref:"imageRef",width:this.width||o.width,height:this.height||o.height,src:i?c:this.showError?this.fallbackSrc:this.shouldStartLoading?c:void 0,alt:this.alt||o.alt,"aria-label":this.alt||o.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:l?"lazy":"eager",style:[o.style||"",u&&!a?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return(0,r.h)("div",Object.assign({},s,{role:"none",class:[s.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?d:(0,r.h)(bt,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>d}),!a&&u)}})},3424:function(e,t){"use strict";const n={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}};t["Z"]=n},6002:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1295);const o=(0,r.U)("n-modal-body");(0,r.U)("n-modal")},5773:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Ir},Kd:function(){return Pr}});var r=n(3396),o=n(4870),i=n(8385),a=n(5600),s=n(3269),l=n(7477),u=n(4498),c=n(6307),d=n(3542),f=n(7624),h=n(8089),p=n(9940),v=n(8448);function m(e,t="default",n){const r=e[t];if(!r)return(0,v.ZK)("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=(0,p.x)(r(n));return 1===o.length?o[0]:((0,v.ZK)("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function g(e,t=[],n){const r={};return t.forEach((t=>{r[t]=e[t]})),Object.assign(r,n)}var b=n(8107),y=(n(7658),n(9242)),_=n(5306),w=n(2503),S=n(5755);function x(e){return e instanceof HTMLElement}function E(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(x(n)&&(R(n)||C(n)))return!0}return!1}function R(e){if(!T(e))return!1;try{e.focus({preventScroll:!0})}catch(t){}return document.activeElement===e}function T(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}function A(e){return"string"===typeof e?document.querySelector(e):e()}let O=[];const k=(0,r.aZ)({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=(0,_.Mc)(),n=(0,o.iH)(null),i=(0,o.iH)(null);let a=!1,s=!1;const l="undefined"===typeof document?null:document.activeElement;function u(){const e=O[O.length-1];return e===t}function c(t){var n;"Escape"===t.code&&u()&&(null===(n=e.onEsc)||void 0===n||n.call(e,t))}function d(e){if(!s&&u()){const t=f();if(null===t)return;if(t.contains((0,w.p)(e)))return;v("first")}}function f(){const e=n.value;if(null===e)return null;let t=e;while(1){if(t=t.nextSibling,null===t)break;if(t instanceof Element&&"DIV"===t.tagName)break}return t}function h(){var n;if(!e.disabled){if(O.push(t),e.autoFocus){const{initialFocusTo:t}=e;void 0===t?v("first"):null===(n=A(t))||void 0===n||n.focus({preventScroll:!0})}a=!0,document.addEventListener("focus",d,!0)}}function p(){var n;if(e.disabled)return;if(document.removeEventListener("focus",d,!0),O=O.filter((e=>e!==t)),u())return;const{finalFocusTo:r}=e;void 0!==r?null===(n=A(r))||void 0===n||n.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(s=!0,l.focus({preventScroll:!0}),s=!1)}function v(t){if(u()&&e.active){const e=n.value,r=i.value;if(null!==e&&null!==r){const n=f();if(null==n||n===r)return s=!0,e.focus({preventScroll:!0}),void(s=!1);s=!0;const o="first"===t?E(n):C(n);s=!1,o||(s=!0,e.focus({preventScroll:!0}),s=!1)}}}function m(e){if(s)return;const t=f();null!==t&&(null!==e.relatedTarget&&t.contains(e.relatedTarget)?v("last"):v("first"))}function g(e){s||(null!==e.relatedTarget&&e.relatedTarget===n.value?v("last"):v("first"))}return(0,r.bv)((()=>{(0,r.YP)((()=>e.active),(e=>{e?(h(),(0,S.on)("keydown",document,c)):((0,S.S)("keydown",document,c),a&&p())}),{immediate:!0})})),(0,r.Jd)((()=>{(0,S.S)("keydown",document,c),a&&p()})),{focusableStartRef:n,focusableEndRef:i,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(void 0===e)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return(0,r.h)(r.HY,null,[(0,r.h)("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),(0,r.h)("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});var L=n(1808),P=n(5698);const M="@@mmoContext",I={mounted(e,{value:t}){e[M]={handler:void 0},"function"===typeof t&&(e[M].handler=t,(0,S.on)("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[M];"function"===typeof t?n.handler?n.handler!==t&&((0,S.S)("mousemoveoutside",e,n.handler),n.handler=t,(0,S.on)("mousemoveoutside",e,t)):(e[M].handler=t,(0,S.on)("mousemoveoutside",e,t)):n.handler&&((0,S.S)("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[M];t&&(0,S.S)("mousemoveoutside",e,t),e[M].handler=void 0}};var B=I,D=n(3091),j=n(2097),F=n(6002),z=n(9420),N=n(6455);let $;function U(){return void 0===$&&($=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),$}const Z=/^(\d|\.)+$/,H=/(\d|\.)+/;function V(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if("number"===typeof e){const r=(e+n)*t;return 0===r?"0":`${r}px`}if("string"===typeof e){if(Z.test(e)){const o=(Number(e)+n)*t;return r?0===o?"0":`${o}px`:`${o}`}{const r=H.exec(e);return r?e.replace(H,String((Number(r[0])+n)*t)):e}}return e}var W=n(4092),G=n(8861),K=n(8377),q=n(9345),Y=n(2157),X=n(9350),J="__lodash_hash_undefined__";function Q(e){return this.__data__.set(e,J),this}var ee=Q;function te(e){return this.__data__.has(e)}var ne=te;function re(e){var t=-1,n=null==e?0:e.length;this.__data__=new X.Z;while(++ts))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,h=n&ce?new oe:void 0;i.set(e,t),i.set(t,e);while(++d",[(0,yr.cB)("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),(0,yr.u4)("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[(0,yr.u4)("scrollable",[(0,yr.u4)("show-header-or-footer","padding: var(--n-padding);")])]),(0,yr.cE)("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),(0,yr.cE)("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),(0,yr.cM)("scrollable, show-header-or-footer",[(0,yr.cE)("content","\n padding: var(--n-padding);\n ")])]),(0,yr.cB)("popover-shared","\n transform-origin: inherit;\n ",[(0,yr.cB)("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[(0,yr.cB)("popover-arrow",`\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(${wr});\n height: calc(${wr});\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n `)]),(0,yr.c)("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),(0,yr.c)("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),(0,yr.c)("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),(0,yr.c)("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),Er("top-start",`\n top: calc(${wr} / -2);\n left: calc(${xr("top-start")} - var(--v-offset-left));\n `),Er("top",`\n top: calc(${wr} / -2);\n transform: translateX(calc(${wr} / -2)) rotate(45deg);\n left: 50%;\n `),Er("top-end",`\n top: calc(${wr} / -2);\n right: calc(${xr("top-end")} + var(--v-offset-left));\n `),Er("bottom-start",`\n bottom: calc(${wr} / -2);\n left: calc(${xr("bottom-start")} - var(--v-offset-left));\n `),Er("bottom",`\n bottom: calc(${wr} / -2);\n transform: translateX(calc(${wr} / -2)) rotate(45deg);\n left: 50%;\n `),Er("bottom-end",`\n bottom: calc(${wr} / -2);\n right: calc(${xr("bottom-end")} + var(--v-offset-left));\n `),Er("left-start",`\n left: calc(${wr} / -2);\n top: calc(${xr("left-start")} - var(--v-offset-top));\n `),Er("left",`\n left: calc(${wr} / -2);\n transform: translateY(calc(${wr} / -2)) rotate(45deg);\n top: 50%;\n `),Er("left-end",`\n left: calc(${wr} / -2);\n bottom: calc(${xr("left-end")} + var(--v-offset-top));\n `),Er("right-start",`\n right: calc(${wr} / -2);\n top: calc(${xr("right-start")} - var(--v-offset-top));\n `),Er("right",`\n right: calc(${wr} / -2);\n transform: translateY(calc(${wr} / -2)) rotate(45deg);\n top: 50%;\n `),Er("right-end",`\n right: calc(${wr} / -2);\n bottom: calc(${xr("right-end")} + var(--v-offset-top));\n `),...br({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},((e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map((e=>{const o="end"===e.split("-")[1],i=`var(--v-target-${r}, 0px)`,a=`calc((${i} - ${wr}) / 2)`,s=xr(e);return(0,yr.c)(`[v-placement="${e}"] >`,[(0,yr.cB)("popover-shared",[(0,yr.cM)("center-arrow",[(0,yr.cB)("popover-arrow",`${t}: calc(max(${a}, ${s}) ${o?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])}))}))]);function xr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Er(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return(0,yr.c)(`[v-placement="${e}"] >`,[(0,yr.cB)("popover-shared",`\n margin-${_r[n]}: var(--n-space);\n `,[(0,yr.cM)("show-arrow",`\n margin-${_r[n]}: var(--n-space-arrow);\n `),(0,yr.cM)("overlap","\n margin: 0;\n "),(0,yr.kE)("popover-arrow-wrapper",`\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ${n}: 100%;\n ${_r[n]}: auto;\n ${r}\n `,[(0,yr.cB)("popover-arrow",t)])])])}const Cr=Object.assign(Object.assign({},b.Z.props),{to:f.n.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),Rr=({arrowStyle:e,clsPrefix:t})=>(0,r.h)("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},(0,r.h)("div",{class:`${t}-popover-arrow`,style:e}));var Tr=(0,r.aZ)({name:"PopoverBody",inheritAttrs:!1,props:Cr,setup(e,{slots:t,attrs:n}){const{namespaceRef:i,mergedClsPrefixRef:a,inlineThemeDisabled:s}=(0,z.Z)(e),l=(0,b.Z)("Popover","-popover",Sr,G.Z,e,a),u=(0,o.iH)(null),c=(0,r.f3)("NPopover"),d=(0,o.iH)(null),h=(0,o.iH)(e.show),p=(0,o.iH)(!1);(0,r.m0)((()=>{const{show:t}=e;!t||U()||e.internalDeactivateImmediately||(p.value=!0)}));const v=(0,r.Fl)((()=>{const{trigger:t,onClickoutside:n}=e,r=[],{positionManuallyRef:{value:o}}=c;return o||("click"!==t||n||r.push([P.Z,R,void 0,{capture:!0}]),"hover"===t&&r.push([B,C])),n&&r.push([P.Z,R,void 0,{capture:!0}]),("show"===e.displayDirective||e.animated&&p.value)&&r.push([y.F8,e.show]),r})),m=(0,r.Fl)((()=>{const t="trigger"===e.width?void 0:V(e.width),n=[];t&&n.push({width:t});const{maxWidth:r,minWidth:o}=e;return r&&n.push({maxWidth:V(r)}),o&&n.push({maxWidth:V(o)}),s||n.push(g.value),n})),g=(0,r.Fl)((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{space:r,spaceArrow:o,padding:i,fontSize:a,textColor:s,dividerColor:u,color:c,boxShadow:d,borderRadius:f,arrowHeight:h,arrowOffset:p,arrowOffsetVertical:v}}=l.value;return{"--n-box-shadow":d,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":n,"--n-font-size":a,"--n-text-color":s,"--n-color":c,"--n-divider-color":u,"--n-border-radius":f,"--n-arrow-height":h,"--n-arrow-offset":p,"--n-arrow-offset-vertical":v,"--n-padding":i,"--n-space":r,"--n-space-arrow":o}})),_=s?(0,N.F)("popover",void 0,g,e):void 0;function S(){var e;null===(e=u.value)||void 0===e||e.syncPosition()}function x(t){"hover"===e.trigger&&e.keepAliveOnHover&&e.show&&c.handleMouseEnter(t)}function E(t){"hover"===e.trigger&&e.keepAliveOnHover&&c.handleMouseLeave(t)}function C(t){"hover"!==e.trigger||T().contains((0,w.p)(t))||c.handleMouseMoveOutside(t)}function R(t){("click"===e.trigger&&!T().contains((0,w.p)(t))||e.onClickoutside)&&c.handleClickOutside(t)}function T(){return c.getTriggerElement()}function A(){null===_||void 0===_||_.onRender();const o="show"===e.displayDirective||e.show||e.animated&&p.value;if(!o)return null;let i;const s=c.internalRenderBodyRef.value,{value:l}=a;if(s)i=s([`${l}-popover-shared`,null===_||void 0===_?void 0:_.themeClass.value,e.overlap&&`${l}-popover-shared--overlap`,e.showArrow&&`${l}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${l}-popover-shared--center-arrow`],d,m.value,x,E);else{const{value:o}=c.extraClassRef,{internalTrapFocus:a}=e,s=!(0,W.aD)(t.header)||!(0,W.aD)(t.footer),u=()=>{var n;const o=s?(0,r.h)(r.HY,null,(0,W.K9)(t.header,(t=>t?(0,r.h)("div",{class:`${l}-popover__header`,style:e.headerStyle},t):null)),(0,W.K9)(t.default,(n=>n?(0,r.h)("div",{class:`${l}-popover__content`,style:e.contentStyle},t):null)),(0,W.K9)(t.footer,(t=>t?(0,r.h)("div",{class:`${l}-popover__footer`,style:e.footerStyle},t):null))):e.scrollable?null===(n=t.default)||void 0===n?void 0:n.call(t):(0,r.h)("div",{class:`${l}-popover__content`,style:e.contentStyle},t),i=e.scrollable?(0,r.h)(D.u,{contentClass:s?void 0:`${l}-popover__content`,contentStyle:s?void 0:e.contentStyle},{default:()=>o}):o,a=e.showArrow?Rr({arrowStyle:e.arrowStyle,clsPrefix:l}):null;return[i,a]};i=(0,r.h)("div",(0,r.dG)({class:[`${l}-popover`,`${l}-popover-shared`,null===_||void 0===_?void 0:_.themeClass.value,o.map((e=>`${l}-${e}`)),{[`${l}-popover--scrollable`]:e.scrollable,[`${l}-popover--show-header-or-footer`]:s,[`${l}-popover--raw`]:e.raw,[`${l}-popover-shared--overlap`]:e.overlap,[`${l}-popover-shared--show-arrow`]:e.showArrow,[`${l}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:d,style:m.value,onKeydown:c.handleKeydown,onMouseenter:x,onMouseleave:E},n),a?(0,r.h)(k,{active:e.show,autoFocus:!0},{default:u}):u())}return(0,r.wy)(i,v.value)}return c.setBodyInstance({syncPosition:S}),(0,r.Jd)((()=>{c.setBodyInstance(null)})),(0,r.YP)((0,o.Vh)(e,"show"),(t=>{e.animated||(h.value=!!t)})),(0,r.JJ)(K.c,d),(0,r.JJ)(j.H,null),(0,r.JJ)(F.Z,null),{displayed:p,namespace:i,isMounted:c.isMountedRef,zIndex:c.zIndexRef,followerRef:u,adjustedTo:(0,f.n)(e),followerEnabled:h,renderContentNode:A}},render(){return(0,r.h)(L.Z,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:"trigger"===this.width?"target":void 0,teleportDisabled:this.adjustedTo===f.n.tdkey},{default:()=>this.animated?(0,r.h)(y.uT,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;null===(e=this.internalOnAfterLeave)||void 0===e||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}});const Ar=Object.keys(Cr),Or={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function kr(e,t,n){Or[t].forEach((t=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[t],o=n[t];e.props[t]=r?(...e)=>{r(...e),o(...e)}:o}))}const Lr=(0,r.Uk)("").type,Pr={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:f.n.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Mr=Object.assign(Object.assign(Object.assign({},b.Z.props),Pr),{internalOnAfterLeave:Function,internalRenderBody:Function});var Ir=(0,r.aZ)({name:"Popover",inheritAttrs:!1,props:Mr,__popover__:!0,setup(e){const t=(0,s.Z)(),n=(0,o.iH)(null),i=(0,r.Fl)((()=>e.show)),a=(0,o.iH)(e.defaultShow),d=(0,l.Z)(i,a),f=(0,u.Z)((()=>!e.disabled&&d.value)),p=()=>{if(e.disabled)return!0;const{getDisabled:t}=e;return!!(null===t||void 0===t?void 0:t())},v=()=>!p()&&d.value,m=(0,c.Z)(e,["arrow","showArrow"]),g=(0,r.Fl)((()=>!e.overlap&&m.value));let b=null;const y=(0,o.iH)(null),_=(0,o.iH)(null),w=(0,u.Z)((()=>void 0!==e.x&&void 0!==e.y));function S(t){const{"onUpdate:show":n,onUpdateShow:r,onShow:o,onHide:i}=e;a.value=t,n&&(0,h.R)(n,t),r&&(0,h.R)(r,t),t&&o&&(0,h.R)(o,!0),t&&i&&(0,h.R)(i,!1)}function x(){b&&b.syncPosition()}function E(){const{value:e}=y;e&&(window.clearTimeout(e),y.value=null)}function C(){const{value:e}=_;e&&(window.clearTimeout(e),_.value=null)}function R(){const t=p();if("focus"===e.trigger&&!t){if(v())return;S(!0)}}function T(){const t=p();if("focus"===e.trigger&&!t){if(!v())return;S(!1)}}function A(){const t=p();if("hover"===e.trigger&&!t){if(C(),null!==y.value)return;if(v())return;const t=()=>{S(!0),y.value=null},{delay:n}=e;0===n?t():y.value=window.setTimeout(t,n)}}function O(){const t=p();if("hover"===e.trigger&&!t){if(E(),null!==_.value)return;if(!v())return;const t=()=>{S(!1),_.value=null},{duration:n}=e;0===n?t():_.value=window.setTimeout(t,n)}}function k(){O()}function L(t){var n;v()&&("click"===e.trigger&&(E(),C(),S(!1)),null===(n=e.onClickoutside)||void 0===n||n.call(e,t))}function P(){if("click"===e.trigger&&!p()){E(),C();const e=!v();S(e)}}function M(t){e.internalTrapFocus&&"Escape"===t.key&&(E(),C(),S(!1))}function I(e){a.value=e}function B(){var e;return null===(e=n.value)||void 0===e?void 0:e.targetRef}function D(e){b=e}return(0,r.JJ)("NPopover",{getTriggerElement:B,handleKeydown:M,handleMouseEnter:A,handleMouseLeave:O,handleClickOutside:L,handleMouseMoveOutside:k,setBodyInstance:D,positionManuallyRef:w,isMountedRef:t,zIndexRef:(0,o.Vh)(e,"zIndex"),extraClassRef:(0,o.Vh)(e,"internalExtraClass"),internalRenderBodyRef:(0,o.Vh)(e,"internalRenderBody")}),(0,r.m0)((()=>{d.value&&p()&&S(!1)})),{binderInstRef:n,positionManually:w,mergedShowConsideringDisabledProp:f,uncontrolledShow:a,mergedShowArrow:g,getMergedShow:v,setShow:I,handleClick:P,handleMouseEnter:A,handleMouseLeave:O,handleFocus:R,handleBlur:T,syncPosition:x}},render(){var e;const{positionManually:t,$slots:n}=this;let o,s=!1;if(!t&&(o=n.activator?m(n,"activator"):m(n,"trigger"),o)){o=(0,r.Ho)(o),o=o.type===Lr?(0,r.h)("span",[o]):o;const n={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(null===(e=o.type)||void 0===e?void 0:e.__popover__)s=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[n,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[n];else{const{internalInheritedEventHandlers:e}=this,r=[n,...e],i={onBlur:e=>{r.forEach((t=>{t.onBlur(e)}))},onFocus:e=>{r.forEach((t=>{t.onFocus(e)}))},onClick:e=>{r.forEach((t=>{t.onClick(e)}))},onMouseenter:e=>{r.forEach((t=>{t.onMouseenter(e)}))},onMouseleave:e=>{r.forEach((t=>{t.onMouseleave(e)}))}};kr(o,e?"nested":t?"manual":this.trigger,i)}}return(0,r.h)(i.Z,{ref:"binderInstRef",syncTarget:!s,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const e=this.getMergedShow();return[this.internalTrapFocus&&e?(0,r.wy)((0,r.h)("div",{style:{position:"fixed",inset:0}}),[[d.Z,{enabled:e,zIndex:this.zIndex}]]):null,t?null:(0,r.h)(a.Z,null,{default:()=>o}),(0,r.h)(Tr,g(this.$props,Ar,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:e})),{default:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)},header:()=>{var e,t;return null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)},footer:()=>{var e,t;return null===(t=(e=this.$slots).footer)||void 0===t?void 0:t.call(e)}})]}})}})},8377:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(1295);const o=(0,r.U)("n-popover-body")},8861:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(8308),o={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};const i=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:s}=e;return Object.assign(Object.assign({},o),{fontSize:a,borderRadius:i,color:n,dividerColor:s,textColor:r,boxShadow:t})},a={name:"Popover",common:r.Z,self:i};var s=a},2979:function(e,t,n){"use strict";n.d(t,{Z:function(){return en}});n(7658);var r=n(3396),o=n(4870),i=n(9242),a=n(2503);function s(e,t){let{target:n}=e;while(n){if(n.dataset&&void 0!==n.dataset[t])return!0;n=n.parentElement}return!1}n(1703);function l(e){return Array.isArray(e)?e:[e]}const u={STOP:"STOP"};function c(e,t){const n=t(e);void 0!==e.children&&n!==u.STOP&&e.children.forEach((e=>c(e,t)))}function d(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?e=>{e.isLeaf||(r.push(e.key),i(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),i(e.children))};function i(e){e.forEach(o)}return i(e),r}function f(e,t){const{isLeaf:n}=e;return void 0!==n?n:!t(e)}function h(e){return e.children}function p(e){return e.key}function v(){return!1}function m(e,t){const{isLeaf:n}=e;return!(!1===n&&!Array.isArray(t(e)))}function g(e){return!0===e.disabled}function b(e,t){return!1===e.isLeaf&&!Array.isArray(t(e))}function y(e){var t;return void 0===e||null===e?[]:Array.isArray(e)?e:null!==(t=e.checkedKeys)&&void 0!==t?t:[]}function _(e){var t;return void 0===e||null===e||Array.isArray(e)?[]:null!==(t=e.indeterminateKeys)&&void 0!==t?t:[]}function w(e,t){const n=new Set(e);return t.forEach((e=>{n.has(e)||n.add(e)})),Array.from(n)}function S(e,t){const n=new Set(e);return t.forEach((e=>{n.has(e)&&n.delete(e)})),Array.from(n)}function x(e){return"group"===(null===e||void 0===e?void 0:e.type)}function E(e){const t=new Map;return e.forEach(((e,n)=>{t.set(e.key,n)})),e=>{var n;return null!==(n=t.get(e))&&void 0!==n?n:null}}class C extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function R(e,t,n,r){return k(t.concat(e),n,r,!1)}function T(e,t){const n=new Set;return e.forEach((e=>{const r=t.treeNodeMap.get(e);if(void 0!==r){let e=r.parent;while(null!==e){if(e.disabled)break;if(n.has(e.key))break;n.add(e.key),e=e.parent}}})),n}function A(e,t,n,r){const o=k(t,n,r,!1),i=k(e,n,r,!0),a=T(e,n),s=[];return o.forEach((e=>{(i.has(e)||a.has(e))&&s.push(e)})),s.forEach((e=>o.delete(e))),o}function O(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:u}=e;if(!a)return void 0!==r?{checkedKeys:w(n,r),indeterminateKeys:Array.from(i)}:void 0!==o?{checkedKeys:S(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let d;d=void 0!==o?A(o,n,t,u):void 0!==r?R(r,n,t,u):k(n,t,u,!1);const f="parent"===l,h="child"===l||s,p=d,v=new Set,m=Math.max.apply(null,Array.from(c.keys()));for(let g=m;g>=0;g-=1){const e=0===g,t=c.get(g);for(const n of t){if(n.isLeaf)continue;const{key:t,shallowLoaded:r}=n;if(h&&r&&n.children.forEach((e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&p.has(e.key)&&p.delete(e.key)})),n.disabled||!r)continue;let o=!0,i=!1,a=!0;for(const e of n.children){const t=e.key;if(!e.disabled)if(a&&(a=!1),p.has(t))i=!0;else{if(v.has(t)){i=!0,o=!1;break}if(o=!1,i)break}}o&&!a?(f&&n.children.forEach((e=>{!e.disabled&&p.has(e.key)&&p.delete(e.key)})),p.add(t)):i&&v.add(t),e&&h&&p.has(t)&&p.delete(t)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(v)}}function k(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach((e=>{const t=o.get(e);void 0!==t&&c(t,(e=>{if(e.disabled)return u.STOP;const{key:t}=e;if(!a.has(t)&&(a.add(t),s.add(t),b(e.rawNode,i))){if(r)return u.STOP;if(!n)throw new C}}))})),s}function L(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=null===e||void 0===e?null:null!==(o=i.get(e))&&void 0!==o?o:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(null===a||void 0===a?void 0:a.ignored)return s.treeNode=null,s;while(a)a.ignored||!t&&a.isGroup||s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),n||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map((e=>e.key)),s}function P(e){if(0===e.length)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function M(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function I(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o="prev"===t?B:M,i={reverse:"prev"===t};let a=!1,s=null;function l(t){if(null!==t){if(t===e)if(a){if(!e.disabled&&!e.isGroup)return void(s=e)}else a=!0;else if((!t.disabled||r)&&!t.ignored&&!t.isGroup)return void(s=t);if(t.isGroup){const e=j(t,i);null!==e?s=e:l(o(t,n))}else{const e=o(t,!1);if(null!==e)l(e);else{const e=D(t);(null===e||void 0===e?void 0:e.isGroup)?l(o(e,n)):n&&l(o(t,!0))}}}}return l(e),s}function B(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:0===o?null:n[o-1]}function D(e){return e.parent}function j(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:e}=r,o=n?e-1:0,i=n?-1:e,a=n?-1:1;for(let n=o;n!==i;n+=a){const e=r[n];if(!e.disabled&&!e.ignored){if(!e.isGroup)return e;{const n=j(e,t);if(null!==n)return n}}}}return null}const F={getChild(){return this.ignored?null:j(this)},getParent(){const{parent:e}=this;return(null===e||void 0===e?void 0:e.isGroup)?e.getParent():e},getNext(e={}){return I(this,"next",e)},getPrev(e={}){return I(this,"prev",e)}};function z(e,t){const n=t?new Set(t):void 0,r=[];function o(e){e.forEach((e=>{r.push(e),e.isLeaf||!e.children||e.ignored||(e.isGroup||void 0===n||n.has(e.key))&&o(e.children)}))}return o(e),r}function N(e,t){const n=e.key;while(t){if(t.key===n)return!0;t=t.parent}return!1}function $(e,t,n,r,o,i=null,a=0){const s=[];return e.forEach(((l,u)=>{var c;const d=Object.create(r);if(d.rawNode=l,d.siblings=s,d.level=a,d.index=u,d.isFirstChild=0===u,d.isLastChild=u+1===e.length,d.parent=i,!d.ignored){const e=o(l);Array.isArray(e)&&(d.children=$(e,t,n,r,o,d,a+1))}s.push(d),t.set(d.key,d),n.has(a)||n.set(a,[]),null===(c=n.get(a))||void 0===c||c.push(d)})),s}function U(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=g,getIgnored:a=v,getIsGroup:s=x,getKey:u=p}=t,c=null!==(n=t.getChildren)&&void 0!==n?n:h,b=t.ignoreEmptyChildren?e=>{const t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,w=Object.assign({get key(){return u(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return f(this.rawNode,b)},get shallowLoaded(){return m(this.rawNode,b)},get ignored(){return a(this.rawNode)},contains(e){return N(this,e)}},F),S=$(e,r,o,w,b);function E(e){if(null===e||void 0===e)return null;const t=r.get(e);return!t||t.isGroup||t.ignored?null:t}function C(e){if(null===e||void 0===e)return null;const t=r.get(e);return t&&!t.ignored?t:null}function R(e,t){const n=C(e);return n?n.getPrev(t):null}function T(e,t){const n=C(e);return n?n.getNext(t):null}function A(e){const t=C(e);return t?t.getParent():null}function k(e){const t=C(e);return t?t.getChild():null}const M={treeNodes:S,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:b,getFlattenedNodes(e){return z(S,e)},getNode:E,getPrev:R,getNext:T,getParent:A,getChild:k,getFirstAvailableNode(){return P(S)},getPath(e,t={}){return L(e,t,M)},getCheckedKeys(e,t={}){const{cascade:n=!0,leafOnly:r=!1,checkStrategy:o="all",allowNotLoaded:i=!1}=t;return O({checkedKeys:y(e),indeterminateKeys:_(e),cascade:n,leafOnly:r,checkStrategy:o,allowNotLoaded:i},M)},check(e,t,n={}){const{cascade:r=!0,leafOnly:o=!1,checkStrategy:i="all",allowNotLoaded:a=!1}=n;return O({checkedKeys:y(t),indeterminateKeys:_(t),keysToCheck:void 0===e||null===e?[]:l(e),cascade:r,leafOnly:o,checkStrategy:i,allowNotLoaded:a},M)},uncheck(e,t,n={}){const{cascade:r=!0,leafOnly:o=!1,checkStrategy:i="all",allowNotLoaded:a=!1}=n;return O({checkedKeys:y(t),indeterminateKeys:_(t),keysToUncheck:null===e||void 0===e?[]:l(e),cascade:r,leafOnly:o,checkStrategy:i,allowNotLoaded:a},M)},getNonLeafKeys(e={}){return d(S,e)}};return M}var Z=n(8385),H=n(5600),V=n(1808),W=n(7477),G=n(6307),K=n(3269),q=n(5698),Y=n(8107),X=n(9420),J=n(797),Q=n(1295);const ee=(0,Q.U)("n-form-item");function te(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const i=(0,r.f3)(ee,null);(0,r.JJ)(ee,null);const a=(0,r.Fl)(n?()=>n(i):()=>{const{size:n}=e;if(n)return n;if(i){const{mergedSize:e}=i;if(void 0!==e.value)return e.value}return t}),s=(0,r.Fl)(o?()=>o(i):()=>{const{disabled:t}=e;return void 0!==t?t:!!i&&i.disabled.value}),l=(0,r.Fl)((()=>{const{status:t}=e;return t||(null===i||void 0===i?void 0:i.mergedValidationStatus.value)}));return(0,r.Jd)((()=>{i&&i.restoreValidation()})),{mergedSizeRef:a,mergedDisabledRef:s,mergedStatusRef:l,nTriggerFormBlur(){i&&i.handleContentBlur()},nTriggerFormChange(){i&&i.handleContentChange()},nTriggerFormFocus(){i&&i.handleContentFocus()},nTriggerFormInput(){i&&i.handleContentInput()}}}var ne=n(6455),re=n(7624),oe=n(8089);const ie=new WeakSet;function ae(e){ie.add(e)}var se=n(1496),le=n(8224);const ue="v-hidden",ce=(0,le.c)("[v-hidden]",{display:"none!important"});var de=(0,r.aZ)({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=(0,o.iH)(null),i=(0,o.iH)(null);function a(){const{value:r}=n,{getCounter:o,getTail:a}=e;let s;if(s=void 0!==o?o():i.value,!r||!s)return;s.hasAttribute(ue)&&s.removeAttribute(ue);const{children:l}=r,u=r.offsetWidth,c=[],d=t.tail?null===a||void 0===a?void 0:a():null;let f=d?d.offsetWidth:0,h=!1;const p=r.children.length-(t.tail?1:0);for(let t=0;tu){const{updateCounter:n}=e;for(let e=t;e>=0;--e){const r=p-1-e;void 0!==n?n(r):s.textContent=`${r}`;const o=s.offsetWidth;if(f-=c[e],f+o<=u||0===e){h=!0,t=e-1,d&&(-1===t?(d.style.maxWidth=u-o+"px",d.style.boxSizing="border-box"):d.style.maxWidth="");break}}}}const{onUpdateOverflow:v}=e;h?void 0!==v&&v(!0):(void 0!==v&&v(!1),s.setAttribute(ue,""))}const s=(0,se.O)();return ce.mount({id:"vueuc/overflow",head:!0,anchorMetaName:le.A,ssr:s}),(0,r.bv)(a),{selfRef:n,counterRef:i,sync:a}},render(){const{$slots:e}=this;return(0,r.Y3)(this.sync),(0,r.h)("div",{class:"v-overflow",ref:"selfRef"},[(0,r.WI)(e,"default"),e.counter?e.counter():(0,r.h)("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}}),fe=n(5773),he=n(8506),pe=n(5556),ve=n(5608);function me(e){return e.replace(/#|\(|\)|,|\s/g,"_")}var ge=n(4092),be={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px",closeMarginRtl:"0 4px 0 0"},ye=n(4750),_e=n(8308);const we=e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:s,errorColor:l,baseColor:u,borderColor:c,opacityDisabled:d,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:v,borderRadiusSmall:m,fontSizeMini:g,fontSizeTiny:b,fontSizeSmall:y,fontSizeMedium:_,heightMini:w,heightTiny:S,heightSmall:x,heightMedium:E,closeColorHover:C,closeColorPressed:R,buttonColor2Hover:T,buttonColor2Pressed:A,fontWeightStrong:O}=e;return Object.assign(Object.assign({},be),{closeBorderRadius:m,heightTiny:w,heightSmall:S,heightMedium:x,heightLarge:E,borderRadius:m,opacityDisabled:d,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:y,fontSizeLarge:_,fontWeightStrong:O,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:"#0000",colorHoverCheckable:T,colorPressedCheckable:A,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${c}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:v,closeColorHover:C,closeColorPressed:R,borderPrimary:`1px solid ${(0,ye.zX)(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:(0,ye.zX)(o,{alpha:.12}),colorBorderedPrimary:(0,ye.zX)(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:(0,ye.zX)(o,{alpha:.12}),closeColorPressedPrimary:(0,ye.zX)(o,{alpha:.18}),borderInfo:`1px solid ${(0,ye.zX)(i,{alpha:.3})}`,textColorInfo:i,colorInfo:(0,ye.zX)(i,{alpha:.12}),colorBorderedInfo:(0,ye.zX)(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:(0,ye.zX)(i,{alpha:.12}),closeColorPressedInfo:(0,ye.zX)(i,{alpha:.18}),borderSuccess:`1px solid ${(0,ye.zX)(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:(0,ye.zX)(a,{alpha:.12}),colorBorderedSuccess:(0,ye.zX)(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:(0,ye.zX)(a,{alpha:.12}),closeColorPressedSuccess:(0,ye.zX)(a,{alpha:.18}),borderWarning:`1px solid ${(0,ye.zX)(s,{alpha:.35})}`,textColorWarning:s,colorWarning:(0,ye.zX)(s,{alpha:.15}),colorBorderedWarning:(0,ye.zX)(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:(0,ye.zX)(s,{alpha:.12}),closeColorPressedWarning:(0,ye.zX)(s,{alpha:.18}),borderError:`1px solid ${(0,ye.zX)(l,{alpha:.23})}`,textColorError:l,colorError:(0,ye.zX)(l,{alpha:.1}),colorBorderedError:(0,ye.zX)(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:(0,ye.zX)(l,{alpha:.12}),closeColorPressedError:(0,ye.zX)(l,{alpha:.18})})},Se={name:"Tag",common:_e.Z,self:we};var xe=Se,Ee={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},Ce=n(411),Re=(0,Ce.cB)("tag","\n white-space: nowrap;\n position: relative;\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex-wrap: nowrap;\n padding: var(--n-padding);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n transition: \n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n line-height: 1;\n height: var(--n-height);\n font-size: var(--n-font-size);\n",[(0,Ce.cM)("strong","\n font-weight: var(--n-font-weight-strong);\n "),(0,Ce.cE)("border","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-border);\n transition: border-color .3s var(--n-bezier);\n "),(0,Ce.cE)("icon","\n display: flex;\n margin: 0 4px 0 0;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n font-size: var(--n-avatar-size-override);\n "),(0,Ce.cE)("avatar","\n display: flex;\n margin: 0 6px 0 0;\n "),(0,Ce.cE)("close","\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n "),(0,Ce.cM)("round","\n padding: 0 calc(var(--n-height) / 3);\n border-radius: calc(var(--n-height) / 2);\n ",[(0,Ce.cE)("icon","\n margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);\n "),(0,Ce.cE)("avatar","\n margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);\n "),(0,Ce.cM)("closable","\n padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);\n ")]),(0,Ce.cM)("icon, avatar",[(0,Ce.cM)("round","\n padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);\n ")]),(0,Ce.cM)("disabled","\n cursor: not-allowed !important;\n opacity: var(--n-opacity-disabled);\n "),(0,Ce.cM)("checkable","\n cursor: pointer;\n box-shadow: none;\n color: var(--n-text-color-checkable);\n background-color: var(--n-color-checkable);\n ",[(0,Ce.u4)("disabled",[(0,Ce.c)("&:hover","background-color: var(--n-color-hover-checkable);",[(0,Ce.u4)("checked","color: var(--n-text-color-hover-checkable);")]),(0,Ce.c)("&:active","background-color: var(--n-color-pressed-checkable);",[(0,Ce.u4)("checked","color: var(--n-text-color-pressed-checkable);")])]),(0,Ce.cM)("checked","\n color: var(--n-text-color-checked);\n background-color: var(--n-color-checked);\n ",[(0,Ce.u4)("disabled",[(0,Ce.c)("&:hover","background-color: var(--n-color-checked-hover);"),(0,Ce.c)("&:active","background-color: var(--n-color-checked-pressed);")])])])]);const Te=Object.assign(Object.assign(Object.assign({},Y.Z.props),Ee),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),Ae=(0,Q.U)("n-tag");var Oe=(0,r.aZ)({name:"Tag",props:Te,setup(e){const t=(0,o.iH)(null),{mergedBorderedRef:n,mergedClsPrefixRef:i,inlineThemeDisabled:a,mergedRtlRef:s}=(0,X.Z)(e),l=(0,Y.Z)("Tag","-tag",Re,xe,e,i);function u(t){if(!e.disabled&&e.checkable){const{checked:t,onCheckedChange:n,onUpdateChecked:r,"onUpdate:checked":o}=e;r&&r(!t),o&&o(!t),n&&n(!t)}}function c(t){if(e.triggerClickOnClose||t.stopPropagation(),!e.disabled){const{onClose:n}=e;n&&(0,oe.R)(n,t)}}(0,r.JJ)(Ae,{roundRef:(0,o.Vh)(e,"round")});const d={setTextContent(e){const{value:n}=t;n&&(n.textContent=e)}},f=(0,he.V)("Tag",s,i),h=(0,r.Fl)((()=>{const{type:t,size:r,color:{color:o,textColor:i}={}}=e,{common:{cubicBezierEaseInOut:a},self:{padding:s,closeMargin:u,closeMarginRtl:c,borderRadius:d,opacityDisabled:f,textColorCheckable:h,textColorHoverCheckable:p,textColorPressedCheckable:v,textColorChecked:m,colorCheckable:g,colorHoverCheckable:b,colorPressedCheckable:y,colorChecked:_,colorCheckedHover:w,colorCheckedPressed:S,closeBorderRadius:x,fontWeightStrong:E,[(0,ve.T)("colorBordered",t)]:C,[(0,ve.T)("closeSize",r)]:R,[(0,ve.T)("closeIconSize",r)]:T,[(0,ve.T)("fontSize",r)]:A,[(0,ve.T)("height",r)]:O,[(0,ve.T)("color",t)]:k,[(0,ve.T)("textColor",t)]:L,[(0,ve.T)("border",t)]:P,[(0,ve.T)("closeIconColor",t)]:M,[(0,ve.T)("closeIconColorHover",t)]:I,[(0,ve.T)("closeIconColorPressed",t)]:B,[(0,ve.T)("closeColorHover",t)]:D,[(0,ve.T)("closeColorPressed",t)]:j}}=l.value;return{"--n-font-weight-strong":E,"--n-avatar-size-override":`calc(${O} - 8px)`,"--n-bezier":a,"--n-border-radius":d,"--n-border":P,"--n-close-icon-size":T,"--n-close-color-pressed":j,"--n-close-color-hover":D,"--n-close-border-radius":x,"--n-close-icon-color":M,"--n-close-icon-color-hover":I,"--n-close-icon-color-pressed":B,"--n-close-icon-color-disabled":M,"--n-close-margin":u,"--n-close-margin-rtl":c,"--n-close-size":R,"--n-color":o||(n.value?C:k),"--n-color-checkable":g,"--n-color-checked":_,"--n-color-checked-hover":w,"--n-color-checked-pressed":S,"--n-color-hover-checkable":b,"--n-color-pressed-checkable":y,"--n-font-size":A,"--n-height":O,"--n-opacity-disabled":f,"--n-padding":s,"--n-text-color":i||L,"--n-text-color-checkable":h,"--n-text-color-checked":m,"--n-text-color-hover-checkable":p,"--n-text-color-pressed-checkable":v}})),p=a?(0,ne.F)("tag",(0,r.Fl)((()=>{let t="";const{type:r,size:o,color:{color:i,textColor:a}={}}=e;return t+=r[0],t+=o[0],i&&(t+=`a${me(i)}`),a&&(t+=`b${me(a)}`),n.value&&(t+="c"),t})),h,e):void 0;return Object.assign(Object.assign({},d),{rtlEnabled:f,mergedClsPrefix:i,contentRef:t,mergedBordered:n,handleClick:u,handleCloseClick:c,cssVars:a?void 0:h,themeClass:null===p||void 0===p?void 0:p.themeClass,onRender:null===p||void 0===p?void 0:p.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:o,closable:i,color:{borderColor:a}={},round:s,onRender:l,$slots:u}=this;null===l||void 0===l||l();const c=(0,ge.K9)(u.avatar,(e=>e&&(0,r.h)("div",{class:`${n}-tag__avatar`},e))),d=(0,ge.K9)(u.icon,(e=>e&&(0,r.h)("div",{class:`${n}-tag__icon`},e)));return(0,r.h)("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:o,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:s,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:d,[`${n}-tag--closable`]:i}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,(0,r.h)("span",{class:`${n}-tag__content`,ref:"contentRef"},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)),!this.checkable&&i?(0,r.h)(pe.Z,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:s,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?(0,r.h)("div",{class:`${n}-tag__border`,style:{borderColor:a}}):null)}}),ke=n(7902),Le=n(255);function Pe(e,t){t&&((0,r.bv)((()=>{const{value:n}=e;n&&Le.Z.registerHandler(n,t)})),(0,r.Jd)((()=>{const{value:t}=e;t&&Le.Z.unregisterHandler(t)})))}var Me=n(9486);function Ie(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}var Be=n(7772),De=n(1087),je=(0,De.f)("clear",(0,r.h)("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{fill:"currentColor","fill-rule":"nonzero"},(0,r.h)("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Fe=n(9611),ze=(0,r.aZ)({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=(0,K.Z)();return()=>(0,r.h)(i.uT,{name:"icon-switch-transition",appear:n.value},t)}}),Ne=n(823);const{cubicBezierEaseInOut:$e}=Ne.Z;function Ue({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${$e} !important`}={}){return[(0,Ce.c)("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),(0,Ce.c)("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),(0,Ce.c)("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}var Ze=(0,Ce.cB)("base-clear","\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n position: relative;\n",[(0,Ce.c)(">",[(0,Ce.cE)("clear","\n font-size: var(--n-clear-size);\n height: 1em;\n width: 1em;\n cursor: pointer;\n color: var(--n-clear-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n ",[(0,Ce.c)("&:hover","\n color: var(--n-clear-color-hover)!important;\n "),(0,Ce.c)("&:active","\n color: var(--n-clear-color-pressed)!important;\n ")]),(0,Ce.cE)("placeholder","\n display: flex;\n "),(0,Ce.cE)("clear, placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[Ue({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),He=(0,r.aZ)({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return(0,Be.Z)("-base-clear",Ze,(0,o.Vh)(e,"clsPrefix")),{handleMouseDown(e){e.preventDefault()}}},render(){const{clsPrefix:e}=this;return(0,r.h)("div",{class:`${e}-base-clear`},(0,r.h)(ze,null,{default:()=>{var t,n;return this.show?(0,r.h)("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},(0,ge.gI)(this.$slots.icon,(()=>[(0,r.h)(Fe.Z,{clsPrefix:e},{default:()=>(0,r.h)(je,null)})]))):(0,r.h)("div",{key:"icon",class:`${e}-base-clear__placeholder`},null===(n=(t=this.$slots).placeholder)||void 0===n?void 0:n.call(t))}}))}}),Ve=(0,Ce.c)([(0,Ce.c)("@keyframes loading-container-rotate","\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n "),(0,Ce.c)("@keyframes loading-layer-rotate","\n 12.5% {\n -webkit-transform: rotate(135deg);\n transform: rotate(135deg);\n }\n 25% {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n }\n 37.5% {\n -webkit-transform: rotate(405deg);\n transform: rotate(405deg);\n }\n 50% {\n -webkit-transform: rotate(540deg);\n transform: rotate(540deg);\n }\n 62.5% {\n -webkit-transform: rotate(675deg);\n transform: rotate(675deg);\n }\n 75% {\n -webkit-transform: rotate(810deg);\n transform: rotate(810deg);\n }\n 87.5% {\n -webkit-transform: rotate(945deg);\n transform: rotate(945deg);\n }\n 100% {\n -webkit-transform: rotate(1080deg);\n transform: rotate(1080deg);\n } \n "),(0,Ce.c)("@keyframes loading-left-spin","\n from {\n -webkit-transform: rotate(265deg);\n transform: rotate(265deg);\n }\n 50% {\n -webkit-transform: rotate(130deg);\n transform: rotate(130deg);\n }\n to {\n -webkit-transform: rotate(265deg);\n transform: rotate(265deg);\n }\n "),(0,Ce.c)("@keyframes loading-right-spin","\n from {\n -webkit-transform: rotate(-265deg);\n transform: rotate(-265deg);\n }\n 50% {\n -webkit-transform: rotate(-130deg);\n transform: rotate(-130deg);\n }\n to {\n -webkit-transform: rotate(-265deg);\n transform: rotate(-265deg);\n }\n "),(0,Ce.cB)("base-loading","\n position: relative;\n line-height: 0;\n width: 1em;\n height: 1em;\n ",[(0,Ce.cE)("transition-wrapper","\n position: absolute;\n width: 100%;\n height: 100%;\n ",[Ue()]),(0,Ce.cE)("container","\n display: inline-flex;\n position: relative;\n direction: ltr;\n line-height: 0;\n animation: loading-container-rotate 1568.2352941176ms linear infinite;\n font-size: 0;\n letter-spacing: 0;\n white-space: nowrap;\n opacity: 1;\n width: 100%;\n height: 100%;\n ",[(0,Ce.cE)("svg","\n stroke: var(--n-text-color);\n fill: transparent;\n position: absolute;\n height: 100%;\n overflow: hidden;\n "),(0,Ce.cE)("container-layer","\n position: absolute;\n width: 100%;\n height: 100%;\n animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n ",[(0,Ce.cE)("container-layer-left","\n display: inline-flex;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n ",[(0,Ce.cE)("svg","\n animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n width: 200%;\n ")]),(0,Ce.cE)("container-layer-patch","\n position: absolute;\n top: 0;\n left: 47.5%;\n box-sizing: border-box;\n width: 5%;\n height: 100%;\n overflow: hidden;\n ",[(0,Ce.cE)("svg","\n left: -900%;\n width: 2000%;\n transform: rotate(180deg);\n ")]),(0,Ce.cE)("container-layer-right","\n display: inline-flex;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n ",[(0,Ce.cE)("svg","\n animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n left: -100%;\n width: 200%;\n ")])])]),(0,Ce.cE)("placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[Ue({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]);const We={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}};var Ge=(0,r.aZ)({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},We),setup(e){(0,Be.Z)("-base-loading",Ve,(0,o.Vh)(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:o,scale:i}=this,a=t/i;return(0,r.h)("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},(0,r.h)(ze,null,{default:()=>this.show?(0,r.h)("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},(0,r.h)("div",{class:`${e}-base-loading__container`},(0,r.h)("div",{class:`${e}-base-loading__container-layer`},(0,r.h)("div",{class:`${e}-base-loading__container-layer-left`},(0,r.h)("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},(0,r.h)("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:a,cy:a,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),(0,r.h)("div",{class:`${e}-base-loading__container-layer-patch`},(0,r.h)("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},(0,r.h)("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:a,cy:a,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),(0,r.h)("div",{class:`${e}-base-loading__container-layer-right`},(0,r.h)("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},(0,r.h)("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:a,cy:a,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):(0,r.h)("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),Ke=(0,r.aZ)({name:"ChevronDown",render(){return(0,r.h)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),qe=(0,r.aZ)({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return(0,r.h)(Ge,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?(0,r.h)(He,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>(0,r.h)(Fe.Z,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>(0,ge.gI)(t.default,(()=>[(0,r.h)(Ke,null)]))})}):null})}}}),Ye=n(8861),Xe={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const Je=e=>{const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:s,warningColor:l,warningColorHover:u,errorColor:c,errorColorHover:d,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:v,clearColorHover:m,clearColorPressed:g,placeholderColor:b,placeholderColorDisabled:y,fontSizeTiny:_,fontSizeSmall:w,fontSizeMedium:S,fontSizeLarge:x,heightTiny:E,heightSmall:C,heightMedium:R,heightLarge:T}=e;return Object.assign(Object.assign({},Xe),{fontSizeTiny:_,fontSizeSmall:w,fontSizeMedium:S,fontSizeLarge:x,heightTiny:E,heightSmall:C,heightMedium:R,heightLarge:T,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:b,placeholderColorDisabled:y,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${s}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${(0,ye.zX)(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${(0,ye.zX)(a,{alpha:.2})}`,caretColor:a,arrowColor:h,arrowColorDisabled:p,loadingColor:a,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${u}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${(0,ye.zX)(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${(0,ye.zX)(l,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:l,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${(0,ye.zX)(c,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${(0,ye.zX)(c,{alpha:.2})}`,colorActiveError:o,caretColorError:c,clearColor:v,clearColorHover:m,clearColorPressed:g})},Qe=(0,Y.j)({name:"InternalSelection",common:_e.Z,peers:{Popover:Ye.Z},self:Je});var et=Qe,tt=(0,Ce.c)([(0,Ce.cB)("base-selection","\n position: relative;\n z-index: auto;\n box-shadow: none;\n width: 100%;\n max-width: 100%;\n display: inline-block;\n vertical-align: bottom;\n border-radius: var(--n-border-radius);\n min-height: var(--n-height);\n line-height: 1.5;\n font-size: var(--n-font-size);\n ",[(0,Ce.cB)("base-loading","\n color: var(--n-loading-color);\n "),(0,Ce.cB)("base-selection-tags","min-height: var(--n-height);"),(0,Ce.cE)("border, state-border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border: var(--n-border);\n border-radius: inherit;\n transition:\n box-shadow .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n "),(0,Ce.cE)("state-border","\n z-index: 1;\n border-color: #0000;\n "),(0,Ce.cB)("base-suffix","\n cursor: pointer;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 10px;\n ",[(0,Ce.cE)("arrow","\n font-size: var(--n-arrow-size);\n color: var(--n-arrow-color);\n transition: color .3s var(--n-bezier);\n ")]),(0,Ce.cB)("base-selection-overlay","\n display: flex;\n align-items: center;\n white-space: nowrap;\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: var(--n-padding-single);\n transition: color .3s var(--n-bezier);\n ",[(0,Ce.cE)("wrapper","\n flex-basis: 0;\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n ")]),(0,Ce.cB)("base-selection-placeholder","\n color: var(--n-placeholder-color);\n ",[(0,Ce.cE)("inner","\n max-width: 100%;\n overflow: hidden;\n ")]),(0,Ce.cB)("base-selection-tags","\n cursor: pointer;\n outline: none;\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n display: flex;\n padding: var(--n-padding-multiple);\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n vertical-align: bottom;\n background-color: var(--n-color);\n border-radius: inherit;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n "),(0,Ce.cB)("base-selection-label","\n height: var(--n-height);\n display: inline-flex;\n width: 100%;\n vertical-align: bottom;\n cursor: pointer;\n outline: none;\n z-index: auto;\n box-sizing: border-box;\n position: relative;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n border-radius: inherit;\n background-color: var(--n-color);\n align-items: center;\n ",[(0,Ce.cB)("base-selection-input","\n font-size: inherit;\n line-height: inherit;\n outline: none;\n cursor: pointer;\n box-sizing: border-box;\n border:none;\n width: 100%;\n padding: var(--n-padding-single);\n background-color: #0000;\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n caret-color: var(--n-caret-color);\n ",[(0,Ce.cE)("content","\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap; \n ")]),(0,Ce.cE)("render-label","\n color: var(--n-text-color);\n ")]),(0,Ce.u4)("disabled",[(0,Ce.c)("&:hover",[(0,Ce.cE)("state-border","\n box-shadow: var(--n-box-shadow-hover);\n border: var(--n-border-hover);\n ")]),(0,Ce.cM)("focus",[(0,Ce.cE)("state-border","\n box-shadow: var(--n-box-shadow-focus);\n border: var(--n-border-focus);\n ")]),(0,Ce.cM)("active",[(0,Ce.cE)("state-border","\n box-shadow: var(--n-box-shadow-active);\n border: var(--n-border-active);\n "),(0,Ce.cB)("base-selection-label","background-color: var(--n-color-active);"),(0,Ce.cB)("base-selection-tags","background-color: var(--n-color-active);")])]),(0,Ce.cM)("disabled","cursor: not-allowed;",[(0,Ce.cE)("arrow","\n color: var(--n-arrow-color-disabled);\n "),(0,Ce.cB)("base-selection-label","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n ",[(0,Ce.cB)("base-selection-input","\n cursor: not-allowed;\n color: var(--n-text-color-disabled);\n "),(0,Ce.cE)("render-label","\n color: var(--n-text-color-disabled);\n ")]),(0,Ce.cB)("base-selection-tags","\n cursor: not-allowed;\n background-color: var(--n-color-disabled);\n "),(0,Ce.cB)("base-selection-placeholder","\n cursor: not-allowed;\n color: var(--n-placeholder-color-disabled);\n ")]),(0,Ce.cB)("base-selection-input-tag","\n height: calc(var(--n-height) - 6px);\n line-height: calc(var(--n-height) - 6px);\n outline: none;\n display: none;\n position: relative;\n margin-bottom: 3px;\n max-width: 100%;\n vertical-align: bottom;\n ",[(0,Ce.cE)("input","\n font-size: inherit;\n font-family: inherit;\n min-width: 1px;\n padding: 0;\n background-color: #0000;\n outline: none;\n border: none;\n max-width: 100%;\n overflow: hidden;\n width: 1em;\n line-height: inherit;\n cursor: pointer;\n color: var(--n-text-color);\n caret-color: var(--n-caret-color);\n "),(0,Ce.cE)("mirror","\n position: absolute;\n left: 0;\n top: 0;\n white-space: pre;\n visibility: hidden;\n user-select: none;\n -webkit-user-select: none;\n opacity: 0;\n ")]),["warning","error"].map((e=>(0,Ce.cM)(`${e}-status`,[(0,Ce.cE)("state-border",`border: var(--n-border-${e});`),(0,Ce.u4)("disabled",[(0,Ce.c)("&:hover",[(0,Ce.cE)("state-border",`\n box-shadow: var(--n-box-shadow-hover-${e});\n border: var(--n-border-hover-${e});\n `)]),(0,Ce.cM)("active",[(0,Ce.cE)("state-border",`\n box-shadow: var(--n-box-shadow-active-${e});\n border: var(--n-border-active-${e});\n `),(0,Ce.cB)("base-selection-label",`background-color: var(--n-color-active-${e});`),(0,Ce.cB)("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),(0,Ce.cM)("focus",[(0,Ce.cE)("state-border",`\n box-shadow: var(--n-box-shadow-focus-${e});\n border: var(--n-border-focus-${e});\n `)])])])))]),(0,Ce.cB)("base-selection-popover","\n margin-bottom: -3px;\n display: flex;\n flex-wrap: wrap;\n margin-right: -8px;\n "),(0,Ce.cB)("base-selection-tag-wrapper","\n max-width: 100%;\n display: inline-flex;\n padding: 0 7px 3px 0;\n ",[(0,Ce.c)("&:last-child","padding-right: 0;"),(0,Ce.cB)("tag","\n font-size: 14px;\n max-width: 100%;\n ",[(0,Ce.cE)("content","\n line-height: 1.25;\n text-overflow: ellipsis;\n overflow: hidden;\n ")])])]),nt=(0,r.aZ)({name:"InternalSelection",props:Object.assign(Object.assign({},Y.Z.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const t=(0,o.iH)(null),n=(0,o.iH)(null),i=(0,o.iH)(null),a=(0,o.iH)(null),s=(0,o.iH)(null),l=(0,o.iH)(null),u=(0,o.iH)(null),c=(0,o.iH)(null),d=(0,o.iH)(null),f=(0,o.iH)(null),h=(0,o.iH)(!1),p=(0,o.iH)(!1),v=(0,o.iH)(!1),m=(0,Y.Z)("InternalSelection","-internal-selection",tt,et,e,(0,o.Vh)(e,"clsPrefix")),g=(0,r.Fl)((()=>e.clearable&&!e.disabled&&(v.value||e.active))),b=(0,r.Fl)((()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):(0,ke.s)(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder)),y=(0,r.Fl)((()=>{const t=e.selectedOption;if(t)return t[e.labelField]})),_=(0,r.Fl)((()=>e.multiple?!(!Array.isArray(e.selectedOptions)||!e.selectedOptions.length):null!==e.selectedOption));function w(){var r;const{value:o}=t;if(o){const{value:t}=n;t&&(t.style.width=`${o.offsetWidth}px`,"responsive"!==e.maxTagCount&&(null===(r=d.value)||void 0===r||r.sync()))}}function S(){const{value:e}=f;e&&(e.style.display="none")}function x(){const{value:e}=f;e&&(e.style.display="inline-block")}function E(t){const{onFocus:n}=e;n&&n(t)}function C(t){const{onBlur:n}=e;n&&n(t)}function R(t){const{onDeleteOption:n}=e;n&&n(t)}function T(t){const{onClear:n}=e;n&&n(t)}function A(t){const{onPatternInput:n}=e;n&&n(t)}function O(e){var t;e.relatedTarget&&(null===(t=i.value)||void 0===t?void 0:t.contains(e.relatedTarget))||E(e)}function k(e){var t;(null===(t=i.value)||void 0===t?void 0:t.contains(e.relatedTarget))||C(e)}function L(e){T(e)}function P(){v.value=!0}function M(){v.value=!1}function I(t){e.active&&e.filterable&&t.target!==n.value&&t.preventDefault()}function B(e){R(e)}function D(t){if("Backspace"===t.key&&!j.value&&!e.pattern.length){const{selectedOptions:t}=e;(null===t||void 0===t?void 0:t.length)&&B(t[t.length-1])}}(0,r.YP)((0,o.Vh)(e,"active"),(e=>{e||S()})),(0,r.YP)((0,o.Vh)(e,"pattern"),(()=>{e.multiple&&(0,r.Y3)(w)}));const j=(0,o.iH)(!1);let F=null;function z(n){const{value:r}=t;if(r){const e=n.target.value;r.textContent=e,w()}e.ignoreComposition&&j.value?F=n:A(n)}function N(){j.value=!0}function $(){j.value=!1,e.ignoreComposition&&A(F),F=null}function U(t){var n;p.value=!0,null===(n=e.onPatternFocus)||void 0===n||n.call(e,t)}function Z(t){var n;p.value=!1,null===(n=e.onPatternBlur)||void 0===n||n.call(e,t)}function H(){var t,r;if(e.filterable)p.value=!1,null===(t=l.value)||void 0===t||t.blur(),null===(r=n.value)||void 0===r||r.blur();else if(e.multiple){const{value:e}=a;null===e||void 0===e||e.blur()}else{const{value:e}=s;null===e||void 0===e||e.blur()}}function V(){var t,n,r;e.filterable?(p.value=!1,null===(t=l.value)||void 0===t||t.focus()):e.multiple?null===(n=a.value)||void 0===n||n.focus():null===(r=s.value)||void 0===r||r.focus()}function W(){const{value:e}=n;e&&(x(),e.focus())}function G(){const{value:e}=n;e&&e.blur()}function K(e){const{value:t}=u;t&&t.setTextContent(`+${e}`)}function q(){const{value:e}=c;return e}function X(){return n.value}let J=null;function Q(){null!==J&&window.clearTimeout(J)}function ee(){e.disabled||e.active||(Q(),J=window.setTimeout((()=>{_.value&&(h.value=!0)}),100))}function te(){Q()}function re(e){e||(Q(),h.value=!1)}(0,r.YP)(_,(e=>{e||(h.value=!1)})),(0,r.bv)((()=>{(0,r.m0)((()=>{const t=l.value;t&&(t.tabIndex=e.disabled||p.value?-1:0)}))})),Pe(i,e.onResize);const{inlineThemeDisabled:oe}=e,ie=(0,r.Fl)((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{borderRadius:r,color:o,placeholderColor:i,textColor:a,paddingSingle:s,paddingMultiple:l,caretColor:u,colorDisabled:c,textColorDisabled:d,placeholderColorDisabled:f,colorActive:h,boxShadowFocus:p,boxShadowActive:v,boxShadowHover:g,border:b,borderFocus:y,borderHover:_,borderActive:w,arrowColor:S,arrowColorDisabled:x,loadingColor:E,colorActiveWarning:C,boxShadowFocusWarning:R,boxShadowActiveWarning:T,boxShadowHoverWarning:A,borderWarning:O,borderFocusWarning:k,borderHoverWarning:L,borderActiveWarning:P,colorActiveError:M,boxShadowFocusError:I,boxShadowActiveError:B,boxShadowHoverError:D,borderError:j,borderFocusError:F,borderHoverError:z,borderActiveError:N,clearColor:$,clearColorHover:U,clearColorPressed:Z,clearSize:H,arrowSize:V,[(0,ve.T)("height",t)]:W,[(0,ve.T)("fontSize",t)]:G}}=m.value;return{"--n-bezier":n,"--n-border":b,"--n-border-active":w,"--n-border-focus":y,"--n-border-hover":_,"--n-border-radius":r,"--n-box-shadow-active":v,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-caret-color":u,"--n-color":o,"--n-color-active":h,"--n-color-disabled":c,"--n-font-size":G,"--n-height":W,"--n-padding-single":s,"--n-padding-multiple":l,"--n-placeholder-color":i,"--n-placeholder-color-disabled":f,"--n-text-color":a,"--n-text-color-disabled":d,"--n-arrow-color":S,"--n-arrow-color-disabled":x,"--n-loading-color":E,"--n-color-active-warning":C,"--n-box-shadow-focus-warning":R,"--n-box-shadow-active-warning":T,"--n-box-shadow-hover-warning":A,"--n-border-warning":O,"--n-border-focus-warning":k,"--n-border-hover-warning":L,"--n-border-active-warning":P,"--n-color-active-error":M,"--n-box-shadow-focus-error":I,"--n-box-shadow-active-error":B,"--n-box-shadow-hover-error":D,"--n-border-error":j,"--n-border-focus-error":F,"--n-border-hover-error":z,"--n-border-active-error":N,"--n-clear-size":H,"--n-clear-color":$,"--n-clear-color-hover":U,"--n-clear-color-pressed":Z,"--n-arrow-size":V}})),ae=oe?(0,ne.F)("internal-selection",(0,r.Fl)((()=>e.size[0])),ie,e):void 0;return{mergedTheme:m,mergedClearable:g,patternInputFocused:p,filterablePlaceholder:b,label:y,selected:_,showTagsPanel:h,isComposing:j,counterRef:u,counterWrapperRef:c,patternInputMirrorRef:t,patternInputRef:n,selfRef:i,multipleElRef:a,singleElRef:s,patternInputWrapperRef:l,overflowRef:d,inputTagElRef:f,handleMouseDown:I,handleFocusin:O,handleClear:L,handleMouseEnter:P,handleMouseLeave:M,handleDeleteOption:B,handlePatternKeyDown:D,handlePatternInputInput:z,handlePatternInputBlur:Z,handlePatternInputFocus:U,handleMouseEnterCounter:ee,handleMouseLeaveCounter:te,handleFocusout:k,handleCompositionEnd:$,handleCompositionStart:N,onPopoverUpdateShow:re,focus:V,focusInput:W,blur:H,blurInput:G,updateCounter:K,getCounter:q,getTail:X,renderLabel:e.renderLabel,cssVars:oe?void 0:ie,themeClass:null===ae||void 0===ae?void 0:ae.themeClass,onRender:null===ae||void 0===ae?void 0:ae.onRender}},render(){const{status:e,multiple:t,size:n,disabled:o,filterable:i,maxTagCount:a,bordered:s,clsPrefix:l,onRender:u,renderTag:c,renderLabel:d}=this;null===u||void 0===u||u();const f="responsive"===a,h="number"===typeof a,p=f||h,v=(0,r.h)(Me.i,null,{default:()=>(0,r.h)(qe,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var e,t;return null===(t=(e=this.$slots).arrow)||void 0===t?void 0:t.call(e)}})});let m;if(t){const{labelField:e}=this,t=t=>(0,r.h)("div",{class:`${l}-base-selection-tag-wrapper`,key:t.value},c?c({option:t,handleClose:()=>this.handleDeleteOption(t)}):(0,r.h)(Oe,{size:n,closable:!t.disabled,disabled:o,onClose:()=>this.handleDeleteOption(t),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>d?d(t,!0):(0,ke.s)(t[e],t,!0)})),s=()=>(h?this.selectedOptions.slice(0,a):this.selectedOptions).map(t),u=i?(0,r.h)("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},(0,r.h)("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),(0,r.h)("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,g=f?()=>(0,r.h)("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},(0,r.h)(Oe,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let b;if(h){const e=this.selectedOptions.length-a;e>0&&(b=(0,r.h)("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},(0,r.h)(Oe,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${e}`})))}const y=f?i?(0,r.h)(de,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:s,counter:g,tail:()=>u}):(0,r.h)(de,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:s,counter:g}):h?s().concat(b):s(),_=p?()=>(0,r.h)("div",{class:`${l}-base-selection-popover`},f?s():this.selectedOptions.map(t)):void 0,w=p?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,S=!this.selected&&(!this.active||!this.pattern&&!this.isComposing),x=S?(0,r.h)("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},(0,r.h)("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,E=i?(0,r.h)("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},y,f?null:u,v):(0,r.h)("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:o?void 0:0},y,v);m=(0,r.h)(r.HY,null,p?(0,r.h)(fe.ZP,Object.assign({},w,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>E,default:_}):E,x)}else if(i){const e=this.pattern||this.isComposing,t=this.active?!e:!this.selected,n=!this.active&&this.selected;m=(0,r.h)("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`},(0,r.h)("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),n?(0,r.h)("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},(0,r.h)("div",{class:`${l}-base-selection-overlay__wrapper`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):(0,ke.s)(this.label,this.selectedOption,!0))):null,t?(0,r.h)("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},(0,r.h)("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,v)}else m=(0,r.h)("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},void 0!==this.label?(0,r.h)("div",{class:`${l}-base-selection-input`,title:Ie(this.label),key:"input"},(0,r.h)("div",{class:`${l}-base-selection-input__content`},c?c({option:this.selectedOption,handleClose:()=>{}}):d?d(this.selectedOption,!0):(0,ke.s)(this.label,this.selectedOption,!0))):(0,r.h)("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},(0,r.h)("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),v);return(0,r.h)("div",{ref:"selfRef",class:[`${l}-base-selection`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},m,s?(0,r.h)("div",{class:`${l}-base-selection__border`}):null,s?(0,r.h)("div",{class:`${l}-base-selection__state-border`}):null)}});function rt(e){return"string"===typeof e?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function ot(e){if(void 0!==e&&null!==e)return"number"===typeof e?`${e}px`:e.endsWith("px")?e:`${e}px`}function it(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return void 0===t?r:r[t]}var at=n(5805),st=n(4498),lt=n(8125);function ut(e){return e&-e}class ct{constructor(e,t){this.l=e,this.min=t;const n=new Array(e+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let o=e*n;while(e>0)o+=t[e],e-=ut(e);return o}getBound(e){let t=0,n=this.l;while(n>t){const r=Math.floor((t+n)/2),o=this.sum(r);if(o>e)n=r;else{if(!(o[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=(0,se.O)();vt.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:le.A,ssr:t}),(0,r.bv)((()=>{const{defaultScrollIndex:t,defaultScrollKey:n}=e;void 0!==t&&null!==t?m({index:t}):void 0!==n&&null!==n&&m({key:n})}));let n=!1,i=!1;(0,r.dl)((()=>{n=!1,i?m({top:h.value,left:f}):i=!0})),(0,r.se)((()=>{n=!0,i||(i=!0)}));const a=(0,r.Fl)((()=>{const t=new Map,{keyField:n}=e;return e.items.forEach(((e,r)=>{t.set(e[n],r)})),t})),s=(0,o.iH)(null),l=(0,o.iH)(void 0),u=new Map,c=(0,r.Fl)((()=>{const{items:t,itemSize:n,keyField:r}=e,o=new ct(t.length,n);return t.forEach(((e,t)=>{const n=e[r],i=u.get(n);void 0!==i&&o.add(t,i)})),o})),d=(0,o.iH)(0);let f=0;const h=(0,o.iH)(0),p=(0,st.Z)((()=>Math.max(c.value.getBound(h.value-rt(e.paddingTop))-1,0))),v=(0,r.Fl)((()=>{const{value:t}=l;if(void 0===t)return[];const{items:n,itemSize:r}=e,o=p.value,i=Math.min(o+Math.ceil(t/r+1),n.length-1),a=[];for(let e=o;e<=i;++e)a.push(n[e]);return a})),m=(e,t)=>{if("number"===typeof e)return void _(e,t,"auto");const{left:n,top:r,index:o,key:i,position:s,behavior:l,debounce:u=!0}=e;if(void 0!==n||void 0!==r)_(n,r,l);else if(void 0!==o)y(o,l,u);else if(void 0!==i){const e=a.value.get(i);void 0!==e&&y(e,l,u)}else"bottom"===s?_(0,Number.MAX_SAFE_INTEGER,l):"top"===s&&_(0,0,l)};let g,b=null;function y(t,n,r){const{value:o}=c,i=o.sum(t)+rt(e.paddingTop);if(r){g=t,null!==b&&window.clearTimeout(b),b=window.setTimeout((()=>{g=void 0,b=null}),16);const{scrollTop:e,offsetHeight:r}=s.value;if(i>e){const a=o.get(t);i+a<=e+r||s.value.scrollTo({left:0,top:i+a-r,behavior:n})}else s.value.scrollTo({left:0,top:i,behavior:n})}else s.value.scrollTo({left:0,top:i,behavior:n})}function _(e,t,n){s.value.scrollTo({left:e,top:t,behavior:n})}function w(t,r){var o,i,l;if(n)return;if(e.ignoreItemResize)return;if(A(r.target))return;const{value:f}=c,h=a.value.get(t),p=f.get(h),v=null!==(l=null===(i=null===(o=r.borderBoxSize)||void 0===o?void 0:o[0])||void 0===i?void 0:i.blockSize)&&void 0!==l?l:r.contentRect.height;if(v===p)return;const m=v-e.itemSize;0===m?u.delete(t):u.set(t,v-e.itemSize);const b=v-p;if(0===b)return;f.add(h,b);const y=s.value;if(null!=y){if(void 0===g){const e=f.sum(h);y.scrollTop>e&&y.scrollBy(0,b)}else if(hy.scrollTop+y.offsetHeight&&y.scrollBy(0,b)}T()}d.value++}const S=!ht();let x=!1;function E(t){var n;null===(n=e.onScroll)||void 0===n||n.call(e,t),S&&x||T()}function C(t){var n;if(null===(n=e.onWheel)||void 0===n||n.call(e,t),S){const e=s.value;if(null!=e){if(0===t.deltaX){if(0===e.scrollTop&&t.deltaY<=0)return;if(e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0)return}t.preventDefault(),e.scrollTop+=t.deltaY/pt(),e.scrollLeft+=t.deltaX/pt(),T(),x=!0,(0,at.J)((()=>{x=!1}))}}}function R(t){if(n)return;if(A(t.target))return;if(t.contentRect.height===l.value)return;l.value=t.contentRect.height;const{onResize:r}=e;void 0!==r&&r(t)}function T(){const{value:e}=s;null!=e&&(h.value=e.scrollTop,f=e.scrollLeft)}function A(e){let t=e;while(null!==t){if("none"===t.style.display)return!0;t=t.parentElement}return!1}return{listHeight:l,listStyle:{overflow:"auto"},keyToIndex:a,itemsStyle:(0,r.Fl)((()=>{const{itemResizable:t}=e,n=ot(c.value.sum());return d.value,[e.itemsStyle,{boxSizing:"content-box",height:t?"":n,minHeight:t?n:"",paddingTop:ot(e.paddingTop),paddingBottom:ot(e.paddingBottom)}]})),visibleItemsStyle:(0,r.Fl)((()=>(d.value,{transform:`translateY(${ot(c.value.sum(p.value))})`}))),viewportItems:v,listElRef:s,itemsElRef:(0,o.iH)(null),scrollTo:m,handleListResize:R,handleListScroll:E,handleListWheel:C,handleItemResize:w}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return(0,r.h)(lt.Z,{onResize:this.handleListResize},{default:()=>{var i,a;return(0,r.h)("div",(0,r.dG)(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[0!==this.items.length?(0,r.h)("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[(0,r.h)(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map((o=>{const i=o[t],a=n.get(i),s=this.$slots.default({item:o,index:a})[0];return e?(0,r.h)(lt.Z,{key:i,onResize:e=>this.handleItemResize(i,e)},{default:()=>s}):(s.key=i,s)}))})]):null===(a=(i=this.$slots).empty)||void 0===a?void 0:a.call(i)])}})}}),gt=n(8090),bt=(0,r.aZ)({name:"Empty",render(){return(0,r.h)("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),(0,r.h)("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),yt={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};const _t=e=>{const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},yt),{fontSizeSmall:o,fontSizeMedium:i,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:n,extraTextColor:r})},wt={name:"Empty",common:_e.Z,self:_t};var St=wt,xt=(0,Ce.cB)("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[(0,Ce.cE)("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[(0,Ce.c)("+",[(0,Ce.cE)("description","\n margin-top: 8px;\n ")])]),(0,Ce.cE)("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),(0,Ce.cE)("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]);const Et=Object.assign(Object.assign({},Y.Z.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var Ct=(0,r.aZ)({name:"Empty",props:Et,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=(0,X.Z)(e),o=(0,Y.Z)("Empty","-empty",xt,St,e,t),{localeRef:i}=(0,J.Z)("Empty"),a=(0,r.f3)(gt.Y,null),s=(0,r.Fl)((()=>{var t,n,r;return null!==(t=e.description)&&void 0!==t?t:null===(r=null===(n=null===a||void 0===a?void 0:a.mergedComponentPropsRef.value)||void 0===n?void 0:n.Empty)||void 0===r?void 0:r.description})),l=(0,r.Fl)((()=>{var e,t;return(null===(t=null===(e=null===a||void 0===a?void 0:a.mergedComponentPropsRef.value)||void 0===e?void 0:e.Empty)||void 0===t?void 0:t.renderIcon)||(()=>(0,r.h)(bt,null))})),u=(0,r.Fl)((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{[(0,ve.T)("iconSize",t)]:r,[(0,ve.T)("fontSize",t)]:i,textColor:a,iconColor:s,extraTextColor:l}}=o.value;return{"--n-icon-size":r,"--n-font-size":i,"--n-bezier":n,"--n-text-color":a,"--n-icon-color":s,"--n-extra-text-color":l}})),c=n?(0,ne.F)("empty",(0,r.Fl)((()=>{let t="";const{size:n}=e;return t+=n[0],t})),u,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:(0,r.Fl)((()=>s.value||i.value.description)),cssVars:n?void 0:u,themeClass:null===c||void 0===c?void 0:c.themeClass,onRender:null===c||void 0===c?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return null===n||void 0===n||n(),(0,r.h)("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?(0,r.h)("div",{class:`${t}-empty__icon`},e.icon?e.icon():(0,r.h)(Fe.Z,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?(0,r.h)("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?(0,r.h)("div",{class:`${t}-empty__extra`},e.extra()):null)}}),Rt=n(3091),Tt=(0,r.aZ)({props:{onFocus:Function,onBlur:Function},setup(e){return()=>(0,r.h)("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),At=Tt,Ot=n(1238),kt={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};const Lt=e=>{const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:s,primaryColor:l,opacityDisabled:u,hoverColor:c,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:h,fontSizeHuge:p,heightSmall:v,heightMedium:m,heightLarge:g,heightHuge:b}=e;return Object.assign(Object.assign({},kt),{optionFontSizeSmall:d,optionFontSizeMedium:f,optionFontSizeLarge:h,optionFontSizeHuge:p,optionHeightSmall:v,optionHeightMedium:m,optionHeightLarge:g,optionHeightHuge:b,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:s,optionTextColorActive:l,optionOpacityDisabled:u,optionCheckColor:l,optionColorPending:c,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:c,actionTextColor:i,loadingColor:l})},Pt=(0,Y.j)({name:"InternalSelectMenu",common:_e.Z,peers:{Scrollbar:Ot.Z,Empty:St},self:Lt});var Mt=Pt;function It(e){const t=e.filter((e=>void 0!==e));if(0!==t.length)return 1===t.length?t[0]:t=>{e.forEach((e=>{e&&e(t)}))}}var Bt=(0,r.aZ)({name:"Checkmark",render(){return(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,r.h)("g",{fill:"none"},(0,r.h)("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Dt=n(6102);function jt(e,t){return(0,r.h)(i.uT,{name:"fade-in-scale-up-transition"},{default:()=>e?(0,r.h)(Fe.Z,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>(0,r.h)(Bt)}):null})}var Ft=(0,r.aZ)({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:o,valueSetRef:i,renderLabelRef:a,renderOptionRef:s,labelFieldRef:l,valueFieldRef:u,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:h}=(0,r.f3)(Dt.M),p=(0,st.Z)((()=>{const{value:t}=n;return!!t&&e.tmNode.key===t.key}));function v(t){const{tmNode:n}=e;n.disabled||f(t,n)}function m(t){const{tmNode:n}=e;n.disabled||h(t,n)}function g(t){const{tmNode:n}=e,{value:r}=p;n.disabled||r||h(t,n)}return{multiple:o,isGrouped:(0,st.Z)((()=>{const{tmNode:t}=e,{parent:n}=t;return n&&"group"===n.rawNode.type})),showCheckmark:c,nodeProps:d,isPending:p,isSelected:(0,st.Z)((()=>{const{value:n}=t,{value:r}=o;if(null===n)return!1;const a=e.tmNode.rawNode[u.value];if(r){const{value:e}=i;return e.has(a)}return n===a})),labelField:l,renderLabel:a,renderOption:s,handleMouseMove:g,handleMouseEnter:m,handleClick:v}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:o,isGrouped:i,showCheckmark:a,nodeProps:s,renderOption:l,renderLabel:u,handleClick:c,handleMouseEnter:d,handleMouseMove:f}=this,h=jt(n,e),p=u?[u(t,n),a&&h]:[(0,ke.s)(t[this.labelField],t,n),a&&h],v=null===s||void 0===s?void 0:s(t),m=(0,r.h)("div",Object.assign({},v,{class:[`${e}-base-select-option`,t.class,null===v||void 0===v?void 0:v.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:i,[`${e}-base-select-option--pending`]:o,[`${e}-base-select-option--show-checkmark`]:a}],style:[(null===v||void 0===v?void 0:v.style)||"",t.style||""],onClick:It([c,null===v||void 0===v?void 0:v.onClick]),onMouseenter:It([d,null===v||void 0===v?void 0:v.onMouseenter]),onMousemove:It([f,null===v||void 0===v?void 0:v.onMousemove])}),(0,r.h)("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:m,option:t,selected:n}):l?l({node:m,option:t,selected:n}):m}}),zt=(0,r.aZ)({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:o}=(0,r.f3)(Dt.M);return{labelField:n,nodeProps:o,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:o,tmNode:{rawNode:i}}=this,a=null===o||void 0===o?void 0:o(i),s=t?t(i,!1):(0,ke.s)(i[this.labelField],i,!1),l=(0,r.h)("div",Object.assign({},a,{class:[`${e}-base-select-group-header`,null===a||void 0===a?void 0:a.class]}),s);return i.render?i.render({node:l,option:i}):n?n({node:l,option:i,selected:!1}):l}}),Nt=n(419),$t=(0,Ce.cB)("base-select-menu","\n line-height: 1.5;\n outline: none;\n z-index: 0;\n position: relative;\n border-radius: var(--n-border-radius);\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-color);\n",[(0,Ce.cB)("scrollbar","\n max-height: var(--n-height);\n "),(0,Ce.cB)("virtual-list","\n max-height: var(--n-height);\n "),(0,Ce.cB)("base-select-option","\n min-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n display: flex;\n align-items: center;\n ",[(0,Ce.cE)("content","\n z-index: 1;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n ")]),(0,Ce.cB)("base-select-group-header","\n min-height: var(--n-option-height);\n font-size: .93em;\n display: flex;\n align-items: center;\n "),(0,Ce.cB)("base-select-menu-option-wrapper","\n position: relative;\n width: 100%;\n "),(0,Ce.cE)("loading, empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),(0,Ce.cE)("loading","\n color: var(--n-loading-color);\n font-size: var(--n-loading-size);\n "),(0,Ce.cE)("action","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-top: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),(0,Ce.cB)("base-select-group-header","\n position: relative;\n cursor: default;\n padding: var(--n-option-padding);\n color: var(--n-group-header-text-color);\n "),(0,Ce.cB)("base-select-option","\n cursor: pointer;\n position: relative;\n padding: var(--n-option-padding);\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n box-sizing: border-box;\n color: var(--n-option-text-color);\n opacity: 1;\n ",[(0,Ce.cM)("show-checkmark","\n padding-right: calc(var(--n-option-padding-right) + 20px);\n "),(0,Ce.c)("&::before",'\n content: "";\n position: absolute;\n left: 4px;\n right: 4px;\n top: 0;\n bottom: 0;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),(0,Ce.c)("&:active","\n color: var(--n-option-text-color-pressed);\n "),(0,Ce.cM)("grouped","\n padding-left: calc(var(--n-option-padding-left) * 1.5);\n "),(0,Ce.cM)("pending",[(0,Ce.c)("&::before","\n background-color: var(--n-option-color-pending);\n ")]),(0,Ce.cM)("selected","\n color: var(--n-option-text-color-active);\n ",[(0,Ce.c)("&::before","\n background-color: var(--n-option-color-active);\n "),(0,Ce.cM)("pending",[(0,Ce.c)("&::before","\n background-color: var(--n-option-color-active-pending);\n ")])]),(0,Ce.cM)("disabled","\n cursor: not-allowed;\n ",[(0,Ce.u4)("selected","\n color: var(--n-option-text-color-disabled);\n "),(0,Ce.cM)("selected","\n opacity: var(--n-option-opacity-disabled);\n ")]),(0,Ce.cE)("check","\n font-size: 16px;\n position: absolute;\n right: calc(var(--n-option-padding-right) - 4px);\n top: calc(50% - 7px);\n color: var(--n-option-check-color);\n transition: color .3s var(--n-bezier);\n ",[(0,Nt.h)({enterScale:"0.5"})])])]),Ut=(0,r.aZ)({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Y.Z.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const t=(0,Y.Z)("InternalSelectMenu","-internal-select-menu",$t,Mt,e,(0,o.Vh)(e,"clsPrefix")),n=(0,o.iH)(null),i=(0,o.iH)(null),a=(0,o.iH)(null),l=(0,r.Fl)((()=>e.treeMate.getFlattenedNodes())),u=(0,r.Fl)((()=>E(l.value))),c=(0,o.iH)(null);function d(){const{treeMate:t}=e;let n=null;const{value:r}=e;null===r?n=t.getFirstAvailableNode():(n=e.multiple?t.getNode((r||[])[(r||[]).length-1]):t.getNode(r),n&&!n.disabled||(n=t.getFirstAvailableNode())),L(n||null)}function f(){const{value:t}=c;t&&!e.treeMate.getNode(t.key)&&(c.value=null)}let h;(0,r.YP)((()=>e.show),(t=>{t?h=(0,r.YP)((()=>e.treeMate),(()=>{e.resetMenuOnOptionsChange?(e.autoPending?d():f(),(0,r.Y3)(P)):f()}),{immediate:!0}):null===h||void 0===h||h()}),{immediate:!0}),(0,r.Jd)((()=>{null===h||void 0===h||h()}));const p=(0,r.Fl)((()=>rt(t.value.self[(0,ve.T)("optionHeight",e.size)]))),v=(0,r.Fl)((()=>it(t.value.self[(0,ve.T)("padding",e.size)]))),m=(0,r.Fl)((()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set)),g=(0,r.Fl)((()=>{const e=l.value;return e&&0===e.length}));function b(t){const{onToggle:n}=e;n&&n(t)}function y(t){const{onScroll:n}=e;n&&n(t)}function _(e){var t;null===(t=a.value)||void 0===t||t.sync(),y(e)}function w(){var e;null===(e=a.value)||void 0===e||e.sync()}function S(){const{value:e}=c;return e||null}function x(e,t){t.disabled||L(t,!1)}function C(e,t){t.disabled||b(t)}function R(t){var n;s(t,"action")||null===(n=e.onKeyup)||void 0===n||n.call(e,t)}function T(t){var n;s(t,"action")||null===(n=e.onKeydown)||void 0===n||n.call(e,t)}function A(t){var n;null===(n=e.onMousedown)||void 0===n||n.call(e,t),e.focusable||t.preventDefault()}function O(){const{value:e}=c;e&&L(e.getNext({loop:!0}),!0)}function k(){const{value:e}=c;e&&L(e.getPrev({loop:!0}),!0)}function L(e,t=!1){c.value=e,t&&P()}function P(){var t,n;const r=c.value;if(!r)return;const o=u.value(r.key);null!==o&&(e.virtualScroll?null===(t=i.value)||void 0===t||t.scrollTo({index:o}):null===(n=a.value)||void 0===n||n.scrollTo({index:o,elSize:p.value}))}function M(t){var r,o;(null===(r=n.value)||void 0===r?void 0:r.contains(t.target))&&(null===(o=e.onFocus)||void 0===o||o.call(e,t))}function I(t){var r,o;(null===(r=n.value)||void 0===r?void 0:r.contains(t.relatedTarget))||null===(o=e.onBlur)||void 0===o||o.call(e,t)}(0,r.JJ)(Dt.M,{handleOptionMouseEnter:x,handleOptionClick:C,valueSetRef:m,pendingTmNodeRef:c,nodePropsRef:(0,o.Vh)(e,"nodeProps"),showCheckmarkRef:(0,o.Vh)(e,"showCheckmark"),multipleRef:(0,o.Vh)(e,"multiple"),valueRef:(0,o.Vh)(e,"value"),renderLabelRef:(0,o.Vh)(e,"renderLabel"),renderOptionRef:(0,o.Vh)(e,"renderOption"),labelFieldRef:(0,o.Vh)(e,"labelField"),valueFieldRef:(0,o.Vh)(e,"valueField")}),(0,r.JJ)(Dt.G,n),(0,r.bv)((()=>{const{value:e}=a;e&&e.sync()}));const B=(0,r.Fl)((()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:r},self:{height:o,borderRadius:i,color:a,groupHeaderTextColor:s,actionDividerColor:l,optionTextColorPressed:u,optionTextColor:c,optionTextColorDisabled:d,optionTextColorActive:f,optionOpacityDisabled:h,optionCheckColor:p,actionTextColor:v,optionColorPending:m,optionColorActive:g,loadingColor:b,loadingSize:y,optionColorActivePending:_,[(0,ve.T)("optionFontSize",n)]:w,[(0,ve.T)("optionHeight",n)]:S,[(0,ve.T)("optionPadding",n)]:x}}=t.value;return{"--n-height":o,"--n-action-divider-color":l,"--n-action-text-color":v,"--n-bezier":r,"--n-border-radius":i,"--n-color":a,"--n-option-font-size":w,"--n-group-header-text-color":s,"--n-option-check-color":p,"--n-option-color-pending":m,"--n-option-color-active":g,"--n-option-color-active-pending":_,"--n-option-height":S,"--n-option-opacity-disabled":h,"--n-option-text-color":c,"--n-option-text-color-active":f,"--n-option-text-color-disabled":d,"--n-option-text-color-pressed":u,"--n-option-padding":x,"--n-option-padding-left":it(x,"left"),"--n-option-padding-right":it(x,"right"),"--n-loading-color":b,"--n-loading-size":y}})),{inlineThemeDisabled:D}=e,j=D?(0,ne.F)("internal-select-menu",(0,r.Fl)((()=>e.size[0])),B,e):void 0,F={selfRef:n,next:O,prev:k,getPendingTmNode:S};return Pe(n,e.onResize),Object.assign({mergedTheme:t,virtualListRef:i,scrollbarRef:a,itemSize:p,padding:v,flattenedNodes:l,empty:g,virtualListContainer(){const{value:e}=i;return null===e||void 0===e?void 0:e.listElRef},virtualListContent(){const{value:e}=i;return null===e||void 0===e?void 0:e.itemsElRef},doScroll:y,handleFocusin:M,handleFocusout:I,handleKeyUp:R,handleKeyDown:T,handleMouseDown:A,handleVirtualListResize:w,handleVirtualListScroll:_,cssVars:D?void 0:B,themeClass:null===j||void 0===j?void 0:j.themeClass,onRender:null===j||void 0===j?void 0:j.onRender},F)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:o,themeClass:i,onRender:a}=this;return null===a||void 0===a||a(),(0,r.h)("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,i,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?(0,r.h)("div",{class:`${n}-base-select-menu__loading`},(0,r.h)(Ge,{clsPrefix:n,strokeWidth:20})):this.empty?(0,r.h)("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},(0,ge.gI)(e.empty,(()=>[(0,r.h)(Ct,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})]))):(0,r.h)(Rt.Z,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?(0,r.h)(mt,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:e})=>e.isGroup?(0,r.h)(zt,{key:e.key,clsPrefix:n,tmNode:e}):e.ignored?null:(0,r.h)(Ft,{clsPrefix:n,key:e.key,tmNode:e})}):(0,r.h)("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map((e=>e.isGroup?(0,r.h)(zt,{key:e.key,clsPrefix:n,tmNode:e}):(0,r.h)(Ft,{clsPrefix:n,key:e.key,tmNode:e}))))}),(0,ge.K9)(e.action,(e=>e&&[(0,r.h)("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},e),(0,r.h)(At,{onFocus:this.onTabOut,key:"focus-detector"})])))}});function Zt(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Ht=(0,Y.j)({name:"Select",common:_e.Z,peers:{InternalSelection:et,InternalSelectMenu:Mt},self:Zt});var Vt=Ht;function Wt(e){return"group"===e.type}function Gt(e){return"ignored"===e.type}function Kt(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch(n){return!1}}function qt(e,t){const n={getIsGroup:Wt,getIgnored:Gt,getKey(t){return Wt(t)?t.name||t.key||"key-required":t[e]},getChildren(e){return e[t]}};return n}function Yt(e,t,n,r){if(!t)return e;function o(e){if(!Array.isArray(e))return[];const i=[];for(const a of e)if(Wt(a)){const e=o(a[r]);e.length&&i.push(Object.assign({},a,{[r]:e}))}else{if(Gt(a))continue;t(n,a)&&i.push(a)}return i}return o(e)}function Xt(e,t,n){const r=new Map;return e.forEach((e=>{Wt(e)?e[n].forEach((e=>{r.set(e[t],e)})):r.set(e[t],e)})),r}var Jt=(0,Ce.c)([(0,Ce.cB)("select","\n z-index: auto;\n outline: none;\n width: 100%;\n position: relative;\n "),(0,Ce.cB)("select-menu","\n margin: 4px 0;\n box-shadow: var(--n-menu-box-shadow);\n ",[(0,Nt.h)({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]);const Qt=Object.assign(Object.assign({},Y.Z.props),{to:re.n.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array});var en=(0,r.aZ)({name:"Select",props:Qt,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:i,inlineThemeDisabled:l}=(0,X.Z)(e),u=(0,Y.Z)("Select","-select",Jt,Vt,e,t),c=(0,o.iH)(e.defaultValue),d=(0,o.Vh)(e,"value"),f=(0,W.Z)(d,c),h=(0,o.iH)(!1),p=(0,o.iH)(""),v=(0,r.Fl)((()=>{const{valueField:t,childrenField:n}=e,r=qt(t,n);return U(P.value,r)})),m=(0,r.Fl)((()=>Xt(k.value,e.valueField,e.childrenField))),g=(0,o.iH)(!1),b=(0,W.Z)((0,o.Vh)(e,"show"),g),y=(0,o.iH)(null),_=(0,o.iH)(null),w=(0,o.iH)(null),{localeRef:S}=(0,J.Z)("Select"),x=(0,r.Fl)((()=>{var t;return null!==(t=e.placeholder)&&void 0!==t?t:S.value.placeholder})),E=(0,G.Z)(e,["items","options"]),C=[],R=(0,o.iH)([]),T=(0,o.iH)([]),A=(0,o.iH)(new Map),O=(0,r.Fl)((()=>{const{fallbackOption:t}=e;if(void 0===t){const{labelField:t,valueField:n}=e;return e=>({[t]:String(e),[n]:e})}return!1!==t&&(e=>Object.assign(t(e),{value:e}))})),k=(0,r.Fl)((()=>T.value.concat(R.value).concat(E.value))),L=(0,r.Fl)((()=>{const{filter:t}=e;if(t)return t;const{labelField:n,valueField:r}=e;return(e,t)=>{if(!t)return!1;const o=t[n];if("string"===typeof o)return Kt(e,o);const i=t[r];return"string"===typeof i?Kt(e,i):"number"===typeof i&&Kt(e,String(i))}})),P=(0,r.Fl)((()=>{if(e.remote)return E.value;{const{value:t}=k,{value:n}=p;return n.length&&e.filterable?Yt(t,L.value,n,e.childrenField):t}}));function M(t){const n=e.remote,{value:r}=A,{value:o}=m,{value:i}=O,a=[];return t.forEach((e=>{if(o.has(e))a.push(o.get(e));else if(n&&r.has(e))a.push(r.get(e));else if(i){const t=i(e);t&&a.push(t)}})),a}const I=(0,r.Fl)((()=>{if(e.multiple){const{value:e}=f;return Array.isArray(e)?M(e):[]}return null})),B=(0,r.Fl)((()=>{const{value:t}=f;return e.multiple||Array.isArray(t)||null===t?null:M([t])[0]||null})),D=te(e),{mergedSizeRef:j,mergedDisabledRef:F,mergedStatusRef:z}=D;function N(t,n){const{onChange:r,"onUpdate:value":o,onUpdateValue:i}=e,{nTriggerFormChange:a,nTriggerFormInput:s}=D;r&&(0,oe.R)(r,t,n),i&&(0,oe.R)(i,t,n),o&&(0,oe.R)(o,t,n),c.value=t,a(),s()}function $(t){const{onBlur:n}=e,{nTriggerFormBlur:r}=D;n&&(0,oe.R)(n,t),r()}function Z(){const{onClear:t}=e;t&&(0,oe.R)(t)}function H(t){const{onFocus:n}=e,{nTriggerFormFocus:r}=D;n&&(0,oe.R)(n,t),r()}function V(t){const{onSearch:n}=e;n&&(0,oe.R)(n,t)}function q(t){const{onScroll:n}=e;n&&(0,oe.R)(n,t)}function Q(){var t;const{remote:n,multiple:r}=e;if(n){const{value:n}=A;if(r){const{valueField:r}=e;null===(t=I.value)||void 0===t||t.forEach((e=>{n.set(e[r],e)}))}else{const t=B.value;t&&n.set(t[e.valueField],t)}}}function ee(t){const{onUpdateShow:n,"onUpdate:show":r}=e;n&&(0,oe.R)(n,t),r&&(0,oe.R)(r,t),g.value=t}function ie(){F.value||(ee(!0),g.value=!0,e.filterable&&Oe())}function se(){ee(!1)}function le(){p.value="",T.value=C}const ue=(0,o.iH)(!1);function ce(){e.filterable&&(ue.value=!0)}function de(){e.filterable&&(ue.value=!1,b.value||le())}function fe(){F.value||(b.value?e.filterable?Oe():se():ie())}function he(e){var t,n;(null===(n=null===(t=w.value)||void 0===t?void 0:t.selfRef)||void 0===n?void 0:n.contains(e.relatedTarget))||(h.value=!1,$(e),se())}function pe(e){H(e),h.value=!0}function ve(e){h.value=!0}function me(e){var t;(null===(t=y.value)||void 0===t?void 0:t.$el.contains(e.relatedTarget))||(h.value=!1,$(e),se())}function ge(){var e;null===(e=y.value)||void 0===e||e.focus(),se()}function be(e){var t;b.value&&((null===(t=y.value)||void 0===t?void 0:t.$el.contains((0,a.p)(e)))||se())}function ye(t){if(!Array.isArray(t))return[];if(O.value)return Array.from(t);{const{remote:n}=e,{value:r}=m;if(n){const{value:e}=A;return t.filter((t=>r.has(t)||e.has(t)))}return t.filter((e=>r.has(e)))}}function _e(e){we(e.rawNode)}function we(t){if(F.value)return;const{tag:n,remote:r,clearFilterAfterSelect:o,valueField:i}=e;if(n&&!r){const{value:e}=T,t=e[0]||null;if(t){const e=R.value;e.length?e.push(t):R.value=[t],T.value=C}}if(r&&A.value.set(t[i],t),e.multiple){const e=ye(f.value),a=e.findIndex((e=>e===t[i]));if(~a){if(e.splice(a,1),n&&!r){const e=Se(t[i]);~e&&(R.value.splice(e,1),o&&(p.value=""))}}else e.push(t[i]),o&&(p.value="");N(e,M(e))}else{if(n&&!r){const e=Se(t[i]);R.value=~e?[R.value[e]]:C}Ae(),se(),N(t[i],t)}}function Se(t){const n=R.value;return n.findIndex((n=>n[e.valueField]===t))}function xe(t){b.value||ie();const{value:n}=t.target;p.value=n;const{tag:r,remote:o}=e;if(V(n),r&&!o){if(!n)return void(T.value=C);const{onCreate:t}=e,r=t?t(n):{[e.labelField]:n,[e.valueField]:n},{valueField:o}=e;E.value.some((e=>e[o]===r[o]))||R.value.some((e=>e[o]===r[o]))?T.value=C:T.value=[r]}}function Ee(t){t.stopPropagation();const{multiple:n}=e;!n&&e.filterable&&se(),Z(),n?N([],[]):N(null,null)}function Ce(e){s(e,"action")||s(e,"empty")||e.preventDefault()}function Re(e){q(e)}function Te(t){var n,r,o,i,a;switch(t.key){case" ":if(e.filterable)break;t.preventDefault();case"Enter":if(!(null===(n=y.value)||void 0===n?void 0:n.isComposing))if(b.value){const t=null===(r=w.value)||void 0===r?void 0:r.getPendingTmNode();t?_e(t):e.filterable||(se(),Ae())}else if(ie(),e.tag&&ue.value){const t=T.value[0];if(t){const n=t[e.valueField],{value:r}=f;e.multiple&&Array.isArray(r)&&r.some((e=>e===n))||we(t)}}t.preventDefault();break;case"ArrowUp":if(t.preventDefault(),e.loading)return;b.value&&(null===(o=w.value)||void 0===o||o.prev());break;case"ArrowDown":if(t.preventDefault(),e.loading)return;b.value?null===(i=w.value)||void 0===i||i.next():ie();break;case"Escape":b.value&&(ae(t),se()),null===(a=y.value)||void 0===a||a.focus();break}}function Ae(){var e;null===(e=y.value)||void 0===e||e.focus()}function Oe(){var e;null===(e=y.value)||void 0===e||e.focusInput()}function ke(){var e;b.value&&(null===(e=_.value)||void 0===e||e.syncPosition())}Q(),(0,r.YP)((0,o.Vh)(e,"options"),Q);const Le={focus:()=>{var e;null===(e=y.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=y.value)||void 0===e||e.blur()}},Pe=(0,r.Fl)((()=>{const{self:{menuBoxShadow:e}}=u.value;return{"--n-menu-box-shadow":e}})),Me=l?(0,ne.F)("select",void 0,Pe,e):void 0;return Object.assign(Object.assign({},Le),{mergedStatus:z,mergedClsPrefix:t,mergedBordered:n,namespace:i,treeMate:v,isMounted:(0,K.Z)(),triggerRef:y,menuRef:w,pattern:p,uncontrolledShow:g,mergedShow:b,adjustedTo:(0,re.n)(e),uncontrolledValue:c,mergedValue:f,followerRef:_,localizedPlaceholder:x,selectedOption:B,selectedOptions:I,mergedSize:j,mergedDisabled:F,focused:h,activeWithoutMenuOpen:ue,inlineThemeDisabled:l,onTriggerInputFocus:ce,onTriggerInputBlur:de,handleTriggerOrMenuResize:ke,handleMenuFocus:ve,handleMenuBlur:me,handleMenuTabOut:ge,handleTriggerClick:fe,handleToggle:_e,handleDeleteOption:we,handlePatternInput:xe,handleClear:Ee,handleTriggerBlur:he,handleTriggerFocus:pe,handleKeydown:Te,handleMenuAfterLeave:le,handleMenuClickOutside:be,handleMenuScroll:Re,handleMenuKeydown:Te,handleMenuMousedown:Ce,mergedTheme:u,cssVars:l?void 0:Pe,themeClass:null===Me||void 0===Me?void 0:Me.themeClass,onRender:null===Me||void 0===Me?void 0:Me.onRender})},render(){return(0,r.h)("div",{class:`${this.mergedClsPrefix}-select`},(0,r.h)(Z.Z,null,{default:()=>[(0,r.h)(H.Z,null,{default:()=>(0,r.h)(nt,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[null===(t=(e=this.$slots).arrow)||void 0===t?void 0:t.call(e)]}})}),(0,r.h)(V.Z,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===re.n.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>(0,r.h)(i.uT,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||"show"===this.displayDirective?(null===(e=this.onRender)||void 0===e||e.call(this),(0,r.wy)((0,r.h)(Ut,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,null===(t=this.menuProps)||void 0===t?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[null===(n=this.menuProps)||void 0===n?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var e,t;return[null===(t=(e=this.$slots).empty)||void 0===t?void 0:t.call(e)]},action:()=>{var e,t;return[null===(t=(e=this.$slots).action)||void 0===t?void 0:t.call(e)]}}),"show"===this.displayDirective?[[i.F8,this.mergedShow],[q.Z,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[q.Z,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}})},2695:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(3396),o=n(8448),i=n(8635);const a={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]};t["Z"]=(0,r.aZ)({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:a,setup(e){const t=(0,r.f3)(i.x,null);return t||(0,o._y)("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return(0,r.h)("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}})},705:function(e,t,n){"use strict";n.d(t,{Z:function(){return ce}});n(7658);var r=n(3396),o=n(4870),i=n(9242),a=n(8125),s=n(1496),l=n(8224);const u=(0,l.c)(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[(0,l.c)("&::-webkit-scrollbar",{width:0,height:0})]);var c=(0,r.aZ)({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=(0,o.iH)(null);function t(e){const t=e.currentTarget.offsetWidth=t||n<0||f&&r>=i}function y(){var e=p();if(b(e))return _(e);s=setTimeout(y,g(e))}function _(e){return s=void 0,h&&r?v(e):(r=o=void 0,a)}function w(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0}function S(){return void 0===s?a:_(p())}function x(){var e=p(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return m(l);if(f)return clearTimeout(s),s=setTimeout(y,t),v(l)}return void 0===s&&(s=setTimeout(y,t)),a}return t=A(t)||0,(0,d.Z)(n)&&(c=!!n.leading,f="maxWait"in n,i=f?k(A(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),x.cancel=w,x.flush=S,x}var M=P,I="Expected a function";function B(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(I);return(0,d.Z)(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),M(e,t,{leading:r,maxWait:t,trailing:o})}var D=B,j=n(6307),F=n(7477),z=n(9754),N=n(8107),$=n(9420),U=n(6455),Z=n(9940),H=n(8089),V=n(5608),W=n(4092),G={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"},K=n(8308);const q=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,tabColor:u,baseColor:c,dividerColor:d,fontWeight:f,textColor1:h,borderRadius:p,fontSize:v,fontWeightStrong:m}=e;return Object.assign(Object.assign({},G),{colorSegment:u,tabFontSizeCard:v,tabTextColorLine:h,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:s,closeColorPressed:l,closeBorderRadius:p,tabColor:u,tabColorSegment:c,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:m})},Y={name:"Tabs",common:K.Z,self:q};var X=Y,J=n(8635),Q=(0,r.aZ)({name:"Add",render(){return(0,r.h)("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),ee=n(9611),te=n(5556);function ne(e,t=[],n){const r={},o=Object.getOwnPropertyNames(e);return o.forEach((n=>{t.includes(n)||(r[n]=e[n])})),Object.assign(r,n)}var re=n(7902),oe=n(2695);const ie=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},ne(oe.i,["displayDirective"]));var ae=(0,r.aZ)({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:ie,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:o,closableRef:i,tabStyleRef:a,tabChangeIdRef:s,onBeforeLeaveRef:l,triggerRef:u,handleAdd:c,activateTab:d,handleClose:f}=(0,r.f3)(J.x);return{trigger:u,mergedClosable:(0,r.Fl)((()=>{if(e.internalAddable)return!1;const{closable:t}=e;return void 0===t?i.value:t})),style:a,clsPrefix:t,value:n,type:o,handleClose(t){t.stopPropagation(),e.disabled||f(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable)return void c();const{name:t}=e,r=++s.id;if(t!==n.value){const{value:o}=l;o?Promise.resolve(o(e.name,n.value)).then((e=>{e&&s.id===r&&d(t)})):d(t)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:o,label:i,tab:a,value:s,mergedClosable:l,style:u,trigger:c,$slots:{default:d}}=this,f=null!==i&&void 0!==i?i:a;return(0,r.h)("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?(0,r.h)("div",{class:`${t}-tabs-tab-pad`}):null,(0,r.h)("div",Object.assign({key:n,"data-name":n,"data-disabled":!!o||void 0},(0,r.dG)({class:[`${t}-tabs-tab`,s===n&&`${t}-tabs-tab--active`,o&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:"click"===c?this.activateTab:void 0,onMouseenter:"hover"===c?this.activateTab:void 0,style:e?void 0:u},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),(0,r.h)("span",{class:`${t}-tabs-tab__label`},e?(0,r.h)(r.HY,null,(0,r.h)("div",{class:`${t}-tabs-tab__height-placeholder`}," "),(0,r.h)(ee.Z,{clsPrefix:t},{default:()=>(0,r.h)(Q,null)})):d?d():"object"===typeof f?f:(0,re.s)(null!==f&&void 0!==f?f:n)),l&&"card"===this.type?(0,r.h)(te.Z,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:o}):null))}}),se=n(411),le=(0,se.cB)("tabs","\n box-sizing: border-box;\n width: 100%;\n transition:\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n",[(0,se.cM)("segment-type",[(0,se.cB)("tabs-rail",[(0,se.c)("&.transition-disabled","color: red;",[(0,se.cB)("tabs-tab","\n transition: none;\n ")])])]),(0,se.cB)("tabs-rail","\n padding: 3px;\n border-radius: var(--n-tab-border-radius);\n width: 100%;\n background-color: var(--n-color-segment);\n transition: background-color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n ",[(0,se.cB)("tabs-tab-wrapper","\n flex-basis: 0;\n flex-grow: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[(0,se.cB)("tabs-tab","\n overflow: hidden;\n border-radius: var(--n-tab-border-radius);\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[(0,se.cM)("active","\n font-weight: var(--n-font-weight-strong);\n color: var(--n-tab-text-color-active);\n background-color: var(--n-tab-color-segment);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);\n "),(0,se.c)("&:hover","\n color: var(--n-tab-text-color-hover);\n ")])])]),(0,se.cM)("flex",[(0,se.cB)("tabs-nav",{width:"100%"},[(0,se.cB)("tabs-wrapper",{width:"100%"},[(0,se.cB)("tabs-tab",{marginRight:0})])])]),(0,se.cB)("tabs-nav","\n box-sizing: border-box;\n line-height: 1.5;\n display: flex;\n transition: border-color .3s var(--n-bezier);\n ",[(0,se.cE)("prefix, suffix","\n display: flex;\n align-items: center;\n "),(0,se.cE)("prefix","padding-right: 16px;"),(0,se.cE)("suffix","padding-left: 16px;")]),(0,se.cB)("tabs-nav-scroll-wrapper","\n flex: 1;\n position: relative;\n overflow: hidden;\n ",[(0,se.cM)("shadow-before",[(0,se.c)("&::before","\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);\n ")]),(0,se.cM)("shadow-after",[(0,se.c)("&::after","\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);\n ")]),(0,se.c)("&::before, &::after",'\n transition: box-shadow .3s var(--n-bezier);\n pointer-events: none;\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n width: 20px;\n z-index: 1;\n '),(0,se.c)("&::before","\n left: 0;\n "),(0,se.c)("&::after","\n right: 0;\n ")]),(0,se.cB)("tabs-nav-scroll-content","\n display: flex;\n position: relative;\n min-width: 100%;\n width: fit-content;\n "),(0,se.cB)("tabs-wrapper","\n display: inline-flex;\n flex-wrap: nowrap;\n position: relative;\n "),(0,se.cB)("tabs-tab-wrapper","\n display: flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n flex-grow: 0;\n "),(0,se.cB)("tabs-tab","\n cursor: pointer;\n white-space: nowrap;\n flex-wrap: nowrap;\n display: inline-flex;\n align-items: center;\n color: var(--n-tab-text-color);\n font-size: var(--n-tab-font-size);\n background-clip: padding-box;\n padding: var(--n-tab-padding);\n transition:\n box-shadow .3s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[(0,se.cM)("disabled",{cursor:"not-allowed"}),(0,se.cE)("close","\n margin-left: 6px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n "),(0,se.cE)("label","\n display: flex;\n align-items: center;\n ")]),(0,se.cB)("tabs-bar","\n position: absolute;\n bottom: 0;\n height: 2px;\n border-radius: 1px;\n background-color: var(--n-bar-color);\n transition:\n left .2s var(--n-bezier),\n max-width .2s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ",[(0,se.c)("&.transition-disabled","\n transition: none;\n "),(0,se.cM)("disabled","\n background-color: var(--n-tab-text-color-disabled)\n ")]),(0,se.cB)("tabs-pane-wrapper","\n position: relative;\n overflow: hidden;\n transition: max-height .2s var(--n-bezier);\n "),(0,se.cB)("tab-pane","\n color: var(--n-pane-text-color);\n width: 100%;\n padding: var(--n-pane-padding);\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .2s var(--n-bezier);\n left: 0;\n right: 0;\n top: 0;\n ",[(0,se.c)("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active","\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n transform .2s var(--n-bezier),\n opacity .2s var(--n-bezier);\n "),(0,se.c)("&.next-transition-leave-active, &.prev-transition-leave-active","\n position: absolute;\n "),(0,se.c)("&.next-transition-enter-from, &.prev-transition-leave-to","\n transform: translateX(32px);\n opacity: 0;\n "),(0,se.c)("&.next-transition-leave-to, &.prev-transition-enter-from","\n transform: translateX(-32px);\n opacity: 0;\n "),(0,se.c)("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to","\n transform: translateX(0);\n opacity: 1;\n ")]),(0,se.cB)("tabs-tab-pad","\n width: var(--n-tab-gap);\n flex-grow: 0;\n flex-shrink: 0;\n "),(0,se.cM)("line-type, bar-type",[(0,se.cB)("tabs-tab","\n font-weight: var(--n-tab-font-weight);\n box-sizing: border-box;\n vertical-align: bottom;\n ",[(0,se.c)("&:hover",{color:"var(--n-tab-text-color-hover)"}),(0,se.cM)("active","\n color: var(--n-tab-text-color-active);\n font-weight: var(--n-tab-font-weight-active);\n "),(0,se.cM)("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),(0,se.cB)("tabs-nav",[(0,se.cM)("line-type",[(0,se.cE)("prefix, suffix","\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),(0,se.cB)("tabs-nav-scroll-content","\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),(0,se.cB)("tabs-bar","\n border-radius: 0;\n bottom: -1px;\n ")]),(0,se.cM)("card-type",[(0,se.cE)("prefix, suffix","\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),(0,se.cB)("tabs-pad","\n flex-grow: 1;\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),(0,se.cB)("tabs-tab-pad","\n transition: border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-tab-border-color);\n "),(0,se.cB)("tabs-tab","\n font-weight: var(--n-tab-font-weight);\n border: 1px solid var(--n-tab-border-color);\n border-top-left-radius: var(--n-tab-border-radius);\n border-top-right-radius: var(--n-tab-border-radius);\n background-color: var(--n-tab-color);\n box-sizing: border-box;\n position: relative;\n vertical-align: bottom;\n display: flex;\n justify-content: space-between;\n font-size: var(--n-tab-font-size);\n color: var(--n-tab-text-color);\n ",[(0,se.cM)("addable","\n padding-left: 8px;\n padding-right: 8px;\n font-size: 16px;\n ",[(0,se.cE)("height-placeholder","\n width: 0;\n font-size: var(--n-tab-font-size);\n "),(0,se.u4)("disabled",[(0,se.c)("&:hover","\n color: var(--n-tab-text-color-hover);\n ")])]),(0,se.cM)("closable","padding-right: 6px;"),(0,se.cM)("active","\n border-bottom: 1px solid #0000;\n background-color: #0000;\n font-weight: var(--n-tab-font-weight-active);\n color: var(--n-tab-text-color-active);\n "),(0,se.cM)("disabled","color: var(--n-tab-text-color-disabled);")]),(0,se.cB)("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")])])]);const ue=Object.assign(Object.assign({},N.Z.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},tabStyle:[String,Object],barWidth:Number,paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]});var ce=(0,r.aZ)({name:"Tabs",props:ue,setup(e,{slots:t}){var n,i,a,s;const{mergedClsPrefixRef:l,inlineThemeDisabled:u}=(0,$.Z)(e),c=(0,N.Z)("Tabs","-tabs",le,X,e,l),d=(0,o.iH)(null),f=(0,o.iH)(null),h=(0,o.iH)(null),p=(0,o.iH)(null),v=(0,o.iH)(null),m=(0,o.iH)(!0),g=(0,o.iH)(!0),b=(0,j.Z)(e,["labelSize","size"]),y=(0,j.Z)(e,["activeName","value"]),_=(0,o.iH)(null!==(i=null!==(n=y.value)&&void 0!==n?n:e.defaultValue)&&void 0!==i?i:t.default?null===(s=null===(a=(0,Z.x)(t.default())[0])||void 0===a?void 0:a.props)||void 0===s?void 0:s.name:null),w=(0,F.Z)(y,_),S={id:0},x=(0,r.Fl)((()=>{if(e.justifyContent&&"card"!==e.type)return{display:"flex",justifyContent:e.justifyContent}}));function E(){var e;const{value:t}=w;if(null===t)return null;const n=null===(e=d.value)||void 0===e?void 0:e.querySelector(`[data-name="${t}"]`);return n}function C(t){if("card"===e.type)return;const{value:n}=f;if(n&&t){const r=`${l.value}-tabs-bar--disabled`,{barWidth:o}=e;if("true"===t.dataset.disabled?n.classList.add(r):n.classList.remove(r),"number"===typeof o&&t.offsetWidth>=o){const e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;n.style.left=`${e}px`,n.style.maxWidth=`${o}px`}else n.style.left=`${t.offsetLeft}px`,n.style.maxWidth=`${t.offsetWidth}px`;n.style.width="8192px",n.offsetWidth}}function R(){if("card"===e.type)return;const t=E();t&&C(t)}function T(e){var t;const n=null===(t=v.value)||void 0===t?void 0:t.$el;if(!n)return;const r=E();if(!r)return;const{scrollLeft:o,offsetWidth:i}=n,{offsetLeft:a,offsetWidth:s}=r;o>a?n.scrollTo({top:0,left:a,behavior:"smooth"}):a+s>o+i&&n.scrollTo({top:0,left:a+s-i,behavior:"smooth"})}(0,r.YP)(w,(()=>{S.id=0,R(),T(!0)}));const A=(0,o.iH)(null);let O=0,k=null;function L(e){const t=A.value;if(t){O=e.getBoundingClientRect().height;const n=`${O}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};k?(r(),k(),k=null):k=r}}function P(e){const t=A.value;if(t){const n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(O,n)}px`};k?(k(),k=null,r()):k=r}}function M(){const e=A.value;e&&(e.style.maxHeight="",e.style.height="")}const I={value:[]},B=(0,o.iH)("next");function W(e){const t=w.value;let n="next";for(const r of I.value){if(r===t)break;if(r===e){n="prev";break}}B.value=n,G(e)}function G(t){const{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":o}=e;n&&(0,H.R)(n,t),r&&(0,H.R)(r,t),o&&(0,H.R)(o,t),_.value=t}function K(t){const{onClose:n}=e;n&&(0,H.R)(n,t)}let q=!0;function Y(){const{value:e}=f;if(!e)return;q||(q=!1);const t="transition-disabled";e.classList.add(t),R(),e.classList.remove(t)}let Q=0;function ee(t){var n,r;if(0===t.contentRect.width&&0===t.contentRect.height)return;if(Q===t.contentRect.width)return;Q=t.contentRect.width;const{type:o}=e;"line"!==o&&"bar"!==o||(q||(null===(n=e.justifyContent)||void 0===n?void 0:n.startsWith("space")))&&Y(),"segment"!==o&&ae(null===(r=v.value)||void 0===r?void 0:r.$el)}const te=D(ee,64);(0,r.YP)([()=>e.justifyContent,()=>e.size],(()=>{(0,r.Y3)((()=>{const{type:t}=e;"line"!==t&&"bar"!==t||Y()}))}));const ne=(0,o.iH)(!1);function re(e){var t;const{target:n,contentRect:{width:r}}=e,o=n.parentElement.offsetWidth;if(ne.value){const{value:e}=p;if(!e)return;o-r>e.$el.offsetWidth&&(ne.value=!1)}else o{const e=E(),{value:t}=v;e&&t&&t.scrollTo({left:e.offsetLeft,top:0,behavior:"smooth"})}))}function ae(e){if(!e)return;const{scrollLeft:t,scrollWidth:n,offsetWidth:r}=e;m.value=t<=0,g.value=t+r>=n}const se=D((e=>{ae(e.target)}),64);(0,r.JJ)(J.x,{triggerRef:(0,o.Vh)(e,"trigger"),tabStyleRef:(0,o.Vh)(e,"tabStyle"),paneClassRef:(0,o.Vh)(e,"paneClass"),paneStyleRef:(0,o.Vh)(e,"paneStyle"),mergedClsPrefixRef:l,typeRef:(0,o.Vh)(e,"type"),closableRef:(0,o.Vh)(e,"closable"),valueRef:w,tabChangeIdRef:S,onBeforeLeaveRef:(0,o.Vh)(e,"onBeforeLeave"),activateTab:W,handleClose:K,handleAdd:ie}),(0,z.Z)((()=>{R(),T(!0)})),(0,r.m0)((()=>{const{value:e}=h;if(!e)return;const{value:t}=l,n=`${t}-tabs-nav-scroll-wrapper--shadow-before`,r=`${t}-tabs-nav-scroll-wrapper--shadow-after`;m.value?e.classList.remove(n):e.classList.add(n),g.value?e.classList.remove(r):e.classList.add(r)}));const ue=(0,o.iH)(null);(0,r.YP)(w,(()=>{if("segment"===e.type){const e=ue.value;e&&(0,r.Y3)((()=>{e.classList.add("transition-disabled"),e.offsetWidth,e.classList.remove("transition-disabled")}))}}));const ce={syncBarPosition:()=>{R()}},de=(0,r.Fl)((()=>{const{value:t}=b,{type:n}=e,r={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[n],o=`${t}${r}`,{self:{barColor:i,closeIconColor:a,closeIconColorHover:s,closeIconColorPressed:l,tabColor:u,tabBorderColor:d,paneTextColor:f,tabFontWeight:h,tabBorderRadius:p,tabFontWeightActive:v,colorSegment:m,fontWeightStrong:g,tabColorSegment:y,closeSize:_,closeIconSize:w,closeColorHover:S,closeColorPressed:x,closeBorderRadius:E,[(0,V.T)("panePadding",t)]:C,[(0,V.T)("tabPadding",o)]:R,[(0,V.T)("tabGap",o)]:T,[(0,V.T)("tabTextColor",n)]:A,[(0,V.T)("tabTextColorActive",n)]:O,[(0,V.T)("tabTextColorHover",n)]:k,[(0,V.T)("tabTextColorDisabled",n)]:L,[(0,V.T)("tabFontSize",t)]:P},common:{cubicBezierEaseInOut:M}}=c.value;return{"--n-bezier":M,"--n-color-segment":m,"--n-bar-color":i,"--n-tab-font-size":P,"--n-tab-text-color":A,"--n-tab-text-color-active":O,"--n-tab-text-color-disabled":L,"--n-tab-text-color-hover":k,"--n-pane-text-color":f,"--n-tab-border-color":d,"--n-tab-border-radius":p,"--n-close-size":_,"--n-close-icon-size":w,"--n-close-color-hover":S,"--n-close-color-pressed":x,"--n-close-border-radius":E,"--n-close-icon-color":a,"--n-close-icon-color-hover":s,"--n-close-icon-color-pressed":l,"--n-tab-color":u,"--n-tab-font-weight":h,"--n-tab-font-weight-active":v,"--n-tab-padding":R,"--n-tab-gap":T,"--n-pane-padding":C,"--n-font-weight-strong":g,"--n-tab-color-segment":y}})),fe=u?(0,U.F)("tabs",(0,r.Fl)((()=>`${b.value[0]}${e.type[0]}`)),de,e):void 0;return Object.assign({mergedClsPrefix:l,mergedValue:w,renderedNames:new Set,tabsRailElRef:ue,tabsPaneWrapperRef:A,tabsElRef:d,barElRef:f,addTabInstRef:p,xScrollInstRef:v,scrollWrapperElRef:h,addTabFixed:ne,tabWrapperStyle:x,handleNavResize:te,mergedSize:b,handleScroll:se,handleTabsResize:oe,cssVars:u?void 0:de,themeClass:null===fe||void 0===fe?void 0:fe.themeClass,animationDirection:B,renderNameListRef:I,onAnimationBeforeLeave:L,onAnimationEnter:P,onAnimationAfterEnter:M,onRender:null===fe||void 0===fe?void 0:fe.onRender},ce)},render(){const{mergedClsPrefix:e,type:t,addTabFixed:n,addable:o,mergedSize:i,renderNameListRef:s,onRender:l,$slots:{default:u,prefix:d,suffix:f}}=this;null===l||void 0===l||l();const h=u?(0,Z.x)(u()).filter((e=>!0===e.type.__TAB_PANE__)):[],p=u?(0,Z.x)(u()).filter((e=>!0===e.type.__TAB__)):[],v=!p.length,m="card"===t,g="segment"===t,b=!m&&!g&&this.justifyContent;return s.value=[],(0,r.h)("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,b&&`${e}-tabs--flex`],style:this.cssVars},(0,r.h)("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav`]},(0,W.K9)(d,(t=>t&&(0,r.h)("div",{class:`${e}-tabs-nav__prefix`},t))),g?(0,r.h)("div",{class:`${e}-tabs-rail`,ref:"tabsRailElRef"},v?h.map(((e,t)=>(s.value.push(e.props.name),(0,r.h)(ae,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:0!==t}),e.children?{default:e.children.tab}:void 0)))):p.map(((e,t)=>(s.value.push(e.props.name),0===t?e:he(e))))):(0,r.h)(a.Z,{onResize:this.handleNavResize},{default:()=>(0,r.h)("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},(0,r.h)(c,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:()=>{const t=(0,r.h)("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},b?null:(0,r.h)("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?h.map(((e,t)=>(s.value.push(e.props.name),pe((0,r.h)(ae,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:0!==t&&(!b||"center"===b||"start"===b||"end"===b)}),e.children?{default:e.children.tab}:void 0))))):p.map(((e,t)=>(s.value.push(e.props.name),pe(0===t||b?e:he(e))))),!n&&o&&m?fe(o,0!==(v?h.length:p.length)):null,b?null:(0,r.h)("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));let i=t;return m&&o&&(i=(0,r.h)(a.Z,{onResize:this.handleTabsResize},{default:()=>t})),(0,r.h)("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},i,m?(0,r.h)("div",{class:`${e}-tabs-pad`}):null,m?null:(0,r.h)("div",{ref:"barElRef",class:`${e}-tabs-bar`}))}}))}),n&&o&&m?fe(o,!0):null,(0,W.K9)(f,(t=>t&&(0,r.h)("div",{class:`${e}-tabs-nav__suffix`},t)))),v&&(this.animated?(0,r.h)("div",{ref:"tabsPaneWrapperRef",class:`${e}-tabs-pane-wrapper`},de(h,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):de(h,this.mergedValue,this.renderedNames)))}});function de(e,t,n,o,a,s,l){const u=[];return e.forEach((e=>{const{name:o,displayDirective:a,"display-directive":s}=e.props,l=e=>a===e||s===e,c=t===o;if(void 0!==e.key&&(e.key=o),c||l("show")||l("show:lazy")&&n.has(o)){n.has(o)||n.add(o);const t=!l("if");u.push(t?(0,r.wy)(e,[[i.F8,c]]):e)}})),l?(0,r.h)(i.W3,{name:`${l}-transition`,onBeforeLeave:o,onEnter:a,onAfterEnter:s},{default:()=>u}):u}function fe(e,t){return(0,r.h)(ae,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:"object"===typeof e&&e.disabled})}function he(e){const t=(0,r.Ho)(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function pe(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}},8635:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(1295);const o=(0,r.U)("n-tabs")},5805:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});n(7658);let r=[];const o=new WeakMap;function i(){r.forEach((e=>e(...o.get(e)))),r=[]}function a(e,...t){o.set(e,t),r.includes(e)||1===r.push(e)&&requestAnimationFrame(i)}},4750:function(e,t,n){"use strict";n.d(t,{zX:function(){return S},h$:function(){return w},m4:function(){return g},tn:function(){return x}});n(1703);var r={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};const o="^\\s*",i="\\s*$",a="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",s="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",l="([0-9A-Fa-f])",u="([0-9A-Fa-f]{2})",c=(new RegExp(`${o}hsl\\s*\\(${s},${a},${a}\\)${i}`),new RegExp(`${o}hsv\\s*\\(${s},${a},${a}\\)${i}`),new RegExp(`${o}hsla\\s*\\(${s},${a},${a},${s}\\)${i}`),new RegExp(`${o}hsva\\s*\\(${s},${a},${a},${s}\\)${i}`),new RegExp(`${o}rgb\\s*\\(${s},${s},${s}\\)${i}`)),d=new RegExp(`${o}rgba\\s*\\(${s},${s},${s},${s}\\)${i}`),f=new RegExp(`${o}#${l}${l}${l}${i}`),h=new RegExp(`${o}#${u}${u}${u}${i}`),p=new RegExp(`${o}#${l}${l}${l}${l}${i}`),v=new RegExp(`${o}#${u}${u}${u}${u}${i}`);function m(e){return parseInt(e,16)}function g(e){try{let t;if(t=h.exec(e))return[m(t[1]),m(t[2]),m(t[3]),1];if(t=c.exec(e))return[C(t[1]),C(t[5]),C(t[9]),1];if(t=d.exec(e))return[C(t[1]),C(t[5]),C(t[9]),E(t[13])];if(t=f.exec(e))return[m(t[1]+t[1]),m(t[2]+t[2]),m(t[3]+t[3]),1];if(t=v.exec(e))return[m(t[1]),m(t[2]),m(t[3]),E(m(t[4])/255)];if(t=p.exec(e))return[m(t[1]+t[1]),m(t[2]+t[2]),m(t[3]+t[3]),E(m(t[4]+t[4])/255)];if(e in r)return g(r[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function b(e){return e>1?1:e<0?0:e}function y(e,t,n,r){return`rgba(${C(e)}, ${C(t)}, ${C(n)}, ${b(r)})`}function _(e,t,n,r,o){return C((e*t*(1-r)+n*r)/o)}function w(e,t){Array.isArray(e)||(e=g(e)),Array.isArray(t)||(t=g(t));const n=e[3],r=t[3],o=E(n+r-n*r);return y(_(e[0],n,t[0],r,o),_(e[1],n,t[1],r,o),_(e[2],n,t[2],r,o),o)}function S(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:g(e);return t.alpha?y(n,r,o,t.alpha):y(n,r,o,i)}function x(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:g(e),{lightness:a=1,alpha:s=1}=t;return R([n*a,r*a,o*a,i*s])}function E(e){const t=Math.round(100*Number(e))/100;return t>1?1:t<0?0:t}function C(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function R(e){const[t,n,r]=e;return 3 in e?`rgba(${C(t)}, ${C(n)}, ${C(r)}, ${E(e[3])})`:`rgba(${C(t)}, ${C(n)}, ${C(r)}, 1)`}},2503:function(e,t,n){"use strict";function r(e){return e.composedPath()[0]||null}n.d(t,{p:function(){return r}})},5306:function(e,t,n){"use strict";n.d(t,{Mc:function(){return r}});n(7658);function r(e=8){return Math.random().toString(16).slice(2,2+e)}},5698:function(e,t,n){"use strict";var r=n(5755);const o="@@coContext",i={mounted(e,{value:t,modifiers:n}){e[o]={handler:void 0},"function"===typeof t&&(e[o].handler=t,(0,r.on)("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const i=e[o];"function"===typeof t?i.handler?i.handler!==t&&((0,r.S)("clickoutside",e,i.handler,{capture:n.capture}),i.handler=t,(0,r.on)("clickoutside",e,t,{capture:n.capture})):(e[o].handler=t,(0,r.on)("clickoutside",e,t,{capture:n.capture})):i.handler&&((0,r.S)("clickoutside",e,i.handler,{capture:n.capture}),i.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[o];n&&(0,r.S)("clickoutside",e,n,{capture:t.capture}),e[o].handler=void 0}};t["Z"]=i},3542:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});new Set;function r(e,t){console.error(`[vdirs/${e}]: ${t}`)}class o{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:n}=this;if(void 0!==t)return e.style.zIndex=`${t}`,void n.delete(e);const{nextZIndex:r}=this;if(n.has(e)){const t=n.get(e);if(t+1===this.nextZIndex)return}e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState()}unregister(e,t){const{elementZIndex:n}=this;n.has(e)?n.delete(e):void 0===t&&r("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort(((e,t)=>e[1]-t[1])),this.nextZIndex=2e3,e.forEach((e=>{const t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)}))}}var i=new o;const a="@@ziContext",s={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[a]={enabled:!!o,initialized:!1},o&&(i.ensureZIndex(e,r),e[a].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,s=e[a].enabled;o&&!s&&(i.ensureZIndex(e,r),e[a].initialized=!0),e[a].enabled=!!o},unmounted(e,t){if(!e[a].initialized)return;const{value:n={}}=t,{zIndex:r}=n;i.unregister(e,r)}};var l=s},3269:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4870),o=n(3396);function i(){const e=(0,r.iH)(!1);return(0,o.bv)((()=>{e.value=!0})),(0,r.OT)(e)}},9754:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(3396);const o="undefined"!==typeof window;let i,a;const s=()=>{var e,t;i=o?null===(t=null===(e=document)||void 0===e?void 0:e.fonts)||void 0===t?void 0:t.ready:void 0,a=!1,void 0!==i?i.then((()=>{a=!0})):a=!0};function l(e){if(a)return;let t=!1;(0,r.bv)((()=>{a||null===i||void 0===i||i.then((()=>{t||e()}))})),(0,r.Jd)((()=>{t=!0}))}s()},6307:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(3396);function o(e,t){return(0,r.Fl)((()=>{for(const n of t)if(void 0!==e[n])return e[n];return e[t[t.length-1]]}))}},4498:function(e,t,n){"use strict";var r=n(3396),o=n(4870);function i(e){const t=(0,r.Fl)(e),n=(0,o.iH)(t.value);return(0,r.YP)(t,(e=>{n.value=e})),"function"===typeof e?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}t["Z"]=i},7477:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(3396);function o(e,t){return(0,r.YP)(e,(e=>{void 0!==e&&(t.value=e)})),(0,r.Fl)((()=>void 0===e.value?t.value:e.value))}},89:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},8385:function(e,t,n){"use strict";n(7658);var r=n(3396),o=n(4870),i=n(5805),a=n(5755),s=n(5536),l=n(912);const u=(0,r.aZ)({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;(0,r.JJ)("VBinder",null===(t=(0,r.FN)())||void 0===t?void 0:t.proxy);const n=(0,r.f3)("VBinder",null),s=(0,o.iH)(null),u=t=>{s.value=t,n&&e.syncTargetWithParent&&n.setTargetRef(t)};let c=[];const d=()=>{let e=s.value;while(1){if(e=(0,l.rP)(e),null===e)break;c.push(e)}for(const t of c)(0,a.on)("scroll",t,m,!0)},f=()=>{for(const e of c)(0,a.S)("scroll",e,m,!0);c=[]},h=new Set,p=e=>{0===h.size&&d(),h.has(e)||h.add(e)},v=e=>{h.has(e)&&h.delete(e),0===h.size&&f()},m=()=>{(0,i.J)(g)},g=()=>{h.forEach((e=>e()))},b=new Set,y=e=>{0===b.size&&(0,a.on)("resize",window,w),b.has(e)||b.add(e)},_=e=>{b.has(e)&&b.delete(e),0===b.size&&(0,a.S)("resize",window,w)},w=()=>{b.forEach((e=>e()))};return(0,r.Jd)((()=>{(0,a.S)("resize",window,w),f()})),{targetRef:s,setTargetRef:u,addScrollListener:p,removeScrollListener:v,addResizeListener:y,removeResizeListener:_}},render(){return(0,s.z9)("binder",this.$slots)}});t["Z"]=u},1808:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(3396),o=n(4870),i=n(3542),a=n(4498),s=n(9754),l=n(3269),u=n(1496),c=n(8224),d=n(5638);const f={top:"bottom",bottom:"top",left:"right",right:"left"},h={start:"end",center:"center",end:"start"},p={top:"height",bottom:"height",left:"width",right:"width"},v={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},m={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},g={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},b={top:!0,bottom:!1,left:!0,right:!1},y={top:"end",bottom:"start",left:"end",right:"start"};function _(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=null!==s&&void 0!==s?s:"center",u={top:0,left:0};const c=(e,o,i)=>{let a=0,s=0;const l=n[e]-t[o]-t[e];return l>0&&r&&(i?s=b[o]?l:-l:a=b[o]?l:-l),{left:a,top:s}},d="left"===a||"right"===a;if("center"!==l){const r=g[e],o=f[r],i=p[r];if(n[i]>t[i]){if(t[r]+t[i]t[o]&&(l=h[s])}else{const e="bottom"===a||"top"===a?"left":"top",r=f[e],o=p[e],i=(n[o]-t[o])/2;(t[e]t[r]?(l=y[e],u=c(o,e,d)):(l=y[r],u=c(o,r,d)))}let v=a;return t[a] *",{pointerEvents:"all"})])]);var C=(0,r.aZ)({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=(0,r.f3)("VBinder"),n=(0,a.Z)((()=>void 0!==e.enabled?e.enabled:e.show)),i=(0,o.iH)(null),d=(0,o.iH)(null),f=()=>{const{syncTrigger:n}=e;n.includes("scroll")&&t.addScrollListener(v),n.includes("resize")&&t.addResizeListener(v)},h=()=>{t.removeScrollListener(v),t.removeResizeListener(v)};(0,r.bv)((()=>{n.value&&(v(),f())}));const p=(0,u.O)();E.mount({id:"vueuc/binder",head:!0,anchorMetaName:c.A,ssr:p}),(0,r.Jd)((()=>{h()})),(0,s.Z)((()=>{n.value&&v()}));const v=()=>{if(!n.value)return;const r=i.value;if(null===r)return;const o=t.targetRef,{x:a,y:s,overlap:l}=e,u=void 0!==a&&void 0!==s?(0,x.Tt)(a,s):(0,x.Dz)(o);r.style.setProperty("--v-target-width",`${Math.round(u.width)}px`),r.style.setProperty("--v-target-height",`${Math.round(u.height)}px`);const{width:c,minWidth:f,placement:h,internalShift:p,flip:v}=e;r.setAttribute("v-placement",h),l?r.setAttribute("v-overlap",""):r.removeAttribute("v-overlap");const{style:m}=r;m.width="target"===c?`${u.width}px`:void 0!==c?c:"",m.minWidth="target"===f?`${u.width}px`:void 0!==f?f:"";const g=(0,x.Dz)(r),b=(0,x.Dz)(d.value),{left:y,top:E,placement:C}=_(h,u,g,p,v,l),R=w(C,l),{left:T,top:A,transform:O}=S(C,b,u,E,y,l);r.setAttribute("v-placement",C),r.style.setProperty("--v-offset-left",`${Math.round(y)}px`),r.style.setProperty("--v-offset-top",`${Math.round(E)}px`),r.style.transform=`translateX(${T}) translateY(${A}) ${O}`,r.style.setProperty("--v-transform-origin",R),r.style.transformOrigin=R};(0,r.YP)(n,(e=>{e?(f(),m()):h()}));const m=()=>{(0,r.Y3)().then(v).catch((e=>console.error(e)))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach((t=>{(0,r.YP)((0,o.Vh)(e,t),v)})),["teleportDisabled"].forEach((t=>{(0,r.YP)((0,o.Vh)(e,t),m)})),(0,r.YP)((0,o.Vh)(e,"syncTrigger"),(e=>{e.includes("resize")?t.addResizeListener(v):t.removeResizeListener(v),e.includes("scroll")?t.addScrollListener(v):t.removeScrollListener(v)}));const g=(0,l.Z)(),b=(0,a.Z)((()=>{const{to:t}=e;if(void 0!==t)return t;g.value}));return{VBinder:t,mergedEnabled:n,offsetContainerRef:d,followerRef:i,mergedTo:b,syncPosition:v}},render(){return(0,r.h)(d.Z,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=(0,r.h)("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[(0,r.h)("div",{class:"v-binder-follower-content",ref:"followerRef"},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))]);return this.zindexable?(0,r.wy)(n,[[i.Z,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}})},5600:function(e,t,n){"use strict";var r=n(3396),o=n(5536);t["Z"]=(0,r.aZ)({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=(0,r.f3)("VBinder"),n={mounted:e,updated:e};return{syncTarget:t,setTargetDirective:n}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?(0,r.wy)((0,o.Nb)("follower",this.$slots),[[t]]):(0,o.Nb)("follower",this.$slots)}})},912:function(e,t,n){"use strict";n.d(t,{Dz:function(){return a},Tt:function(){return i},rP:function(){return l}});let r=null;function o(){if(null===r&&(r=document.getElementById("v-binder-view-measurer"),null===r)){r=document.createElement("div"),r.id="v-binder-view-measurer";const{style:e}=r;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(r)}return r.getBoundingClientRect()}function i(e,t){const n=o();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function a(e){const t=e.getBoundingClientRect(),n=o();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function s(e){return 9===e.nodeType?null:e.parentNode}function l(e){if(null===e)return null;const t=s(e);if(null===t)return null;if(9===t.nodeType)return document;if(1===t.nodeType){const{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return l(t)}},5638:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(3396),o=n(4870);function i(e){const t=(0,o.iH)(!!e.value);if(t.value)return(0,o.OT)(t);const n=(0,r.YP)(e,(e=>{e&&(t.value=!0,n())}));return(0,o.OT)(t)}var a=n(5536),s=(0,r.aZ)({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:i((0,o.Vh)(e,"show")),mergedTo:(0,r.Fl)((()=>{const{to:t}=e;return null!==t&&void 0!==t?t:"body"}))}},render(){return this.showTeleport?this.disabled?(0,a.z9)("lazy-teleport",this.$slots):(0,r.h)(r.lR,{disabled:this.disabled,to:this.mergedTo},(0,a.z9)("lazy-teleport",this.$slots)):null}})},8125:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3396),o=n(255);function i(e,t){console.error(`[vueuc/${e}]: ${t}`)}var a=(0,r.aZ)({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=(0,r.FN)().proxy;function a(t){const{onResize:n}=e;void 0!==n&&n(t)}(0,r.bv)((()=>{const e=n.$el;void 0!==e?e.nextElementSibling===e.nextSibling||3!==e.nodeType||""===e.nodeValue?null!==e.nextElementSibling&&(o.Z.registerHandler(e.nextElementSibling,a),t=!0):i("resize-observer","$el can not be observed (it may be a text node)."):i("resize-observer","$el does not exist.")})),(0,r.Jd)((()=>{t&&o.Z.unregisterHandler(n.$el.nextElementSibling)}))},render(){return(0,r.WI)(this.$slots,"default")}})},255:function(e,t,n){"use strict";n.d(t,{Z:function(){return ee}});n(1703),n(7658);var r,o=[],i=function(){return o.some((function(e){return e.activeTargets.length>0}))},a=function(){return o.some((function(e){return e.skippedTargets.length>0}))},s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"===typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(function(e){e["BORDER_BOX"]="border-box",e["CONTENT_BOX"]="content-box",e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(r||(r={}));var u,c=function(e){return Object.freeze(e)},d=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,c(this)}return e}(),f=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,c(this)}return e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,o=e.right,i=e.bottom,a=e.left,s=e.width,l=e.height;return{x:t,y:n,top:r,right:o,bottom:i,left:a,width:s,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),h=function(e){return e instanceof SVGElement&&"getBBox"in e},p=function(e){if(h(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},v=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null===e||void 0===e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},g="undefined"!==typeof window?window:{},b=new WeakMap,y=/auto|scroll/,_=/^tb|vertical/,w=/msie|trident/i.test(g.navigator&&g.navigator.userAgent),S=function(e){return parseFloat(e||"0")},x=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new d((n?t:e)||0,(n?e:t)||0)},E=c({devicePixelContentBoxSize:x(),borderBoxSize:x(),contentBoxSize:x(),contentRect:new f(0,0,0,0)}),C=function(e,t){if(void 0===t&&(t=!1),b.has(e)&&!t)return b.get(e);if(p(e))return b.set(e,E),E;var n=getComputedStyle(e),r=h(e)&&e.ownerSVGElement&&e.getBBox(),o=!w&&"border-box"===n.boxSizing,i=_.test(n.writingMode||""),a=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:S(n.paddingTop),u=r?0:S(n.paddingRight),d=r?0:S(n.paddingBottom),v=r?0:S(n.paddingLeft),m=r?0:S(n.borderTopWidth),g=r?0:S(n.borderRightWidth),C=r?0:S(n.borderBottomWidth),R=r?0:S(n.borderLeftWidth),T=v+u,A=l+d,O=R+g,k=m+C,L=s?e.offsetHeight-k-e.clientHeight:0,P=a?e.offsetWidth-O-e.clientWidth:0,M=o?T+O:0,I=o?A+k:0,B=r?r.width:S(n.width)-M-P,D=r?r.height:S(n.height)-I-L,j=B+T+P+O,F=D+A+L+k,z=c({devicePixelContentBoxSize:x(Math.round(B*devicePixelRatio),Math.round(D*devicePixelRatio),i),borderBoxSize:x(j,F,i),contentBoxSize:x(B,D,i),contentRect:new f(v,l,B,D)});return b.set(e,z),z},R=function(e,t,n){var o=C(e,n),i=o.borderBoxSize,a=o.contentBoxSize,s=o.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return s;case r.BORDER_BOX:return i;default:return a}},T=function(){function e(e){var t=C(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=c([t.borderBoxSize]),this.contentBoxSize=c([t.contentBoxSize]),this.devicePixelContentBoxSize=c([t.devicePixelContentBoxSize])}return e}(),A=function(e){if(p(e))return 1/0;var t=0,n=e.parentNode;while(n)t+=1,n=n.parentNode;return t},O=function(){var e=1/0,t=[];o.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new T(t.target),o=A(t.target);r.push(n),t.lastReportedSize=R(t.target,t.observedBox),oe?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},L=function(){var e=0;k(e);while(i())e=O(),k(e);return a()&&l(),e>0},P=[],M=function(){return P.splice(0).forEach((function(e){return e()}))},I=function(e){if(!u){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver((function(){return M()})).observe(n,r),u=function(){n.textContent="".concat(t?t--:t++)}}P.push(e),u()},B=function(e){I((function(){requestAnimationFrame(e)}))},D=0,j=function(){return!!D},F=250,z={attributes:!0,characterData:!0,childList:!0,subtree:!0},N=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],$=function(e){return void 0===e&&(e=0),Date.now()+e},U=!1,Z=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=F),!U){U=!0;var n=$(e);B((function(){var r=!1;try{r=L()}finally{if(U=!1,e=n-$(),!j())return;r?t.run(1e3):e>0?t.run(e):t.start()}}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,z)};document.body?t():g.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),N.forEach((function(t){return g.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),N.forEach((function(t){return g.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}(),H=new Z,V=function(e){!D&&e>0&&H.start(),D+=e,!D&&H.stop()},W=function(e){return!h(e)&&!m(e)&&"inline"===getComputedStyle(e).display},G=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=R(this.target,this.observedBox,!0);return W(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),K=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),q=new WeakMap,Y=function(e,t){for(var n=0;n=0&&(i&&o.splice(o.indexOf(n),1),n.observationTargets.splice(r,1),V(-1))},e.disconnect=function(e){var t=this,n=q.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),J=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");X.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!v(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");X.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!v(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");X.unobserve(this,e)},e.prototype.disconnect=function(){X.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Q{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new J(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const e=this.elHandlersMap.get(t.target);void 0!==e&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}var ee=new Q},8224:function(e,t,n){"use strict";n.d(t,{A:function(){return i},c:function(){return o}});var r=n(7298);const{c:o}=(0,r.j)(),i="vueuc-style"},5536:function(e,t,n){"use strict";n.d(t,{Nb:function(){return a},z9:function(){return o}});n(1703),n(7658);var r=n(3396);function o(e,t,n="default"){const r=t[n];if(void 0===r)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function i(e,t=!0,n=[]){return e.forEach((e=>{if(null!==e)if("object"===typeof e)if(Array.isArray(e))i(e,t,n);else if(e.type===r.HY){if(null===e.children)return;Array.isArray(e.children)&&i(e.children,t,n)}else e.type!==r.sv&&n.push(e);else"string"!==typeof e&&"number"!==typeof e||n.push((0,r.Uk)(String(e)))})),n}function a(e,t,n="default"){const r=t[n];if(void 0===r)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=i(r());if(1===o.length)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}},70:function(e,t,n){"use strict";n.d(t,{ZP:function(){return jt}});n(8675),n(3408),n(4590),n(7658),n(1703);function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,a=(e=>t=>{const n=o.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),s=e=>(e=e.toLowerCase(),t=>a(t)===e),l=e=>t=>typeof t===e,{isArray:u}=Array,c=l("undefined");function d(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const f=s("ArrayBuffer");function h(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t}const p=l("string"),v=l("function"),m=l("number"),g=e=>null!==e&&"object"===typeof e,b=e=>!0===e||!1===e,y=e=>{if("object"!==a(e))return!1;const t=i(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_=s("Date"),w=s("File"),S=s("Blob"),x=s("FileList"),E=e=>g(e)&&v(e.pipe),C=e=>{const t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||o.call(e)===t||v(e.toString)&&e.toString()===t)},R=s("URLSearchParams"),T=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function A(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),u(e))for(r=0,o=e.length;r{y(e[n])&&y(t)?e[n]=O(e[n],t):y(t)?e[n]=O({},t):u(t)?e[n]=t.slice():e[n]=t};for(let n=0,r=arguments.length;n(A(t,((t,o)=>{n&&v(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),L=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),P=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},M=(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),a=o.length;while(a-- >0)s=o[a],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},I=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},B=e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},D=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&i(Uint8Array)),j=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},F=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},z=s("HTMLFormElement"),N=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),$=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=s("RegExp"),Z=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},H=e=>{Z(e,((t,n)=>{const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},V=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return u(e)?r(e):r(String(e).split(t)),n},W=()=>{},G=(e,t)=>(e=+e,Number.isFinite(e)?e:t);var K={isArray:u,isArrayBuffer:f,isBuffer:d,isFormData:C,isArrayBufferView:h,isString:p,isNumber:m,isBoolean:b,isObject:g,isPlainObject:y,isUndefined:c,isDate:_,isFile:w,isBlob:S,isRegExp:U,isFunction:v,isStream:E,isURLSearchParams:R,isTypedArray:D,isFileList:x,forEach:A,merge:O,extend:k,trim:T,stripBOM:L,inherits:P,toFlatObject:M,kindOf:a,kindOfTest:s,endsWith:I,toArray:B,forEachEntry:j,matchAll:F,isHTMLForm:z,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:Z,freezeMethods:H,toObjectSet:V,toCamelCase:N,noop:W,toFiniteNumber:G};n(541);function q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}K.inherits(q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Y=q.prototype,X={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{X[e]={value:e}})),Object.defineProperties(q,X),Object.defineProperty(Y,"isAxiosError",{value:!0}),q.from=(e,t,n,r,o,i)=>{const a=Object.create(Y);return K.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),q.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var J=q,Q=n(6237),ee=Q;function te(e){return K.isPlainObject(e)||K.isArray(e)}function ne(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function re(e,t,n){return e?e.concat(t).map((function(e,t){return e=ne(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function oe(e){return K.isArray(e)&&!e.some(te)}const ie=K.toFlatObject(K,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ae(e){return e&&K.isFunction(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator]}function se(e,t,n){if(!K.isObject(e))throw new TypeError("target must be an object");t=t||new(ee||FormData),n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!K.isUndefined(t[e])}));const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,l=s&&ae(t);if(!K.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(!l&&K.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(K.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&oe(e)||K.isFileList(e)||K.endsWith(n,"[]")&&(s=K.toArray(e)))return n=ne(n),s.forEach((function(e,r){!K.isUndefined(e)&&null!==e&&t.append(!0===a?re([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!te(e)||(t.append(re(o,n,i),u(e)),!1)}const d=[],f=Object.assign(ie,{defaultVisitor:c,convertValue:u,isVisitable:te});function h(e,n){if(!K.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),K.forEach(e,(function(e,r){const i=!(K.isUndefined(e)||null===e)&&o.call(t,e,K.isString(r)?r.trim():r,n,f);!0===i&&h(e,n?n.concat(r):[r])})),d.pop()}}if(!K.isObject(e))throw new TypeError("data must be an object");return h(e),t}var le=se;function ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ce(e,t){this._pairs=[],e&&le(e,this,t)}const de=ce.prototype;de.append=function(e,t){this._pairs.push([e,t])},de.toString=function(e){const t=e?function(t){return e.call(this,t,ue)}:ue;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var fe=ce;function he(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pe(e,t,n){if(!t)return e;const r=n&&n.encode||he,o=n&&n.serialize;let i;if(i=o?o(t,n):K.isURLSearchParams(t)?t.toString():new fe(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}class ve{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var me=ve,ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},be="undefined"!==typeof URLSearchParams?URLSearchParams:fe,ye=FormData;const _e=(()=>{let e;return("undefined"===typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!==typeof window&&"undefined"!==typeof document)})();var we={isBrowser:!0,classes:{URLSearchParams:be,FormData:ye,Blob:Blob},isStandardBrowserEnv:_e,protocols:["http","https","file","blob","url","data"]};function Se(e,t){return le(e,new we.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return we.isNode&&K.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function xe(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function Ee(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=e.length;if(i=!i&&K.isArray(r)?r.length:i,s)return K.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&K.isObject(r[i])||(r[i]=[]);const l=t(e,n,r[i],o);return l&&K.isArray(r[i])&&(r[i]=Ee(r[i])),!a}if(K.isFormData(e)&&K.isFunction(e.entries)){const n={};return K.forEachEntry(e,((e,r)=>{t(xe(e),r,n,0)})),n}return null}var Re=Ce;n(2801);function Te(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new J("Request failed with status code "+n.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Ae=we.isStandardBrowserEnv?function(){return{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),K.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),K.isString(r)&&a.push("path="+r),K.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Oe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ke(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Le(e,t){return e&&!Oe(t)?ke(e,t):t}var Pe=we.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=K.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function Me(e,t,n){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,n),this.name="CanceledError"}K.inherits(Me,J,{__CANCEL__:!0});var Ie=Me;function Be(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const De=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var je=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&De[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const Fe=Symbol("internals"),ze=Symbol("defaults");function Ne(e){return e&&String(e).trim().toLowerCase()}function $e(e){return!1===e||null==e?e:K.isArray(e)?e.map($e):String(e)}function Ue(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}function Ze(e,t,n,r){return K.isFunction(r)?r.call(this,t,n):K.isString(t)?K.isString(r)?-1!==t.indexOf(r):K.isRegExp(r)?r.test(t):void 0:void 0}function He(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function Ve(e,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}function We(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;while(o-- >0)if(r=n[o],t===r.toLowerCase())return r;return null}function Ge(e,t){e&&this.set(e),this[ze]=t||null}Object.assign(Ge.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=Ne(t);if(!o)throw new Error("header name must be a non-empty string");const i=We(r,o);(!i||!0===n||!1!==r[i]&&!1!==n)&&(r[i||t]=$e(e))}return K.isPlainObject(e)?K.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(e=Ne(e),!e)return;const n=We(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return Ue(e);if(K.isFunction(t))return t.call(this,e,n);if(K.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Ne(e),e){const n=We(this,e);return!(!n||t&&!Ze(this,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function o(e){if(e=Ne(e),e){const o=We(n,e);!o||t&&!Ze(n,n[o],o,t)||(delete n[o],r=!0)}}return K.isArray(e)?e.forEach(o):o(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return K.forEach(this,((r,o)=>{const i=We(n,o);if(i)return t[i]=$e(r),void delete t[o];const a=e?He(o):String(o).trim();a!==o&&delete t[o],t[a]=$e(r),n[a]=!0})),this},toJSON:function(e){const t=Object.create(null);return K.forEach(Object.assign({},this[ze]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&K.isArray(n)?n.join(", "):n)})),t}}),Object.assign(Ge,{from:function(e){return K.isString(e)?new this(je(e)):e instanceof this?e:new this(e)},accessor:function(e){const t=this[Fe]=this[Fe]={accessors:{}},n=t.accessors,r=this.prototype;function o(e){const t=Ne(e);n[t]||(Ve(r,e),n[t]=!0)}return K.isArray(e)?e.forEach(o):o(e),this}}),Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),K.freezeMethods(Ge.prototype),K.freezeMethods(Ge);var Ke=Ge;function qe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,d=0;while(c!==i)d+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0};c[t?"download":"upload"]=!0,e(c)}}function Je(e){return new Promise((function(t,n){let r=e.data;const o=Ke.from(e.headers).normalize(),i=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}K.isFormData(r)&&we.isStandardBrowserEnv&&o.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=Le(e.baseURL,e.url);function c(){if(!l)return;const r=Ke.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),o=i&&"text"!==i&&"json"!==i?l.response:l.responseText,a={data:o,status:l.status,statusText:l.statusText,headers:r,config:e,request:l};Te((function(e){t(e),s()}),(function(e){n(e),s()}),a),l=null}if(l.open(e.method.toUpperCase(),pe(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(n(new J("Request aborted",J.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||ge;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new J(t,r.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,l)),l=null},we.isStandardBrowserEnv){const t=(e.withCredentials||Pe(u))&&e.xsrfCookieName&&Ae.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&K.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),K.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&l.addEventListener("progress",Xe(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Xe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{l&&(n(!t||t.type?new Ie(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=Be(u);d&&-1===we.protocols.indexOf(d)?n(new J("Unsupported protocol "+d+":",J.ERR_BAD_REQUEST,e)):l.send(r||null)}))}const Qe={http:Je,xhr:Je};var et={getAdapter:e=>{if(K.isString(e)){const t=Qe[e];if(!e)throw Error(K.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!K.isFunction(e))throw new TypeError("adapter is not a function");return e},adapters:Qe};const tt={"Content-Type":"application/x-www-form-urlencoded"};function nt(){let e;return"undefined"!==typeof XMLHttpRequest?e=et.getAdapter("xhr"):"undefined"!==typeof process&&"process"===K.kindOf(process)&&(e=et.getAdapter("http")),e}function rt(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const ot={transitional:ge,adapter:nt(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=K.isObject(e);o&&K.isHTMLForm(e)&&(e=new FormData(e));const i=K.isFormData(e);if(i)return r&&r?JSON.stringify(Re(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Se(e,this.formSerializer).toString();if((a=K.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return le(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),rt(e)):e}],transformResponse:[function(e){const t=this.transitional||ot.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&K.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,i=!n&&r;try{return JSON.parse(e)}catch(o){if(i){if("SyntaxError"===o.name)throw J.from(o,J.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};K.forEach(["delete","get","head"],(function(e){ot.headers[e]={}})),K.forEach(["post","put","patch"],(function(e){ot.headers[e]=K.merge(tt)}));var it=ot;function at(e,t){const n=this||it,r=t||n,o=Ke.from(r.headers);let i=r.data;return K.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function st(e){return!(!e||!e.__CANCEL__)}function lt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ie}function ut(e){lt(e),e.headers=Ke.from(e.headers),e.data=at.call(e,e.transformRequest);const t=e.adapter||it.adapter;return t(e).then((function(t){return lt(e),t.data=at.call(e,e.transformResponse,t),t.headers=Ke.from(t.headers),t}),(function(t){return st(t)||(lt(e),t&&t.response&&(t.response.data=at.call(e,e.transformResponse,t.response),t.response.headers=Ke.from(t.response.headers))),Promise.reject(t)}))}function ct(e,t){t=t||{};const n={};function r(e,t){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge(e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function o(n){return K.isUndefined(t[n])?K.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!K.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return K.isUndefined(t[n])?K.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return K.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=l[e]||o,r=t(e);K.isUndefined(r)&&t!==s||(n[e]=r)})),n}const dt="1.1.3",ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ft[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ht={};function pt(e,t,n){if("object"!==typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;while(o-- >0){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new J("option "+i+" must be "+n,J.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}ft.transitional=function(e,t,n){function r(e,t){return"[Axios v"+dt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new J(r(o," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!ht[o]&&(ht[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var vt={assertOptions:pt,validators:ft};const mt=vt.validators;class gt{constructor(e){this.defaults=e,this.interceptors={request:new me,response:new me}}request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=ct(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&vt.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),void 0!==r&&vt.assertOptions(r,{encode:mt.function,serialize:mt.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&&K.merge(t.headers.common,t.headers[t.method]);o&&K.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new Ke(t.headers,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const s=[];let l;this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));let u,c=0;if(!a){const e=[ut.bind(this),void 0];e.unshift.apply(e,i),e.push.apply(e,s),u=e.length,l=Promise.resolve(t);while(c{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ie(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new yt((function(t){e=t}));return{token:t,cancel:e}}}var _t=yt;function wt(e){return function(t){return e.apply(null,t)}}function St(e){return K.isObject(e)&&!0===e.isAxiosError}function xt(e){const t=new bt(e),n=r(bt.prototype.request,t);return K.extend(n,bt.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return xt(ct(e,t))},n}const Et=xt(it);Et.Axios=bt,Et.CanceledError=Ie,Et.CancelToken=_t,Et.isCancel=st,Et.VERSION=dt,Et.toFormData=le,Et.AxiosError=J,Et.Cancel=Et.CanceledError,Et.all=function(e){return Promise.all(e)},Et.spread=wt,Et.isAxiosError=St,Et.formToJSON=e=>Re(K.isHTMLForm(e)?new FormData(e):e);var Ct=Et;const{Axios:Rt,AxiosError:Tt,CanceledError:At,isCancel:Ot,CancelToken:kt,VERSION:Lt,all:Pt,Cancel:Mt,isAxiosError:It,spread:Bt,toFormData:Dt}=Ct;var jt=Ct},3058:function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}n.d(t,{Z:function(){return y}});var o=r,i=n(202);function a(e,t){var n=e.length;while(n--)if((0,i.Z)(e[n][0],t))return n;return-1}var s=a,l=Array.prototype,u=l.splice;function c(e){var t=this.__data__,n=s(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():u.call(t,n,1),--this.size,!0}var d=c;function f(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}var h=f;function p(e){return s(this.__data__,e)>-1}var v=p;n(7658);function m(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var g=m;function b(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t-1&&e%1==0&&e-1&&e%1==0&&e<=n}t["Z"]=r},6049:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t["Z"]=n},3835:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t["Z"]=n},8590:function(e,t,n){"use strict";var r=n(681),o=n(3835),i="[object Symbol]";function a(e){return"symbol"==typeof e||(0,o.Z)(e)&&(0,r.Z)(e)==i}t["Z"]=a},1697:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(681),o=n(2905),i=n(3835),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",h="[object Number]",p="[object Object]",v="[object RegExp]",m="[object Set]",g="[object String]",b="[object WeakMap]",y="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",R="[object Uint8Array]",T="[object Uint8ClampedArray]",A="[object Uint16Array]",O="[object Uint32Array]",k={};function L(e){return(0,i.Z)(e)&&(0,o.Z)(e.length)&&!!k[(0,r.Z)(e)]}k[w]=k[S]=k[x]=k[E]=k[C]=k[R]=k[T]=k[A]=k[O]=!0,k[a]=k[s]=k[y]=k[l]=k[_]=k[u]=k[c]=k[d]=k[f]=k[h]=k[p]=k[v]=k[m]=k[g]=k[b]=!1;var P=L;function M(e){return function(t){return e(t)}}var I=M,B=n(2701),D="object"==typeof exports&&exports&&!exports.nodeType&&exports,j=D&&"object"==typeof module&&module&&!module.nodeType&&module,F=j&&j.exports===D,z=F&&B.Z.process,N=function(){try{var e=j&&j.require&&j.require("util").types;return e||z&&z.binding&&z.binding("util")}catch(t){}}(),$=N,U=$&&$.isTypedArray,Z=U?I(U):P,H=Z},4074:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ye}});var r=n(2157),o=n(6823),i=function(){try{var e=(0,o.Z)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),a=i;function s(e,t,n){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var l=s,u=n(202);function c(e,t,n){(void 0!==n&&!(0,u.Z)(e[t],n)||void 0===n&&!(t in e))&&l(e,t,n)}var d=c,f=n(3372),h=n(8345),p="object"==typeof exports&&exports&&!exports.nodeType&&exports,v=p&&"object"==typeof module&&module&&!module.nodeType&&module,m=v&&v.exports===p,g=m?h.Z.Buffer:void 0,b=g?g.allocUnsafe:void 0;function y(e,t){if(t)return e.slice();var n=e.length,r=b?b(n):new e.constructor(n);return e.copy(r),r}var _=y,w=n(1099);function S(e){var t=new e.constructor(e.byteLength);return new w.Z(t).set(new w.Z(e)),t}var x=S;function E(e,t){var n=t?x(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var C=E;function R(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n0){if(++t>=Be)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ze=Fe,Ne=ze(Ie),$e=Ne;function Ue(e,t){return $e(ke(e,t,Ce.Z),e+"")}var Ze=Ue,He=n(9016);function Ve(e,t,n){if(!(0,A.Z)(n))return!1;var r=typeof t;return!!("number"==r?(0,N.Z)(n)&&(0,He.Z)(t,n.length):"string"==r&&t in n)&&(0,u.Z)(n[t],e)}var We=Ve;function Ge(e){return Ze((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&We(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);while(++r index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var bind = require('../internals/function-bind-context');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ findLast, findLastIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_FIND_LAST_INDEX = TYPE == 1;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var index = lengthOfArrayLike(self);\n var value, result;\n while (index-- > 0) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (result) switch (TYPE) {\n case 0: return value; // findLast\n case 1: return index; // findLastIndex\n }\n }\n return IS_FIND_LAST_INDEX ? -1 : undefined;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.findLast` method\n // https://github.com/tc39/proposal-array-find-from-last\n findLast: createMethod(0),\n // `Array.prototype.findLastIndex` method\n // https://github.com/tc39/proposal-array-find-from-last\n findLastIndex: createMethod(1)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es-x/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (O, P) {\n if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","module.exports = {\n IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },\n DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },\n HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },\n WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },\n InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },\n NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },\n NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },\n NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },\n NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },\n InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },\n InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },\n SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },\n InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },\n NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },\n InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },\n ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },\n TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },\n SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },\n NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },\n AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },\n URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },\n QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },\n TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },\n InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },\n DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es-x/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es-x/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es-x/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = NATIVE_BIND && bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es-x/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es-x/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = uncurryThis(store.get);\n var wmhas = uncurryThis(store.has);\n var wmset = uncurryThis(store.set);\n set = function (it, metadata) {\n if (wmhas(store, it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget(store, it) || {};\n };\n has = function (it) {\n return wmhas(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es-x/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isCallable = require('../internals/is-callable');\n\nvar documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\nvar SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = SPECIAL_DOCUMENT_ALL ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es-x/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es-x/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es-x/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es-x/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\n setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (Target, Source, key) {\n key in Target || defineProperty(Target, key, {\n configurable: true,\n get: function () { return Source[key]; },\n set: function (it) { Source[key] = it; }\n });\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.25.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","/* eslint-disable es-x/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es-x/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar proxyAccessor = require('../internals/proxy-accessor');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar installErrorCause = require('../internals/install-error-cause');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nmodule.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {\n var STACK_TRACE_LIMIT = 'stackTraceLimit';\n var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;\n var path = FULL_NAME.split('.');\n var ERROR_NAME = path[path.length - 1];\n var OriginalError = getBuiltIn.apply(null, path);\n\n if (!OriginalError) return;\n\n var OriginalErrorPrototype = OriginalError.prototype;\n\n // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006\n if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;\n\n if (!FORCED) return OriginalError;\n\n var BaseError = getBuiltIn('Error');\n\n var WrappedError = wrapper(function (a, b) {\n var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);\n var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();\n if (message !== undefined) createNonEnumerableProperty(result, 'message', message);\n if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2));\n if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);\n if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);\n return result;\n });\n\n WrappedError.prototype = OriginalErrorPrototype;\n\n if (ERROR_NAME !== 'Error') {\n if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);\n else copyConstructorProperties(WrappedError, BaseError, { name: true });\n } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {\n proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);\n proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');\n }\n\n copyConstructorProperties(WrappedError, OriginalError);\n\n if (!IS_PURE) try {\n // Safari 13- bug: WebAssembly errors does not have a proper `.name`\n if (OriginalErrorPrototype.name !== ERROR_NAME) {\n createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);\n }\n OriginalErrorPrototype.constructor = WrappedError;\n } catch (error) { /* empty */ }\n\n return WrappedError;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar SILENT_ON_NON_WRITABLE_LENGTH = !function () {\n try {\n // eslint-disable-next-line es-x/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_TO_LENGTH || SILENT_ON_NON_WRITABLE_LENGTH }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar deletePropertyOrThrow = require('../internals/delete-property-or-throw');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\n\n// IE8-\nvar INCORRECT_RESULT = [].unshift(0) !== 1;\n\n// V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError\nvar SILENT_ON_NON_WRITABLE_LENGTH = !function () {\n try {\n // eslint-disable-next-line es-x/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).unshift();\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\n// `Array.prototype.unshift` method\n// https://tc39.es/ecma262/#sec-array.prototype.unshift\n$({ target: 'Array', proto: true, arity: 1, forced: INCORRECT_RESULT || SILENT_ON_NON_WRITABLE_LENGTH }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n unshift: function unshift(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n if (argCount) {\n doesNotExceedSafeInteger(len + argCount);\n var k = len;\n while (k--) {\n var to = k + argCount;\n if (k in O) O[to] = O[k];\n else deletePropertyOrThrow(O, to);\n }\n for (var j = 0; j < argCount; j++) {\n O[j] = arguments[j];\n }\n } return setArrayLength(O, len + argCount);\n }\n});\n","/* eslint-disable no-unused-vars -- required for functions `.length` */\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');\n\nvar WEB_ASSEMBLY = 'WebAssembly';\nvar WebAssembly = global[WEB_ASSEMBLY];\n\nvar FORCED = Error('e', { cause: 7 }).cause !== 7;\n\nvar exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);\n $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);\n};\n\nvar exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n if (WebAssembly && WebAssembly[ERROR_NAME]) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);\n $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);\n }\n};\n\n// https://github.com/tc39/proposal-error-cause\nexportGlobalErrorCauseWrapper('Error', function (init) {\n return function Error(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('EvalError', function (init) {\n return function EvalError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('RangeError', function (init) {\n return function RangeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('ReferenceError', function (init) {\n return function ReferenceError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('SyntaxError', function (init) {\n return function SyntaxError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('TypeError', function (init) {\n return function TypeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('URIError', function (init) {\n return function URIError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('CompileError', function (init) {\n return function CompileError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('LinkError', function (init) {\n return function LinkError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {\n return function RuntimeError(message) { return apply(init, this, arguments); };\n});\n","var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar regExpFlags = require('../internals/regexp-flags');\nvar fails = require('../internals/fails');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError\nvar RegExp = global.RegExp;\nvar RegExpPrototype = RegExp.prototype;\n\nvar FORCED = DESCRIPTORS && fails(function () {\n var INDICES_SUPPORT = true;\n try {\n RegExp('.', 'd');\n } catch (error) {\n INDICES_SUPPORT = false;\n }\n\n var O = {};\n // modern V8 bug\n var calls = '';\n var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';\n\n var addGetter = function (key, chr) {\n // eslint-disable-next-line es-x/no-object-defineproperty -- safe\n Object.defineProperty(O, key, { get: function () {\n calls += chr;\n return true;\n } });\n };\n\n var pairs = {\n dotAll: 's',\n global: 'g',\n ignoreCase: 'i',\n multiline: 'm',\n sticky: 'y'\n };\n\n if (INDICES_SUPPORT) pairs.hasIndices = 'd';\n\n for (var key in pairs) addGetter(key, pairs[key]);\n\n // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\n var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O);\n\n return result !== expected || calls !== expected;\n});\n\n// `RegExp.prototype.flags` getter\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nif (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {\n configurable: true,\n get: regExpFlags\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.at` method\n// https://github.com/tc39/proposal-relative-indexing-method\nexportTypedArrayMethod('at', function at(index) {\n var O = aTypedArray(this);\n var len = lengthOfArrayLike(O);\n var relativeIndex = toIntegerOrInfinity(index);\n var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;\n return (k < 0 || k >= len) ? undefined : O[k];\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $findLastIndex = require('../internals/array-iteration-from-last').findLastIndex;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.findLastIndex` method\n// https://github.com/tc39/proposal-array-find-from-last\nexportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , thisArg */) {\n return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $findLast = require('../internals/array-iteration-from-last').findLast;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.findLast` method\n// https://github.com/tc39/proposal-array-find-from-last\nexportTypedArrayMethod('findLast', function findLast(predicate /* , thisArg */) {\n return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar anInstance = require('../internals/an-instance');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar DOMExceptionConstants = require('../internals/dom-exception-constants');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nvar DOM_EXCEPTION = 'DOMException';\nvar Error = getBuiltIn('Error');\nvar NativeDOMException = getBuiltIn(DOM_EXCEPTION);\n\nvar $DOMException = function DOMException() {\n anInstance(this, DOMExceptionPrototype);\n var argumentsLength = arguments.length;\n var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);\n var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');\n var that = new NativeDOMException(message, name);\n var error = Error(message);\n error.name = DOM_EXCEPTION;\n defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));\n inheritIfRequired(that, this, $DOMException);\n return that;\n};\n\nvar DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;\n\nvar ERROR_HAS_STACK = 'stack' in Error(DOM_EXCEPTION);\nvar DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);\n\n// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe\nvar descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION);\n\n// Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it\n// https://github.com/Jarred-Sumner/bun/issues/399\nvar BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);\n\nvar FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;\n\n// `DOMException` constructor patch for `.stack` where it's required\n// https://webidl.spec.whatwg.org/#es-DOMException-specialness\n$({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic\n DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException\n});\n\nvar PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);\nvar PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;\n\nif (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {\n if (!IS_PURE) {\n defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));\n }\n\n for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {\n var constant = DOMExceptionConstants[key];\n var constantName = constant.s;\n if (!hasOwn(PolyfilledDOMException, constantName)) {\n defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));\n }\n }\n}\n","import { inject } from 'vue';\nconst ssrContextKey = Symbol('@css-render/vue3-ssr');\nfunction createStyleString(id, style) {\n return ``;\n}\nfunction ssrAdapter(id, style) {\n const ssrContext = inject(ssrContextKey, null);\n if (ssrContext === null) {\n console.error('[css-render/vue3-ssr]: no ssr context found.');\n return;\n }\n const { styles, ids } = ssrContext;\n // we need to impl other options to make it behaves the same as the client side\n if (ids.has(id))\n return;\n if (styles !== null) {\n ids.add(id);\n styles.push(createStyleString(id, style));\n }\n}\nconst isBrowser = typeof document !== 'undefined';\nexport function useSsrAdapter() {\n if (isBrowser)\n return undefined;\n const context = inject(ssrContextKey, null);\n if (context === null)\n return undefined;\n return {\n adapter: ssrAdapter,\n context\n };\n}\nexport function setup(app) {\n const styles = [];\n const ssrContext = {\n styles,\n ids: new Set()\n };\n app.provide(ssrContextKey, ssrContext);\n return {\n collect() {\n const res = styles.join('\\n');\n styles.length = 0;\n return res;\n }\n };\n}\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport default murmur2;\n","import { extend, isArray, isMap, isIntegerKey, hasOwn, isSymbol, isObject, hasChanged, makeMap, capitalize, toRawType, def, isFunction, NOOP } from '@vue/shared';\n\nfunction warn(msg, ...args) {\r\n console.warn(`[Vue warn] ${msg}`, ...args);\r\n}\n\nlet activeEffectScope;\r\nclass EffectScope {\r\n constructor(detached = false) {\r\n /**\r\n * @internal\r\n */\r\n this.active = true;\r\n /**\r\n * @internal\r\n */\r\n this.effects = [];\r\n /**\r\n * @internal\r\n */\r\n this.cleanups = [];\r\n if (!detached && activeEffectScope) {\r\n this.parent = activeEffectScope;\r\n this.index =\r\n (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\r\n }\r\n }\r\n run(fn) {\r\n if (this.active) {\r\n const currentEffectScope = activeEffectScope;\r\n try {\r\n activeEffectScope = this;\r\n return fn();\r\n }\r\n finally {\r\n activeEffectScope = currentEffectScope;\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`cannot run an inactive effect scope.`);\r\n }\r\n }\r\n /**\r\n * This should only be called on non-detached scopes\r\n * @internal\r\n */\r\n on() {\r\n activeEffectScope = this;\r\n }\r\n /**\r\n * This should only be called on non-detached scopes\r\n * @internal\r\n */\r\n off() {\r\n activeEffectScope = this.parent;\r\n }\r\n stop(fromParent) {\r\n if (this.active) {\r\n let i, l;\r\n for (i = 0, l = this.effects.length; i < l; i++) {\r\n this.effects[i].stop();\r\n }\r\n for (i = 0, l = this.cleanups.length; i < l; i++) {\r\n this.cleanups[i]();\r\n }\r\n if (this.scopes) {\r\n for (i = 0, l = this.scopes.length; i < l; i++) {\r\n this.scopes[i].stop(true);\r\n }\r\n }\r\n // nested scope, dereference from parent to avoid memory leaks\r\n if (this.parent && !fromParent) {\r\n // optimized O(1) removal\r\n const last = this.parent.scopes.pop();\r\n if (last && last !== this) {\r\n this.parent.scopes[this.index] = last;\r\n last.index = this.index;\r\n }\r\n }\r\n this.active = false;\r\n }\r\n }\r\n}\r\nfunction effectScope(detached) {\r\n return new EffectScope(detached);\r\n}\r\nfunction recordEffectScope(effect, scope = activeEffectScope) {\r\n if (scope && scope.active) {\r\n scope.effects.push(effect);\r\n }\r\n}\r\nfunction getCurrentScope() {\r\n return activeEffectScope;\r\n}\r\nfunction onScopeDispose(fn) {\r\n if (activeEffectScope) {\r\n activeEffectScope.cleanups.push(fn);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`onScopeDispose() is called when there is no active effect scope` +\r\n ` to be associated with.`);\r\n }\r\n}\n\nconst createDep = (effects) => {\r\n const dep = new Set(effects);\r\n dep.w = 0;\r\n dep.n = 0;\r\n return dep;\r\n};\r\nconst wasTracked = (dep) => (dep.w & trackOpBit) > 0;\r\nconst newTracked = (dep) => (dep.n & trackOpBit) > 0;\r\nconst initDepMarkers = ({ deps }) => {\r\n if (deps.length) {\r\n for (let i = 0; i < deps.length; i++) {\r\n deps[i].w |= trackOpBit; // set was tracked\r\n }\r\n }\r\n};\r\nconst finalizeDepMarkers = (effect) => {\r\n const { deps } = effect;\r\n if (deps.length) {\r\n let ptr = 0;\r\n for (let i = 0; i < deps.length; i++) {\r\n const dep = deps[i];\r\n if (wasTracked(dep) && !newTracked(dep)) {\r\n dep.delete(effect);\r\n }\r\n else {\r\n deps[ptr++] = dep;\r\n }\r\n // clear bits\r\n dep.w &= ~trackOpBit;\r\n dep.n &= ~trackOpBit;\r\n }\r\n deps.length = ptr;\r\n }\r\n};\n\nconst targetMap = new WeakMap();\r\n// The number of effects currently being tracked recursively.\r\nlet effectTrackDepth = 0;\r\nlet trackOpBit = 1;\r\n/**\r\n * The bitwise track markers support at most 30 levels of recursion.\r\n * This value is chosen to enable modern JS engines to use a SMI on all platforms.\r\n * When recursion depth is greater, fall back to using a full cleanup.\r\n */\r\nconst maxMarkerBits = 30;\r\nlet activeEffect;\r\nconst ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'iterate' : '');\r\nconst MAP_KEY_ITERATE_KEY = Symbol((process.env.NODE_ENV !== 'production') ? 'Map key iterate' : '');\r\nclass ReactiveEffect {\r\n constructor(fn, scheduler = null, scope) {\r\n this.fn = fn;\r\n this.scheduler = scheduler;\r\n this.active = true;\r\n this.deps = [];\r\n this.parent = undefined;\r\n recordEffectScope(this, scope);\r\n }\r\n run() {\r\n if (!this.active) {\r\n return this.fn();\r\n }\r\n let parent = activeEffect;\r\n let lastShouldTrack = shouldTrack;\r\n while (parent) {\r\n if (parent === this) {\r\n return;\r\n }\r\n parent = parent.parent;\r\n }\r\n try {\r\n this.parent = activeEffect;\r\n activeEffect = this;\r\n shouldTrack = true;\r\n trackOpBit = 1 << ++effectTrackDepth;\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n initDepMarkers(this);\r\n }\r\n else {\r\n cleanupEffect(this);\r\n }\r\n return this.fn();\r\n }\r\n finally {\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n finalizeDepMarkers(this);\r\n }\r\n trackOpBit = 1 << --effectTrackDepth;\r\n activeEffect = this.parent;\r\n shouldTrack = lastShouldTrack;\r\n this.parent = undefined;\r\n if (this.deferStop) {\r\n this.stop();\r\n }\r\n }\r\n }\r\n stop() {\r\n // stopped while running itself - defer the cleanup\r\n if (activeEffect === this) {\r\n this.deferStop = true;\r\n }\r\n else if (this.active) {\r\n cleanupEffect(this);\r\n if (this.onStop) {\r\n this.onStop();\r\n }\r\n this.active = false;\r\n }\r\n }\r\n}\r\nfunction cleanupEffect(effect) {\r\n const { deps } = effect;\r\n if (deps.length) {\r\n for (let i = 0; i < deps.length; i++) {\r\n deps[i].delete(effect);\r\n }\r\n deps.length = 0;\r\n }\r\n}\r\nfunction effect(fn, options) {\r\n if (fn.effect) {\r\n fn = fn.effect.fn;\r\n }\r\n const _effect = new ReactiveEffect(fn);\r\n if (options) {\r\n extend(_effect, options);\r\n if (options.scope)\r\n recordEffectScope(_effect, options.scope);\r\n }\r\n if (!options || !options.lazy) {\r\n _effect.run();\r\n }\r\n const runner = _effect.run.bind(_effect);\r\n runner.effect = _effect;\r\n return runner;\r\n}\r\nfunction stop(runner) {\r\n runner.effect.stop();\r\n}\r\nlet shouldTrack = true;\r\nconst trackStack = [];\r\nfunction pauseTracking() {\r\n trackStack.push(shouldTrack);\r\n shouldTrack = false;\r\n}\r\nfunction enableTracking() {\r\n trackStack.push(shouldTrack);\r\n shouldTrack = true;\r\n}\r\nfunction resetTracking() {\r\n const last = trackStack.pop();\r\n shouldTrack = last === undefined ? true : last;\r\n}\r\nfunction track(target, type, key) {\r\n if (shouldTrack && activeEffect) {\r\n let depsMap = targetMap.get(target);\r\n if (!depsMap) {\r\n targetMap.set(target, (depsMap = new Map()));\r\n }\r\n let dep = depsMap.get(key);\r\n if (!dep) {\r\n depsMap.set(key, (dep = createDep()));\r\n }\r\n const eventInfo = (process.env.NODE_ENV !== 'production')\r\n ? { effect: activeEffect, target, type, key }\r\n : undefined;\r\n trackEffects(dep, eventInfo);\r\n }\r\n}\r\nfunction trackEffects(dep, debuggerEventExtraInfo) {\r\n let shouldTrack = false;\r\n if (effectTrackDepth <= maxMarkerBits) {\r\n if (!newTracked(dep)) {\r\n dep.n |= trackOpBit; // set newly tracked\r\n shouldTrack = !wasTracked(dep);\r\n }\r\n }\r\n else {\r\n // Full cleanup mode.\r\n shouldTrack = !dep.has(activeEffect);\r\n }\r\n if (shouldTrack) {\r\n dep.add(activeEffect);\r\n activeEffect.deps.push(dep);\r\n if ((process.env.NODE_ENV !== 'production') && activeEffect.onTrack) {\r\n activeEffect.onTrack(Object.assign({ effect: activeEffect }, debuggerEventExtraInfo));\r\n }\r\n }\r\n}\r\nfunction trigger(target, type, key, newValue, oldValue, oldTarget) {\r\n const depsMap = targetMap.get(target);\r\n if (!depsMap) {\r\n // never been tracked\r\n return;\r\n }\r\n let deps = [];\r\n if (type === \"clear\" /* TriggerOpTypes.CLEAR */) {\r\n // collection being cleared\r\n // trigger all effects for target\r\n deps = [...depsMap.values()];\r\n }\r\n else if (key === 'length' && isArray(target)) {\r\n depsMap.forEach((dep, key) => {\r\n if (key === 'length' || key >= newValue) {\r\n deps.push(dep);\r\n }\r\n });\r\n }\r\n else {\r\n // schedule runs for SET | ADD | DELETE\r\n if (key !== void 0) {\r\n deps.push(depsMap.get(key));\r\n }\r\n // also run for iteration key on ADD | DELETE | Map.SET\r\n switch (type) {\r\n case \"add\" /* TriggerOpTypes.ADD */:\r\n if (!isArray(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\r\n }\r\n }\r\n else if (isIntegerKey(key)) {\r\n // new index added to array -> length changes\r\n deps.push(depsMap.get('length'));\r\n }\r\n break;\r\n case \"delete\" /* TriggerOpTypes.DELETE */:\r\n if (!isArray(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));\r\n }\r\n }\r\n break;\r\n case \"set\" /* TriggerOpTypes.SET */:\r\n if (isMap(target)) {\r\n deps.push(depsMap.get(ITERATE_KEY));\r\n }\r\n break;\r\n }\r\n }\r\n const eventInfo = (process.env.NODE_ENV !== 'production')\r\n ? { target, type, key, newValue, oldValue, oldTarget }\r\n : undefined;\r\n if (deps.length === 1) {\r\n if (deps[0]) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(deps[0], eventInfo);\r\n }\r\n else {\r\n triggerEffects(deps[0]);\r\n }\r\n }\r\n }\r\n else {\r\n const effects = [];\r\n for (const dep of deps) {\r\n if (dep) {\r\n effects.push(...dep);\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(createDep(effects), eventInfo);\r\n }\r\n else {\r\n triggerEffects(createDep(effects));\r\n }\r\n }\r\n}\r\nfunction triggerEffects(dep, debuggerEventExtraInfo) {\r\n // spread into array for stabilization\r\n const effects = isArray(dep) ? dep : [...dep];\r\n for (const effect of effects) {\r\n if (effect.computed) {\r\n triggerEffect(effect, debuggerEventExtraInfo);\r\n }\r\n }\r\n for (const effect of effects) {\r\n if (!effect.computed) {\r\n triggerEffect(effect, debuggerEventExtraInfo);\r\n }\r\n }\r\n}\r\nfunction triggerEffect(effect, debuggerEventExtraInfo) {\r\n if (effect !== activeEffect || effect.allowRecurse) {\r\n if ((process.env.NODE_ENV !== 'production') && effect.onTrigger) {\r\n effect.onTrigger(extend({ effect }, debuggerEventExtraInfo));\r\n }\r\n if (effect.scheduler) {\r\n effect.scheduler();\r\n }\r\n else {\r\n effect.run();\r\n }\r\n }\r\n}\n\nconst isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);\r\nconst builtInSymbols = new Set(\r\n/*#__PURE__*/\r\nObject.getOwnPropertyNames(Symbol)\r\n // ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'\r\n // but accessing them on Symbol leads to TypeError because Symbol is a strict mode\r\n // function\r\n .filter(key => key !== 'arguments' && key !== 'caller')\r\n .map(key => Symbol[key])\r\n .filter(isSymbol));\r\nconst get = /*#__PURE__*/ createGetter();\r\nconst shallowGet = /*#__PURE__*/ createGetter(false, true);\r\nconst readonlyGet = /*#__PURE__*/ createGetter(true);\r\nconst shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);\r\nconst arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();\r\nfunction createArrayInstrumentations() {\r\n const instrumentations = {};\r\n ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {\r\n instrumentations[key] = function (...args) {\r\n const arr = toRaw(this);\r\n for (let i = 0, l = this.length; i < l; i++) {\r\n track(arr, \"get\" /* TrackOpTypes.GET */, i + '');\r\n }\r\n // we run the method using the original args first (which may be reactive)\r\n const res = arr[key](...args);\r\n if (res === -1 || res === false) {\r\n // if that didn't work, run it again using raw values.\r\n return arr[key](...args.map(toRaw));\r\n }\r\n else {\r\n return res;\r\n }\r\n };\r\n });\r\n ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {\r\n instrumentations[key] = function (...args) {\r\n pauseTracking();\r\n const res = toRaw(this)[key].apply(this, args);\r\n resetTracking();\r\n return res;\r\n };\r\n });\r\n return instrumentations;\r\n}\r\nfunction createGetter(isReadonly = false, shallow = false) {\r\n return function get(target, key, receiver) {\r\n if (key === \"__v_isReactive\" /* ReactiveFlags.IS_REACTIVE */) {\r\n return !isReadonly;\r\n }\r\n else if (key === \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */) {\r\n return isReadonly;\r\n }\r\n else if (key === \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */) {\r\n return shallow;\r\n }\r\n else if (key === \"__v_raw\" /* ReactiveFlags.RAW */ &&\r\n receiver ===\r\n (isReadonly\r\n ? shallow\r\n ? shallowReadonlyMap\r\n : readonlyMap\r\n : shallow\r\n ? shallowReactiveMap\r\n : reactiveMap).get(target)) {\r\n return target;\r\n }\r\n const targetIsArray = isArray(target);\r\n if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {\r\n return Reflect.get(arrayInstrumentations, key, receiver);\r\n }\r\n const res = Reflect.get(target, key, receiver);\r\n if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {\r\n return res;\r\n }\r\n if (!isReadonly) {\r\n track(target, \"get\" /* TrackOpTypes.GET */, key);\r\n }\r\n if (shallow) {\r\n return res;\r\n }\r\n if (isRef(res)) {\r\n // ref unwrapping - skip unwrap for Array + integer key.\r\n return targetIsArray && isIntegerKey(key) ? res : res.value;\r\n }\r\n if (isObject(res)) {\r\n // Convert returned value into a proxy as well. we do the isObject check\r\n // here to avoid invalid value warning. Also need to lazy access readonly\r\n // and reactive here to avoid circular dependency.\r\n return isReadonly ? readonly(res) : reactive(res);\r\n }\r\n return res;\r\n };\r\n}\r\nconst set = /*#__PURE__*/ createSetter();\r\nconst shallowSet = /*#__PURE__*/ createSetter(true);\r\nfunction createSetter(shallow = false) {\r\n return function set(target, key, value, receiver) {\r\n let oldValue = target[key];\r\n if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {\r\n return false;\r\n }\r\n if (!shallow) {\r\n if (!isShallow(value) && !isReadonly(value)) {\r\n oldValue = toRaw(oldValue);\r\n value = toRaw(value);\r\n }\r\n if (!isArray(target) && isRef(oldValue) && !isRef(value)) {\r\n oldValue.value = value;\r\n return true;\r\n }\r\n }\r\n const hadKey = isArray(target) && isIntegerKey(key)\r\n ? Number(key) < target.length\r\n : hasOwn(target, key);\r\n const result = Reflect.set(target, key, value, receiver);\r\n // don't trigger if target is something up in the prototype chain of original\r\n if (target === toRaw(receiver)) {\r\n if (!hadKey) {\r\n trigger(target, \"add\" /* TriggerOpTypes.ADD */, key, value);\r\n }\r\n else if (hasChanged(value, oldValue)) {\r\n trigger(target, \"set\" /* TriggerOpTypes.SET */, key, value, oldValue);\r\n }\r\n }\r\n return result;\r\n };\r\n}\r\nfunction deleteProperty(target, key) {\r\n const hadKey = hasOwn(target, key);\r\n const oldValue = target[key];\r\n const result = Reflect.deleteProperty(target, key);\r\n if (result && hadKey) {\r\n trigger(target, \"delete\" /* TriggerOpTypes.DELETE */, key, undefined, oldValue);\r\n }\r\n return result;\r\n}\r\nfunction has(target, key) {\r\n const result = Reflect.has(target, key);\r\n if (!isSymbol(key) || !builtInSymbols.has(key)) {\r\n track(target, \"has\" /* TrackOpTypes.HAS */, key);\r\n }\r\n return result;\r\n}\r\nfunction ownKeys(target) {\r\n track(target, \"iterate\" /* TrackOpTypes.ITERATE */, isArray(target) ? 'length' : ITERATE_KEY);\r\n return Reflect.ownKeys(target);\r\n}\r\nconst mutableHandlers = {\r\n get,\r\n set,\r\n deleteProperty,\r\n has,\r\n ownKeys\r\n};\r\nconst readonlyHandlers = {\r\n get: readonlyGet,\r\n set(target, key) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Set operation on key \"${String(key)}\" failed: target is readonly.`, target);\r\n }\r\n return true;\r\n },\r\n deleteProperty(target, key) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`Delete operation on key \"${String(key)}\" failed: target is readonly.`, target);\r\n }\r\n return true;\r\n }\r\n};\r\nconst shallowReactiveHandlers = /*#__PURE__*/ extend({}, mutableHandlers, {\r\n get: shallowGet,\r\n set: shallowSet\r\n});\r\n// Props handlers are special in the sense that it should not unwrap top-level\r\n// refs (in order to allow refs to be explicitly passed down), but should\r\n// retain the reactivity of the normal readonly object.\r\nconst shallowReadonlyHandlers = /*#__PURE__*/ extend({}, readonlyHandlers, {\r\n get: shallowReadonlyGet\r\n});\n\nconst toShallow = (value) => value;\r\nconst getProto = (v) => Reflect.getPrototypeOf(v);\r\nfunction get$1(target, key, isReadonly = false, isShallow = false) {\r\n // #1772: readonly(reactive(Map)) should return readonly + reactive version\r\n // of the value\r\n target = target[\"__v_raw\" /* ReactiveFlags.RAW */];\r\n const rawTarget = toRaw(target);\r\n const rawKey = toRaw(key);\r\n if (!isReadonly) {\r\n if (key !== rawKey) {\r\n track(rawTarget, \"get\" /* TrackOpTypes.GET */, key);\r\n }\r\n track(rawTarget, \"get\" /* TrackOpTypes.GET */, rawKey);\r\n }\r\n const { has } = getProto(rawTarget);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n if (has.call(rawTarget, key)) {\r\n return wrap(target.get(key));\r\n }\r\n else if (has.call(rawTarget, rawKey)) {\r\n return wrap(target.get(rawKey));\r\n }\r\n else if (target !== rawTarget) {\r\n // #3602 readonly(reactive(Map))\r\n // ensure that the nested reactive `Map` can do tracking for itself\r\n target.get(key);\r\n }\r\n}\r\nfunction has$1(key, isReadonly = false) {\r\n const target = this[\"__v_raw\" /* ReactiveFlags.RAW */];\r\n const rawTarget = toRaw(target);\r\n const rawKey = toRaw(key);\r\n if (!isReadonly) {\r\n if (key !== rawKey) {\r\n track(rawTarget, \"has\" /* TrackOpTypes.HAS */, key);\r\n }\r\n track(rawTarget, \"has\" /* TrackOpTypes.HAS */, rawKey);\r\n }\r\n return key === rawKey\r\n ? target.has(key)\r\n : target.has(key) || target.has(rawKey);\r\n}\r\nfunction size(target, isReadonly = false) {\r\n target = target[\"__v_raw\" /* ReactiveFlags.RAW */];\r\n !isReadonly && track(toRaw(target), \"iterate\" /* TrackOpTypes.ITERATE */, ITERATE_KEY);\r\n return Reflect.get(target, 'size', target);\r\n}\r\nfunction add(value) {\r\n value = toRaw(value);\r\n const target = toRaw(this);\r\n const proto = getProto(target);\r\n const hadKey = proto.has.call(target, value);\r\n if (!hadKey) {\r\n target.add(value);\r\n trigger(target, \"add\" /* TriggerOpTypes.ADD */, value, value);\r\n }\r\n return this;\r\n}\r\nfunction set$1(key, value) {\r\n value = toRaw(value);\r\n const target = toRaw(this);\r\n const { has, get } = getProto(target);\r\n let hadKey = has.call(target, key);\r\n if (!hadKey) {\r\n key = toRaw(key);\r\n hadKey = has.call(target, key);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n checkIdentityKeys(target, has, key);\r\n }\r\n const oldValue = get.call(target, key);\r\n target.set(key, value);\r\n if (!hadKey) {\r\n trigger(target, \"add\" /* TriggerOpTypes.ADD */, key, value);\r\n }\r\n else if (hasChanged(value, oldValue)) {\r\n trigger(target, \"set\" /* TriggerOpTypes.SET */, key, value, oldValue);\r\n }\r\n return this;\r\n}\r\nfunction deleteEntry(key) {\r\n const target = toRaw(this);\r\n const { has, get } = getProto(target);\r\n let hadKey = has.call(target, key);\r\n if (!hadKey) {\r\n key = toRaw(key);\r\n hadKey = has.call(target, key);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n checkIdentityKeys(target, has, key);\r\n }\r\n const oldValue = get ? get.call(target, key) : undefined;\r\n // forward the operation before queueing reactions\r\n const result = target.delete(key);\r\n if (hadKey) {\r\n trigger(target, \"delete\" /* TriggerOpTypes.DELETE */, key, undefined, oldValue);\r\n }\r\n return result;\r\n}\r\nfunction clear() {\r\n const target = toRaw(this);\r\n const hadItems = target.size !== 0;\r\n const oldTarget = (process.env.NODE_ENV !== 'production')\r\n ? isMap(target)\r\n ? new Map(target)\r\n : new Set(target)\r\n : undefined;\r\n // forward the operation before queueing reactions\r\n const result = target.clear();\r\n if (hadItems) {\r\n trigger(target, \"clear\" /* TriggerOpTypes.CLEAR */, undefined, undefined, oldTarget);\r\n }\r\n return result;\r\n}\r\nfunction createForEach(isReadonly, isShallow) {\r\n return function forEach(callback, thisArg) {\r\n const observed = this;\r\n const target = observed[\"__v_raw\" /* ReactiveFlags.RAW */];\r\n const rawTarget = toRaw(target);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n !isReadonly && track(rawTarget, \"iterate\" /* TrackOpTypes.ITERATE */, ITERATE_KEY);\r\n return target.forEach((value, key) => {\r\n // important: make sure the callback is\r\n // 1. invoked with the reactive map as `this` and 3rd arg\r\n // 2. the value received should be a corresponding reactive/readonly.\r\n return callback.call(thisArg, wrap(value), wrap(key), observed);\r\n });\r\n };\r\n}\r\nfunction createIterableMethod(method, isReadonly, isShallow) {\r\n return function (...args) {\r\n const target = this[\"__v_raw\" /* ReactiveFlags.RAW */];\r\n const rawTarget = toRaw(target);\r\n const targetIsMap = isMap(rawTarget);\r\n const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);\r\n const isKeyOnly = method === 'keys' && targetIsMap;\r\n const innerIterator = target[method](...args);\r\n const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;\r\n !isReadonly &&\r\n track(rawTarget, \"iterate\" /* TrackOpTypes.ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);\r\n // return a wrapped iterator which returns observed versions of the\r\n // values emitted from the real iterator\r\n return {\r\n // iterator protocol\r\n next() {\r\n const { value, done } = innerIterator.next();\r\n return done\r\n ? { value, done }\r\n : {\r\n value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),\r\n done\r\n };\r\n },\r\n // iterable protocol\r\n [Symbol.iterator]() {\r\n return this;\r\n }\r\n };\r\n };\r\n}\r\nfunction createReadonlyMethod(type) {\r\n return function (...args) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const key = args[0] ? `on key \"${args[0]}\" ` : ``;\r\n console.warn(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));\r\n }\r\n return type === \"delete\" /* TriggerOpTypes.DELETE */ ? false : this;\r\n };\r\n}\r\nfunction createInstrumentations() {\r\n const mutableInstrumentations = {\r\n get(key) {\r\n return get$1(this, key);\r\n },\r\n get size() {\r\n return size(this);\r\n },\r\n has: has$1,\r\n add,\r\n set: set$1,\r\n delete: deleteEntry,\r\n clear,\r\n forEach: createForEach(false, false)\r\n };\r\n const shallowInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, false, true);\r\n },\r\n get size() {\r\n return size(this);\r\n },\r\n has: has$1,\r\n add,\r\n set: set$1,\r\n delete: deleteEntry,\r\n clear,\r\n forEach: createForEach(false, true)\r\n };\r\n const readonlyInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, true);\r\n },\r\n get size() {\r\n return size(this, true);\r\n },\r\n has(key) {\r\n return has$1.call(this, key, true);\r\n },\r\n add: createReadonlyMethod(\"add\" /* TriggerOpTypes.ADD */),\r\n set: createReadonlyMethod(\"set\" /* TriggerOpTypes.SET */),\r\n delete: createReadonlyMethod(\"delete\" /* TriggerOpTypes.DELETE */),\r\n clear: createReadonlyMethod(\"clear\" /* TriggerOpTypes.CLEAR */),\r\n forEach: createForEach(true, false)\r\n };\r\n const shallowReadonlyInstrumentations = {\r\n get(key) {\r\n return get$1(this, key, true, true);\r\n },\r\n get size() {\r\n return size(this, true);\r\n },\r\n has(key) {\r\n return has$1.call(this, key, true);\r\n },\r\n add: createReadonlyMethod(\"add\" /* TriggerOpTypes.ADD */),\r\n set: createReadonlyMethod(\"set\" /* TriggerOpTypes.SET */),\r\n delete: createReadonlyMethod(\"delete\" /* TriggerOpTypes.DELETE */),\r\n clear: createReadonlyMethod(\"clear\" /* TriggerOpTypes.CLEAR */),\r\n forEach: createForEach(true, true)\r\n };\r\n const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];\r\n iteratorMethods.forEach(method => {\r\n mutableInstrumentations[method] = createIterableMethod(method, false, false);\r\n readonlyInstrumentations[method] = createIterableMethod(method, true, false);\r\n shallowInstrumentations[method] = createIterableMethod(method, false, true);\r\n shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);\r\n });\r\n return [\r\n mutableInstrumentations,\r\n readonlyInstrumentations,\r\n shallowInstrumentations,\r\n shallowReadonlyInstrumentations\r\n ];\r\n}\r\nconst [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();\r\nfunction createInstrumentationGetter(isReadonly, shallow) {\r\n const instrumentations = shallow\r\n ? isReadonly\r\n ? shallowReadonlyInstrumentations\r\n : shallowInstrumentations\r\n : isReadonly\r\n ? readonlyInstrumentations\r\n : mutableInstrumentations;\r\n return (target, key, receiver) => {\r\n if (key === \"__v_isReactive\" /* ReactiveFlags.IS_REACTIVE */) {\r\n return !isReadonly;\r\n }\r\n else if (key === \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */) {\r\n return isReadonly;\r\n }\r\n else if (key === \"__v_raw\" /* ReactiveFlags.RAW */) {\r\n return target;\r\n }\r\n return Reflect.get(hasOwn(instrumentations, key) && key in target\r\n ? instrumentations\r\n : target, key, receiver);\r\n };\r\n}\r\nconst mutableCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(false, false)\r\n};\r\nconst shallowCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(false, true)\r\n};\r\nconst readonlyCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(true, false)\r\n};\r\nconst shallowReadonlyCollectionHandlers = {\r\n get: /*#__PURE__*/ createInstrumentationGetter(true, true)\r\n};\r\nfunction checkIdentityKeys(target, has, key) {\r\n const rawKey = toRaw(key);\r\n if (rawKey !== key && has.call(target, rawKey)) {\r\n const type = toRawType(target);\r\n console.warn(`Reactive ${type} contains both the raw and reactive ` +\r\n `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +\r\n `which can lead to inconsistencies. ` +\r\n `Avoid differentiating between the raw and reactive versions ` +\r\n `of an object and only use the reactive version if possible.`);\r\n }\r\n}\n\nconst reactiveMap = new WeakMap();\r\nconst shallowReactiveMap = new WeakMap();\r\nconst readonlyMap = new WeakMap();\r\nconst shallowReadonlyMap = new WeakMap();\r\nfunction targetTypeMap(rawType) {\r\n switch (rawType) {\r\n case 'Object':\r\n case 'Array':\r\n return 1 /* TargetType.COMMON */;\r\n case 'Map':\r\n case 'Set':\r\n case 'WeakMap':\r\n case 'WeakSet':\r\n return 2 /* TargetType.COLLECTION */;\r\n default:\r\n return 0 /* TargetType.INVALID */;\r\n }\r\n}\r\nfunction getTargetType(value) {\r\n return value[\"__v_skip\" /* ReactiveFlags.SKIP */] || !Object.isExtensible(value)\r\n ? 0 /* TargetType.INVALID */\r\n : targetTypeMap(toRawType(value));\r\n}\r\nfunction reactive(target) {\r\n // if trying to observe a readonly proxy, return the readonly version.\r\n if (isReadonly(target)) {\r\n return target;\r\n }\r\n return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);\r\n}\r\n/**\r\n * Return a shallowly-reactive copy of the original object, where only the root\r\n * level properties are reactive. It also does not auto-unwrap refs (even at the\r\n * root level).\r\n */\r\nfunction shallowReactive(target) {\r\n return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);\r\n}\r\n/**\r\n * Creates a readonly copy of the original object. Note the returned copy is not\r\n * made reactive, but `readonly` can be called on an already reactive object.\r\n */\r\nfunction readonly(target) {\r\n return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);\r\n}\r\n/**\r\n * Returns a reactive-copy of the original object, where only the root level\r\n * properties are readonly, and does NOT unwrap refs nor recursively convert\r\n * returned properties.\r\n * This is used for creating the props proxy object for stateful components.\r\n */\r\nfunction shallowReadonly(target) {\r\n return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);\r\n}\r\nfunction createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {\r\n if (!isObject(target)) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n console.warn(`value cannot be made reactive: ${String(target)}`);\r\n }\r\n return target;\r\n }\r\n // target is already a Proxy, return it.\r\n // exception: calling readonly() on a reactive object\r\n if (target[\"__v_raw\" /* ReactiveFlags.RAW */] &&\r\n !(isReadonly && target[\"__v_isReactive\" /* ReactiveFlags.IS_REACTIVE */])) {\r\n return target;\r\n }\r\n // target already has corresponding Proxy\r\n const existingProxy = proxyMap.get(target);\r\n if (existingProxy) {\r\n return existingProxy;\r\n }\r\n // only specific value types can be observed.\r\n const targetType = getTargetType(target);\r\n if (targetType === 0 /* TargetType.INVALID */) {\r\n return target;\r\n }\r\n const proxy = new Proxy(target, targetType === 2 /* TargetType.COLLECTION */ ? collectionHandlers : baseHandlers);\r\n proxyMap.set(target, proxy);\r\n return proxy;\r\n}\r\nfunction isReactive(value) {\r\n if (isReadonly(value)) {\r\n return isReactive(value[\"__v_raw\" /* ReactiveFlags.RAW */]);\r\n }\r\n return !!(value && value[\"__v_isReactive\" /* ReactiveFlags.IS_REACTIVE */]);\r\n}\r\nfunction isReadonly(value) {\r\n return !!(value && value[\"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */]);\r\n}\r\nfunction isShallow(value) {\r\n return !!(value && value[\"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */]);\r\n}\r\nfunction isProxy(value) {\r\n return isReactive(value) || isReadonly(value);\r\n}\r\nfunction toRaw(observed) {\r\n const raw = observed && observed[\"__v_raw\" /* ReactiveFlags.RAW */];\r\n return raw ? toRaw(raw) : observed;\r\n}\r\nfunction markRaw(value) {\r\n def(value, \"__v_skip\" /* ReactiveFlags.SKIP */, true);\r\n return value;\r\n}\r\nconst toReactive = (value) => isObject(value) ? reactive(value) : value;\r\nconst toReadonly = (value) => isObject(value) ? readonly(value) : value;\n\nfunction trackRefValue(ref) {\r\n if (shouldTrack && activeEffect) {\r\n ref = toRaw(ref);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n trackEffects(ref.dep || (ref.dep = createDep()), {\r\n target: ref,\r\n type: \"get\" /* TrackOpTypes.GET */,\r\n key: 'value'\r\n });\r\n }\r\n else {\r\n trackEffects(ref.dep || (ref.dep = createDep()));\r\n }\r\n }\r\n}\r\nfunction triggerRefValue(ref, newVal) {\r\n ref = toRaw(ref);\r\n if (ref.dep) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n triggerEffects(ref.dep, {\r\n target: ref,\r\n type: \"set\" /* TriggerOpTypes.SET */,\r\n key: 'value',\r\n newValue: newVal\r\n });\r\n }\r\n else {\r\n triggerEffects(ref.dep);\r\n }\r\n }\r\n}\r\nfunction isRef(r) {\r\n return !!(r && r.__v_isRef === true);\r\n}\r\nfunction ref(value) {\r\n return createRef(value, false);\r\n}\r\nfunction shallowRef(value) {\r\n return createRef(value, true);\r\n}\r\nfunction createRef(rawValue, shallow) {\r\n if (isRef(rawValue)) {\r\n return rawValue;\r\n }\r\n return new RefImpl(rawValue, shallow);\r\n}\r\nclass RefImpl {\r\n constructor(value, __v_isShallow) {\r\n this.__v_isShallow = __v_isShallow;\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n this._rawValue = __v_isShallow ? value : toRaw(value);\r\n this._value = __v_isShallow ? value : toReactive(value);\r\n }\r\n get value() {\r\n trackRefValue(this);\r\n return this._value;\r\n }\r\n set value(newVal) {\r\n const useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal);\r\n newVal = useDirectValue ? newVal : toRaw(newVal);\r\n if (hasChanged(newVal, this._rawValue)) {\r\n this._rawValue = newVal;\r\n this._value = useDirectValue ? newVal : toReactive(newVal);\r\n triggerRefValue(this, newVal);\r\n }\r\n }\r\n}\r\nfunction triggerRef(ref) {\r\n triggerRefValue(ref, (process.env.NODE_ENV !== 'production') ? ref.value : void 0);\r\n}\r\nfunction unref(ref) {\r\n return isRef(ref) ? ref.value : ref;\r\n}\r\nconst shallowUnwrapHandlers = {\r\n get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),\r\n set: (target, key, value, receiver) => {\r\n const oldValue = target[key];\r\n if (isRef(oldValue) && !isRef(value)) {\r\n oldValue.value = value;\r\n return true;\r\n }\r\n else {\r\n return Reflect.set(target, key, value, receiver);\r\n }\r\n }\r\n};\r\nfunction proxyRefs(objectWithRefs) {\r\n return isReactive(objectWithRefs)\r\n ? objectWithRefs\r\n : new Proxy(objectWithRefs, shallowUnwrapHandlers);\r\n}\r\nclass CustomRefImpl {\r\n constructor(factory) {\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));\r\n this._get = get;\r\n this._set = set;\r\n }\r\n get value() {\r\n return this._get();\r\n }\r\n set value(newVal) {\r\n this._set(newVal);\r\n }\r\n}\r\nfunction customRef(factory) {\r\n return new CustomRefImpl(factory);\r\n}\r\nfunction toRefs(object) {\r\n if ((process.env.NODE_ENV !== 'production') && !isProxy(object)) {\r\n console.warn(`toRefs() expects a reactive object but received a plain one.`);\r\n }\r\n const ret = isArray(object) ? new Array(object.length) : {};\r\n for (const key in object) {\r\n ret[key] = toRef(object, key);\r\n }\r\n return ret;\r\n}\r\nclass ObjectRefImpl {\r\n constructor(_object, _key, _defaultValue) {\r\n this._object = _object;\r\n this._key = _key;\r\n this._defaultValue = _defaultValue;\r\n this.__v_isRef = true;\r\n }\r\n get value() {\r\n const val = this._object[this._key];\r\n return val === undefined ? this._defaultValue : val;\r\n }\r\n set value(newVal) {\r\n this._object[this._key] = newVal;\r\n }\r\n}\r\nfunction toRef(object, key, defaultValue) {\r\n const val = object[key];\r\n return isRef(val)\r\n ? val\r\n : new ObjectRefImpl(object, key, defaultValue);\r\n}\n\nvar _a;\r\nclass ComputedRefImpl {\r\n constructor(getter, _setter, isReadonly, isSSR) {\r\n this._setter = _setter;\r\n this.dep = undefined;\r\n this.__v_isRef = true;\r\n this[_a] = false;\r\n this._dirty = true;\r\n this.effect = new ReactiveEffect(getter, () => {\r\n if (!this._dirty) {\r\n this._dirty = true;\r\n triggerRefValue(this);\r\n }\r\n });\r\n this.effect.computed = this;\r\n this.effect.active = this._cacheable = !isSSR;\r\n this[\"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */] = isReadonly;\r\n }\r\n get value() {\r\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\r\n const self = toRaw(this);\r\n trackRefValue(self);\r\n if (self._dirty || !self._cacheable) {\r\n self._dirty = false;\r\n self._value = self.effect.run();\r\n }\r\n return self._value;\r\n }\r\n set value(newValue) {\r\n this._setter(newValue);\r\n }\r\n}\r\n_a = \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */;\r\nfunction computed(getterOrOptions, debugOptions, isSSR = false) {\r\n let getter;\r\n let setter;\r\n const onlyGetter = isFunction(getterOrOptions);\r\n if (onlyGetter) {\r\n getter = getterOrOptions;\r\n setter = (process.env.NODE_ENV !== 'production')\r\n ? () => {\r\n console.warn('Write operation failed: computed value is readonly');\r\n }\r\n : NOOP;\r\n }\r\n else {\r\n getter = getterOrOptions.get;\r\n setter = getterOrOptions.set;\r\n }\r\n const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);\r\n if ((process.env.NODE_ENV !== 'production') && debugOptions && !isSSR) {\r\n cRef.effect.onTrack = debugOptions.onTrack;\r\n cRef.effect.onTrigger = debugOptions.onTrigger;\r\n }\r\n return cRef;\r\n}\n\nvar _a$1;\r\nconst tick = /*#__PURE__*/ Promise.resolve();\r\nconst queue = [];\r\nlet queued = false;\r\nconst scheduler = (fn) => {\r\n queue.push(fn);\r\n if (!queued) {\r\n queued = true;\r\n tick.then(flush);\r\n }\r\n};\r\nconst flush = () => {\r\n for (let i = 0; i < queue.length; i++) {\r\n queue[i]();\r\n }\r\n queue.length = 0;\r\n queued = false;\r\n};\r\nclass DeferredComputedRefImpl {\r\n constructor(getter) {\r\n this.dep = undefined;\r\n this._dirty = true;\r\n this.__v_isRef = true;\r\n this[_a$1] = true;\r\n let compareTarget;\r\n let hasCompareTarget = false;\r\n let scheduled = false;\r\n this.effect = new ReactiveEffect(getter, (computedTrigger) => {\r\n if (this.dep) {\r\n if (computedTrigger) {\r\n compareTarget = this._value;\r\n hasCompareTarget = true;\r\n }\r\n else if (!scheduled) {\r\n const valueToCompare = hasCompareTarget ? compareTarget : this._value;\r\n scheduled = true;\r\n hasCompareTarget = false;\r\n scheduler(() => {\r\n if (this.effect.active && this._get() !== valueToCompare) {\r\n triggerRefValue(this);\r\n }\r\n scheduled = false;\r\n });\r\n }\r\n // chained upstream computeds are notified synchronously to ensure\r\n // value invalidation in case of sync access; normal effects are\r\n // deferred to be triggered in scheduler.\r\n for (const e of this.dep) {\r\n if (e.computed instanceof DeferredComputedRefImpl) {\r\n e.scheduler(true /* computedTrigger */);\r\n }\r\n }\r\n }\r\n this._dirty = true;\r\n });\r\n this.effect.computed = this;\r\n }\r\n _get() {\r\n if (this._dirty) {\r\n this._dirty = false;\r\n return (this._value = this.effect.run());\r\n }\r\n return this._value;\r\n }\r\n get value() {\r\n trackRefValue(this);\r\n // the computed ref may get wrapped by other proxies e.g. readonly() #3376\r\n return toRaw(this)._get();\r\n }\r\n}\r\n_a$1 = \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */;\r\nfunction deferredComputed(getter) {\r\n return new DeferredComputedRefImpl(getter);\r\n}\n\nexport { EffectScope, ITERATE_KEY, ReactiveEffect, computed, customRef, deferredComputed, effect, effectScope, enableTracking, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, pauseTracking, proxyRefs, reactive, readonly, ref, resetTracking, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, track, trigger, triggerRef, unref };\n","import { pauseTracking, resetTracking, isRef, toRaw, isShallow as isShallow$1, isReactive, ReactiveEffect, ref, shallowReadonly, track, reactive, shallowReactive, trigger, isProxy, EffectScope, markRaw, proxyRefs, computed as computed$1, isReadonly } from '@vue/reactivity';\nexport { EffectScope, ReactiveEffect, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, triggerRef, unref } from '@vue/reactivity';\nimport { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, toNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, hasChanged, remove, isSet, isMap, isPlainObject, invokeArrayFns, isBuiltInDirective, capitalize, isGloballyWhitelisted, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, NO, normalizeClass, normalizeStyle } from '@vue/shared';\nexport { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';\n\nconst stack = [];\r\nfunction pushWarningContext(vnode) {\r\n stack.push(vnode);\r\n}\r\nfunction popWarningContext() {\r\n stack.pop();\r\n}\r\nfunction warn(msg, ...args) {\r\n // avoid props formatting or warn handler tracking deps that might be mutated\r\n // during patch, leading to infinite recursion.\r\n pauseTracking();\r\n const instance = stack.length ? stack[stack.length - 1].component : null;\r\n const appWarnHandler = instance && instance.appContext.config.warnHandler;\r\n const trace = getComponentTrace();\r\n if (appWarnHandler) {\r\n callWithErrorHandling(appWarnHandler, instance, 11 /* ErrorCodes.APP_WARN_HANDLER */, [\r\n msg + args.join(''),\r\n instance && instance.proxy,\r\n trace\r\n .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)\r\n .join('\\n'),\r\n trace\r\n ]);\r\n }\r\n else {\r\n const warnArgs = [`[Vue warn]: ${msg}`, ...args];\r\n /* istanbul ignore if */\r\n if (trace.length &&\r\n // avoid spamming console during tests\r\n !false) {\r\n warnArgs.push(`\\n`, ...formatTrace(trace));\r\n }\r\n console.warn(...warnArgs);\r\n }\r\n resetTracking();\r\n}\r\nfunction getComponentTrace() {\r\n let currentVNode = stack[stack.length - 1];\r\n if (!currentVNode) {\r\n return [];\r\n }\r\n // we can't just use the stack because it will be incomplete during updates\r\n // that did not start from the root. Re-construct the parent chain using\r\n // instance parent pointers.\r\n const normalizedStack = [];\r\n while (currentVNode) {\r\n const last = normalizedStack[0];\r\n if (last && last.vnode === currentVNode) {\r\n last.recurseCount++;\r\n }\r\n else {\r\n normalizedStack.push({\r\n vnode: currentVNode,\r\n recurseCount: 0\r\n });\r\n }\r\n const parentInstance = currentVNode.component && currentVNode.component.parent;\r\n currentVNode = parentInstance && parentInstance.vnode;\r\n }\r\n return normalizedStack;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatTrace(trace) {\r\n const logs = [];\r\n trace.forEach((entry, i) => {\r\n logs.push(...(i === 0 ? [] : [`\\n`]), ...formatTraceEntry(entry));\r\n });\r\n return logs;\r\n}\r\nfunction formatTraceEntry({ vnode, recurseCount }) {\r\n const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;\r\n const isRoot = vnode.component ? vnode.component.parent == null : false;\r\n const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;\r\n const close = `>` + postfix;\r\n return vnode.props\r\n ? [open, ...formatProps(vnode.props), close]\r\n : [open + close];\r\n}\r\n/* istanbul ignore next */\r\nfunction formatProps(props) {\r\n const res = [];\r\n const keys = Object.keys(props);\r\n keys.slice(0, 3).forEach(key => {\r\n res.push(...formatProp(key, props[key]));\r\n });\r\n if (keys.length > 3) {\r\n res.push(` ...`);\r\n }\r\n return res;\r\n}\r\n/* istanbul ignore next */\r\nfunction formatProp(key, value, raw) {\r\n if (isString(value)) {\r\n value = JSON.stringify(value);\r\n return raw ? value : [`${key}=${value}`];\r\n }\r\n else if (typeof value === 'number' ||\r\n typeof value === 'boolean' ||\r\n value == null) {\r\n return raw ? value : [`${key}=${value}`];\r\n }\r\n else if (isRef(value)) {\r\n value = formatProp(key, toRaw(value.value), true);\r\n return raw ? value : [`${key}=Ref<`, value, `>`];\r\n }\r\n else if (isFunction(value)) {\r\n return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];\r\n }\r\n else {\r\n value = toRaw(value);\r\n return raw ? value : [`${key}=`, value];\r\n }\r\n}\n\nconst ErrorTypeStrings = {\r\n [\"sp\" /* LifecycleHooks.SERVER_PREFETCH */]: 'serverPrefetch hook',\r\n [\"bc\" /* LifecycleHooks.BEFORE_CREATE */]: 'beforeCreate hook',\r\n [\"c\" /* LifecycleHooks.CREATED */]: 'created hook',\r\n [\"bm\" /* LifecycleHooks.BEFORE_MOUNT */]: 'beforeMount hook',\r\n [\"m\" /* LifecycleHooks.MOUNTED */]: 'mounted hook',\r\n [\"bu\" /* LifecycleHooks.BEFORE_UPDATE */]: 'beforeUpdate hook',\r\n [\"u\" /* LifecycleHooks.UPDATED */]: 'updated',\r\n [\"bum\" /* LifecycleHooks.BEFORE_UNMOUNT */]: 'beforeUnmount hook',\r\n [\"um\" /* LifecycleHooks.UNMOUNTED */]: 'unmounted hook',\r\n [\"a\" /* LifecycleHooks.ACTIVATED */]: 'activated hook',\r\n [\"da\" /* LifecycleHooks.DEACTIVATED */]: 'deactivated hook',\r\n [\"ec\" /* LifecycleHooks.ERROR_CAPTURED */]: 'errorCaptured hook',\r\n [\"rtc\" /* LifecycleHooks.RENDER_TRACKED */]: 'renderTracked hook',\r\n [\"rtg\" /* LifecycleHooks.RENDER_TRIGGERED */]: 'renderTriggered hook',\r\n [0 /* ErrorCodes.SETUP_FUNCTION */]: 'setup function',\r\n [1 /* ErrorCodes.RENDER_FUNCTION */]: 'render function',\r\n [2 /* ErrorCodes.WATCH_GETTER */]: 'watcher getter',\r\n [3 /* ErrorCodes.WATCH_CALLBACK */]: 'watcher callback',\r\n [4 /* ErrorCodes.WATCH_CLEANUP */]: 'watcher cleanup function',\r\n [5 /* ErrorCodes.NATIVE_EVENT_HANDLER */]: 'native event handler',\r\n [6 /* ErrorCodes.COMPONENT_EVENT_HANDLER */]: 'component event handler',\r\n [7 /* ErrorCodes.VNODE_HOOK */]: 'vnode hook',\r\n [8 /* ErrorCodes.DIRECTIVE_HOOK */]: 'directive hook',\r\n [9 /* ErrorCodes.TRANSITION_HOOK */]: 'transition hook',\r\n [10 /* ErrorCodes.APP_ERROR_HANDLER */]: 'app errorHandler',\r\n [11 /* ErrorCodes.APP_WARN_HANDLER */]: 'app warnHandler',\r\n [12 /* ErrorCodes.FUNCTION_REF */]: 'ref function',\r\n [13 /* ErrorCodes.ASYNC_COMPONENT_LOADER */]: 'async component loader',\r\n [14 /* ErrorCodes.SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +\r\n 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'\r\n};\r\nfunction callWithErrorHandling(fn, instance, type, args) {\r\n let res;\r\n try {\r\n res = args ? fn(...args) : fn();\r\n }\r\n catch (err) {\r\n handleError(err, instance, type);\r\n }\r\n return res;\r\n}\r\nfunction callWithAsyncErrorHandling(fn, instance, type, args) {\r\n if (isFunction(fn)) {\r\n const res = callWithErrorHandling(fn, instance, type, args);\r\n if (res && isPromise(res)) {\r\n res.catch(err => {\r\n handleError(err, instance, type);\r\n });\r\n }\r\n return res;\r\n }\r\n const values = [];\r\n for (let i = 0; i < fn.length; i++) {\r\n values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));\r\n }\r\n return values;\r\n}\r\nfunction handleError(err, instance, type, throwInDev = true) {\r\n const contextVNode = instance ? instance.vnode : null;\r\n if (instance) {\r\n let cur = instance.parent;\r\n // the exposed instance is the render proxy to keep it consistent with 2.x\r\n const exposedInstance = instance.proxy;\r\n // in production the hook receives only the error code\r\n const errorInfo = (process.env.NODE_ENV !== 'production') ? ErrorTypeStrings[type] : type;\r\n while (cur) {\r\n const errorCapturedHooks = cur.ec;\r\n if (errorCapturedHooks) {\r\n for (let i = 0; i < errorCapturedHooks.length; i++) {\r\n if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {\r\n return;\r\n }\r\n }\r\n }\r\n cur = cur.parent;\r\n }\r\n // app-level handling\r\n const appErrorHandler = instance.appContext.config.errorHandler;\r\n if (appErrorHandler) {\r\n callWithErrorHandling(appErrorHandler, null, 10 /* ErrorCodes.APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]);\r\n return;\r\n }\r\n }\r\n logError(err, type, contextVNode, throwInDev);\r\n}\r\nfunction logError(err, type, contextVNode, throwInDev = true) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const info = ErrorTypeStrings[type];\r\n if (contextVNode) {\r\n pushWarningContext(contextVNode);\r\n }\r\n warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);\r\n if (contextVNode) {\r\n popWarningContext();\r\n }\r\n // crash in dev by default so it's more noticeable\r\n if (throwInDev) {\r\n throw err;\r\n }\r\n else {\r\n console.error(err);\r\n }\r\n }\r\n else {\r\n // recover in prod to reduce the impact on end-user\r\n console.error(err);\r\n }\r\n}\n\nlet isFlushing = false;\r\nlet isFlushPending = false;\r\nconst queue = [];\r\nlet flushIndex = 0;\r\nconst pendingPostFlushCbs = [];\r\nlet activePostFlushCbs = null;\r\nlet postFlushIndex = 0;\r\nconst resolvedPromise = /*#__PURE__*/ Promise.resolve();\r\nlet currentFlushPromise = null;\r\nconst RECURSION_LIMIT = 100;\r\nfunction nextTick(fn) {\r\n const p = currentFlushPromise || resolvedPromise;\r\n return fn ? p.then(this ? fn.bind(this) : fn) : p;\r\n}\r\n// #2768\r\n// Use binary-search to find a suitable position in the queue,\r\n// so that the queue maintains the increasing order of job's id,\r\n// which can prevent the job from being skipped and also can avoid repeated patching.\r\nfunction findInsertionIndex(id) {\r\n // the start index should be `flushIndex + 1`\r\n let start = flushIndex + 1;\r\n let end = queue.length;\r\n while (start < end) {\r\n const middle = (start + end) >>> 1;\r\n const middleJobId = getId(queue[middle]);\r\n middleJobId < id ? (start = middle + 1) : (end = middle);\r\n }\r\n return start;\r\n}\r\nfunction queueJob(job) {\r\n // the dedupe search uses the startIndex argument of Array.includes()\r\n // by default the search index includes the current job that is being run\r\n // so it cannot recursively trigger itself again.\r\n // if the job is a watch() callback, the search will start with a +1 index to\r\n // allow it recursively trigger itself - it is the user's responsibility to\r\n // ensure it doesn't end up in an infinite loop.\r\n if (!queue.length ||\r\n !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) {\r\n if (job.id == null) {\r\n queue.push(job);\r\n }\r\n else {\r\n queue.splice(findInsertionIndex(job.id), 0, job);\r\n }\r\n queueFlush();\r\n }\r\n}\r\nfunction queueFlush() {\r\n if (!isFlushing && !isFlushPending) {\r\n isFlushPending = true;\r\n currentFlushPromise = resolvedPromise.then(flushJobs);\r\n }\r\n}\r\nfunction invalidateJob(job) {\r\n const i = queue.indexOf(job);\r\n if (i > flushIndex) {\r\n queue.splice(i, 1);\r\n }\r\n}\r\nfunction queuePostFlushCb(cb) {\r\n if (!isArray(cb)) {\r\n if (!activePostFlushCbs ||\r\n !activePostFlushCbs.includes(cb, cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex)) {\r\n pendingPostFlushCbs.push(cb);\r\n }\r\n }\r\n else {\r\n // if cb is an array, it is a component lifecycle hook which can only be\r\n // triggered by a job, which is already deduped in the main queue, so\r\n // we can skip duplicate check here to improve perf\r\n pendingPostFlushCbs.push(...cb);\r\n }\r\n queueFlush();\r\n}\r\nfunction flushPreFlushCbs(seen, \r\n// if currently flushing, skip the current job itself\r\ni = isFlushing ? flushIndex + 1 : 0) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n for (; i < queue.length; i++) {\r\n const cb = queue[i];\r\n if (cb && cb.pre) {\r\n if ((process.env.NODE_ENV !== 'production') && checkRecursiveUpdates(seen, cb)) {\r\n continue;\r\n }\r\n queue.splice(i, 1);\r\n i--;\r\n cb();\r\n }\r\n }\r\n}\r\nfunction flushPostFlushCbs(seen) {\r\n if (pendingPostFlushCbs.length) {\r\n const deduped = [...new Set(pendingPostFlushCbs)];\r\n pendingPostFlushCbs.length = 0;\r\n // #1947 already has active queue, nested flushPostFlushCbs call\r\n if (activePostFlushCbs) {\r\n activePostFlushCbs.push(...deduped);\r\n return;\r\n }\r\n activePostFlushCbs = deduped;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n activePostFlushCbs.sort((a, b) => getId(a) - getId(b));\r\n for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {\r\n continue;\r\n }\r\n activePostFlushCbs[postFlushIndex]();\r\n }\r\n activePostFlushCbs = null;\r\n postFlushIndex = 0;\r\n }\r\n}\r\nconst getId = (job) => job.id == null ? Infinity : job.id;\r\nconst comparator = (a, b) => {\r\n const diff = getId(a) - getId(b);\r\n if (diff === 0) {\r\n if (a.pre && !b.pre)\r\n return -1;\r\n if (b.pre && !a.pre)\r\n return 1;\r\n }\r\n return diff;\r\n};\r\nfunction flushJobs(seen) {\r\n isFlushPending = false;\r\n isFlushing = true;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n seen = seen || new Map();\r\n }\r\n // Sort queue before flush.\r\n // This ensures that:\r\n // 1. Components are updated from parent to child. (because parent is always\r\n // created before the child so its render effect will have smaller\r\n // priority number)\r\n // 2. If a component is unmounted during a parent component's update,\r\n // its update can be skipped.\r\n queue.sort(comparator);\r\n // conditional usage of checkRecursiveUpdate must be determined out of\r\n // try ... catch block since Rollup by default de-optimizes treeshaking\r\n // inside try-catch. This can leave all warning code unshaked. Although\r\n // they would get eventually shaken by a minifier like terser, some minifiers\r\n // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)\r\n const check = (process.env.NODE_ENV !== 'production')\r\n ? (job) => checkRecursiveUpdates(seen, job)\r\n : NOOP;\r\n try {\r\n for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {\r\n const job = queue[flushIndex];\r\n if (job && job.active !== false) {\r\n if ((process.env.NODE_ENV !== 'production') && check(job)) {\r\n continue;\r\n }\r\n // console.log(`running:`, job.id)\r\n callWithErrorHandling(job, null, 14 /* ErrorCodes.SCHEDULER */);\r\n }\r\n }\r\n }\r\n finally {\r\n flushIndex = 0;\r\n queue.length = 0;\r\n flushPostFlushCbs(seen);\r\n isFlushing = false;\r\n currentFlushPromise = null;\r\n // some postFlushCb queued jobs!\r\n // keep flushing until it drains.\r\n if (queue.length || pendingPostFlushCbs.length) {\r\n flushJobs(seen);\r\n }\r\n }\r\n}\r\nfunction checkRecursiveUpdates(seen, fn) {\r\n if (!seen.has(fn)) {\r\n seen.set(fn, 1);\r\n }\r\n else {\r\n const count = seen.get(fn);\r\n if (count > RECURSION_LIMIT) {\r\n const instance = fn.ownerInstance;\r\n const componentName = instance && getComponentName(instance.type);\r\n warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +\r\n `This means you have a reactive effect that is mutating its own ` +\r\n `dependencies and thus recursively triggering itself. Possible sources ` +\r\n `include component template, render function, updated hook or ` +\r\n `watcher source function.`);\r\n return true;\r\n }\r\n else {\r\n seen.set(fn, count + 1);\r\n }\r\n }\r\n}\n\n/* eslint-disable no-restricted-globals */\r\nlet isHmrUpdating = false;\r\nconst hmrDirtyComponents = new Set();\r\n// Expose the HMR runtime on the global object\r\n// This makes it entirely tree-shakable without polluting the exports and makes\r\n// it easier to be used in toolings like vue-loader\r\n// Note: for a component to be eligible for HMR it also needs the __hmrId option\r\n// to be set so that its instances can be registered / removed.\r\nif ((process.env.NODE_ENV !== 'production')) {\r\n getGlobalThis().__VUE_HMR_RUNTIME__ = {\r\n createRecord: tryWrap(createRecord),\r\n rerender: tryWrap(rerender),\r\n reload: tryWrap(reload)\r\n };\r\n}\r\nconst map = new Map();\r\nfunction registerHMR(instance) {\r\n const id = instance.type.__hmrId;\r\n let record = map.get(id);\r\n if (!record) {\r\n createRecord(id, instance.type);\r\n record = map.get(id);\r\n }\r\n record.instances.add(instance);\r\n}\r\nfunction unregisterHMR(instance) {\r\n map.get(instance.type.__hmrId).instances.delete(instance);\r\n}\r\nfunction createRecord(id, initialDef) {\r\n if (map.has(id)) {\r\n return false;\r\n }\r\n map.set(id, {\r\n initialDef: normalizeClassComponent(initialDef),\r\n instances: new Set()\r\n });\r\n return true;\r\n}\r\nfunction normalizeClassComponent(component) {\r\n return isClassComponent(component) ? component.__vccOpts : component;\r\n}\r\nfunction rerender(id, newRender) {\r\n const record = map.get(id);\r\n if (!record) {\r\n return;\r\n }\r\n // update initial record (for not-yet-rendered component)\r\n record.initialDef.render = newRender;\r\n [...record.instances].forEach(instance => {\r\n if (newRender) {\r\n instance.render = newRender;\r\n normalizeClassComponent(instance.type).render = newRender;\r\n }\r\n instance.renderCache = [];\r\n // this flag forces child components with slot content to update\r\n isHmrUpdating = true;\r\n instance.update();\r\n isHmrUpdating = false;\r\n });\r\n}\r\nfunction reload(id, newComp) {\r\n const record = map.get(id);\r\n if (!record)\r\n return;\r\n newComp = normalizeClassComponent(newComp);\r\n // update initial def (for not-yet-rendered components)\r\n updateComponentDef(record.initialDef, newComp);\r\n // create a snapshot which avoids the set being mutated during updates\r\n const instances = [...record.instances];\r\n for (const instance of instances) {\r\n const oldComp = normalizeClassComponent(instance.type);\r\n if (!hmrDirtyComponents.has(oldComp)) {\r\n // 1. Update existing comp definition to match new one\r\n if (oldComp !== record.initialDef) {\r\n updateComponentDef(oldComp, newComp);\r\n }\r\n // 2. mark definition dirty. This forces the renderer to replace the\r\n // component on patch.\r\n hmrDirtyComponents.add(oldComp);\r\n }\r\n // 3. invalidate options resolution cache\r\n instance.appContext.optionsCache.delete(instance.type);\r\n // 4. actually update\r\n if (instance.ceReload) {\r\n // custom element\r\n hmrDirtyComponents.add(oldComp);\r\n instance.ceReload(newComp.styles);\r\n hmrDirtyComponents.delete(oldComp);\r\n }\r\n else if (instance.parent) {\r\n // 4. Force the parent instance to re-render. This will cause all updated\r\n // components to be unmounted and re-mounted. Queue the update so that we\r\n // don't end up forcing the same parent to re-render multiple times.\r\n queueJob(instance.parent.update);\r\n // instance is the inner component of an async custom element\r\n // invoke to reset styles\r\n if (instance.parent.type.__asyncLoader &&\r\n instance.parent.ceReload) {\r\n instance.parent.ceReload(newComp.styles);\r\n }\r\n }\r\n else if (instance.appContext.reload) {\r\n // root instance mounted via createApp() has a reload method\r\n instance.appContext.reload();\r\n }\r\n else if (typeof window !== 'undefined') {\r\n // root instance inside tree created via raw render(). Force reload.\r\n window.location.reload();\r\n }\r\n else {\r\n console.warn('[HMR] Root or manually mounted instance modified. Full reload required.');\r\n }\r\n }\r\n // 5. make sure to cleanup dirty hmr components after update\r\n queuePostFlushCb(() => {\r\n for (const instance of instances) {\r\n hmrDirtyComponents.delete(normalizeClassComponent(instance.type));\r\n }\r\n });\r\n}\r\nfunction updateComponentDef(oldComp, newComp) {\r\n extend(oldComp, newComp);\r\n for (const key in oldComp) {\r\n if (key !== '__file' && !(key in newComp)) {\r\n delete oldComp[key];\r\n }\r\n }\r\n}\r\nfunction tryWrap(fn) {\r\n return (id, arg) => {\r\n try {\r\n return fn(id, arg);\r\n }\r\n catch (e) {\r\n console.error(e);\r\n console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` +\r\n `Full reload required.`);\r\n }\r\n };\r\n}\n\nlet devtools;\r\nlet buffer = [];\r\nlet devtoolsNotInstalled = false;\r\nfunction emit(event, ...args) {\r\n if (devtools) {\r\n devtools.emit(event, ...args);\r\n }\r\n else if (!devtoolsNotInstalled) {\r\n buffer.push({ event, args });\r\n }\r\n}\r\nfunction setDevtoolsHook(hook, target) {\r\n var _a, _b;\r\n devtools = hook;\r\n if (devtools) {\r\n devtools.enabled = true;\r\n buffer.forEach(({ event, args }) => devtools.emit(event, ...args));\r\n buffer = [];\r\n }\r\n else if (\r\n // handle late devtools injection - only do this if we are in an actual\r\n // browser environment to avoid the timer handle stalling test runner exit\r\n // (#4815)\r\n typeof window !== 'undefined' &&\r\n // some envs mock window but not fully\r\n window.HTMLElement &&\r\n // also exclude jsdom\r\n !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {\r\n const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =\r\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);\r\n replay.push((newHook) => {\r\n setDevtoolsHook(newHook, target);\r\n });\r\n // clear buffer after 3s - the user probably doesn't have devtools installed\r\n // at all, and keeping the buffer will cause memory leaks (#4738)\r\n setTimeout(() => {\r\n if (!devtools) {\r\n target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;\r\n devtoolsNotInstalled = true;\r\n buffer = [];\r\n }\r\n }, 3000);\r\n }\r\n else {\r\n // non-browser env, assume not installed\r\n devtoolsNotInstalled = true;\r\n buffer = [];\r\n }\r\n}\r\nfunction devtoolsInitApp(app, version) {\r\n emit(\"app:init\" /* DevtoolsHooks.APP_INIT */, app, version, {\r\n Fragment,\r\n Text,\r\n Comment,\r\n Static\r\n });\r\n}\r\nfunction devtoolsUnmountApp(app) {\r\n emit(\"app:unmount\" /* DevtoolsHooks.APP_UNMOUNT */, app);\r\n}\r\nconst devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook(\"component:added\" /* DevtoolsHooks.COMPONENT_ADDED */);\r\nconst devtoolsComponentUpdated = \r\n/*#__PURE__*/ createDevtoolsComponentHook(\"component:updated\" /* DevtoolsHooks.COMPONENT_UPDATED */);\r\nconst devtoolsComponentRemoved = \r\n/*#__PURE__*/ createDevtoolsComponentHook(\"component:removed\" /* DevtoolsHooks.COMPONENT_REMOVED */);\r\nfunction createDevtoolsComponentHook(hook) {\r\n return (component) => {\r\n emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);\r\n };\r\n}\r\nconst devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:start\" /* DevtoolsHooks.PERFORMANCE_START */);\r\nconst devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook(\"perf:end\" /* DevtoolsHooks.PERFORMANCE_END */);\r\nfunction createDevtoolsPerformanceHook(hook) {\r\n return (component, type, time) => {\r\n emit(hook, component.appContext.app, component.uid, component, type, time);\r\n };\r\n}\r\nfunction devtoolsComponentEmit(component, event, params) {\r\n emit(\"component:emit\" /* DevtoolsHooks.COMPONENT_EMIT */, component.appContext.app, component, event, params);\r\n}\n\nfunction emit$1(instance, event, ...rawArgs) {\r\n if (instance.isUnmounted)\r\n return;\r\n const props = instance.vnode.props || EMPTY_OBJ;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const { emitsOptions, propsOptions: [propsOptions] } = instance;\r\n if (emitsOptions) {\r\n if (!(event in emitsOptions) &&\r\n !(false )) {\r\n if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {\r\n warn(`Component emitted event \"${event}\" but it is neither declared in ` +\r\n `the emits option nor as an \"${toHandlerKey(event)}\" prop.`);\r\n }\r\n }\r\n else {\r\n const validator = emitsOptions[event];\r\n if (isFunction(validator)) {\r\n const isValid = validator(...rawArgs);\r\n if (!isValid) {\r\n warn(`Invalid event arguments: event validation failed for event \"${event}\".`);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n let args = rawArgs;\r\n const isModelListener = event.startsWith('update:');\r\n // for v-model update:xxx events, apply modifiers on args\r\n const modelArg = isModelListener && event.slice(7);\r\n if (modelArg && modelArg in props) {\r\n const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`;\r\n const { number, trim } = props[modifiersKey] || EMPTY_OBJ;\r\n if (trim) {\r\n args = rawArgs.map(a => a.trim());\r\n }\r\n if (number) {\r\n args = rawArgs.map(toNumber);\r\n }\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentEmit(instance, event, args);\r\n }\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n const lowerCaseEvent = event.toLowerCase();\r\n if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {\r\n warn(`Event \"${lowerCaseEvent}\" is emitted in component ` +\r\n `${formatComponentName(instance, instance.type)} but the handler is registered for \"${event}\". ` +\r\n `Note that HTML attributes are case-insensitive and you cannot use ` +\r\n `v-on to listen to camelCase events when using in-DOM templates. ` +\r\n `You should probably use \"${hyphenate(event)}\" instead of \"${event}\".`);\r\n }\r\n }\r\n let handlerName;\r\n let handler = props[(handlerName = toHandlerKey(event))] ||\r\n // also try camelCase event handler (#2249)\r\n props[(handlerName = toHandlerKey(camelize(event)))];\r\n // for v-model update:xxx events, also trigger kebab-case equivalent\r\n // for props passed via kebab-case\r\n if (!handler && isModelListener) {\r\n handler = props[(handlerName = toHandlerKey(hyphenate(event)))];\r\n }\r\n if (handler) {\r\n callWithAsyncErrorHandling(handler, instance, 6 /* ErrorCodes.COMPONENT_EVENT_HANDLER */, args);\r\n }\r\n const onceHandler = props[handlerName + `Once`];\r\n if (onceHandler) {\r\n if (!instance.emitted) {\r\n instance.emitted = {};\r\n }\r\n else if (instance.emitted[handlerName]) {\r\n return;\r\n }\r\n instance.emitted[handlerName] = true;\r\n callWithAsyncErrorHandling(onceHandler, instance, 6 /* ErrorCodes.COMPONENT_EVENT_HANDLER */, args);\r\n }\r\n}\r\nfunction normalizeEmitsOptions(comp, appContext, asMixin = false) {\r\n const cache = appContext.emitsCache;\r\n const cached = cache.get(comp);\r\n if (cached !== undefined) {\r\n return cached;\r\n }\r\n const raw = comp.emits;\r\n let normalized = {};\r\n // apply mixin/extends props\r\n let hasExtends = false;\r\n if (__VUE_OPTIONS_API__ && !isFunction(comp)) {\r\n const extendEmits = (raw) => {\r\n const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);\r\n if (normalizedFromExtend) {\r\n hasExtends = true;\r\n extend(normalized, normalizedFromExtend);\r\n }\r\n };\r\n if (!asMixin && appContext.mixins.length) {\r\n appContext.mixins.forEach(extendEmits);\r\n }\r\n if (comp.extends) {\r\n extendEmits(comp.extends);\r\n }\r\n if (comp.mixins) {\r\n comp.mixins.forEach(extendEmits);\r\n }\r\n }\r\n if (!raw && !hasExtends) {\r\n if (isObject(comp)) {\r\n cache.set(comp, null);\r\n }\r\n return null;\r\n }\r\n if (isArray(raw)) {\r\n raw.forEach(key => (normalized[key] = null));\r\n }\r\n else {\r\n extend(normalized, raw);\r\n }\r\n if (isObject(comp)) {\r\n cache.set(comp, normalized);\r\n }\r\n return normalized;\r\n}\r\n// Check if an incoming prop key is a declared emit event listener.\r\n// e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are\r\n// both considered matched listeners.\r\nfunction isEmitListener(options, key) {\r\n if (!options || !isOn(key)) {\r\n return false;\r\n }\r\n key = key.slice(2).replace(/Once$/, '');\r\n return (hasOwn(options, key[0].toLowerCase() + key.slice(1)) ||\r\n hasOwn(options, hyphenate(key)) ||\r\n hasOwn(options, key));\r\n}\n\n/**\r\n * mark the current rendering instance for asset resolution (e.g.\r\n * resolveComponent, resolveDirective) during render\r\n */\r\nlet currentRenderingInstance = null;\r\nlet currentScopeId = null;\r\n/**\r\n * Note: rendering calls maybe nested. The function returns the parent rendering\r\n * instance if present, which should be restored after the render is done:\r\n *\r\n * ```js\r\n * const prev = setCurrentRenderingInstance(i)\r\n * // ...render\r\n * setCurrentRenderingInstance(prev)\r\n * ```\r\n */\r\nfunction setCurrentRenderingInstance(instance) {\r\n const prev = currentRenderingInstance;\r\n currentRenderingInstance = instance;\r\n currentScopeId = (instance && instance.type.__scopeId) || null;\r\n return prev;\r\n}\r\n/**\r\n * Set scope id when creating hoisted vnodes.\r\n * @private compiler helper\r\n */\r\nfunction pushScopeId(id) {\r\n currentScopeId = id;\r\n}\r\n/**\r\n * Technically we no longer need this after 3.0.8 but we need to keep the same\r\n * API for backwards compat w/ code generated by compilers.\r\n * @private\r\n */\r\nfunction popScopeId() {\r\n currentScopeId = null;\r\n}\r\n/**\r\n * Only for backwards compat\r\n * @private\r\n */\r\nconst withScopeId = (_id) => withCtx;\r\n/**\r\n * Wrap a slot function to memoize current rendering instance\r\n * @private compiler helper\r\n */\r\nfunction withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only\r\n) {\r\n if (!ctx)\r\n return fn;\r\n // already normalized\r\n if (fn._n) {\r\n return fn;\r\n }\r\n const renderFnWithContext = (...args) => {\r\n // If a user calls a compiled slot inside a template expression (#1745), it\r\n // can mess up block tracking, so by default we disable block tracking and\r\n // force bail out when invoking a compiled slot (indicated by the ._d flag).\r\n // This isn't necessary if rendering a compiled ``, so we flip the\r\n // ._d flag off when invoking the wrapped fn inside `renderSlot`.\r\n if (renderFnWithContext._d) {\r\n setBlockTracking(-1);\r\n }\r\n const prevInstance = setCurrentRenderingInstance(ctx);\r\n const res = fn(...args);\r\n setCurrentRenderingInstance(prevInstance);\r\n if (renderFnWithContext._d) {\r\n setBlockTracking(1);\r\n }\r\n if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {\r\n devtoolsComponentUpdated(ctx);\r\n }\r\n return res;\r\n };\r\n // mark normalized to avoid duplicated wrapping\r\n renderFnWithContext._n = true;\r\n // mark this as compiled by default\r\n // this is used in vnode.ts -> normalizeChildren() to set the slot\r\n // rendering flag.\r\n renderFnWithContext._c = true;\r\n // disable block tracking by default\r\n renderFnWithContext._d = true;\r\n return renderFnWithContext;\r\n}\n\n/**\r\n * dev only flag to track whether $attrs was used during render.\r\n * If $attrs was used during render then the warning for failed attrs\r\n * fallthrough can be suppressed.\r\n */\r\nlet accessedAttrs = false;\r\nfunction markAttrsAccessed() {\r\n accessedAttrs = true;\r\n}\r\nfunction renderComponentRoot(instance) {\r\n const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;\r\n let result;\r\n let fallthroughAttrs;\r\n const prev = setCurrentRenderingInstance(instance);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n accessedAttrs = false;\r\n }\r\n try {\r\n if (vnode.shapeFlag & 4 /* ShapeFlags.STATEFUL_COMPONENT */) {\r\n // withProxy is a proxy with a different `has` trap only for\r\n // runtime-compiled render functions using `with` block.\r\n const proxyToUse = withProxy || proxy;\r\n result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx));\r\n fallthroughAttrs = attrs;\r\n }\r\n else {\r\n // functional\r\n const render = Component;\r\n // in dev, mark attrs accessed if optional props (attrs === props)\r\n if ((process.env.NODE_ENV !== 'production') && attrs === props) {\r\n markAttrsAccessed();\r\n }\r\n result = normalizeVNode(render.length > 1\r\n ? render(props, (process.env.NODE_ENV !== 'production')\r\n ? {\r\n get attrs() {\r\n markAttrsAccessed();\r\n return attrs;\r\n },\r\n slots,\r\n emit\r\n }\r\n : { attrs, slots, emit })\r\n : render(props, null /* we know it doesn't need it */));\r\n fallthroughAttrs = Component.props\r\n ? attrs\r\n : getFunctionalFallthrough(attrs);\r\n }\r\n }\r\n catch (err) {\r\n blockStack.length = 0;\r\n handleError(err, instance, 1 /* ErrorCodes.RENDER_FUNCTION */);\r\n result = createVNode(Comment);\r\n }\r\n // attr merging\r\n // in dev mode, comments are preserved, and it's possible for a template\r\n // to have comments along side the root element which makes it a fragment\r\n let root = result;\r\n let setRoot = undefined;\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n result.patchFlag > 0 &&\r\n result.patchFlag & 2048 /* PatchFlags.DEV_ROOT_FRAGMENT */) {\r\n [root, setRoot] = getChildRoot(result);\r\n }\r\n if (fallthroughAttrs && inheritAttrs !== false) {\r\n const keys = Object.keys(fallthroughAttrs);\r\n const { shapeFlag } = root;\r\n if (keys.length) {\r\n if (shapeFlag & (1 /* ShapeFlags.ELEMENT */ | 6 /* ShapeFlags.COMPONENT */)) {\r\n if (propsOptions && keys.some(isModelListener)) {\r\n // If a v-model listener (onUpdate:xxx) has a corresponding declared\r\n // prop, it indicates this component expects to handle v-model and\r\n // it should not fallthrough.\r\n // related: #1543, #1643, #1989\r\n fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);\r\n }\r\n root = cloneVNode(root, fallthroughAttrs);\r\n }\r\n else if ((process.env.NODE_ENV !== 'production') && !accessedAttrs && root.type !== Comment) {\r\n const allAttrs = Object.keys(attrs);\r\n const eventAttrs = [];\r\n const extraAttrs = [];\r\n for (let i = 0, l = allAttrs.length; i < l; i++) {\r\n const key = allAttrs[i];\r\n if (isOn(key)) {\r\n // ignore v-model handlers when they fail to fallthrough\r\n if (!isModelListener(key)) {\r\n // remove `on`, lowercase first letter to reflect event casing\r\n // accurately\r\n eventAttrs.push(key[2].toLowerCase() + key.slice(3));\r\n }\r\n }\r\n else {\r\n extraAttrs.push(key);\r\n }\r\n }\r\n if (extraAttrs.length) {\r\n warn(`Extraneous non-props attributes (` +\r\n `${extraAttrs.join(', ')}) ` +\r\n `were passed to component but could not be automatically inherited ` +\r\n `because component renders fragment or text root nodes.`);\r\n }\r\n if (eventAttrs.length) {\r\n warn(`Extraneous non-emits event listeners (` +\r\n `${eventAttrs.join(', ')}) ` +\r\n `were passed to component but could not be automatically inherited ` +\r\n `because component renders fragment or text root nodes. ` +\r\n `If the listener is intended to be a component custom event listener only, ` +\r\n `declare it using the \"emits\" option.`);\r\n }\r\n }\r\n }\r\n }\r\n // inherit directives\r\n if (vnode.dirs) {\r\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\r\n warn(`Runtime directive used on component with non-element root node. ` +\r\n `The directives will not function as intended.`);\r\n }\r\n // clone before mutating since the root may be a hoisted vnode\r\n root = cloneVNode(root);\r\n root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;\r\n }\r\n // inherit transition data\r\n if (vnode.transition) {\r\n if ((process.env.NODE_ENV !== 'production') && !isElementRoot(root)) {\r\n warn(`Component inside renders non-element root node ` +\r\n `that cannot be animated.`);\r\n }\r\n root.transition = vnode.transition;\r\n }\r\n if ((process.env.NODE_ENV !== 'production') && setRoot) {\r\n setRoot(root);\r\n }\r\n else {\r\n result = root;\r\n }\r\n setCurrentRenderingInstance(prev);\r\n return result;\r\n}\r\n/**\r\n * dev only\r\n * In dev mode, template root level comments are rendered, which turns the\r\n * template into a fragment root, but we need to locate the single element\r\n * root for attrs and scope id processing.\r\n */\r\nconst getChildRoot = (vnode) => {\r\n const rawChildren = vnode.children;\r\n const dynamicChildren = vnode.dynamicChildren;\r\n const childRoot = filterSingleRoot(rawChildren);\r\n if (!childRoot) {\r\n return [vnode, undefined];\r\n }\r\n const index = rawChildren.indexOf(childRoot);\r\n const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;\r\n const setRoot = (updatedRoot) => {\r\n rawChildren[index] = updatedRoot;\r\n if (dynamicChildren) {\r\n if (dynamicIndex > -1) {\r\n dynamicChildren[dynamicIndex] = updatedRoot;\r\n }\r\n else if (updatedRoot.patchFlag > 0) {\r\n vnode.dynamicChildren = [...dynamicChildren, updatedRoot];\r\n }\r\n }\r\n };\r\n return [normalizeVNode(childRoot), setRoot];\r\n};\r\nfunction filterSingleRoot(children) {\r\n let singleRoot;\r\n for (let i = 0; i < children.length; i++) {\r\n const child = children[i];\r\n if (isVNode(child)) {\r\n // ignore user comment\r\n if (child.type !== Comment || child.children === 'v-if') {\r\n if (singleRoot) {\r\n // has more than 1 non-comment child, return now\r\n return;\r\n }\r\n else {\r\n singleRoot = child;\r\n }\r\n }\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n return singleRoot;\r\n}\r\nconst getFunctionalFallthrough = (attrs) => {\r\n let res;\r\n for (const key in attrs) {\r\n if (key === 'class' || key === 'style' || isOn(key)) {\r\n (res || (res = {}))[key] = attrs[key];\r\n }\r\n }\r\n return res;\r\n};\r\nconst filterModelListeners = (attrs, props) => {\r\n const res = {};\r\n for (const key in attrs) {\r\n if (!isModelListener(key) || !(key.slice(9) in props)) {\r\n res[key] = attrs[key];\r\n }\r\n }\r\n return res;\r\n};\r\nconst isElementRoot = (vnode) => {\r\n return (vnode.shapeFlag & (6 /* ShapeFlags.COMPONENT */ | 1 /* ShapeFlags.ELEMENT */) ||\r\n vnode.type === Comment // potential v-if branch switch\r\n );\r\n};\r\nfunction shouldUpdateComponent(prevVNode, nextVNode, optimized) {\r\n const { props: prevProps, children: prevChildren, component } = prevVNode;\r\n const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;\r\n const emits = component.emitsOptions;\r\n // Parent component's render function was hot-updated. Since this may have\r\n // caused the child component's slots content to have changed, we need to\r\n // force the child to update as well.\r\n if ((process.env.NODE_ENV !== 'production') && (prevChildren || nextChildren) && isHmrUpdating) {\r\n return true;\r\n }\r\n // force child update for runtime directive or transition on component vnode.\r\n if (nextVNode.dirs || nextVNode.transition) {\r\n return true;\r\n }\r\n if (optimized && patchFlag >= 0) {\r\n if (patchFlag & 1024 /* PatchFlags.DYNAMIC_SLOTS */) {\r\n // slot content that references values that might have changed,\r\n // e.g. in a v-for\r\n return true;\r\n }\r\n if (patchFlag & 16 /* PatchFlags.FULL_PROPS */) {\r\n if (!prevProps) {\r\n return !!nextProps;\r\n }\r\n // presence of this flag indicates props are always non-null\r\n return hasPropsChanged(prevProps, nextProps, emits);\r\n }\r\n else if (patchFlag & 8 /* PatchFlags.PROPS */) {\r\n const dynamicProps = nextVNode.dynamicProps;\r\n for (let i = 0; i < dynamicProps.length; i++) {\r\n const key = dynamicProps[i];\r\n if (nextProps[key] !== prevProps[key] &&\r\n !isEmitListener(emits, key)) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // this path is only taken by manually written render functions\r\n // so presence of any children leads to a forced update\r\n if (prevChildren || nextChildren) {\r\n if (!nextChildren || !nextChildren.$stable) {\r\n return true;\r\n }\r\n }\r\n if (prevProps === nextProps) {\r\n return false;\r\n }\r\n if (!prevProps) {\r\n return !!nextProps;\r\n }\r\n if (!nextProps) {\r\n return true;\r\n }\r\n return hasPropsChanged(prevProps, nextProps, emits);\r\n }\r\n return false;\r\n}\r\nfunction hasPropsChanged(prevProps, nextProps, emitsOptions) {\r\n const nextKeys = Object.keys(nextProps);\r\n if (nextKeys.length !== Object.keys(prevProps).length) {\r\n return true;\r\n }\r\n for (let i = 0; i < nextKeys.length; i++) {\r\n const key = nextKeys[i];\r\n if (nextProps[key] !== prevProps[key] &&\r\n !isEmitListener(emitsOptions, key)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction updateHOCHostEl({ vnode, parent }, el // HostNode\r\n) {\r\n while (parent && parent.subTree === vnode) {\r\n (vnode = parent.vnode).el = el;\r\n parent = parent.parent;\r\n }\r\n}\n\nconst isSuspense = (type) => type.__isSuspense;\r\n// Suspense exposes a component-like API, and is treated like a component\r\n// in the compiler, but internally it's a special built-in type that hooks\r\n// directly into the renderer.\r\nconst SuspenseImpl = {\r\n name: 'Suspense',\r\n // In order to make Suspense tree-shakable, we need to avoid importing it\r\n // directly in the renderer. The renderer checks for the __isSuspense flag\r\n // on a vnode's type and calls the `process` method, passing in renderer\r\n // internals.\r\n __isSuspense: true,\r\n process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, \r\n // platform-specific impl passed from renderer\r\n rendererInternals) {\r\n if (n1 == null) {\r\n mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals);\r\n }\r\n else {\r\n patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals);\r\n }\r\n },\r\n hydrate: hydrateSuspense,\r\n create: createSuspenseBoundary,\r\n normalize: normalizeSuspenseChildren\r\n};\r\n// Force-casted public typing for h and TSX props inference\r\nconst Suspense = (SuspenseImpl );\r\nfunction triggerEvent(vnode, name) {\r\n const eventListener = vnode.props && vnode.props[name];\r\n if (isFunction(eventListener)) {\r\n eventListener();\r\n }\r\n}\r\nfunction mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) {\r\n const { p: patch, o: { createElement } } = rendererInternals;\r\n const hiddenContainer = createElement('div');\r\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals));\r\n // start mounting the content subtree in an off-dom container\r\n patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds);\r\n // now check if we have encountered any async deps\r\n if (suspense.deps > 0) {\r\n // has async\r\n // invoke @fallback event\r\n triggerEvent(vnode, 'onPending');\r\n triggerEvent(vnode, 'onFallback');\r\n // mount the fallback tree\r\n patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds);\r\n setActiveBranch(suspense, vnode.ssFallback);\r\n }\r\n else {\r\n // Suspense has no async deps. Just resolve.\r\n suspense.resolve();\r\n }\r\n}\r\nfunction patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {\r\n const suspense = (n2.suspense = n1.suspense);\r\n suspense.vnode = n2;\r\n n2.el = n1.el;\r\n const newBranch = n2.ssContent;\r\n const newFallback = n2.ssFallback;\r\n const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;\r\n if (pendingBranch) {\r\n suspense.pendingBranch = newBranch;\r\n if (isSameVNodeType(newBranch, pendingBranch)) {\r\n // same root type but content may have changed.\r\n patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n else if (isInFallback) {\r\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newFallback);\r\n }\r\n }\r\n else {\r\n // toggled before pending tree is resolved\r\n suspense.pendingId++;\r\n if (isHydrating) {\r\n // if toggled before hydration is finished, the current DOM tree is\r\n // no longer valid. set it as the active branch so it will be unmounted\r\n // when resolved\r\n suspense.isHydrating = false;\r\n suspense.activeBranch = pendingBranch;\r\n }\r\n else {\r\n unmount(pendingBranch, parentComponent, suspense);\r\n }\r\n // increment pending ID. this is used to invalidate async callbacks\r\n // reset suspense state\r\n suspense.deps = 0;\r\n // discard effects from pending branch\r\n suspense.effects.length = 0;\r\n // discard previous container\r\n suspense.hiddenContainer = createElement('div');\r\n if (isInFallback) {\r\n // already in fallback state\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n else {\r\n patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newFallback);\r\n }\r\n }\r\n else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\r\n // toggled \"back\" to current active branch\r\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n // force resolve\r\n suspense.resolve(true);\r\n }\r\n else {\r\n // switched to a 3rd branch\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n suspense.resolve();\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {\r\n // root did not change, just normal patch\r\n patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, newBranch);\r\n }\r\n else {\r\n // root node toggled\r\n // invoke @pending event\r\n triggerEvent(n2, 'onPending');\r\n // mount pending branch in off-dom container\r\n suspense.pendingBranch = newBranch;\r\n suspense.pendingId++;\r\n patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);\r\n if (suspense.deps <= 0) {\r\n // incoming branch has no async deps, resolve now.\r\n suspense.resolve();\r\n }\r\n else {\r\n const { timeout, pendingId } = suspense;\r\n if (timeout > 0) {\r\n setTimeout(() => {\r\n if (suspense.pendingId === pendingId) {\r\n suspense.fallback(newFallback);\r\n }\r\n }, timeout);\r\n }\r\n else if (timeout === 0) {\r\n suspense.fallback(newFallback);\r\n }\r\n }\r\n }\r\n }\r\n}\r\nlet hasWarned = false;\r\nfunction createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {\r\n /* istanbul ignore if */\r\n if ((process.env.NODE_ENV !== 'production') && !false && !hasWarned) {\r\n hasWarned = true;\r\n // @ts-ignore `console.info` cannot be null error\r\n console[console.info ? 'info' : 'log'](` is an experimental feature and its API will likely change.`);\r\n }\r\n const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;\r\n const timeout = toNumber(vnode.props && vnode.props.timeout);\r\n const suspense = {\r\n vnode,\r\n parent,\r\n parentComponent,\r\n isSVG,\r\n container,\r\n hiddenContainer,\r\n anchor,\r\n deps: 0,\r\n pendingId: 0,\r\n timeout: typeof timeout === 'number' ? timeout : -1,\r\n activeBranch: null,\r\n pendingBranch: null,\r\n isInFallback: true,\r\n isHydrating,\r\n isUnmounted: false,\r\n effects: [],\r\n resolve(resume = false) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n if (!resume && !suspense.pendingBranch) {\r\n throw new Error(`suspense.resolve() is called without a pending branch.`);\r\n }\r\n if (suspense.isUnmounted) {\r\n throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);\r\n }\r\n }\r\n const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense;\r\n if (suspense.isHydrating) {\r\n suspense.isHydrating = false;\r\n }\r\n else if (!resume) {\r\n const delayEnter = activeBranch &&\r\n pendingBranch.transition &&\r\n pendingBranch.transition.mode === 'out-in';\r\n if (delayEnter) {\r\n activeBranch.transition.afterLeave = () => {\r\n if (pendingId === suspense.pendingId) {\r\n move(pendingBranch, container, anchor, 0 /* MoveType.ENTER */);\r\n }\r\n };\r\n }\r\n // this is initial anchor on mount\r\n let { anchor } = suspense;\r\n // unmount current active tree\r\n if (activeBranch) {\r\n // if the fallback tree was mounted, it may have been moved\r\n // as part of a parent suspense. get the latest anchor for insertion\r\n anchor = next(activeBranch);\r\n unmount(activeBranch, parentComponent, suspense, true);\r\n }\r\n if (!delayEnter) {\r\n // move content from off-dom container to actual container\r\n move(pendingBranch, container, anchor, 0 /* MoveType.ENTER */);\r\n }\r\n }\r\n setActiveBranch(suspense, pendingBranch);\r\n suspense.pendingBranch = null;\r\n suspense.isInFallback = false;\r\n // flush buffered effects\r\n // check if there is a pending parent suspense\r\n let parent = suspense.parent;\r\n let hasUnresolvedAncestor = false;\r\n while (parent) {\r\n if (parent.pendingBranch) {\r\n // found a pending parent suspense, merge buffered post jobs\r\n // into that parent\r\n parent.effects.push(...effects);\r\n hasUnresolvedAncestor = true;\r\n break;\r\n }\r\n parent = parent.parent;\r\n }\r\n // no pending parent suspense, flush all jobs\r\n if (!hasUnresolvedAncestor) {\r\n queuePostFlushCb(effects);\r\n }\r\n suspense.effects = [];\r\n // invoke @resolve event\r\n triggerEvent(vnode, 'onResolve');\r\n },\r\n fallback(fallbackVNode) {\r\n if (!suspense.pendingBranch) {\r\n return;\r\n }\r\n const { vnode, activeBranch, parentComponent, container, isSVG } = suspense;\r\n // invoke @fallback event\r\n triggerEvent(vnode, 'onFallback');\r\n const anchor = next(activeBranch);\r\n const mountFallback = () => {\r\n if (!suspense.isInFallback) {\r\n return;\r\n }\r\n // mount the fallback tree\r\n patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context\r\n isSVG, slotScopeIds, optimized);\r\n setActiveBranch(suspense, fallbackVNode);\r\n };\r\n const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in';\r\n if (delayEnter) {\r\n activeBranch.transition.afterLeave = mountFallback;\r\n }\r\n suspense.isInFallback = true;\r\n // unmount current active branch\r\n unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now\r\n true // shouldRemove\r\n );\r\n if (!delayEnter) {\r\n mountFallback();\r\n }\r\n },\r\n move(container, anchor, type) {\r\n suspense.activeBranch &&\r\n move(suspense.activeBranch, container, anchor, type);\r\n suspense.container = container;\r\n },\r\n next() {\r\n return suspense.activeBranch && next(suspense.activeBranch);\r\n },\r\n registerDep(instance, setupRenderEffect) {\r\n const isInPendingSuspense = !!suspense.pendingBranch;\r\n if (isInPendingSuspense) {\r\n suspense.deps++;\r\n }\r\n const hydratedEl = instance.vnode.el;\r\n instance\r\n .asyncDep.catch(err => {\r\n handleError(err, instance, 0 /* ErrorCodes.SETUP_FUNCTION */);\r\n })\r\n .then(asyncSetupResult => {\r\n // retry when the setup() promise resolves.\r\n // component may have been unmounted before resolve.\r\n if (instance.isUnmounted ||\r\n suspense.isUnmounted ||\r\n suspense.pendingId !== instance.suspenseId) {\r\n return;\r\n }\r\n // retry from this component\r\n instance.asyncResolved = true;\r\n const { vnode } = instance;\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n pushWarningContext(vnode);\r\n }\r\n handleSetupResult(instance, asyncSetupResult, false);\r\n if (hydratedEl) {\r\n // vnode may have been replaced if an update happened before the\r\n // async dep is resolved.\r\n vnode.el = hydratedEl;\r\n }\r\n const placeholder = !hydratedEl && instance.subTree.el;\r\n setupRenderEffect(instance, vnode, \r\n // component may have been moved before resolve.\r\n // if this is not a hydration, instance.subTree will be the comment\r\n // placeholder.\r\n parentNode(hydratedEl || instance.subTree.el), \r\n // anchor will not be used if this is hydration, so only need to\r\n // consider the comment placeholder case.\r\n hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized);\r\n if (placeholder) {\r\n remove(placeholder);\r\n }\r\n updateHOCHostEl(instance, vnode.el);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n popWarningContext();\r\n }\r\n // only decrease deps count if suspense is not already resolved\r\n if (isInPendingSuspense && --suspense.deps === 0) {\r\n suspense.resolve();\r\n }\r\n });\r\n },\r\n unmount(parentSuspense, doRemove) {\r\n suspense.isUnmounted = true;\r\n if (suspense.activeBranch) {\r\n unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove);\r\n }\r\n if (suspense.pendingBranch) {\r\n unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove);\r\n }\r\n }\r\n };\r\n return suspense;\r\n}\r\nfunction hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) {\r\n /* eslint-disable no-restricted-globals */\r\n const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */));\r\n // there are two possible scenarios for server-rendered suspense:\r\n // - success: ssr content should be fully resolved\r\n // - failure: ssr content should be the fallback branch.\r\n // however, on the client we don't really know if it has failed or not\r\n // attempt to hydrate the DOM assuming it has succeeded, but we still\r\n // need to construct a suspense boundary first\r\n const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized);\r\n if (suspense.deps === 0) {\r\n suspense.resolve();\r\n }\r\n return result;\r\n /* eslint-enable no-restricted-globals */\r\n}\r\nfunction normalizeSuspenseChildren(vnode) {\r\n const { shapeFlag, children } = vnode;\r\n const isSlotChildren = shapeFlag & 32 /* ShapeFlags.SLOTS_CHILDREN */;\r\n vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);\r\n vnode.ssFallback = isSlotChildren\r\n ? normalizeSuspenseSlot(children.fallback)\r\n : createVNode(Comment);\r\n}\r\nfunction normalizeSuspenseSlot(s) {\r\n let block;\r\n if (isFunction(s)) {\r\n const trackBlock = isBlockTreeEnabled && s._c;\r\n if (trackBlock) {\r\n // disableTracking: false\r\n // allow block tracking for compiled slots\r\n // (see ./componentRenderContext.ts)\r\n s._d = false;\r\n openBlock();\r\n }\r\n s = s();\r\n if (trackBlock) {\r\n s._d = true;\r\n block = currentBlock;\r\n closeBlock();\r\n }\r\n }\r\n if (isArray(s)) {\r\n const singleChild = filterSingleRoot(s);\r\n if ((process.env.NODE_ENV !== 'production') && !singleChild) {\r\n warn(` slots expect a single root node.`);\r\n }\r\n s = singleChild;\r\n }\r\n s = normalizeVNode(s);\r\n if (block && !s.dynamicChildren) {\r\n s.dynamicChildren = block.filter(c => c !== s);\r\n }\r\n return s;\r\n}\r\nfunction queueEffectWithSuspense(fn, suspense) {\r\n if (suspense && suspense.pendingBranch) {\r\n if (isArray(fn)) {\r\n suspense.effects.push(...fn);\r\n }\r\n else {\r\n suspense.effects.push(fn);\r\n }\r\n }\r\n else {\r\n queuePostFlushCb(fn);\r\n }\r\n}\r\nfunction setActiveBranch(suspense, branch) {\r\n suspense.activeBranch = branch;\r\n const { vnode, parentComponent } = suspense;\r\n const el = (vnode.el = branch.el);\r\n // in case suspense is the root node of a component,\r\n // recursively update the HOC el\r\n if (parentComponent && parentComponent.subTree === vnode) {\r\n parentComponent.vnode.el = el;\r\n updateHOCHostEl(parentComponent, el);\r\n }\r\n}\n\nfunction provide(key, value) {\r\n if (!currentInstance) {\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`provide() can only be used inside setup().`);\r\n }\r\n }\r\n else {\r\n let provides = currentInstance.provides;\r\n // by default an instance inherits its parent's provides object\r\n // but when it needs to provide values of its own, it creates its\r\n // own provides object using parent provides object as prototype.\r\n // this way in `inject` we can simply look up injections from direct\r\n // parent and let the prototype chain do the work.\r\n const parentProvides = currentInstance.parent && currentInstance.parent.provides;\r\n if (parentProvides === provides) {\r\n provides = currentInstance.provides = Object.create(parentProvides);\r\n }\r\n // TS doesn't allow symbol as index type\r\n provides[key] = value;\r\n }\r\n}\r\nfunction inject(key, defaultValue, treatDefaultAsFactory = false) {\r\n // fallback to `currentRenderingInstance` so that this can be called in\r\n // a functional component\r\n const instance = currentInstance || currentRenderingInstance;\r\n if (instance) {\r\n // #2400\r\n // to support `app.use` plugins,\r\n // fallback to appContext's `provides` if the instance is at root\r\n const provides = instance.parent == null\r\n ? instance.vnode.appContext && instance.vnode.appContext.provides\r\n : instance.parent.provides;\r\n if (provides && key in provides) {\r\n // TS doesn't allow symbol as index type\r\n return provides[key];\r\n }\r\n else if (arguments.length > 1) {\r\n return treatDefaultAsFactory && isFunction(defaultValue)\r\n ? defaultValue.call(instance.proxy)\r\n : defaultValue;\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`injection \"${String(key)}\" not found.`);\r\n }\r\n }\r\n else if ((process.env.NODE_ENV !== 'production')) {\r\n warn(`inject() can only be used inside setup() or functional components.`);\r\n }\r\n}\n\n// Simple effect.\r\nfunction watchEffect(effect, options) {\r\n return doWatch(effect, null, options);\r\n}\r\nfunction watchPostEffect(effect, options) {\r\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\r\n ? Object.assign(Object.assign({}, options), { flush: 'post' }) : { flush: 'post' }));\r\n}\r\nfunction watchSyncEffect(effect, options) {\r\n return doWatch(effect, null, ((process.env.NODE_ENV !== 'production')\r\n ? Object.assign(Object.assign({}, options), { flush: 'sync' }) : { flush: 'sync' }));\r\n}\r\n// initial value for watchers to trigger on undefined initial values\r\nconst INITIAL_WATCHER_VALUE = {};\r\n// implementation\r\nfunction watch(source, cb, options) {\r\n if ((process.env.NODE_ENV !== 'production') && !isFunction(cb)) {\r\n warn(`\\`watch(fn, options?)\\` signature has been moved to a separate API. ` +\r\n `Use \\`watchEffect(fn, options?)\\` instead. \\`watch\\` now only ` +\r\n `supports \\`watch(source, cb, options?) signature.`);\r\n }\r\n return doWatch(source, cb, options);\r\n}\r\nfunction doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {\r\n if ((process.env.NODE_ENV !== 'production') && !cb) {\r\n if (immediate !== undefined) {\r\n warn(`watch() \"immediate\" option is only respected when using the ` +\r\n `watch(source, callback, options?) signature.`);\r\n }\r\n if (deep !== undefined) {\r\n warn(`watch() \"deep\" option is only respected when using the ` +\r\n `watch(source, callback, options?) signature.`);\r\n }\r\n }\r\n const warnInvalidSource = (s) => {\r\n warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +\r\n `a reactive object, or an array of these types.`);\r\n };\r\n const instance = currentInstance;\r\n let getter;\r\n let forceTrigger = false;\r\n let isMultiSource = false;\r\n if (isRef(source)) {\r\n getter = () => source.value;\r\n forceTrigger = isShallow$1(source);\r\n }\r\n else if (isReactive(source)) {\r\n getter = () => source;\r\n deep = true;\r\n }\r\n else if (isArray(source)) {\r\n isMultiSource = true;\r\n forceTrigger = source.some(s => isReactive(s) || isShallow$1(s));\r\n getter = () => source.map(s => {\r\n if (isRef(s)) {\r\n return s.value;\r\n }\r\n else if (isReactive(s)) {\r\n return traverse(s);\r\n }\r\n else if (isFunction(s)) {\r\n return callWithErrorHandling(s, instance, 2 /* ErrorCodes.WATCH_GETTER */);\r\n }\r\n else {\r\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(s);\r\n }\r\n });\r\n }\r\n else if (isFunction(source)) {\r\n if (cb) {\r\n // getter with cb\r\n getter = () => callWithErrorHandling(source, instance, 2 /* ErrorCodes.WATCH_GETTER */);\r\n }\r\n else {\r\n // no cb -> simple effect\r\n getter = () => {\r\n if (instance && instance.isUnmounted) {\r\n return;\r\n }\r\n if (cleanup) {\r\n cleanup();\r\n }\r\n return callWithAsyncErrorHandling(source, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [onCleanup]);\r\n };\r\n }\r\n }\r\n else {\r\n getter = NOOP;\r\n (process.env.NODE_ENV !== 'production') && warnInvalidSource(source);\r\n }\r\n if (cb && deep) {\r\n const baseGetter = getter;\r\n getter = () => traverse(baseGetter());\r\n }\r\n let cleanup;\r\n let onCleanup = (fn) => {\r\n cleanup = effect.onStop = () => {\r\n callWithErrorHandling(fn, instance, 4 /* ErrorCodes.WATCH_CLEANUP */);\r\n };\r\n };\r\n // in SSR there is no need to setup an actual effect, and it should be noop\r\n // unless it's eager\r\n if (isInSSRComponentSetup) {\r\n // we will also not call the invalidate callback (+ runner is not set up)\r\n onCleanup = NOOP;\r\n if (!cb) {\r\n getter();\r\n }\r\n else if (immediate) {\r\n callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [\r\n getter(),\r\n isMultiSource ? [] : undefined,\r\n onCleanup\r\n ]);\r\n }\r\n return NOOP;\r\n }\r\n let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\r\n const job = () => {\r\n if (!effect.active) {\r\n return;\r\n }\r\n if (cb) {\r\n // watch(source, cb)\r\n const newValue = effect.run();\r\n if (deep ||\r\n forceTrigger ||\r\n (isMultiSource\r\n ? newValue.some((v, i) => hasChanged(v, oldValue[i]))\r\n : hasChanged(newValue, oldValue)) ||\r\n (false )) {\r\n // cleanup before running cb again\r\n if (cleanup) {\r\n cleanup();\r\n }\r\n callWithAsyncErrorHandling(cb, instance, 3 /* ErrorCodes.WATCH_CALLBACK */, [\r\n newValue,\r\n // pass undefined as the old value when it's changed for the first time\r\n oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,\r\n onCleanup\r\n ]);\r\n oldValue = newValue;\r\n }\r\n }\r\n else {\r\n // watchEffect\r\n effect.run();\r\n }\r\n };\r\n // important: mark the job as a watcher callback so that scheduler knows\r\n // it is allowed to self-trigger (#1727)\r\n job.allowRecurse = !!cb;\r\n let scheduler;\r\n if (flush === 'sync') {\r\n scheduler = job; // the scheduler function gets called directly\r\n }\r\n else if (flush === 'post') {\r\n scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);\r\n }\r\n else {\r\n // default: 'pre'\r\n job.pre = true;\r\n if (instance)\r\n job.id = instance.uid;\r\n scheduler = () => queueJob(job);\r\n }\r\n const effect = new ReactiveEffect(getter, scheduler);\r\n if ((process.env.NODE_ENV !== 'production')) {\r\n effect.onTrack = onTrack;\r\n effect.onTrigger = onTrigger;\r\n }\r\n // initial run\r\n if (cb) {\r\n if (immediate) {\r\n job();\r\n }\r\n else {\r\n oldValue = effect.run();\r\n }\r\n }\r\n else if (flush === 'post') {\r\n queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense);\r\n }\r\n else {\r\n effect.run();\r\n }\r\n return () => {\r\n effect.stop();\r\n if (instance && instance.scope) {\r\n remove(instance.scope.effects, effect);\r\n }\r\n };\r\n}\r\n// this.$watch\r\nfunction instanceWatch(source, value, options) {\r\n const publicThis = this.proxy;\r\n const getter = isString(source)\r\n ? source.includes('.')\r\n ? createPathGetter(publicThis, source)\r\n : () => publicThis[source]\r\n : source.bind(publicThis, publicThis);\r\n let cb;\r\n if (isFunction(value)) {\r\n cb = value;\r\n }\r\n else {\r\n cb = value.handler;\r\n options = value;\r\n }\r\n const cur = currentInstance;\r\n setCurrentInstance(this);\r\n const res = doWatch(getter, cb.bind(publicThis), options);\r\n if (cur) {\r\n setCurrentInstance(cur);\r\n }\r\n else {\r\n unsetCurrentInstance();\r\n }\r\n return res;\r\n}\r\nfunction createPathGetter(ctx, path) {\r\n const segments = path.split('.');\r\n return () => {\r\n let cur = ctx;\r\n for (let i = 0; i < segments.length && cur; i++) {\r\n cur = cur[segments[i]];\r\n }\r\n return cur;\r\n };\r\n}\r\nfunction traverse(value, seen) {\r\n if (!isObject(value) || value[\"__v_skip\" /* ReactiveFlags.SKIP */]) {\r\n return value;\r\n }\r\n seen = seen || new Set();\r\n if (seen.has(value)) {\r\n return value;\r\n }\r\n seen.add(value);\r\n if (isRef(value)) {\r\n traverse(value.value, seen);\r\n }\r\n else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n traverse(value[i], seen);\r\n }\r\n }\r\n else if (isSet(value) || isMap(value)) {\r\n value.forEach((v) => {\r\n traverse(v, seen);\r\n });\r\n }\r\n else if (isPlainObject(value)) {\r\n for (const key in value) {\r\n traverse(value[key], seen);\r\n }\r\n }\r\n return value;\r\n}\n\nfunction useTransitionState() {\r\n const state = {\r\n isMounted: false,\r\n isLeaving: false,\r\n isUnmounting: false,\r\n leavingVNodes: new Map()\r\n };\r\n onMounted(() => {\r\n state.isMounted = true;\r\n });\r\n onBeforeUnmount(() => {\r\n state.isUnmounting = true;\r\n });\r\n return state;\r\n}\r\nconst TransitionHookValidator = [Function, Array];\r\nconst BaseTransitionImpl = {\r\n name: `BaseTransition`,\r\n props: {\r\n mode: String,\r\n appear: Boolean,\r\n persisted: Boolean,\r\n // enter\r\n onBeforeEnter: TransitionHookValidator,\r\n onEnter: TransitionHookValidator,\r\n onAfterEnter: TransitionHookValidator,\r\n onEnterCancelled: TransitionHookValidator,\r\n // leave\r\n onBeforeLeave: TransitionHookValidator,\r\n onLeave: TransitionHookValidator,\r\n onAfterLeave: TransitionHookValidator,\r\n onLeaveCancelled: TransitionHookValidator,\r\n // appear\r\n onBeforeAppear: TransitionHookValidator,\r\n onAppear: TransitionHookValidator,\r\n onAfterAppear: TransitionHookValidator,\r\n onAppearCancelled: TransitionHookValidator\r\n },\r\n setup(props, { slots }) {\r\n const instance = getCurrentInstance();\r\n const state = useTransitionState();\r\n let prevTransitionKey;\r\n return () => {\r\n const children = slots.default && getTransitionRawChildren(slots.default(), true);\r\n if (!children || !children.length) {\r\n return;\r\n }\r\n let child = children[0];\r\n if (children.length > 1) {\r\n let hasFound = false;\r\n // locate first non-comment child\r\n for (const c of children) {\r\n if (c.type !== Comment) {\r\n if ((process.env.NODE_ENV !== 'production') && hasFound) {\r\n // warn more than one non-comment child\r\n warn(' can only be used on a single element or component. ' +\r\n 'Use for lists.');\r\n break;\r\n }\r\n child = c;\r\n hasFound = true;\r\n if (!(process.env.NODE_ENV !== 'production'))\r\n break;\r\n }\r\n }\r\n }\r\n // there's no need to track reactivity for these props so use the raw\r\n // props for a bit better perf\r\n const rawProps = toRaw(props);\r\n const { mode } = rawProps;\r\n // check mode\r\n if ((process.env.NODE_ENV !== 'production') &&\r\n mode &&\r\n mode !== 'in-out' &&\r\n mode !== 'out-in' &&\r\n mode !== 'default') {\r\n warn(`invalid mode: ${mode}`);\r\n }\r\n if (state.isLeaving) {\r\n return emptyPlaceholder(child);\r\n }\r\n // in the case of , we need to\r\n // compare the type of the kept-alive children.\r\n const innerChild = getKeepAliveChild(child);\r\n if (!innerChild) {\r\n return emptyPlaceholder(child);\r\n }\r\n const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance);\r\n setTransitionHooks(innerChild, enterHooks);\r\n const oldChild = instance.subTree;\r\n const oldInnerChild = oldChild && getKeepAliveChild(oldChild);\r\n let transitionKeyChanged = false;\r\n const { getTransitionKey } = innerChild.type;\r\n if (getTransitionKey) {\r\n const key = getTransitionKey();\r\n if (prevTransitionKey === undefined) {\r\n prevTransitionKey = key;\r\n }\r\n else if (key !== prevTransitionKey) {\r\n prevTransitionKey = key;\r\n transitionKeyChanged = true;\r\n }\r\n }\r\n // handle mode\r\n if (oldInnerChild &&\r\n oldInnerChild.type !== Comment &&\r\n (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {\r\n const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);\r\n // update old tree's hooks in case of dynamic transition\r\n setTransitionHooks(oldInnerChild, leavingHooks);\r\n // switching between different views\r\n if (mode === 'out-in') {\r\n state.isLeaving = true;\r\n // return placeholder node and queue update when leave finishes\r\n leavingHooks.afterLeave = () => {\r\n state.isLeaving = false;\r\n instance.update();\r\n };\r\n return emptyPlaceholder(child);\r\n }\r\n else if (mode === 'in-out' && innerChild.type !== Comment) {\r\n leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {\r\n const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);\r\n leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;\r\n // early removal callback\r\n el._leaveCb = () => {\r\n earlyRemove();\r\n el._leaveCb = undefined;\r\n delete enterHooks.delayedLeave;\r\n };\r\n enterHooks.delayedLeave = delayedLeave;\r\n };\r\n }\r\n }\r\n return child;\r\n };\r\n }\r\n};\r\n// export the public type for h/tsx inference\r\n// also to avoid inline import() in generated d.ts files\r\nconst BaseTransition = BaseTransitionImpl;\r\nfunction getLeavingNodesForType(state, vnode) {\r\n const { leavingVNodes } = state;\r\n let leavingVNodesCache = leavingVNodes.get(vnode.type);\r\n if (!leavingVNodesCache) {\r\n leavingVNodesCache = Object.create(null);\r\n leavingVNodes.set(vnode.type, leavingVNodesCache);\r\n }\r\n return leavingVNodesCache;\r\n}\r\n// The transition hooks are attached to the vnode as vnode.transition\r\n// and will be called at appropriate timing in the renderer.\r\nfunction resolveTransitionHooks(vnode, props, state, instance) {\r\n const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;\r\n const key = String(vnode.key);\r\n const leavingVNodesCache = getLeavingNodesForType(state, vnode);\r\n const callHook = (hook, args) => {\r\n hook &&\r\n callWithAsyncErrorHandling(hook, instance, 9 /* ErrorCodes.TRANSITION_HOOK */, args);\r\n };\r\n const callAsyncHook = (hook, args) => {\r\n const done = args[1];\r\n callHook(hook, args);\r\n if (isArray(hook)) {\r\n if (hook.every(hook => hook.length <= 1))\r\n done();\r\n }\r\n else if (hook.length <= 1) {\r\n done();\r\n }\r\n };\r\n const hooks = {\r\n mode,\r\n persisted,\r\n beforeEnter(el) {\r\n let hook = onBeforeEnter;\r\n if (!state.isMounted) {\r\n if (appear) {\r\n hook = onBeforeAppear || onBeforeEnter;\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n // for same element (v-show)\r\n if (el._leaveCb) {\r\n el._leaveCb(true /* cancelled */);\r\n }\r\n // for toggled element with same key (v-if)\r\n const leavingVNode = leavingVNodesCache[key];\r\n if (leavingVNode &&\r\n isSameVNodeType(vnode, leavingVNode) &&\r\n leavingVNode.el._leaveCb) {\r\n // force early removal (not cancelled)\r\n leavingVNode.el._leaveCb();\r\n }\r\n callHook(hook, [el]);\r\n },\r\n enter(el) {\r\n let hook = onEnter;\r\n let afterHook = onAfterEnter;\r\n let cancelHook = onEnterCancelled;\r\n if (!state.isMounted) {\r\n if (appear) {\r\n hook = onAppear || onEnter;\r\n afterHook = onAfterAppear || onAfterEnter;\r\n cancelHook = onAppearCancelled || onEnterCancelled;\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n let called = false;\r\n const done = (el._enterCb = (cancelled) => {\r\n if (called)\r\n return;\r\n called = true;\r\n if (cancelled) {\r\n callHook(cancelHook, [el]);\r\n }\r\n else {\r\n callHook(afterHook, [el]);\r\n }\r\n if (hooks.delayedLeave) {\r\n hooks.delayedLeave();\r\n }\r\n el._enterCb = undefined;\r\n });\r\n if (hook) {\r\n callAsyncHook(hook, [el, done]);\r\n }\r\n else {\r\n done();\r\n }\r\n },\r\n leave(el, remove) {\r\n const key = String(vnode.key);\r\n if (el._enterCb) {\r\n el._enterCb(true /* cancelled */);\r\n }\r\n if (state.isUnmounting) {\r\n return remove();\r\n }\r\n callHook(onBeforeLeave, [el]);\r\n let called = false;\r\n const done = (el._leaveCb = (cancelled) => {\r\n if (called)\r\n return;\r\n called = true;\r\n remove();\r\n if (cancelled) {\r\n callHook(onLeaveCancelled, [el]);\r\n }\r\n else {\r\n callHook(onAfterLeave, [el]);\r\n }\r\n el._leaveCb = undefined;\r\n if (leavingVNodesCache[key] === vnode) {\r\n delete leavingVNodesCache[key];\r\n }\r\n });\r\n leavingVNodesCache[key] = vnode;\r\n if (onLeave) {\r\n callAsyncHook(onLeave, [el, done]);\r\n }\r\n else {\r\n done();\r\n }\r\n },\r\n clone(vnode) {\r\n return resolveTransitionHooks(vnode, props, state, instance);\r\n }\r\n };\r\n return hooks;\r\n}\r\n// the placeholder really only handles one special case: KeepAlive\r\n// in the case of a KeepAlive in a leave phase we need to return a KeepAlive\r\n// placeholder with empty content to avoid the KeepAlive instance from being\r\n// unmounted.\r\nfunction emptyPlaceholder(vnode) {\r\n if (isKeepAlive(vnode)) {\r\n vnode = cloneVNode(vnode);\r\n vnode.children = null;\r\n return vnode;\r\n }\r\n}\r\nfunction getKeepAliveChild(vnode) {\r\n return isKeepAlive(vnode)\r\n ? vnode.children\r\n ? vnode.children[0]\r\n : undefined\r\n : vnode;\r\n}\r\nfunction setTransitionHooks(vnode, hooks) {\r\n if (vnode.shapeFlag & 6 /* ShapeFlags.COMPONENT */ && vnode.component) {\r\n setTransitionHooks(vnode.component.subTree, hooks);\r\n }\r\n else if (vnode.shapeFlag & 128 /* ShapeFlags.SUSPENSE */) {\r\n vnode.ssContent.transition = hooks.clone(vnode.ssContent);\r\n vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);\r\n }\r\n else {\r\n vnode.transition = hooks;\r\n }\r\n}\r\nfunction getTransitionRawChildren(children, keepComment = false, parentKey) {\r\n let ret = [];\r\n let keyedFragmentCount = 0;\r\n for (let i = 0; i < children.length; i++) {\r\n let child = children[i];\r\n // #5360 inherit parent key in case of