diff --git a/.gitignore b/.gitignore index 2adc3f4..d8d7dc2 100644 --- a/.gitignore +++ b/.gitignore @@ -64,4 +64,5 @@ node_modules/ # dotenv environment variables file .env -./src/api/firebase.js \ No newline at end of file +./src/api/firebase.js +firebase.js \ No newline at end of file diff --git a/dist/assets/index-24f118f5.css b/dist/assets/index-24f118f5.css deleted file mode 100644 index adbc159..0000000 --- a/dist/assets/index-24f118f5.css +++ /dev/null @@ -1,5 +0,0 @@ -.overlay-content[data-v-b6d78a5d]{width:1%}.trainMapIcon[data-v-b6d78a5d]{height:5.5vh;width:3.5vw}.slideLeft-enter-active[data-v-b6d78a5d],.slideLeft-leave-active[data-v-b6d78a5d]{transition:opacity .5s;transition:all .8s}.slideLeft-enter-from[data-v-b6d78a5d],.slideLeft-leave-to[data-v-b6d78a5d]{opacity:0;transform:translate(-100px)}@keyframes gradient-b6d78a5d{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}#sidebar[data-v-b6d78a5d]{position:absolute;height:85%;width:20%;left:2%;top:12%;z-index:2;text-align:center;animation:gradient-b6d78a5d 15s ease infinite;background:linear-gradient(45deg,#000000,#111111,#222222,#333333,#444444,#555555);background-size:400%,400%;box-shadow:0 0 4px 2px #333}#sidebarDiv[data-v-b6d78a5d]{position:relative;height:100%;width:100%;color:#fff}#sidebarHeader[data-v-b6d78a5d]{position:relative;top:0%;height:10%;width:100%;overflow:hidden}#headerImage[data-v-b6d78a5d]{height:100%;width:auto;overflow:hidden}#xButton[data-v-b6d78a5d]{font-size:80%;font-family:Georgia;color:#fff;position:absolute;top:10px;right:10px}#xButton[data-v-b6d78a5d]:hover{color:red}#sidebarFooter[data-v-b6d78a5d]{position:relative;bottom:0%;height:10%;text-align:center;color:azure}#sidebarMain[data-v-b6d78a5d]{position:relative;height:80%;width:100%;overflow:hidden}#sidebarContent[data-v-b6d78a5d]{position:relative;size:6px;color:#fff;overflow-wrap:break-word;font-family:Georgia,Times New Roman,Times,serif}#mapDiv[data-v-b6d78a5d]{background-color:#000;position:absolute;float:right;right:0%;top:0%;width:100%;overflow:hidden;height:100%}#mapIFrame[data-v-b6d78a5d]{position:relative;height:100%;width:100%;top:0%;z-index:0}#buttonDiv[data-v-b6d78a5d]{position:absolute;float:right;right:10%;top:0%;width:10%;height:10px}#buttonElement[data-v-b6d78a5d]{position:relative;top:50%;left:50%;z-index:0}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid rgb(179,197,219);background-color:#fff6}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-step-marker{width:1px;height:15px;background-color:#000;float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:12px;z-index:11;color:#000;text-shadow:-2px 0 #FFFFFF,0 2px #FFFFFF,2px 0 #FFFFFF,0 -2px #FFFFFF}.ol-scale-text{position:absolute;font-size:14px;text-align:center;bottom:25px;color:#000;text-shadow:-2px 0 #FFFFFF,0 2px #FFFFFF,2px 0 #FFFFFF,0 -2px #FFFFFF}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid black}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-viewport canvas{all:unset}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:#fff6;border-radius:4px;padding:2px}.ol-control:hover{background-color:#fff9}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:#003c8880;border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;background-color:#003c88b3}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:#003c88b3;text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:#000;text-shadow:0 0 2px #fff;font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:2px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-control i{cursor:default}.ol-control.ol-bar{left:50%;min-height:1em;min-width:1em;position:absolute;top:.5em;transform:translate(-50%);-webkit-transform:translate(-50%,0);white-space:nowrap}.ol-control.ol-toggle .ol-option-bar{display:none}.ol-control.ol-bar .ol-control{position:relative;top:auto;left:auto;right:auto;bottom:auto;display:inline-block;vertical-align:middle;background-color:transparent;padding:0;margin:0;transform:none;-webkit-transform:none}.ol-control.ol-bar .ol-bar{position:static}.ol-control.ol-bar .ol-control button{margin:2px 1px;outline:none}.ol-control.ol-bar.ol-left{left:.5em;top:50%;-webkit-transform:translate(0px,-50%);transform:translateY(-50%)}.ol-control.ol-bar.ol-left .ol-control{display:block}.ol-control.ol-bar.ol-right{left:auto;right:.5em;top:50%;-webkit-transform:translate(0px,-50%);transform:translateY(-50%)}.ol-control.ol-bar.ol-right .ol-control{display:block}.ol-control.ol-bar.ol-bottom{top:auto;bottom:.5em}.ol-control.ol-bar.ol-top.ol-left,.ol-control.ol-bar.ol-top.ol-right{top:4.5em;-webkit-transform:none;transform:none}.ol-touch .ol-control.ol-bar.ol-top.ol-left,.ol-touch .ol-control.ol-bar.ol-top.ol-right{top:5.5em}.ol-control.ol-bar.ol-bottom.ol-left,.ol-control.ol-bar.ol-bottom.ol-right{top:auto;bottom:.5em;-webkit-transform:none;transform:none}.ol-control.ol-bar.ol-group{margin:1px 1px 1px 0}.ol-control.ol-bar.ol-right .ol-group,.ol-control.ol-bar.ol-left .ol-group{margin:1px 1px 0}.ol-control.ol-bar.ol-group button{border-radius:0;margin:0 0 0 1px}.ol-control.ol-bar.ol-right.ol-group button,.ol-control.ol-bar.ol-left.ol-group button,.ol-control.ol-bar.ol-right .ol-group button,.ol-control.ol-bar.ol-left .ol-group button{margin:0 0 1px}.ol-control.ol-bar.ol-group .ol-control:first-child>button{border-radius:5px 0 0 5px}.ol-control.ol-bar.ol-group .ol-control:last-child>button{border-radius:0 5px 5px 0}.ol-control.ol-bar.ol-left.ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-right.ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-left .ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-right .ol-group .ol-control:first-child>button{border-radius:5px 5px 0 0}.ol-control.ol-bar.ol-left.ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-right.ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-left .ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-right .ol-group .ol-control:last-child>button{border-radius:0 0 5px 5px}.ol-control.ol-bar .ol-rotate{opacity:1;visibility:visible}.ol-control.ol-bar .ol-rotate button{display:block}.ol-control.ol-bar .ol-toggle.ol-active>button{background-color:#3c8800b3}.ol-control.ol-bar .ol-toggle.ol-active button:hover{background-color:#3c8800b3}.ol-control.ol-toggle button:disabled{background-color:#003c884d}.ol-control.ol-bar .ol-control.ol-option-bar{display:none;position:absolute;top:100%;left:0;margin:5px 0;border-radius:0;background-color:#fffc;-webkit-box-shadow:0 0 0 1px rgba(0,60,136,.5),1px 1px 2px rgba(0,0,0,.5);box-shadow:0 0 0 1px #003c8880,1px 1px 2px #00000080}.ol-control.ol-bar .ol-option-bar:before{content:"";border:.5em solid transparent;border-color:transparent transparent rgba(0,60,136,.5);position:absolute;bottom:100%;left:.3em}.ol-control.ol-bar .ol-option-bar .ol-control{display:table-cell}.ol-control.ol-bar .ol-control .ol-bar{display:none}.ol-control.ol-bar .ol-control.ol-active>.ol-option-bar{display:block}.ol-control.ol-bar .ol-control.ol-collapsed ul{display:none}.ol-control.ol-bar .ol-control.ol-text-button>div:hover,.ol-control.ol-bar .ol-control.ol-text-button>div{background-color:transparent;color:#003c8880;width:auto;min-width:1.375em;margin:0}.ol-control.ol-bar .ol-control.ol-text-button{font-size:.9em;border-left:1px solid rgba(0,60,136,.8);border-radius:0}.ol-control.ol-bar .ol-control.ol-text-button:first-child{border-left:0}.ol-control.ol-bar .ol-control.ol-text-button>div{padding:.11em .3em;font-weight:400;font-size:1.14em;font-family:Arial,Helvetica,sans-serif}.ol-control.ol-bar .ol-control.ol-text-button div:hover{color:#003c88}.ol-control.ol-bar.ol-bottom .ol-option-bar{top:auto;bottom:100%}.ol-control.ol-bar.ol-bottom .ol-option-bar:before{border-color:rgba(0,60,136,.5) transparent transparent;bottom:auto;top:100%}.ol-control.ol-bar.ol-left .ol-option-bar{left:100%;top:0;bottom:auto;margin:0 5px}.ol-control.ol-bar.ol-left .ol-option-bar:before{border-color:transparent rgba(0,60,136,.5) transparent transparent;bottom:auto;right:100%;left:auto;top:.3em}.ol-control.ol-bar.ol-right .ol-option-bar{right:100%;left:auto;top:0;bottom:auto;margin:0 5px}.ol-control.ol-bar.ol-right .ol-option-bar:before{border-color:transparent transparent transparent rgba(0,60,136,.5);bottom:auto;left:100%;top:.3em}.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar,.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar{top:100%;bottom:auto;left:.3em;right:auto;margin:5px 0}.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar{right:.3em;left:auto}.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar:before,.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before{border-color:transparent transparent rgba(0,60,136,.5);bottom:100%;top:auto;left:.3em;right:auto}.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before{right:.3em;left:auto}.ol-control-title{position:absolute;top:0;left:0;right:0}.ol-center-position{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:#fffc;padding:.1em 1em}.ol-compassctrl{display:none;top:1em;left:auto;right:1em}.ol-compassctrl.ol-visible{display:block!important}.ol-ext-dialog{position:fixed;top:-100%;left:0;width:150%;height:100%;opacity:0;background-color:#00000080;z-index:1000;pointer-events:none!important;-webkit-transition:opacity .2s,top 0s .2s;transition:opacity .2s,top 0s .2s}.ol-ext-dialog.ol-visible{opacity:1;top:0;pointer-events:all!important;-webkit-transition:opacity .2s,top 0s;transition:opacity .2s,top 0s}.ol-viewport .ol-ext-dialog{position:absolute}.ol-ext-dialog>form>h2{margin:0 .5em .5em 0;display:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ol-ext-dialog>form.ol-title>h2{display:block}.ol-ext-dialog>form{position:absolute;top:0;left:33.33%;min-width:5em;max-width:60%;min-height:3em;max-height:100%;background-color:#fff;border:1px solid #333;-webkit-box-shadow:3px 3px 4px rgba(0,0,0,.5);box-shadow:3px 3px 4px #00000080;-webkit-transform:translate(-50%,-30%);transform:translate(-50%,-30%);-webkit-transition:top .2s,-webkit-transform .2s;transition:top .2s,-webkit-transform .2s;transition:top .2s,transform .2s;transition:top .2s,transform .2s,-webkit-transform .2s;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-x:hidden;overflow-y:auto}.ol-ext-dialog>form.ol-closebox{padding-top:1.5em}.ol-ext-dialog>form.ol-title{padding-top:1em}.ol-ext-dialog>form.ol-button{padding-bottom:.5em}.ol-ext-dialog.ol-zoom>form{top:30%;-webkit-transform:translate(-50%,-30%) scale(0);transform:translate(-50%,-30%) scale(0)}.ol-ext-dialog.ol-visible>form{top:30%}.ol-ext-dialog.ol-zoom.ol-visible>form{-webkit-transform:translate(-50%,-30%) scale(1);transform:translate(-50%,-30%) scale(1)}.ol-ext-dialog>form .ol-content{overflow-x:hidden;overflow-y:auto}.ol-ext-dialog>form .ol-closebox{position:absolute;top:.5em;right:.5em;width:1em;height:1em;cursor:pointer;display:none}.ol-ext-dialog>form.ol-closebox .ol-closebox{display:block}.ol-ext-dialog>form .ol-closebox:before,.ol-ext-dialog>form .ol-closebox:after{content:"";position:absolute;background-color:currentColor;top:50%;left:50%;width:1em;height:.1em;border-radius:.1em;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-dialog>form .ol-closebox:before{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-ext-dialog>form .ol-buttons{text-align:right;overflow-x:hidden}.ol-ext-dialog>form .ol-buttons input{margin-top:.5em;padding:.5em;background:none;border:0;font-size:1em;color:#003c88;cursor:pointer;border-radius:.25em;outline-width:0}.ol-ext-dialog>form .ol-buttons input:hover{background-color:#003c881a}.ol-ext-dialog>form .ol-buttons input[type=submit]{font-weight:700}.ol-ext-dialog .ol-progress-message{font-size:.9em;text-align:center;padding-bottom:.5em}.ol-ext-dialog .ol-progress-bar{border:1px solid #369;width:20em;height:1em;max-width:100%;padding:2px;margin:.5em auto 0;overflow:hidden}.ol-ext-dialog .ol-progress-bar>div{background:#369;height:100%;width:50%;-webkit-transition:width .3s;transition:width .3s}.ol-ext-dialog .ol-progress-bar>div.notransition{-webkit-transition:unset;transition:unset}.ol-ext-dialog.ol-fullscreen-dialog form{top:1em;-webkit-transform:none;transform:none;left:1em;bottom:1em;right:1em;max-width:calc(66.6% - 2em);text-align:center;background:transparent;-webkit-box-shadow:none;box-shadow:none;border:none;color:#fff}.ol-ext-dialog.ol-fullscreen-dialog form .ol-closebox{top:0;right:0;font-size:2em}.ol-ext-dialog.ol-fullscreen-dialog .ol-closebox:before,.ol-ext-dialog.ol-fullscreen-dialog .ol-closebox:after{border:.1em solid currentColor}.ol-ext-dialog.ol-fullscreen-dialog img,.ol-ext-dialog.ol-fullscreen-dialog video{max-width:100%}body>.ol-ext-dialog .ol-content{max-height:calc(100vh - 10em)}body>.ol-ext-dialog>form{overflow:visible}.ol-editbar .ol-button button{position:relative;display:inline-block;font-style:normal;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}.ol-editbar .ol-button button:before,.ol-editbar .ol-button button:after{content:"";border-width:0;position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:currentColor}.ol-editbar .ol-button button:focus{outline:none}.ol-editbar .ol-selection>button:before{width:.6em;height:1em;background-color:transparent;border:.5em solid currentColor;border-width:0 .25em .65em;border-color:currentColor transparent;-webkit-box-shadow:0 .6em 0 -.23em;box-shadow:0 .6em 0 -.23em;top:.35em;left:.5em;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg)}.ol-editbar .ol-selection0>button:after{width:.28em;height:.6em;background-color:transparent;border:.5em solid currentColor;border-width:0 .05em .7em;border-color:currentColor transparent;top:.5em;left:.7em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ol-editbar .ol-delete button:after,.ol-editbar .ol-delete button:before{width:1em;height:.2em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-editbar .ol-delete button:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-editbar .ol-info button:before{width:.25em;height:.6em;border-radius:.03em;top:.47em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-info button:after{width:.25em;height:.2em;border-radius:.03em;-webkit-box-shadow:-.1em .35em,-.1em .82em,.1em .82em;box-shadow:-.1em .35em,-.1em .82em,.1em .82em;top:.12em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawpoint button:before{width:.7em;height:.7em;border-radius:50%;border:.15em solid currentColor;background-color:transparent;top:.2em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawpoint button:after{width:.4em;height:.4em;border:.15em solid currentColor;border-color:currentColor transparent;border-width:.4em .2em 0;background-color:transparent;top:.8em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawline>button:before,.ol-editbar .ol-drawpolygon>button:before,.ol-editbar .ol-drawhole>button:before{width:.8em;height:.8em;border:.13em solid currentColor;background-color:transparent;border-width:.2em .13em .09em;top:.2em;left:.25em;-webkit-transform:rotate(10deg) perspective(1em) rotateX(40deg);transform:rotate(10deg) perspective(1em) rotateX(40deg)}.ol-editbar .ol-drawline>button:before{border-bottom:0}.ol-editbar .ol-drawline>button:after,.ol-editbar .ol-drawhole>button:after,.ol-editbar .ol-drawpolygon>button:after{width:.3em;height:.3em;top:.2em;left:.25em;-webkit-box-shadow:-.2em .55em,.6em .1em,.65em .7em;box-shadow:-.2em .55em,.6em .1em,.65em .7em}.ol-editbar .ol-drawhole>button:after{-webkit-box-shadow:-.2em .55em,.6em .1em,.65em .7em,.25em .35em;box-shadow:-.2em .55em,.6em .1em,.65em .7em,.25em .35em}.ol-editbar .ol-offset>button i,.ol-editbar .ol-transform>button i{position:absolute;width:.9em;height:.9em;overflow:hidden;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-editbar .ol-offset>button i{width:.8em;height:.8em}.ol-editbar .ol-offset>button i:before,.ol-editbar .ol-transform>button i:before,.ol-editbar .ol-transform>button i:after{content:"";height:1em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:.5em 0 0 .1em,-.5em 0 0 .1em;box-shadow:.5em 0 0 .1em,-.5em 0 0 .1em;width:.1em;position:absolute;background-color:currentColor}.ol-editbar .ol-offset>button i:before{-webkit-box-shadow:.45em 0 0 .1em,-.45em 0 0 .1em;box-shadow:.45em 0 0 .1em,-.45em 0 0 .1em}.ol-editbar .ol-transform>button i:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-editbar .ol-split>button:before{width:.3em;height:.3em;top:.81em;left:.75em;border-radius:50%;-webkit-box-shadow:.1em -.4em,-.15em -.25em;box-shadow:.1em -.4em,-.15em -.25em}.ol-editbar .ol-split>button:after{width:.8em;height:.8em;top:.15em;left:-.1em;border:.1em solid currentColor;border-width:0 .2em .2em 0;background-color:transparent;border-radius:.1em;-webkit-transform:rotate(20deg) scaleY(.6) rotate(-45deg);transform:rotate(20deg) scaleY(.6) rotate(-45deg)}.ol-editbar .ol-drawregular>button:before{width:.9em;height:.9em;top:50%;left:50%;border:.1em solid currentColor;background-color:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div{border:.5em solid currentColor;border-color:transparent currentColor;display:inline-block;cursor:pointer;vertical-align:text-bottom}.ol-editbar .ol-drawregular .ol-bar:before,.ol-control.ol-bar.ol-editbar .ol-drawregular .ol-bar{left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawregular .ol-bar .ol-text-button{min-width:6em;text-align:center}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div:first-child{border-width:.5em .5em .5em 0;margin:0 .5em 0 0}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div:last-child{border-width:.5em 0 .5em .5em;margin:0 0 0 .5em}.ol-gauge{top:.5em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-gauge>*{display:inline-block;vertical-align:middle}.ol-gauge>span{margin:0 .5em}.ol-gauge>div{display:inline-block;width:200px;border:1px solid rgba(0,60,136,.5);border-radius:3px;padding:1px}.ol-gauge button{height:.8em;margin:0;max-width:100%}.ol-control.ol-bookmark{top:.5em;left:3em}.ol-control.ol-bookmark button{position:relative}.ol-control.ol-bookmark>button:before{content:"";position:absolute;border-width:10px 5px 4px;border-style:solid;border-color:#fff;border-bottom-color:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:0}.ol-control.ol-bookmark>div{display:none;min-width:5em}.ol-control.ol-bookmark input{font-size:.9em;margin:.1em 0;padding:0 .5em}.ol-control.ol-bookmark ul{margin:0;padding:0;list-style:none;min-width:10em}.ol-control.ol-bookmark li{color:#003c88cc;font-size:.9em;padding:0 .2em 0 .5em;cursor:default;clear:both}.ol-control.ol-bookmark li:hover{background-color:#003c8880;color:#fff}.ol-control.ol-bookmark>div button{width:1em;height:.8em;float:right;background-color:transparent;cursor:pointer;border-radius:0}.ol-control.ol-bookmark>div button:before{content:"\2a2f";color:#936;font-size:1.2em;line-height:1em;border-radius:0;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bookmark ul li button,.ol-bookmark input{display:none}.ol-bookmark.ol-editable ul li button,.ol-bookmark.ol-editable input{display:block}.ol-control.ol-geobt{top:auto;left:auto;right:.5em;bottom:3em}.ol-touch .ol-control.ol-geobt{bottom:3.5em}.ol-control.ol-geobt button:before{content:"";position:absolute;background:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.16em solid currentColor;width:.4em;height:.4em;border-radius:50%}.ol-control.ol-geobt button:after{content:"";position:absolute;width:.2em;height:.2em;background:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:.42em 0,-.42em 0,0 .42em,0 -.42em;box-shadow:.42em 0,-.42em 0,0 .42em,0 -.42em}.ol-control.ol-bar.ol-geobar .ol-control{display:inline-block;vertical-align:middle}.ol-control.ol-bar.ol-geobar .ol-bar{display:none}.ol-bar.ol-geobar.ol-active .ol-bar{display:inline-block}.ol-bar.ol-geobar .geolocBt button:before,.ol-bar.ol-geobar .geolocBt button:after{content:"";display:block;position:absolute;border:1px solid transparent;border-width:.3em .8em 0 .2em;border-color:#fff transparent transparent;-webkit-transform:rotate(-30deg);transform:rotate(-30deg);top:.45em;left:.15em;font-size:1.2em}.ol-bar.ol-geobar .geolocBt button:after{border-width:0 .8em .3em .2em;border-color:transparent transparent #fff;-webkit-transform:rotate(-61deg);transform:rotate(-61deg)}.ol-bar.ol-geobar .startBt button:before{content:"";display:block;position:absolute;width:1em;height:1em;background-color:#800;border-radius:50%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bar.ol-geobar .pauseBt button:before,.ol-bar.ol-geobar .pauseBt button:after{content:"";display:block;position:absolute;width:.25em;height:1em;background-color:#fff;top:50%;left:35%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bar.ol-geobar .pauseBt button:after{left:65%}.ol-control.ol-bar.ol-geobar .centerBt,.ol-control.ol-bar.ol-geobar .pauseBt,.ol-bar.ol-geobar.pauseTrack .startBt,.ol-bar.ol-geobar.centerTrack .startBt,.ol-bar.ol-geobar.centerTrack.pauseTrack .pauseBt,.ol-bar.ol-geobar.centerTrack .pauseBt{display:none}.ol-bar.ol-geobar.pauseTrack .pauseBt,.ol-bar.ol-geobar.centerTrack .centerBt{display:inline-block}.ol-control.ol-globe{position:absolute;left:.5em;bottom:.5em;border-radius:50%;opacity:.7;transform:scale(.5);transform-origin:0 100%;-webkit-transform:scale(.5);-webkit-transform-origin:0 100%}.ol-control.ol-globe:hover{opacity:.9}.ol-control.ol-globe .panel{display:block;width:170px;height:170px;background-color:#fff;cursor:pointer;border-radius:50%;overflow:hidden;-webkit-box-shadow:0 0 10px 5px rgba(255,255,255,.5);box-shadow:0 0 10px 5px #ffffff80}.ol-control.ol-globe .panel .ol-viewport{border-radius:50%}.ol-control.ol-globe .ol-pointer{display:block;background-color:#fff;width:10px;height:10px;border:10px solid red;position:absolute;top:50%;left:50%;transform:translate(-15px,-40px);-webkit-transform:translate(-15px,-40px);border-radius:50%;z-index:1;transition:opacity .15s,top 0s,left 0s;-webkit-transition:opacity .15s,top 0s,left 0s}.ol-control.ol-globe .ol-pointer.hidden{opacity:0;transition:opacity .15s,top 3s,left 5s;-webkit-transition:opacity .15s,top 3s,left 5s}.ol-control.ol-globe .ol-pointer:before{border-radius:50%;-webkit-box-shadow:6px 6px 10px 5px #000;box-shadow:6px 6px 10px 5px #000;content:"";display:block;height:0;left:0;position:absolute;top:23px;width:0}.ol-control.ol-globe .ol-pointer:after{content:"";width:0;height:0;display:block;position:absolute;border-width:20px 10px 0;border-color:red transparent;border-style:solid;left:-50%;top:100%}.ol-control.ol-globe .panel:before{border-radius:50%;-webkit-box-shadow:-20px -20px 80px 2px rgba(0,0,0,.7) inset;box-shadow:-20px -20px 80px 2px #000000b3 inset;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ol-control.ol-globe .panel:after{border-radius:50%;-webkit-box-shadow:0 0 20px 7px rgba(255,255,255,1);box-shadow:0 0 20px 7px #fff;content:"";display:block;height:0;left:23%;position:absolute;top:20%;-webkit-transform:rotate(-40deg);transform:rotate(-40deg);width:20%;z-index:1}.ol-control.ol-globe.ol-collapsed .panel{display:none}.ol-control-top.ol-globe{bottom:auto;top:5em;transform-origin:0 0;-webkit-transform-origin:0 0}.ol-control-right.ol-globe{left:auto;right:.5em;transform-origin:100% 100%;-webkit-transform-origin:100% 100%}.ol-control-right.ol-control-top.ol-globe{left:auto;right:.5em;transform-origin:100% 0;-webkit-transform-origin:100% 0}.ol-gridreference{background:#fff;border:1px solid #000;overflow:auto;max-height:100%;top:0;right:0}.ol-gridreference input{width:100%}.ol-gridreference ul{margin:0;padding:0;list-style:none}.ol-gridreference li{padding:0 .5em;cursor:pointer}.ol-gridreference ul li:hover{background-color:#ccc}.ol-gridreference li.ol-title,.ol-gridreference li.ol-title:hover{background:rgba(0,60,136,.5);color:#fff;cursor:default}.ol-gridreference ul li .ol-ref{margin-left:.5em}.ol-gridreference ul li .ol-ref:before{content:"("}.ol-gridreference ul li .ol-ref:after{content:")"}.ol-control.ol-imageline{bottom:0;left:0;right:0;padding:0;overflow:visible;-webkit-transition:.3s;transition:.3s;border-radius:0}.ol-control.ol-imageline.ol-collapsed{-webkit-transform:translateY(100%);transform:translateY(100%)}.ol-imageline>div{height:4em;position:relative;white-space:nowrap;scroll-behavior:smooth;overflow:hidden;width:100%}.ol-imageline>div.ol-move{scroll-behavior:unset}.ol-control.ol-imageline button{position:absolute;top:-1em;-webkit-transform:translateY(-100%);transform:translateY(-100%);margin:.65em;-webkit-box-shadow:0 0 0 .15em rgba(255,255,255,.4);box-shadow:0 0 0 .15em #fff6}.ol-control.ol-imageline button:before{content:"";position:absolute;-webkit-transform:translate(-50%,-50%) rotate(135deg);transform:translate(-50%,-50%) rotate(135deg);top:40%;left:50%;width:.4em;height:.4em;border:.1em solid currentColor;border-width:.15em .15em 0 0}.ol-control.ol-imageline.ol-collapsed button:before{top:60%;-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-imageline,.ol-imageline:hover{background-color:#000000bf}.ol-imageline.ol-arrow:after,.ol-imageline.ol-arrow:before{content:"";position:absolute;top:50%;left:.2em;border-color:#fff #000;border-width:1em .6em 1em 0;border-style:solid;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1;opacity:.8;pointer-events:none;-webkit-box-shadow:-.6em 0 0 1em #fff;box-shadow:-.6em 0 0 1em #fff}.ol-imageline.ol-arrow:after{border-width:1em 0 1em .6em;left:auto;right:.2em;-webkit-box-shadow:.6em 0 0 1em #fff;box-shadow:.6em 0 0 1em #fff}.ol-imageline.ol-scroll0.ol-arrow:before{display:none}.ol-imageline.ol-scroll1.ol-arrow:after{display:none}.ol-imageline .ol-image{position:relative;height:100%;display:inline-block;cursor:pointer}.ol-imageline img{max-height:100%;border:.25em solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-webkit-transition:1s;transition:1s}.ol-imageline img.ol-loaded{opacity:1}.ol-imageline .ol-image.select{background-color:#fff}.ol-imageline .ol-image span{position:absolute;width:125%;max-height:2.4em;left:50%;bottom:0;display:none;color:#fff;background-color:#00000080;font-size:.8em;overflow:hidden;white-space:normal;text-align:center;line-height:1.2em;-webkit-transform:translateX(-50%) scaleX(.8);transform:translate(-50%) scaleX(.8)}.ol-imageline .ol-image:hover span{display:block}.ol-control.ol-routing.ol-isochrone .ol-method-time,.ol-control.ol-routing.ol-isochrone .ol-method-distance,.ol-control.ol-routing.ol-isochrone>button{position:relative}.ol-control.ol-routing.ol-isochrone .ol-method-time:before,.ol-control.ol-routing.ol-isochrone>button:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.1em solid currentColor;width:.8em;height:.8em;border-radius:50%;-webkit-box-shadow:0 -.5em 0 -.35em,.4em -.35em 0 -.35em;box-shadow:0 -.5em 0 -.35em,.4em -.35em 0 -.35em;clip:unset}.ol-control.ol-routing.ol-isochrone .ol-method-time:after,.ol-control.ol-routing.ol-isochrone>button:after{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-60deg);transform:translate(-50%,-50%) rotate(-60deg);border-radius:50%;border:.3em solid transparent;border-right-color:currentColor;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;clip:unset}.ol-control.ol-routing.ol-isochrone .ol-method-distance:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg);width:1em;height:.5em;border:.1em solid currentColor;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-routing.ol-isochrone .ol-method-distance:after{content:"";position:absolute;width:.1em;height:.15em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg);-webkit-box-shadow:inset 0 -.15em,0 .1em,.25em .1em,-.25em .1em;box-shadow:inset 0 -.15em,0 .1em,.25em .1em,-.25em .1em}.ol-control.ol-routing.ol-isochrone .ol-direction-direct:before,.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:before{content:"";position:absolute;top:50%;left:30%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:.3em;height:.3em;border-radius:50%;border:.1em solid currentColor;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:.25em 0 0 -.05em;box-shadow:.25em 0 0 -.05em}.ol-control.ol-routing.ol-isochrone .ol-direction-direct:after,.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:after{content:"";position:absolute;top:50%;left:70%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.4em solid transparent;border-width:.4em 0 .4em .4em;border-color:transparent currentColor}.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:after{border-width:.4em .4em .4em 0}.ol-control.ol-isochrone.ol-collapsed .content{display:none}.ol-control.ol-isochrone input[type=number]{width:3em;text-align:right;margin:0 .1em}.ol-control.ol-isochrone .ol-distance input[type=number]{width:5em}.ol-isochrone .ol-time,.ol-isochrone .ol-distance{display:none}.ol-isochrone .ol-time.selected,.ol-isochrone .ol-distance.selected{display:block}.ol-control.ol-layerswitcher-popup{position:absolute;right:.5em;text-align:left;top:3em}.ol-control.ol-layerswitcher-popup .panel{clear:both;background:#fff}.ol-layerswitcher-popup .panel{list-style:none;padding:.25em;margin:0;overflow:hidden}.ol-layerswitcher-popup .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden}.ol-layerswitcher-popup.ol-collapsed .panel{display:none}.ol-layerswitcher-popup.ol-forceopen .panel{display:block}.ol-layerswitcher-popup button{background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==);background-position:center;background-repeat:no-repeat;float:right;height:38px;width:38px}.ol-layerswitcher-popup li{color:#369;padding:.25em 1em;font-family:Trebuchet MS,Helvetica,sans-serif;cursor:pointer}.ol-layerswitcher-popup li.ol-header{display:none}.ol-layerswitcher-popup li.select,.ol-layerswitcher-popup li.ol-visible{background:rgba(0,60,136,.7);color:#fff}.ol-layerswitcher-popup li:hover{background:rgba(0,60,136,.9);color:#fff}.ol-control.ol-layerswitcher.ol-layer-shop{height:calc(100% - 4em);max-height:unset;max-width:16em;background-color:transparent;pointer-events:none!important;overflow:visible}.ol-control.ol-layerswitcher>*{pointer-events:auto}.ol-control.ol-layer-shop>button,.ol-control.ol-layer-shop .panel-container{-webkit-box-shadow:0 0 0 3px rgba(255,255,255,.5);box-shadow:0 0 0 3px #ffffff80}.ol-control.ol-layerswitcher.ol-layer-shop .panel-container{overflow-y:scroll;max-height:calc(100% - 6.5em);border:2px solid #369;border-width:2px 0;padding:0}.ol-control.ol-layer-shop .panel{padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin:.25em .5em}.ol-control.ol-layerswitcher.ol-layer-shop .panel-container.ol-scrolldiv{overflow:hidden}.ol-control.ol-layer-shop .ol-scroll{background-color:#0000004d;opacity:.5}.ol-layerswitcher.ol-layer-shop ul.panel li.ol-header{display:none}.ol-layerswitcher.ol-layer-shop ul.panel li{margin-right:0;padding-right:0}.ol-layerswitcher.ol-layer-shop .layerup{height:1.5em;width:1.4em;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;background-color:transparent;color:#003c88}.ol-layerswitcher.ol-layer-shop .layerup:hover{background-color:#003c884d}.ol-layerswitcher.ol-layer-shop .layerup:before{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:0;background-color:currentColor;width:1em;height:2px;-webkit-box-shadow:0 -4px,0 4px;box-shadow:0 -4px,0 4px}.ol-layerswitcher.ol-layer-shop .layerup:after{content:unset}.ol-control.ol-layer-shop .ol-title-bar{background-color:#ffffff80;font-size:.9em;height:calc(2.8em - 4px);max-width:14.6em;padding:.7em .5em;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;-webkit-transform:scaleY(1.1);transform:scaleY(1.1);-webkit-transition:width 0s,-webkit-transform .1s;transition:width 0s,-webkit-transform .1s;transition:transform .1s,width 0s;transition:transform .1s,width 0s,-webkit-transform .1s;-webkit-transform-origin:100% 0;transform-origin:100% 0}.ol-control.ol-layer-shop:hover .ol-title-bar{background-color:#ffffffb3}.ol-control.ol-layer-shop.ol-collapsed .ol-title-bar{max-width:10em;-webkit-transform:scale(.9,1.1);transform:scale(.9,1.1)}.ol-control.ol-layer-shop.ol-forceopen .ol-title-bar{max-width:14.6em;-webkit-transform:scaleY(1.1);transform:scaleY(1.1)}.ol-control.ol-layer-shop .ol-bar{position:relative;height:1.75em;clear:both;-webkit-box-shadow:0 0 0 3px rgba(255,255,255,.5);box-shadow:0 0 0 3px #ffffff80;background-color:#fff;text-align:right;z-index:10}.ol-control.ol-layer-shop.ol-collapsed .ol-scroll,.ol-control.ol-layer-shop.ol-collapsed .ol-bar{border-width:2px 0 0;display:none}.ol-control.ol-layer-shop.ol-forceopen .ol-scroll,.ol-control.ol-layer-shop.ol-forceopen .ol-bar{display:block}.ol-control.ol-layer-shop .ol-bar>*{font-size:.9em;display:inline-block;vertical-align:middle;margin-top:.25em;background-color:transparent}.ol-layer-shop .ol-bar .ol-button,.ol-touch .ol-layer-shop .ol-bar .ol-button{position:relative;top:unset;left:unset;bottom:unset;right:unset;margin:0}.ol-layer-shop .ol-bar button{background-color:#fff;color:#003c88}.ol-layer-shop .ol-bar button:hover{background-color:#003c8833}.ol-touch .ol-layerswitcher.ol-layer-shop>button{font-size:1.7em}.ol-touch .ol-layer-shop .ol-bar{height:2em}.ol-touch .ol-layer-shop .ol-control button{font-size:1.4em}.ol-touch .ol-control.ol-layer-shop .panel{max-height:calc(100% - 7em)}.ol-touch .ol-control.ol-layer-shop .panel label{height:1.8em}.ol-touch .ol-control.ol-layer-shop .panel label span{margin-left:.5em;padding-top:.25em}.ol-touch .ol-control.ol-layer-shop .panel label:before,.ol-touch .ol-control.ol-layer-shop .panel label:after{font-size:1.3em;z-index:1}.ol-control.ol-layerswitcher{position:absolute;right:.5em;text-align:left;top:3em;max-height:calc(100% - 6em);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.ol-control.ol-layerswitcher .ol-switchertopdiv,.ol-control.ol-layerswitcher .ol-switcherbottomdiv{display:block}.ol-control.ol-layerswitcher.ol-collapsed .ol-switchertopdiv,.ol-control.ol-layerswitcher.ol-collapsed .ol-switcherbottomdiv{display:none}.ol-layerswitcher.ol-forceopen.ol-collapsed .ol-switchertopdiv,.ol-layerswitcher.ol-forceopen.ol-collapsed .ol-switcherbottomdiv{display:block}.ol-control.ol-layerswitcher .ol-switchertopdiv,.ol-control.ol-layerswitcher .ol-switcherbottomdiv{position:absolute;top:0;left:0;right:0;height:45px;background:#fff;z-index:2;opacity:1;cursor:pointer;border-top:2px solid transparent;border-bottom:2px solid #369;margin:0 2px;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-layerswitcher .ol-switcherbottomdiv{top:auto;bottom:0;height:2em;border-top:2px solid #369;border-bottom:2px solid transparent}.ol-control.ol-layerswitcher .ol-switchertopdiv:before,.ol-control.ol-layerswitcher .ol-switcherbottomdiv:before{content:"";position:absolute;left:50%;top:50%;border:10px solid transparent;width:0;height:0;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);opacity:.8}.ol-control.ol-layerswitcher .ol-switchertopdiv:hover:before,.ol-control.ol-layerswitcher .ol-switcherbottomdiv:hover:before{opacity:1}.ol-control.ol-layerswitcher .ol-switchertopdiv:before{border-bottom-color:#369;border-top:0}.ol-control.ol-layerswitcher .ol-switcherbottomdiv:before{border-top-color:#369;border-bottom:0}.ol-control.ol-layerswitcher .panel-container{background-color:#fff;border-radius:0 0 2px 2px;clear:both;display:block;padding:.5em .5em 0}.ol-layerswitcher .panel{list-style:none;padding:0;margin:0;overflow:hidden;font-family:Tahoma,Geneva,sans-serif;font-size:.9em;-webkit-transition:top .3s;transition:top .3s;position:relative;top:0}.ol-layerswitcher .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden;clear:both}.ol-layerswitcher input[type=radio],.ol-layerswitcher input[type=checkbox]{display:none}.ol-layerswitcher .panel li{-weblit-transition:-webkit-transform .2s linear;-webkit-transition:-webkit-transform .2s linear;transition:-webkit-transform .2s linear;transition:transform .2s linear;transition:transform .2s linear,-webkit-transform .2s linear;clear:both;display:block;border:1px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-layerswitcher .panel li.ol-layer-select{background-color:#003c8833;margin:0 -.5em;padding:0 .5em}.ol-layerswitcher .panel li.drag{opacity:.5;transform:scale(.8);-webkit-transform:scale(.8)}.ol-dragover{background:rgba(51,102,153,.5);opacity:.8}.ol-layerswitcher .panel li.forbidden,.forbidden .ol-layerswitcher-buttons div,.forbidden .layerswitcher-opacity div{background:rgba(255,0,0,.5);color:red!important}.ol-layerswitcher.drag,.ol-layerswitcher.drag *{cursor:not-allowed!important;cursor:no-drop!important}.ol-layerswitcher.drag .panel li.dropover,.ol-layerswitcher.drag .panel li.dropover *{cursor:pointer!important;cursor:n-resize!important;cursor:ns-resize!important;cursor:-webkit-grab!important;cursor:grab!important;cursor:-webkit-grabbing!important;cursor:grabbing!important}.ol-layerswitcher .panel li.dropover{background:rgba(51,102,153,.5)}.ol-layerswitcher .panel li label{display:inline-block;height:1.4em;max-width:12em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 0 0 1.7em;position:relative}.ol-layerswitcher .panel li label span{display:inline-block;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;padding-right:.2em}.ol-layerswitcher [type=radio]+label:before,.ol-layerswitcher [type=checkbox]+label:before,.ol-layerswitcher [type=radio]:checked+label:after,.ol-layerswitcher [type=checkbox]:checked+label:after{content:"";position:absolute;left:.1em;top:.1em;width:1.2em;height:1.2em;border:2px solid #369;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-layerswitcher [type=radio]+label:before,.ol-layerswitcher [type=radio]+label:after{border-radius:50%}.ol-layerswitcher [type=radio]:checked+label:after{background:#369 none repeat scroll 0 0;margin:.3em;width:.6em;height:.6em}.ol-layerswitcher [type=checkbox]:checked+label:after{background:transparent;border-width:0 3px 3px 0;border-style:solid;border-color:#369;width:.7em;height:1em;-webkit-transform:rotate(45deg);transform:rotate(45deg);left:.55em;top:-.05em;-webkit-box-shadow:1px 0px 1px 1px #fff;box-shadow:1px 0 1px 1px #fff}.ol-layerswitcher .panel li.ol-layer-hidden{opacity:.6}.ol-layerswitcher.ol-collapsed .panel-container{display:none}.ol-layerswitcher.ol-forceopen .panel-container{display:block}.ol-layerswitcher>button{background-color:#fff;float:right;z-index:10;position:relative;font-size:1.7em}.ol-touch .ol-layerswitcher>button{font-size:2.5em}.ol-layerswitcher>button:before,.ol-layerswitcher>button:after{content:"";position:absolute;width:.75em;height:.75em;border-radius:.15em;-webkit-transform:scaleY(.8) rotate(45deg);transform:scaleY(.8) rotate(45deg)}.ol-layerswitcher>button:before{background:#e2e4e1;top:.32em;left:.34em;-webkit-box-shadow:.1em .1em #325158;box-shadow:.1em .1em #325158}.ol-layerswitcher>button:after{top:.22em;left:.34em;background:#83bcc5;background-image:radial-gradient(circle at .85em .6em,#70b3be 0,#70b3be .65em,#83bcc5 .65em)}.ol-layerswitcher-buttons{display:block;float:right;text-align:right}.ol-layerswitcher-buttons>div{display:inline-block;position:relative;cursor:pointer;height:1em;width:1em;margin:2px;line-height:1em;text-align:center;background:#369;vertical-align:middle;color:#fff}.ol-layerswitcher .panel li>div{display:inline-block;position:relative}.ol-layerswitcher .ol-separator{display:block;width:0;height:0;padding:0;margin:0}.ol-layerswitcher .layerup{float:right;height:2.5em;background-color:#369;opacity:.5;cursor:move;cursor:ns-resize}.ol-layerswitcher .layerup:before,.ol-layerswitcher .layerup:after{border-color:#fff transparent;border-style:solid;border-width:.4em .4em 0;content:"";height:0;position:absolute;bottom:3px;left:.1em;width:0}.ol-layerswitcher .layerup:after{border-width:0 .4em .4em;top:3px;bottom:auto}.ol-layerswitcher .layerInfo{background:#369;border-radius:100%}.ol-layerswitcher .layerInfo:before{color:#fff;content:"i";display:block;font-size:.8em;font-weight:700;text-align:center;width:1.25em;position:absolute;left:0;top:0}.ol-layerswitcher .layerTrash{background:#369}.ol-layerswitcher .layerTrash:before{color:#fff;content:"\d7";font-size:1em;top:50%;left:0;right:0;text-align:center;line-height:1em;margin:-.5em 0;position:absolute}.ol-layerswitcher .layerExtent{background:#369}.ol-layerswitcher .layerExtent:before{border-right:1px solid #fff;border-bottom:1px solid #fff;content:"";display:block;position:absolute;left:6px;right:2px;top:6px;bottom:3px}.ol-layerswitcher .layerExtent:after{border-left:1px solid #fff;border-top:1px solid #fff;content:"";display:block;position:absolute;bottom:6px;left:2px;right:6px;top:3px}.ol-layerswitcher .expend-layers,.ol-layerswitcher .collapse-layers{margin:0 2px;background-color:transparent}.ol-layerswitcher .expend-layers:before,.ol-layerswitcher .collapse-layers:before{content:"";position:absolute;top:50%;left:0;margin-top:-2px;height:4px;width:100%;background:#369}.ol-layerswitcher .expend-layers:after{content:"";position:absolute;left:50%;top:0;margin-left:-2px;width:4px;height:100%;background:#369}.ol-layerswitcher .layerswitcher-opacity{position:relative;border:1px solid #369;height:3px;width:120px;margin:5px 1em 10px 7px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;background:#69c;background:-webkit-gradient(linear,left top,right top,from(rgba(0,60,136,0)),to(rgba(0,60,136,.6)));background:linear-gradient(to right,rgba(0,60,136,0),rgba(0,60,136,.6));cursor:pointer;-webkit-box-shadow:1px 1px 1px rgba(0,0,0,.5);box-shadow:1px 1px 1px #00000080}.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor,.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before{position:absolute;width:20px;height:20px;top:50%;left:50%;background:rgba(0,60,136,.5);border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1}.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before{content:"";position:absolute;width:50%;height:50%}.ol-touch .ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor{width:26px;height:26px}.ol-layerswitcher .layerswitcher-opacity-label{display:none;position:absolute;right:-2.5em;bottom:5px;font-size:.8em}.ol-layerswitcher .layerswitcher-opacity-label:after{content:"%"}.ol-layerswitcher .layerswitcher-progress{display:block;margin:-4px 1em 2px 7px;width:120px}.ol-layerswitcher .layerswitcher-progress div{background-color:#369;height:2px;display:block;width:0}.ol-control.ol-layerswitcher-image{position:absolute;right:.5em;text-align:left;top:1em;transition:all .2s ease 0s;-webkit-transition:all .2s ease 0s}.ol-control.ol-layerswitcher-image.ol-collapsed{top:3em;-webkit-transition:none;transition:none}.ol-layerswitcher-image .panel{list-style:none;padding:.25em;margin:0;overflow:hidden}.ol-layerswitcher-image .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden}.ol-layerswitcher-image.ol-collapsed .panel{display:none}.ol-layerswitcher-image.ol-forceopen .panel{display:block;clear:both}.ol-layerswitcher-image button{background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==);background-position:center;background-repeat:no-repeat;float:right;height:38px;width:38px;display:none}.ol-layerswitcher-image.ol-collapsed button{display:block;position:relative}.ol-layerswitcher-image li{border-radius:4px;border:3px solid transparent;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.5);box-shadow:1px 1px 4px #00000080;display:inline-block;width:64px;height:64px;margin:2px;position:relative;background-color:#fff;overflow:hidden;vertical-align:middle;cursor:pointer}.ol-layerswitcher-image li.ol-layer-hidden{opacity:.5;border-color:#555}.ol-layerswitcher-image li.ol-header{display:none}.ol-layerswitcher-image li img{position:absolute;max-width:100%}.ol-layerswitcher-image li.select,.ol-layerswitcher-image li.ol-visible{border:3px solid red}.ol-layerswitcher-image li p{display:none}.ol-layerswitcher-image li:hover p{background-color:#00000080;color:#fff;bottom:0;display:block;left:0;margin:0;overflow:hidden;position:absolute;right:0;text-align:center;height:1.2em;font-family:Verdana,Geneva,sans-serif;font-size:.8em}.ol-control.ol-legend{bottom:.5em;left:.5em;z-index:1;max-height:90%;max-width:90%;overflow-x:hidden;overflow-y:auto}.ol-control.ol-legend.ol-collapsed{overflow:hidden}.ol-control.ol-legend button{position:relative;display:none}.ol-control.ol-legend.ol-collapsed button{display:block}.ol-control.ol-legend.ol-uncollapsible button{display:none}.ol-control.ol-legend button.ol-closebox{display:block;position:absolute;top:0;right:0;background:none;cursor:pointer;z-index:1}.ol-control.ol-legend.ol-uncollapsible button.ol-closebox,.ol-control.ol-legend.ol-collapsed button.ol-closebox{display:none}.ol-control.ol-legend button.ol-closebox:before{content:"\d7";background:none;color:#003c8880;font-size:1.3em}.ol-control.ol-legend button.ol-closebox:hover:before{color:#003c88}.ol-control.ol-legend .ol-legendImg{display:block}.ol-control.ol-legend.ol-collapsed .ol-legendImg{display:none}.ol-control.ol-legend.ol-uncollapsible .ol-legendImg{display:block}.ol-control.ol-legend>button:first-child:before,.ol-control.ol-legend>button:first-child:after{content:"";position:absolute;top:.25em;left:.2em;width:.2em;height:.2em;background-color:currentColor;-webkit-box-shadow:0 .35em,0 .7em;box-shadow:0 .35em,0 .7em}.ol-control.ol-legend button:first-child:after{top:.27em;left:.55em;height:.15em;width:.6em}ul.ol-legend{position:absolute;top:0;left:0;width:100%;margin:0;padding:0;list-style:none}.ol-control.ol-legend.ol-collapsed ul{display:none}.ol-control.ol-legend.ol-uncollapsible ul{display:block}ul.ol-legend li.ol-title{text-align:center;font-weight:700}ul.ol-legend li.ol-title>div:first-child{width:0!important}ul.ol-legend li{overflow:hidden;padding:0;white-space:nowrap}ul.ol-legend li div{display:inline-block;vertical-align:middle}.ol-control.ol-legend .ol-legend{display:inline-block}.ol-control.ol-legend.ol-collapsed .ol-legend{display:none}.ol-control.ol-mapzone{position:absolute;right:.5em;text-align:left;top:.5em;max-height:calc(100% - 6em);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.ol-control.ol-mapzone.ol-collapsed{top:3em}.ol-control.ol-mapzone button{position:relative;float:right;margin-top:2.2em}.ol-touch .ol-control.ol-mapzone button{margin-top:1.67em}.ol-control.ol-mapzone.ol-collapsed button{margin-top:0}.ol-control.ol-mapzone button i{border:.1em solid currentColor;border-radius:50%;width:.9em;height:.9em;overflow:hidden;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-control.ol-mapzone button i:before{content:"";background-color:currentColor;width:.4em;height:.4em;position:absolute;left:.5em;top:.3em;border-radius:50%;-webkit-box-shadow:.05em .3em 0 -.051em currentColor,-.05em -.35em 0 -.1em currentColor,-.5em -.35em 0 0em currentColor,-.65em .1em 0 -.03em currentColor,-.65em -.05em 0 -.05em currentColor;box-shadow:.05em .3em 0 -.051em currentColor,-.05em -.35em 0 -.1em currentColor,-.5em -.35em 0 0 currentColor,-.65em .1em 0 -.03em currentColor,-.65em -.05em 0 -.05em currentColor}.ol-mapzone>div{position:relative;display:inline-block;width:5em;height:5em;margin:0 .2em 0 0}.ol-control.ol-mapzone.ol-collapsed>div{display:none}.ol-mapzone>div p{margin:0;position:absolute;bottom:0;color:#fff;font-weight:700;text-align:center;width:160%;overflow:hidden;font-family:Lucida Grande,Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;-webkit-transform:scaleX(.625);transform:scaleX(.625);-webkit-transform-origin:0 0;transform-origin:0 0;cursor:default}.ol-notification{width:150%;bottom:0;border:0;background:none;margin:0;padding:0}.ol-notification>div,.ol-notification>div:hover{position:absolute;background-color:#000c;color:#fff;bottom:0;left:33.33%;max-width:calc(66% - 4em);min-width:5em;max-height:5em;min-height:1em;border-radius:4px 4px 0 0;padding:.2em .5em;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-transition:.3s;transition:.3s;opacity:1}.ol-notification.ol-collapsed>div{bottom:-5em;opacity:0}.ol-notification a{color:#9cf;cursor:pointer}.ol-notification .ol-close,.ol-notification .ol-close:hover{padding-right:1.5em}.ol-notification .closeBox{position:absolute;top:0;right:.3em}.ol-notification .closeBox:before{content:"\d7"}.ol-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0006;padding:1em;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1;opacity:0;display:none;cursor:default;overflow:hidden;-webkit-transition:all .5s;transition:all .5s;pointer-events:none}.ol-overlay.slide-up{transform:translateY(100%);-webkit-transform:translateY(100%)}.ol-overlay.slide-down{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.ol-overlay.slide-left{-webkit-transform:translateX(-100%);transform:translate(-100%)}.ol-overlay.slide-right{-webkit-transform:translateX(100%);transform:translate(100%)}.ol-overlay.zoom{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0)}.ol-overlay.zoomout{-webkit-transform:scale(3);transform:scale(3)}.ol-overlay.zoomrotate{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scale(0) rotate(360deg);transform:translate(-50%,-50%) scale(0) rotate(360deg)}.ol-overlay.stretch{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scaleX(0);transform:translate(-50%,-50%) scaleX(0)}.ol-overlay.stretchy{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scaleY(0);transform:translate(-50%,-50%) scaleY(0)}.ol-overlay.wipe{opacity:1}.ol-overlay.flip{-webkit-transform:perspective(600px) rotateY(180deg);transform:perspective(600px) rotateY(180deg)}.ol-overlay.card{opacity:.5;-webkit-transform:translate(-80%,100%) rotate(-.5turn);transform:translate(-80%,100%) rotate(-.5turn)}.ol-overlay.book{-webkit-transform:perspective(600px) rotateY(-180deg) scaleX(.6);transform:perspective(600px) rotateY(-180deg) scaleX(.6);-webkit-transform-origin:10% 50%;transform-origin:10% 50%}.ol-overlay.book.visible{-webkit-transform-origin:10% 50%;transform-origin:10% 50%}.ol-overlay.ol-visible{opacity:1;top:0;left:0;right:0;bottom:0;-webkit-transform:none;transform:none;pointer-events:all}.ol-overlay .ol-closebox{position:absolute;top:1em;right:1em;width:1em;height:1em;cursor:pointer;z-index:1}.ol-overlay .ol-closebox:before{content:"\274c";display:block;text-align:center;vertical-align:middle}.ol-overlay .ol-fullscreen-image{position:absolute;top:0;left:0;bottom:0;right:0}.ol-overlay .ol-fullscreen-image img{position:absolute;max-width:100%;max-height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlay .ol-fullscreen-image.ol-has-title img{padding-bottom:3em}.ol-overlay .ol-fullscreen-image p{background-color:#00000080;padding:.5em;position:absolute;left:0;right:0;bottom:0;margin:0;text-align:center}.ol-control.ol-overview{position:absolute;left:.5em;text-align:left;bottom:.5em}.ol-control.ol-overview .panel{display:block;width:150px;height:150px;margin:2px;background-color:#fff;border:1px solid #369;cursor:pointer}.ol-overview:not(.ol-collapsed) button{position:absolute;bottom:2px;left:2px;z-index:2}.ol-control.ol-overview.ol-collapsed .panel{display:none}.ol-overview.ol-collapsed button:before{content:"\bb"}.ol-overview button:before{content:"\ab"}.ol-control-right.ol-overview{left:auto;right:.5em}.ol-control-right.ol-overview:not(.ol-collapsed) button{left:auto;right:2px}.ol-control-right.ol-overview.ol-collapsed button:before{content:"\ab"}.ol-control-right.ol-overview button:before{content:"\bb"}.ol-control-top.ol-overview{bottom:auto;top:5em}.ol-control-top.ol-overview:not(.ol-collapsed) button{bottom:auto;top:2px}.ol-permalink{position:absolute;top:.5em;right:2.5em}.ol-touch .ol-permalink{right:3em}.ol-permalink button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcFBjYE1ZK03gAAAUlJREFUOMuVk71KA1EQhc/NaiP+gCRpFHwGBSFlCrFVfAsbwSJCBMv06QIGJOBziI3EYAgkjU8gIloIAasIn4WzMqx34zrN7J6de+6ZmbNSgQDSfADcATPgHbgCyvonSYv8KEzWdofegH3gwmG9Ikq67sAESFzNueHThTyiEIKAmr2OJCUhhO30Aou+5aUQU2Ik65K2JC1KegohPGfUBkmvksqShnntHEcGOs60NXHfjmKz6czZTsNqbhzW+muwY2ATWAWawCOwBgxcTfvnvCPxKx4Cy5bPgBWgauRpdL2ImNlGhp3MabETm8mh94nDk4yCNE5/KTGg7xxbyhYAG0AN2AEqURIDZ0a0Fxn+LXAPXDpzRqMk6cOedz1ubdYl1b6NHgZRJe72nuu/CdSBl+yKi/zZlTnbaeXOJIesClwDU+ATeEhtX5TkCwAWUyAsHH1QAAAAAElFTkSuQmCC);background-position:center;background-repeat:no-repeat}.ol-control.ol-print{top:.5em;left:3em}.ol-control.ol-print button:before{content:"";width:.9em;height:.35em;position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset 0 0 0 .1em,inset .55em 0,0 .2em 0 -.1em;box-shadow:inset 0 0 0 .1em,inset .55em 0,0 .2em 0 -.1em}.ol-control.ol-print button:after{content:"";width:.7em;height:.6em;position:absolute;left:50%;top:25%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset 0 0 0 .15em;box-shadow:inset 0 0 0 .15em}.ol-ext-print-dialog{width:100%;height:100%}.ol-ext-print-dialog>form .ol-closebox{right:auto;left:16.5em;z-index:1;color:#999}.ol-ext-print-dialog .ol-content[data-status=printing]{opacity:.5}.ol-ext-print-dialog .ol-content .ol-error{display:none;background:#b00;color:#ff0;text-align:center;padding:1em .5em;font-weight:700;margin:0 -1em}.ol-ext-print-dialog .ol-content[data-status=error] .ol-error{display:block}.ol-ext-print-dialog>form,.ol-ext-print-dialog.ol-visible>form{-webkit-transition:none;transition:none;top:1em;left:1em;bottom:1em;right:1em;-webkit-transform:none;transform:none;max-width:100%;max-height:100%;background-color:#eee;padding:0}.ol-ext-print-dialog .ol-print-map{position:absolute;top:0;bottom:0;right:0;width:calc(100% - 18em);overflow:hidden}.ol-ext-print-dialog .ol-print-map .ol-page{position:absolute;left:50%;top:50%;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-print-dialog .ol-print-map .ol-page.margin{-webkit-box-sizing:content-box;box-sizing:content-box}.ol-ext-print-dialog .ol-map{width:100%;height:100%}.ol-ext-print-dialog .ol-print-map .ol-control{display:none!important}.ol-ext-print-dialog .ol-print-param{position:absolute;overflow-x:hidden;top:0;bottom:0;left:0;width:18em;background-color:#fff;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-print-dialog .ol-print-param h2{display:block;color:#003c88b3;font-size:1.1em}.ol-ext-print-dialog .ol-print-param ul{padding:0;list-style:none}.ol-ext-print-dialog .ol-print-param li{position:relative;margin:.5em 0;font-size:.9em}.ol-ext-print-dialog .ol-print-param li.hidden{display:none}.ol-ext-print-dialog .ol-print-param label{width:8em;display:inline-block;vertical-align:middle}.ol-ext-print-dialog select{outline:none;vertical-align:middle}.ol-ext-print-dialog .ol-orientation{text-align:center}.ol-ext-print-dialog .ol-orientation label{position:relative;width:7em;cursor:pointer}.ol-ext-print-dialog .ol-orientation input{position:absolute;opacity:0;width:0;height:0}.ol-ext-print-dialog .ol-orientation span{position:relative;width:80%;display:block;padding:3.5em 0 .2em}.ol-ext-print-dialog .ol-orientation span:before{content:"";position:absolute;width:2em;height:2.6em;bottom:1.5em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);color:#333;background-color:currentColor;border:1px solid currentColor;border-radius:0 1em 0 0;opacity:.5;overflow:hidden;-webkit-box-shadow:inset 1.3em -1.91em #ddd;box-shadow:inset 1.3em -1.91em #ddd}.ol-ext-print-dialog .ol-orientation .landscape span:before{width:2.6em;height:2em;margin:.2em 0;-webkit-box-shadow:inset 1.91em -1.3em #ddd;box-shadow:inset 1.91em -1.3em #ddd}.ol-ext-print-dialog .ol-orientation input:checked+span{opacity:1;-webkit-box-shadow:0 0 .2em rgba(0,0,0,.5);box-shadow:0 0 .2em #00000080}.ol-ext-print-dialog .ol-ext-toggle-switch span{position:absolute;right:-2em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-print-title input[type=text]{margin-top:.5em;width:calc(100% - 6em);margin-left:6em}.ol-ext-print-dialog .ol-size option:first-child{font-style:italic}.ol-ext-print-dialog .ol-saveas,.ol-ext-print-dialog .ol-savelegend{text-align:center}.ol-ext-print-dialog .ol-saveas select,.ol-ext-print-dialog .ol-savelegend select{background-color:#003c88b3;color:#fff;padding:.5em;margin:1em 0 0;font-size:1em;border:0;font-weight:700;max-width:12em}.ol-ext-print-dialog .ol-saveas select option,.ol-ext-print-dialog .ol-savelegend select option{background-color:#fff;color:#666}.ol-ext-print-dialog .ol-savelegend select{margin-top:0}.ol-ext-print-dialog .ol-ext-buttons{text-align:right;border-top:1px solid #ccc;padding:.8em .5em;margin:0 -1em}.ol-ext-print-dialog button{font-size:1em;margin:0 .2em;border:1px solid #999;background:none;padding:.3em 1em;color:#333}.ol-ext-print-dialog button[type=submit]{background-color:#003c88b3;color:#fff;font-weight:700}.ol-ext-print-dialog .ol-clipboard-copy{position:absolute;pointer-events:none;top:0;background-color:#00000080;color:#fff;padding:.5em 1em;border-radius:1em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-transition:0s;transition:0s;opacity:0}.ol-ext-print-dialog .ol-clipboard-copy.visible{-webkit-animation:1s ol-clipboard-copy;animation:1s ol-clipboard-copy}.ol-ext-print-dialog .ol-print-map .ol-control.ol-canvas-control,.ol-ext-print-dialog .ol-print-map .ol-control.ol-print-compass{display:block!important}.ol-ext-print-dialog .ol-print-map .ol-control.olext-print-compass{top:0;right:0;width:60px;height:60px;margin:20px}@-webkit-keyframes ol-clipboard-copy{0%{opacity:0;top:0}80%{opacity:1;top:-3em}to{opacity:0;top:-3em}}@keyframes ol-clipboard-copy{0%{opacity:0;top:0}80%{opacity:1;top:-3em}to{opacity:0;top:-3em}}@media print{body.ol-print-document{margin:0!important;padding:0!important}body.ol-print-document>*{display:none!important}body.ol-print-document>.ol-ext-print-dialog{display:block!important}.ol-ext-print-dialog>form,.ol-ext-print-dialog{position:unset;-webkit-box-shadow:none;box-shadow:none;background:none!important;border:0}.ol-ext-print-dialog>form>*,.ol-ext-print-dialog .ol-print-param{display:none!important;background:none}.ol-ext-print-dialog .ol-content{display:block!important;border:0;background:none}.ol-ext-print-dialog .ol-print-map{position:unset;background:none;width:auto;overflow:visible}.ol-ext-print-dialog .ol-print-map .ol-page{-webkit-transform:none!important;transform:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;position:unset}}@media (max-width: 25em){.ol-ext-print-dialog .ol-print-param{width:13em}.ol-ext-print-dialog .ol-print-map{width:calc(100% - 13em)}.ol-ext-print-dialog .ol-print-param .ol-print-title input[type=text]{width:100%;margin:0}}.ol-profil{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-control.ol-profil{position:absolute;top:.5em;right:3em;text-align:right;overflow:hidden}.ol-profil .ol-zoom-out{position:absolute;top:10px;right:10px;width:1em;height:1em;padding:0;border:1px solid #000;border-radius:2px;cursor:pointer}.ol-profil .ol-zoom-out:before{content:"";height:2px;width:60%;background:currentColor;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-profil .ol-inner{position:relative;padding:.5em;font-size:.8em}.ol-control.ol-profil .ol-inner{display:block;background-color:#ffffffb3;margin:2.3em 2px 2px}.ol-control.ol-profil.ol-collapsed .ol-inner{display:none}.ol-profil canvas{display:block}.ol-profil button{display:block;position:absolute;right:2px;background-position:center;background-repeat:no-repeat;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAPCAYAAAALWoRrAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AgXCR4dn7j9TAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAz0lEQVQ4y7WTMU4CURRFz0xIpLUBEhdAY2tJYW1jaWlsXYVxDWyBhWCFCYugYgnDFPMOhTMJGf3AwHiqn/uTk5v/3gfAH6b0RH7sMiIe1Ts162z+q2lVVbd1XqijLuJk0zzP1/VxCGyApLgsy+HJphGx8DeFOm6L1bn6eVQaEW+m2amTRqx+1fkqKY2Ie0+zUx/U7WGYfNMsy57PmMMN8A1MWsWeUoPyivV8PWtPOzL7D+lYHfUtBXgHGLTCJfBxodD6k9Dsm8BLE17LobQ39nJC61aLVoVsAAAAAElFTkSuQmCC)}.ol-profil.ol-collapsed button{position:static}.ol-profil .ol-profilbar,.ol-profil .ol-profilcursor{position:absolute;pointer-events:none;width:1px;display:none}.ol-profil .ol-profilcursor{width:0;height:0}.ol-profil .ol-profilcursor:before{content:"";pointer-events:none;display:block;margin:-2px;width:5px;height:5px}.ol-profil .ol-profilbar,.ol-profil .ol-profilcursor:before{background:red}.ol-profil table{text-align:center;width:100%}.ol-profil table span{display:block}.ol-profilpopup{background-color:#ffffff80;margin:.5em;padding:0 .5em;position:absolute;top:-1em;white-space:nowrap}.ol-profilpopup.ol-left{right:0}.ol-profil table td{padding:0 2px}.ol-profil table .track-info{display:table-row}.ol-profil table .point-info,.ol-profil .over table .track-info{display:none}.ol-profil .over table .point-info{display:table-row}.ol-profil p{text-align:center;margin:0}.ol-control.ol-progress-bar{position:absolute;top:0;bottom:0;left:0;right:0;padding:0;pointer-events:none!important;background-color:transparent}.ol-control.ol-progress-bar>.ol-bar{position:absolute;background-color:#003c8880;left:0;bottom:0;height:.5em;width:0;-webkit-transition:width .2s;transition:width .2s;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-progress-bar>.ol-waiting{display:none}.ol-viewport .ol-control.ol-progress-bar>.ol-waiting{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff;font-size:2em;display:block;-webkit-animation:1s linear infinite ol-progress-bar-blink;animation:1s linear infinite ol-progress-bar-blink}@-webkit-keyframes ol-progress-bar-blink{0%,30%{visibility:hidden}to{visibility:visible}}@keyframes ol-progress-bar-blink{0%,30%{visibility:hidden}to{visibility:visible}}.ol-control.ol-routing{top:.5em;left:3em;max-height:90%;overflow-y:auto}.ol-touch .ol-control.ol-routing{left:3.5em}.ol-control.ol-routing.ol-searching{opacity:.5}.ol-control.ol-routing .ol-car,.ol-control.ol-routing>button{position:relative}.ol-control.ol-routing .ol-car:after,.ol-control.ol-routing>button:after{content:"";position:absolute;width:.78em;height:.6em;border-radius:40% 50% 0 0/50% 70% 0 0;-webkit-box-shadow:inset 0 0 0 .065em,-.35em .14em 0 -.09em,inset 0 -.37em,inset -.14em .005em;box-shadow:inset 0 0 0 .065em,-.35em .14em 0 -.09em,inset 0 -.37em,inset -.14em .005em;clip:rect(0 1em .5em -1em);top:.35em;left:.4em}.ol-control.ol-routing .ol-car:before,.ol-control.ol-routing>button:before{content:"";position:absolute;width:.28em;height:.28em;border-radius:50%;-webkit-box-shadow:inset 0 0 0 1em,.65em 0;box-shadow:inset 0 0 0 1em,.65em 0;top:.73em;left:.2em}.ol-control.ol-routing .ol-pedestrian:after{content:"";position:absolute;width:.3em;height:.4em;top:.25em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset .3em 0,.1em .5em 0 -.1em,-.1em .5em 0 -.1em,.25em .1em 0 -.1em,-.25em .1em 0 -.1em;box-shadow:inset .3em 0,.1em .5em 0 -.1em,-.1em .5em 0 -.1em,.25em .1em 0 -.1em,-.25em .1em 0 -.1em;border-top:.2em solid transparent}.ol-control.ol-routing .ol-pedestrian:before{content:"";position:absolute;width:.3em;height:.3em;top:.1em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);border-radius:50%;background-color:currentColor}.ol-control.ol-routing.ol-collapsed .content,.ol-routing .ol-search.ol-collapsed ul,.ol-routing .ol-search ul .copy{display:none}.ol-routing .content .search-input>div>*{display:inline-block;vertical-align:top}.ol-routing .ol-result ul{list-style:none;display:block}.ol-routing .ol-result li{position:relative;min-height:1.65em}.ol-routing .ol-result li i{display:block;font-size:.8em;font-weight:700}.ol-routing .ol-result li:before{content:"";border:5px solid transparent;position:absolute;left:-1.75em;border-bottom-color:#369;border-width:.6em .4em .6em;-webkit-transform-origin:50% 125%;transform-origin:50% 125%;-webkit-box-shadow:0 .65em 0 -.25em #369;box-shadow:0 .65em 0 -.25em #369;top:-.8em}.ol-routing .ol-result li:after{content:"";position:absolute;width:.3em;height:.6em;left:-1.5em;background:#369;top:.6em}.ol-routing .ol-result li.R:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ol-routing .ol-result li.FR:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ol-routing .ol-result li.L:before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.ol-routing .ol-result li.FL:before{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ol-routing .content>i{vertical-align:middle;margin:0 .3em 0 .1em;font-style:normal}.ol-routing .ol-button,.ol-routing .ol-button:focus,.ol-routing .ol-pedestrian,.ol-routing .ol-car{font-size:1.1em;position:relative;display:inline-block;width:1.4em;height:1.4em;color:#003c88;background-color:transparent;margin:0 .1em;opacity:.5;vertical-align:middle;outline:none;cursor:pointer}.ol-routing .ol-button:hover,.ol-routing .ol-button.selected,.ol-routing i.selected{opacity:1;background:transparent}.ol-control.ol-routing:hover{background-color:#ffffffd9}.search-input>div>button:before{content:"\b1"}.ol-viewport .ol-scale{left:.5em;bottom:2.5em;text-align:center;-webkit-transform:scaleX(.8);-webkit-transform-origin:0 0;transform:scaleX(.8);transform-origin:0 0}.ol-viewport .ol-scale input{background:none;border:0;width:8em;text-align:center}.ol-search{top:.5em;left:3em}.ol-touch .ol-search{left:3.5em}.ol-search button{top:2px;left:2px;float:left}.ol-control.ol-search>button:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:.7em;height:.7em;background-color:transparent;border:.12em solid currentColor;border-radius:100%;top:.35em;left:.35em}.ol-control.ol-search>button:after{content:"";position:absolute;top:1.1em;left:.95em;width:.45em;height:.15em;background-color:currentColor;border-radius:.05em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.18em 0 0 -.03em;box-shadow:-.18em 0 0 -.03em}.ol-search button.ol-revers{float:none;background-image:none;display:inline-block;vertical-align:bottom;position:relative;top:0;left:0}.ol-search.ol-revers button.ol-revers{background-color:#00883c80}.ol-control.ol-search.ol-collapsed button.ol-revers{display:none}.ol-search button.ol-revers:before{content:"";border:.1em solid currentColor;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:50%;width:.55em;height:.55em;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-search button.ol-revers:after{content:"";position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:.2em;height:.2em;background-color:transparent;-webkit-box-shadow:.35em 0 currentColor,0 .35em currentColor,-.35em 0 currentColor,0 -.35em currentColor;box-shadow:.35em 0 currentColor,0 .35em currentColor,-.35em 0 currentColor,0 -.35em currentColor}.ol-search input{display:inline-block;border:0;margin:1px 1px 1px 2px;font-size:1.14em;padding-left:.3em;height:1.375em;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .1s;transition:all .1s}.ol-touch .ol-search input,.ol-touch .ol-search ul{font-size:1.5em}.ol-search.ol-revers>ul,.ol-control.ol-search.ol-collapsed>*{display:none}.ol-control.ol-search.ol-collapsed>button{display:block}.ol-search ul{list-style:none;padding:0;margin:0;display:block;clear:both;cursor:pointer;max-width:17em;overflow-x:hidden;z-index:1;background:#fff}.ol-search ul li{padding:.1em .5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ol-search ul li.select,.ol-search ul li:hover{background-color:#003c8880;color:#fff}.ol-search ul li img{float:left;max-height:2em}.ol-search li.copy{background:rgba(0,0,0,.5);color:#fff}.ol-search li.copy a{color:#fff;text-decoration:none}.ol-search.searching:before{content:"";position:absolute;height:3px;left:0;top:1.6em;-webkit-animation:pulse .5s infinite alternate linear;animation:pulse .5s infinite alternate linear;background:red;z-index:2}@-webkit-keyframes pulse{0%{left:0;right:95%}50%{left:30%;right:30%}to{left:95%;right:0}}@keyframes pulse{0%{left:0;right:95%}50%{left:30%;right:30%}to{left:95%;right:0}}.ol-search.IGNF-parcelle input{width:13.5em}.ol-search.IGNF-parcelle input:-moz-read-only{background:#ccc;opacity:.8}.ol-search.IGNF-parcelle input:read-only{background:#ccc;opacity:.8}.ol-search.IGNF-parcelle.ol-collapsed-list>ul.autocomplete{display:none}.ol-search.IGNF-parcelle label{display:block;clear:both}.ol-search.IGNF-parcelle>div input,.ol-search.IGNF-parcelle>div label{width:5em;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;margin:.1em;font-size:1em}.ol-search.IGNF-parcelle ul.autocomplete-page{margin-top:.5em;width:100%;text-align:center;display:none}.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-parcelle,.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-page{display:block}.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-page,.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-parcelle,.ol-search.IGNF-parcelle ul.autocomplete-parcelle{display:none}.ol-search.IGNF-parcelle ul.autocomplete-page li{display:inline-block;color:#fff;background:rgba(0,60,136,.5);border-radius:50%;width:1.3em;height:1.3em;padding:.1em;margin:0 .1em}.ol-search.IGNF-parcelle ul.autocomplete-page li.selected{background:rgba(0,60,136,1)}.ol-searchgps input.search{display:none}.ol-control.ol-searchgps>button:first-child{background-image:none}.ol-control.ol-searchgps>button:first-child:before{content:"x/y";position:unset;display:block;-webkit-transform:scaleX(.8);transform:scaleX(.8);border:unset;border-radius:0;width:auto;height:auto}.ol-control.ol-searchgps>button:first-child:after{content:unset}.ol-control.ol-searchgps .ol-latitude,.ol-control.ol-searchgps .ol-longitude{clear:both}.ol-control.ol-searchgps .ol-latitude label,.ol-control.ol-searchgps .ol-longitude label{width:5.5em;display:inline-block;text-align:right;-webkit-transform:scaleX(.8);transform:scaleX(.8);margin:0 -.8em 0 0;-webkit-transform-origin:0 0;transform-origin:0 0}.ol-control.ol-searchgps .ol-latitude input,.ol-control.ol-searchgps .ol-longitude input{max-width:10em}.ol-control.ol-searchgps .ol-ext-toggle-switch{cursor:pointer;float:right;margin:.5em;font-size:.9em}.ol-searchgps .ol-decimal{display:inline-block;margin-right:.7em}.ol-searchgps .ol-dms,.ol-searchgps.ol-dms .ol-decimal{display:none;width:3em;text-align:right}.ol-searchgps.ol-dms .ol-dms{display:inline-block}.ol-searchgps span.ol-dms{width:.5em;text-align:left}.ol-searchgps.ol-control.ol-collapsed button.ol-geoloc{display:none}.ol-searchgps button.ol-geoloc{top:0;float:right;margin-right:3px;background-image:none;position:relative}.ol-searchgps button.ol-geoloc:before{content:"";position:absolute;left:50%;top:50%;width:.6em;height:.6em;border:.1em solid currentColor;border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-searchgps button.ol-geoloc:after{content:"";position:absolute;left:50%;top:50%;width:.2em;height:.2em;background-color:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:.45em 0 currentColor,-.45em 0 currentColor,0 -.45em currentColor,0 .45em currentColor,.25em 0 currentColor,-.25em 0 currentColor,0 -.25em currentColor,0 .25em currentColor;box-shadow:.45em 0 currentColor,-.45em 0 currentColor,0 -.45em currentColor,0 .45em currentColor,.25em 0 currentColor,-.25em 0 currentColor,0 -.25em currentColor,0 .25em currentColor}.ol-control.ol-select{top:.5em;left:3em}.ol-touch .ol-control.ol-select{left:3.5em}.ol-control.ol-select>button:before{content:"A";font-size:.6em;font-weight:400;position:absolute;-webkit-box-sizing:content-box;box-sizing:content-box;width:1em;height:1em;background-color:transparent;border:.2em solid currentColor;border-radius:100%;top:.5em;left:.5em;line-height:1em;text-align:center}.ol-control.ol-select>button:after{content:"";position:absolute;top:1.15em;left:1em;width:.45em;height:.15em;background-color:currentColor;border-radius:.05em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.18em 0 0 -.03em;box-shadow:-.18em 0 0 -.03em}.ol-select>div button{width:auto;padding:0 .5em;float:right;font-weight:400}.ol-select .ol-delete{width:1.5em;height:1em;vertical-align:middle;display:inline-block;position:relative;cursor:pointer}.ol-select .ol-delete:before{content:"\d7";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%;text-align:center;font-weight:700}.ol-control.ol-select input{font-size:1em}.ol-control.ol-select select{font-size:1em;max-width:10em}.ol-control.ol-select select option.ol-default{color:#999;font-style:italic}.ol-control.ol-select>div{display:block}.ol-control.ol-select.ol-collapsed>div{display:none}.ol-control.ol-select.ol-select-check{max-width:20em}.ol-control.ol-select label.ol-ext-check{margin-right:1em}.ol-control.ol-select label.ol-ext-toggle-switch span{font-size:1.1em}.ol-select ul{list-style:none;margin:0;padding:0}.ol-control.ol-select input[type=search],.ol-control.ol-select input[type=text]{width:8em}.ol-select .ol-autocomplete{display:inline}.ol-select .ol-autocomplete ul{position:absolute;display:block;background:#fff;border:1px solid #999;min-width:10em;font-size:.85em}.ol-select .ol-autocomplete ul li{padding:0 .5em}.ol-select .ol-autocomplete ul li:hover{color:#fff;background:rgba(0,60,136,.5)}.ol-select ul.ol-hidden{display:none}.ol-select-multi li>div:hover,.ol-select-multi li>div.ol-control.ol-select{position:relative;top:unset;left:unset;background:transparent}.ol-select-multi li>div>button,.ol-select-multi li>div .ol-ok{display:none}.ol-select-multi li .ol-control.ol-select.ol-collapsed>div,.ol-select-multi li>div>div{display:block}.ol-control.ol-status{top:0;left:0;background:rgba(0,0,0,.2);color:#fff;font-size:.9em;padding:.3em 3em;border-radius:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none!important;display:none}.ol-control.ol-status.ol-visible{display:initial}.ol-control.ol-status.ol-bottom{top:auto;bottom:0}.ol-control.ol-status.ol-left{top:0;bottom:0;padding:.3em .5em .3em 3em;width:auto}.ol-control.ol-status.ol-right{top:0;bottom:0;left:auto;right:0;padding:.3em 3em .3em .5em;width:auto}.ol-control.ol-status.ol-center{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-control.ol-storymap{top:.5em;left:.5em;bottom:.5em;max-width:35%;border-radius:.5em;position:absolute;height:auto}.ol-storymap{overflow:hidden;padding:0;height:100%;position:relative}.ol-storymap>div{overflow:hidden;padding:0;height:100%;position:relative;scroll-behavior:smooth;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-storymap>div.ol-move{scroll-behavior:unset}.ol-control.ol-storymap .chapter{padding:.5em}.ol-storymap .chapter{cursor:pointer;opacity:.4}.ol-storymap .chapter.ol-select{cursor:default;opacity:1}.ol-storymap .ol-scroll-top,.ol-storymap .ol-scroll-next{position:relative;min-height:1.7em;color:#003c8880;text-align:center;cursor:pointer}.ol-storymap .ol-scroll-next span{padding-bottom:1.4em;display:block}.ol-storymap .ol-scroll-top span{padding-top:1.4em;display:block}.ol-storymap .ol-scroll-top:before,.ol-storymap .ol-scroll-next:before{content:"";border:.3em solid currentColor;border-radius:.3em;border-color:transparent currentColor currentColor transparent;width:.8em;height:.8em;display:block;position:absolute;left:50%;-webkit-transform:translateX(-50%) rotate(45deg);transform:translate(-50%) rotate(45deg);-webkit-animation:ol-bounce-bottom .35s linear infinite alternate;animation:ol-bounce-bottom .35s linear infinite alternate;pointer-events:none}.ol-storymap .ol-scroll-top:before{border-color:currentColor transparent transparent currentColor;-webkit-animation:ol-bounce-top .35s linear infinite alternate;animation:ol-bounce-top .35s linear infinite alternate}@-webkit-keyframes ol-bounce-top{0%{top:-.2em}to{top:.5em}}@keyframes ol-bounce-top{0%{top:-.2em}to{top:.5em}}@-webkit-keyframes ol-bounce-bottom{0%{bottom:-.2em}to{bottom:.5em}}@keyframes ol-bounce-bottom{0%{bottom:-.2em}to{bottom:.5em}}.ol-storymap img[data-title]{cursor:pointer}.ol-swipe{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-ms-touch-action:none;touch-action:none}.ol-swipe:before{content:"";position:absolute;top:-5000px;bottom:-5000px;left:50%;width:4px;background:#fff;z-index:-1;-webkit-transform:translate(-2px,0);transform:translate(-2px)}.ol-swipe.horizontal:before{left:-5000px;right:-5000px;top:50%;bottom:auto;width:auto;height:4px}.ol-swipe,.ol-swipe button{cursor:ew-resize}.ol-swipe.horizontal,.ol-swipe.horizontal button{cursor:ns-resize}.ol-swipe:after,.ol-swipe button:before,.ol-swipe button:after{content:"";position:absolute;top:25%;bottom:25%;left:50%;width:2px;background:rgba(255,255,255,.8);transform:translate(-1px);-webkit-transform:translate(-1px,0)}.ol-swipe button:after{transform:translate(5px);-webkit-transform:translateX(5px)}.ol-swipe button:before{transform:translate(-7px);-webkit-transform:translateX(-7px)}.ol-control.ol-timeline{bottom:0;left:0;right:0;-webkit-transition:.3s;transition:.3s}.ol-control.ol-timeline.ol-collapsed{-webkit-transform:translateY(100%);transform:translateY(100%)}.ol-timeline{overflow:hidden;padding:2px 0 0}.ol-timeline .ol-scroll{overflow:hidden;scroll-behavior:smooth;line-height:1em;height:6em;padding:0 50%}.ol-timeline .ol-scroll.ol-move{scroll-behavior:unset}.ol-timeline.ol-hasbutton .ol-scroll{margin-left:1.5em;padding:0 calc(50% - .75em)}.ol-timeline .ol-buttons{display:none;position:absolute;top:0;background:rgba(255,255,255,.5);width:1.5em;bottom:0;left:0;z-index:10}.ol-timeline.ol-hasbutton .ol-buttons{display:block}.ol-timeline .ol-buttons button{font-size:1em;margin:1px;position:relative}.ol-timeline .ol-buttons .ol-zoom-in:before,.ol-timeline .ol-buttons .ol-zoom-out:before{content:"+";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-timeline .ol-buttons .ol-zoom-out:before{content:"\2212"}.ol-timeline .ol-scroll>div{height:100%;position:relative}.ol-timeline .ol-scroll .ol-times{background:rgba(255,255,255,.5);height:1em;bottom:0;position:absolute;left:-1000px;right:-1000px}.ol-timeline .ol-scroll .ol-time{position:absolute;font-size:.7em;color:#999;bottom:0;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-timeline .ol-scroll .ol-time.ol-year{color:#666;z-index:1}.ol-timeline .ol-scroll .ol-time:before{content:"";position:absolute;bottom:1.2em;left:50%;height:500px;border-left:1px solid currentColor}.ol-timeline .ol-scroll .ol-features{position:absolute;top:0;bottom:1em;left:-200px;right:-1000px;margin:0 0 0 200px;overflow:hidden}.ol-timeline .ol-scroll .ol-feature{position:absolute;font-size:.7em;color:#999;top:0;background:#fff;max-width:3em;max-height:2.4em;min-height:1em;line-height:1.2em;border:1px solid #ccc;overflow:hidden;padding:0 .5em 0 0;-webkit-transition:all .3s;transition:all .3s;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-timeline.ol-zoomhover .ol-scroll .ol-feature:hover,.ol-timeline.ol-zoomhover .ol-scroll .ol-feature.ol-select{z-index:1;-webkit-transform:scale(1.2);transform:scale(1.2);background:#eee}.ol-timeline .ol-center-date{display:none;position:absolute;left:50%;height:100%;width:2px;bottom:0;z-index:2;pointer-events:none;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:red;opacity:.4}.ol-timeline.ol-hasbutton .ol-center-date{left:calc(50% + .75em)}.ol-timeline.ol-pointer .ol-center-date{display:block}.ol-timeline.ol-pointer .ol-center-date:before,.ol-timeline.ol-pointer .ol-center-date:after{content:"";border:.3em solid transparent;border-width:.3em .25em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-timeline.ol-pointer .ol-center-date:before{border-top-color:red;top:0}.ol-timeline.ol-pointer .ol-center-date:after{border-bottom-color:red;bottom:0}.ol-timeline.ol-interval .ol-center-date{display:block;background-color:transparent;border:0 solid #000;border-width:0 10000px;-webkit-box-sizing:content-box;box-sizing:content-box;opacity:.2}.ol-control.ol-videorec{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);white-space:nowrap}.ol-control.ol-videorec button{position:relative;display:inline-block;vertical-align:middle}.ol-control.ol-videorec button:before{content:"";position:absolute;top:50%;left:50%;width:.8em;height:.8em;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:currentColor}.ol-control.ol-videorec button.ol-start:before{width:.9em;height:.9em;border-radius:50%;background-color:#c00}.ol-control.ol-videorec button.ol-pause:before{width:.2em;background-color:transparent;-webkit-box-shadow:-.2em 0,.2em 0;box-shadow:-.2em 0,.2em 0}.ol-control.ol-videorec button.ol-resume:before{border-style:solid;background:transparent;width:auto;border-width:.4em 0 .4em .6em;border-color:transparent transparent transparent currentColor;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-videorec button.ol-stop,.ol-control.ol-videorec button.ol-pause,.ol-control.ol-videorec button.ol-resume,.ol-control.ol-videorec[data-state=rec] .ol-start,.ol-control.ol-videorec[data-state=pause] .ol-start{display:none}.ol-control.ol-videorec[data-state=rec] .ol-stop,.ol-control.ol-videorec[data-state=pause] .ol-stop,.ol-control.ol-videorec[data-state=rec] .ol-pause,.ol-control.ol-videorec[data-state=pause] .ol-resume{display:inline-block}.ol-control.ol-wmscapabilities{top:.5em;right:2.5em}.ol-touch .ol-control.ol-wmscapabilities{right:3em}.ol-control.ol-wmscapabilities.ol-hidden{display:none}.ol-control.ol-wmscapabilities button:before{content:"+";position:absolute;top:calc(50% - .35em);left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-control.ol-wmscapabilities button:after{content:"";width:.75em;height:.75em;position:absolute;background:transparent;top:calc(50% - .05em);left:50%;-webkit-transform:scaleY(.6) translate(-50%,-50%) rotate(45deg);transform:scaleY(.6) translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:inset -.18em -.18em currentColor,-.4em .1em 0 -.25em currentColor,.1em -.35em 0 -.25em currentColor,.15em .15em currentColor;box-shadow:inset -.18em -.18em currentColor,-.4em .1em 0 -.25em currentColor,.1em -.35em 0 -.25em currentColor,.15em .15em currentColor;border-radius:.1em 0;border:.15em solid transparent;border-width:0 .15em .15em 0}.ol-wmscapabilities .ol-searching{opacity:.5}.ol-wmscapabilities .ol-searching .ol-url:after{content:"";width:.7em;height:.7em;background-color:currentColor;position:absolute;top:6em;border-radius:50%;display:block;left:calc(50% - .35em);-webkit-box-shadow:0 1em currentColor,0 -1em currentColor,1em 0 currentColor,-1em 0 currentColor;box-shadow:0 1em currentColor,0 -1em currentColor,1em 0 currentColor,-1em 0 currentColor;-webkit-animation:ol-wmscapabilities-rotate 2s linear infinite;animation:ol-wmscapabilities-rotate 2s linear infinite}@-webkit-keyframes ol-wmscapabilities-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ol-wmscapabilities-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ol-wmscapabilities .ol-url input{width:calc(100% - 10em);-webkit-box-sizing:border-box;box-sizing:border-box;min-width:Min(100%,20em)}.ol-wmscapabilities .ol-url select{width:2em;height:100%;padding:1px}.ol-wmscapabilities .ol-url button{width:7.5em;margin-left:.5em}.ol-wmscapabilities .ol-result{display:none;margin-top:.5em}.ol-wmscapabilities .ol-result.ol-visible{display:block}.ol-wmscapabilities .ol-select-list{position:relative;border:1px solid #369;overflow-x:hidden;width:calc(100% - 120px);-webkit-box-sizing:border-box;box-sizing:border-box;max-height:14.5em}.ol-wmscapabilities .ol-select-list div{padding:0 .5em;cursor:pointer;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden}.ol-wmscapabilities .ol-select-list .level-1{padding-left:1em}.ol-wmscapabilities .ol-select-list .level-2{padding-left:1.5em}.ol-wmscapabilities .ol-select-list .level-3{padding-left:2em}.ol-wmscapabilities .ol-select-list .level-4{padding-left:2.5em}.ol-wmscapabilities .ol-select-list .level-5{padding-left:3em}.ol-wmscapabilities .ol-select-list .ol-info{font-style:italic}.ol-wmscapabilities .ol-select-list .ol-title{background-color:#003c881a}.ol-wmscapabilities .ol-select-list div:hover{background-color:#003c8880;color:#fff}.ol-wmscapabilities .ol-select-list div.selected{background-color:#003c88b3;color:#fff}.ol-wmscapabilities .ol-preview{width:100px;float:right;background:rgba(0,60,136,.1);color:#666;padding:0 5px 5px;text-align:center;margin-left:10px}.ol-wmscapabilities .ol-preview.tainted{width:100px;float:right;background:rgba(136,0,60,.1);color:#666;padding:0 5px 5px;text-align:center;margin-left:10px}.ol-wmscapabilities .ol-preview img{width:100%;display:block;background:#fff}.ol-wmscapabilities .ol-legend{max-width:100%;display:none}.ol-wmscapabilities .ol-legend.visible{display:block}.ol-wmscapabilities .ol-buttons{clear:both;text-align:right}.ol-wmscapabilities .ol-data p{margin:0}.ol-wmscapabilities .ol-data p.ol-title{font-weight:700;margin:1em 0 .5em}.ol-wmscapabilities .ol-error{color:#800}.ol-wmscapabilities ul.ol-wmsform{display:none;list-style:none;padding:0}.ol-wmscapabilities ul.ol-wmsform.visible{display:block}.ol-wmscapabilities .ol-wmsform label{display:inline-block;text-align:right;width:calc(40% - .5em);margin-right:.5em}.ol-wmscapabilities .ol-wmsform input{display:inline-block;width:60%;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-wmscapabilities .ol-wmsform input[type=checkbox]{width:auto}.ol-wmscapabilities .ol-wmsform button{float:right;margin:1em 0}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] input{width:calc(60% - 2em)}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button{position:relative;width:2em;height:1.6em;margin:0;vertical-align:middle;color:#444}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:before,.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:after{content:"";position:absolute;width:.25em;height:.9em;border:.1em solid currentColor;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) skewY(-15deg);transform:translate(-50%,-50%) skewY(-15deg)}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:after{-webkit-transform:translateX(.4em) translate(-50%,-50%) skewY(15deg);transform:translate(.4em) translate(-50%,-50%) skewY(15deg);-webkit-box-shadow:-.8em .25em;box-shadow:-.8em .25em}.ol-ext-dialog.ol-wmscapabilities form{max-height:calc(85% - 1em);width:600px;min-height:15em;top:15%;-webkit-transform:translate(-50%,0);transform:translate(-50%)}.ol-ext-dialog.ol-wmtscapabilities [data-param=map],.ol-ext-dialog [data-param=style]{display:none}.ol-ext-dialog.ol-wmtscapabilities [data-param=style]{display:list-item}.ol-ext-dialog.ol-wmtscapabilities [data-param=proj],.ol-ext-dialog.ol-wmtscapabilities [data-param=version]{opacity:.6;pointer-events:none}.ol-ext-dialog.ol-wmscapabilities button.ol-wmsform{width:1.8em;text-align:center}.ol-ext-dialog.ol-wmscapabilities button.ol-wmsform:before{content:"+"}.ol-ext-dialog.ol-wmscapabilities .ol-form button.ol-wmsform:before{content:"-"}.ol-ext-dialog.ol-wmscapabilities .ol-form button.ol-load,.ol-ext-dialog.ol-wmscapabilities .ol-form .ol-legend{display:none}.ol-ext-dialog.ol-wmscapabilities .ol-form ul.ol-wmsform{display:block;clear:both}.ol-target-overlay .ol-target{border:1px solid transparent;-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff;display:block;height:20px;width:0}.ol-target-overlay .ol-target:after,.ol-target-overlay .ol-target:before{content:"";border:1px solid #369;-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff;display:block;width:20px;height:0;position:absolute;top:10px;left:-10px}.ol-target-overlay .ol-target:after{-webkit-box-shadow:none;box-shadow:none;height:20px;width:0;top:0px;left:0px}.ol-overlaycontainer .ol-touch-cursor{width:56px;height:56px;margin:6px;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.4);-webkit-box-shadow:inset 0 0 0 5px #369;box-shadow:inset 0 0 0 5px #369}.ol-overlaycontainer .ol-touch-cursor:after{content:"";position:absolute;top:0;left:0;width:50%;height:50%;background:radial-gradient(circle at 100% 100%,transparent,transparent 70%,#369 70%,#369)}.ol-overlaycontainer .ol-touch-cursor .ol-button{position:absolute;color:#369;height:55%;width:55%;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.4);-webkit-box-shadow:inset 0 0 0 3px currentColor;box-shadow:inset 0 0 0 3px currentColor;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);-webkit-transition:all .5s,opacity 0s,background 0s;transition:all .5s,opacity 0s,background 0s;overflow:hidden}.ol-overlaycontainer .ol-touch-cursor.active.disable .ol-button{opacity:.8;background:rgba(51,102,153,.2)}.ol-overlaycontainer .ol-touch-cursor.active .ol-button{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-0{top:-18%;left:118%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-1{top:50%;left:140%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-2{top:120%;left:120%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-3{top:140%;left:50%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-4{top:118%;left:-18%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-5{top:50%;left:-40%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-6{top:-18%;left:-18%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-7{top:-40%;left:50%}.ol-overlaycontainer .ol-touch-cursor .ol-button:before{content:"";width:1.5em;height:1em;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:1em;text-align:center}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-add:before,.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-remove:before{content:"\2212";line-height:.95em;font-size:1.375em;font-weight:700}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-add:before{content:"+"}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-x:before{content:"\d7";font-size:1.2em;font-weight:700}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-move:before{content:"\2725";font-size:1.2em}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-check:before{content:"\2713";font-weight:700}.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-x,.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-remove,.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-check{opacity:.8;background:rgba(51,102,153,.2)}.ol-overlaycontainer .ol-touch-cursor .ol-button>div{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlaycontainer .ol-touch-cursor .ol-button-type:before{content:"\21ce";font-weight:700}.mapboxgl-canvas:focus{outline:none}.ol-perspective-map{position:absolute;left:50%;top:50%;width:200%;height:200%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-perspective-map .ol-layer{z-index:-1!important}.ol-perspective-map .ol-layers{-webkit-transform:translateY(0) perspective(200px) rotateX(0deg) scaleY(1);transform:translateY(0) perspective(200px) rotateX(0) scaleY(1)}.ol-perspective-map .ol-overlaycontainer,.ol-perspective-map .ol-overlaycontainer-stopevent{width:50%!important;height:50%!important;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlay-container .ol-magnify{background:rgba(0,0,0,.5);border:3px solid #369;border-radius:50%;height:150px;width:150px;overflow:hidden;-webkit-box-shadow:5px 5px 5px rgba(0,0,0,.5);box-shadow:5px 5px 5px #00000080;position:relative;z-index:0}.ol-overlay-container .ol-magnify:before{border-radius:50%;-webkit-box-shadow:0 0 40px 2px rgba(0,0,0,.25) inset;box-shadow:0 0 40px 2px #00000040 inset;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ol-overlay-container .ol-magnify:after{border-radius:50%;-webkit-box-shadow:0 0 20px 7px rgba(255,255,255,1);box-shadow:0 0 20px 7px #fff;content:"";display:block;height:0;left:23%;position:absolute;top:20%;width:20%;z-index:1;transform:rotate(-40deg);-webkit-transform:rotate(-40deg)}.ol-popup.anim{visibility:hidden}.ol-popup.anim.visible{visibility:visible}.ol-popup.anim.visible>div{visibility:visible;-webkit-transform:none;transform:none;-webkit-animation:ol-popup_bounce .4s ease 1;animation:ol-popup_bounce .4s ease 1}@-webkit-keyframes ol-popup_bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes ol-popup_bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}.ol-popup.anim.ol-popup-bottom.ol-popup-left>div{-webkit-transform-origin:0 100%;transform-origin:0 100%}.ol-popup.anim.ol-popup-bottom.ol-popup-right>div{-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.ol-popup.anim.ol-popup-bottom.ol-popup-center>div{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.ol-popup.anim.ol-popup-top.ol-popup-left>div{-webkit-transform-origin:0 0;transform-origin:0 0}.ol-popup.anim.ol-popup-top.ol-popup-right>div{-webkit-transform-origin:100% 0;transform-origin:100% 0}.ol-popup.anim.ol-popup-top.ol-popup-center>div{-webkit-transform-origin:50% 0;transform-origin:50% 0}.ol-popup.anim.ol-popup-middle.ol-popup-left>div{-webkit-transform-origin:0 50%;transform-origin:0 50%}.ol-popup.anim.ol-popup-middle.ol-popup-right>div{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.ol-popup{font-size:.9em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-popup .ol-popup-content{overflow:hidden;cursor:default;padding:.25em .5em}.ol-popup.hasclosebox .ol-popup-content{margin-right:1.7em}.ol-popup .ol-popup-content:after{clear:both;content:"";display:block;font-size:0;height:0}.ol-popup .anchor{display:block;width:0px;height:0px;background:red;position:absolute;margin:-11px 22px;pointer-events:none}.ol-popup .anchor:after,.ol-popup .anchor:before{position:absolute}.ol-popup-right .anchor:after,.ol-popup-right .anchor:before{right:0}.ol-popup-top .anchor{top:0}.ol-popup-bottom .anchor{bottom:0}.ol-popup-right .anchor{right:0}.ol-popup-left .anchor{left:0}.ol-popup-center .anchor{left:50%;margin-left:0!important}.ol-popup-middle .anchor{top:50%;margin-top:0!important}.ol-popup-center.ol-popup-middle .anchor{display:none}.ol-popup.ol-fixed{margin:0!important;top:.5em!important;right:.5em!important;left:auto!important;bottom:auto!important;-webkit-transform:none!important;transform:none!important}.ol-popup.ol-fixed .anchor{display:none}.ol-popup.ol-fixed.anim>div{-webkit-animation:none;animation:none}.ol-popup .ol-fix{width:1em;height:.9em;background:#fff;position:relative;float:right;margin:.2em;cursor:pointer}.ol-popup .ol-fix:before{content:"";width:.8em;height:.7em;display:block;border:.1em solid #666;border-right-width:.1em;border-right-width:.3em;-webkit-box-sizing:border-box;box-sizing:border-box;margin:.1em}.ol-popup.shadow{-webkit-box-shadow:2px 2px 2px 2px rgba(0,0,0,.5);box-shadow:2px 2px 2px 2px #00000080}.ol-popup .closeBox{background-color:#003c8880;color:#fff;border:0;border-radius:2px;cursor:pointer;float:right;font-size:.9em;font-weight:700;width:1.4em;height:1.4em;margin:5px 5px 0 0;padding:0;position:relative;display:none}.ol-popup.hasclosebox .closeBox{display:block}.ol-popup .closeBox:hover{background-color:#003c88b3}.ol-popup .closeBox:after{content:"\d7";font-size:1.5em;top:50%;left:0;right:0;width:100%;text-align:center;line-height:1em;margin:-.5em 0;position:absolute}.ol-popup.modifytouch{background-color:#eee}.ol-popup.modifytouch .ol-popup-content{padding:0 .25em;font-size:.85em;white-space:nowrap}.ol-popup.modifytouch .ol-popup-content a{text-decoration:none}.ol-popup.tooltips{background-color:#ffa}.ol-popup.tooltips .ol-popup-content{padding:0 .25em;font-size:.85em;white-space:nowrap}.ol-popup.default>div{background-color:#fff;border:1px solid #69f;border-radius:5px}.ol-popup.default{margin:-11px 0;-webkit-transform:translate(0,-22px);transform:translateY(-22px)}.ol-popup-top.ol-popup.default{margin:11px 0;-webkit-transform:none;transform:none}.ol-popup-left.default{margin:-11px -22px;-webkit-transform:translate(0,-22px);transform:translateY(-22px)}.ol-popup-top.ol-popup-left.default{margin:11px -22px;-webkit-transform:none;transform:none}.ol-popup-right.default{margin:-11px 22px;-webkit-transform:translate(44px,-22px);transform:translate(44px,-22px)}.ol-popup-top.ol-popup-right.default{margin:11px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.default{margin:0 10px;-webkit-transform:none;transform:none}.ol-popup-middle.ol-popup-right.default{margin:0 -10px;-webkit-transform:translate(-20px,0);transform:translate(-20px)}.ol-popup.default .anchor{color:#69f}.ol-popup.default .anchor:after,.ol-popup.default .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:11px;margin:0 -11px}.ol-popup.default .anchor:after{border-color:#fff transparent;border-width:11px;margin:2px -11px}.ol-popup-top.default .anchor:before,.ol-popup-top.default .anchor:after{border-top:0;top:0}.ol-popup-bottom.default .anchor:before,.ol-popup-bottom.default .anchor:after{border-bottom:0;bottom:0}.ol-popup-middle.default .anchor:before{margin:-11px -33px;border-color:transparent currentColor}.ol-popup-middle.default .anchor:after{margin:-11px -31px;border-color:transparent #fff}.ol-popup-middle.ol-popup-left.default .anchor:before,.ol-popup-middle.ol-popup-left.default .anchor:after{border-left:0}.ol-popup-middle.ol-popup-right.default .anchor:before,.ol-popup-middle.ol-popup-right.default .anchor:after{border-right:0}.ol-popup.placemark{color:#c00;margin:-.65em 0;-webkit-transform:translate(0,-1.3em);transform:translateY(-1.3em)}.ol-popup.placemark>div{position:relative;font-size:15px;background-color:#fff;border:0;-webkit-box-shadow:inset 0 0 0 .45em;box-shadow:inset 0 0 0 .45em;width:2em;height:2em;border-radius:50%;min-width:unset;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-popup.placemark .ol-popup-content{overflow:hidden;cursor:default;text-align:center;padding:.25em 0;width:1em;height:1em;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:1em}.ol-popup.placemark .anchor{margin:0}.ol-popup.placemark .anchor:before{content:"";margin:-.5em;background:transparent;width:1em;height:.5em;border-radius:50%;-webkit-box-shadow:0 1em .5em rgba(0,0,0,.5);box-shadow:0 1em .5em #00000080}.ol-popup.placemark .anchor:after{content:"";border-color:currentColor transparent;border-style:solid;border-width:1em .7em 0;margin:-.75em -.7em;bottom:0}.ol-popup.placemark.shield>div{border-radius:.2em}.ol-popup.placemark.shield .anchor:after{border-width:.8em 1em 0;margin:-.7em -1em}.ol-popup.placemark.blazon>div{border-radius:.2em}.ol-popup.placemark.pushpin{margin:-2.2em 0;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.pushpin>div{border-radius:0;background:transparent!important;-webkit-box-shadow:inset 2em 0 currentColor;box-shadow:inset 2em 0 currentColor;width:1.1em}.ol-popup.placemark.pushpin>div:before{content:"";width:1.3em;height:1.5em;border-style:solid;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-color:currentColor transparent;border-width:.3em .5em .5em;pointer-events:none}.ol-popup.placemark.needle{margin:-2em 0;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.pushpin .anchor,.ol-popup.placemark.needle .anchor{margin:-1.2em}.ol-popup.placemark.pushpin .anchor:after,.ol-popup.placemark.needle .anchor:after{border-style:solid;border-width:2em .15em 0;margin:-.55em -.2em;width:.1em}.ol-popup.placemark.pushpin .anchor:before,.ol-popup.placemark.needle .anchor:before{margin:-.75em -.5em}.ol-popup.placemark.flagv{margin:-2em 1em;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.flagv>div{border-radius:0;-webkit-box-shadow:none;box-shadow:none;background-color:transparent}.ol-popup.placemark.flagv>div:before{content:"";border:1em solid transparent;position:absolute;border-left:2em solid currentColor;pointer-events:none}.ol-popup.placemark.flagv .anchor{margin:-1.4em}.ol-popup.placemark.flag{margin:-2em 1em;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.flag>div{border-radius:0;-webkit-transform-origin:0% 150%!important;transform-origin:0% 150%!important}.ol-popup.placemark.flag .anchor{margin:-1.4em}.ol-popup.placemark.flagv .anchor:after,.ol-popup.placemark.flag .anchor:after{border-style:solid;border-width:2em .15em 0;margin:-.55em -1em;width:.1em}.ol-popup.placemark.flagv .anchor:before,.ol-popup.placemark.flag .anchor:before{margin:-.75em -1.25em}.ol-popup.placemark.flag.finish{margin:-2em 1em}.ol-popup.placemark.flag.finish>div{background-image:linear-gradient(45deg,currentColor 25%,transparent 25%,transparent 75%,currentColor 75%,currentColor),linear-gradient(45deg,currentColor 25%,transparent 25%,transparent 75%,currentColor 75%,currentColor);background-size:1em 1em;background-position:.5em 0,0 .5em;-webkit-box-shadow:inset 0 0 0 .25em;box-shadow:inset 0 0 0 .25em}.ol-popup.black .closeBox{background-color:#00000080;border-radius:5px;color:#f80}.ol-popup.black .closeBox:hover{background-color:#000000b3;color:#da2}.ol-popup.black{margin:-20px 0;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup.black>div{background-color:#0009;border-radius:5px;color:#fff}.ol-popup-top.ol-popup.black{margin:20px 0;-webkit-transform:none;transform:none}.ol-popup-left.black{margin:-20px -22px;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup-top.ol-popup-left.black{margin:20px -22px;-webkit-transform:none;transform:none}.ol-popup-right.black{margin:-20px 22px;-webkit-transform:translate(44px,-40px);transform:translate(44px,-40px)}.ol-popup-top.ol-popup-right.black{margin:20px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.black{margin:0 11px;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.black{-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.black{margin:0 -11px;-webkit-transform:translate(-22px,0);transform:translate(-22px)}.ol-popup.black .anchor{margin:-20px 11px;color:#0009}.ol-popup.black .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:20px 11px}.ol-popup-top.black .anchor:before{border-top:0;top:0}.ol-popup-bottom.black .anchor:before{border-bottom:0;bottom:0}.ol-popup-middle.black .anchor:before{margin:-20px -22px;border-color:transparent currentColor}.ol-popup-middle.ol-popup-left.black .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.black .anchor:before{border-right:0}.ol-popup-center.black .anchor:before{margin:0 -10px}.ol-popup.tips .closeBox{background-color:red;border-radius:50%;color:#fff;width:1.2em;height:1.2em}.ol-popup.tips .closeBox:hover{background-color:#f40}.ol-popup.tips{margin:-20px 0;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup.tips>div{background-color:#cea;border:5px solid #ad7;border-radius:5px;color:#333}.ol-popup-top.ol-popup.tips{margin:20px 0;-webkit-transform:none;transform:none}.ol-popup-left.tips{margin:-20px -22px;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup-top.ol-popup-left.tips{margin:20px -22px;-webkit-transform:none;transform:none}.ol-popup-right.tips{margin:-20px 22px;-webkit-transform:translate(44px,-40px);transform:translate(44px,-40px)}.ol-popup-top.ol-popup-right.tips{margin:20px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.tips{margin:0;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.tips{margin:0 22px;-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.tips{margin:0 -22px;-webkit-transform:translate(-44px,0);transform:translate(-44px)}.ol-popup.tips .anchor{margin:-18px 22px;color:#ad7}.ol-popup.tips .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:20px 11px}.ol-popup-top.tips .anchor:before{border-top:0;top:0}.ol-popup-bottom.tips .anchor:before{border-bottom:0;bottom:0}.ol-popup-center.tips .anchor:before{border-width:20px 6px;margin:0 -6px}.ol-popup-left.tips .anchor:before{border-left:0;margin-left:0}.ol-popup-right.tips .anchor:before{border-right:0;margin-right:0}.ol-popup-middle.tips .anchor:before{margin:-6px -41px;border-color:transparent currentColor;border-width:6px 20px}.ol-popup-middle.ol-popup-left.tips .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.tips .anchor:before{border-right:0}.ol-popup.warning .closeBox{background-color:red;border-radius:50%;color:#fff;font-size:.83em}.ol-popup.warning .closeBox:hover{background-color:#f40}.ol-popup.warning{background-color:#fd0;border-radius:3px;border:4px dashed #f00;color:#900;margin:-28px 10px;-webkit-transform:translate(0,-56px);transform:translateY(-56px)}.ol-popup-top.ol-popup.warning{margin:28px 10px;-webkit-transform:none;transform:none}.ol-popup-left.warning{margin:-28px -22px;-webkit-transform:translate(0,-56px);transform:translateY(-56px)}.ol-popup-top.ol-popup-left.warning{margin:28px -22px;-webkit-transform:none;transform:none}.ol-popup-right.warning{margin:-28px 22px;-webkit-transform:translate(44px,-56px);transform:translate(44px,-56px)}.ol-popup-top.ol-popup-right.warning{margin:28px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.warning{margin:0;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.warning{margin:0 22px;-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.warning{margin:0 -22px;-webkit-transform:translate(-44px,0);transform:translate(-44px)}.ol-popup.warning .anchor{margin:-33px 7px}.ol-popup.warning .anchor:before{content:"";border-color:#f00 transparent;border-style:solid;border-width:30px 11px}.ol-popup-top.warning .anchor:before{border-top:0;top:0}.ol-popup-bottom.warning .anchor:before{border-bottom:0;bottom:0}.ol-popup-center.warning .anchor:before{margin:0 -21px}.ol-popup-middle.warning .anchor:before{margin:-10px -33px;border-color:transparent #f00;border-width:10px 22px}.ol-popup-middle.ol-popup-left.warning .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.warning .anchor:before{border-right:0}.ol-popup .ol-popupfeature table{width:100%}.ol-popup .ol-popupfeature table td{max-width:25em;overflow:hidden;text-overflow:ellipsis}.ol-popup .ol-popupfeature table td img{max-width:100px;max-height:100px}.ol-popup .ol-popupfeature tr:nth-child(2n+1){background-color:#eee}.ol-popup .ol-popupfeature .ol-zoombt{border:0;width:2em;height:2em;display:inline-block;color:#003c8880;position:relative;background:transparent;outline:none}.ol-popup .ol-popupfeature .ol-zoombt:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:1em;height:1em;background-color:transparent;border:.17em solid currentColor;border-radius:100%;top:.3em;left:.3em}.ol-popup .ol-popupfeature .ol-zoombt:after{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;top:1.35em;left:1.15em;border-width:.1em .3em;border-style:solid;border-radius:.03em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.2em 0 0 -.04em;box-shadow:-.2em 0 0 -.04em}.ol-popup .ol-popupfeature .ol-count{float:right;margin:.25em 0}.ol-popup .ol-popupfeature .ol-prev,.ol-popup .ol-popupfeature .ol-next{border-style:solid;border-color:transparent rgba(0,60,136,.5);border-width:.5em 0 .5em .5em;display:inline-block;vertical-align:bottom;margin:0 .5em;cursor:pointer}.ol-popup .ol-popupfeature .ol-prev{border-width:.5em .5em .5em 0}.ol-popup.tooltips.black{background-color:transparent}.ol-popup.tooltips.black>div{-webkit-transform:scaleY(1.3);transform:scaleY(1.3);padding:.2em .5em;background-color:#00000080}.ol-popup-middle.tooltips.black .anchor:before{border-width:5px 10px;margin:-5px -21px}.ol-popup-center.ol-popup-middle,.ol-popup-top.ol-popup-left.ol-fixPopup,.ol-popup-top.ol-popup-right.ol-fixPopup,.ol-popup.ol-fixPopup{margin:0}.ol-miniscroll{position:relative}.ol-miniscroll:hover .ol-scroll{opacity:.5;-webkit-transition:opacity 1s;transition:opacity 1s}.ol-miniscroll .ol-scroll{-ms-touch-action:none;touch-action:none;position:absolute;right:0px;width:9px;height:auto;max-height:100%;opacity:0;border-radius:9px;-webkit-transition:opacity 1s .5s;transition:opacity 1s .5s;overflow:hidden;z-index:1}.ol-miniscroll .ol-scroll>div{-ms-touch-action:none;touch-action:none;position:absolute;top:0;right:0px;width:9px;height:9px;-webkit-box-shadow:inset 10px 0 currentColor;box-shadow:inset 10px 0 currentColor;border-radius:9px/12px;border:2px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.ol-miniscroll .ol-scroll.ol-100pc{opacity:0}.ol-viewport canvas.ol-fixedoverlay{position:absolute;top:0;left:0;width:100%;height:100%}.ol-ext-toggle-switch{cursor:pointer;position:relative}.ol-ext-toggle-switch input[type=radio],.ol-ext-toggle-switch input[type=checkbox]{display:none}.ol-ext-toggle-switch span{color:#003c8880;position:relative;cursor:pointer;background-color:#ccc;-webkit-transition:.4s,background-color 0s,border-color 0s;transition:.4s,background-color 0s,border-color 0s;width:1.6em;height:1em;display:inline-block;border-radius:1em;font-size:1.3em;vertical-align:middle;margin:-.15em .2em .15em}.ol-ext-toggle-switch span:before{position:absolute;content:"";height:1em;width:1em;left:0;top:50%;background-color:#fff;-webkit-transition:.4s;transition:.4s;border-radius:1em;display:block;-webkit-transform:translateY(-50%);transform:translateY(-50%);border:2px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-toggle-switch:hover span{background-color:#999}.ol-ext-toggle-switch:hover span:before{border-color:#999}.ol-ext-toggle-switch input:checked+span{background-color:currentColor}.ol-ext-toggle-switch input:checked+span:before{-webkit-transform:translate(.6em,-50%);transform:translate(.6em,-50%);border-color:currentColor}.ol-ext-check{position:relative;display:inline-block}.ol-ext-check input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.ol-ext-check span{color:#003c8880;position:relative;display:inline-block;width:1em;height:1em;margin:-.1em .5em .1em;background-color:#ccc;vertical-align:middle}.ol-ext-check:hover span{background-color:#999}.ol-ext-checkbox input:checked~span{background-color:currentColor}.ol-ext-checkbox input:checked~span:before{content:"";position:absolute;width:.5em;height:.8em;top:50%;left:50%;-webkit-transform:translateY(-.1em) translate(-50%,-50%) rotate(45deg);transform:translateY(-.1em) translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:inset -.2em -.2em #fff;box-shadow:inset -.2em -.2em #fff}.ol-ext-radio span{width:1.1em;height:1.1em;border-radius:50%}.ol-ext-radio:hover input:checked~span{background-color:#ccc}.ol-ext-radio input:checked~span:before{content:"";position:absolute;width:50%;height:50%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:50%;background-color:currentColor}.ol-collection-list{margin:0;padding:0;list-style:none}.ol-collection-list li{position:relative;padding:0 2em 0 1em}.ol-collection-list li:hover{background-color:#003c8833}.ol-collection-list li.ol-select{background-color:#003c8880;color:#fff}.ol-collection-list li .ol-order{position:absolute;-ms-touch-action:none;touch-action:none;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:2em;height:100%;cursor:n-resize}.ol-collection-list li .ol-order:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:18px;height:2px;background-color:currentColor;-webkit-box-shadow:0 5px,0 -5px;box-shadow:0 5px,0 -5px;border-radius:2px}.ol-ext-colorpicker.ol-popup{width:2em;height:1.5em;background-color:transparent;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 -1px,5px 4px}.ol-ext-colorpicker .ol-tabbar{background-color:#eee;border-bottom:1px solid #999;display:none}.ol-ext-colorpicker.ol-tab .ol-tabbar{display:block}.ol-ext-colorpicker .ol-tabbar>div{display:inline-block;background-color:#fff;padding:0 .5em;border:1px solid #999;border-radius:2px 2px 0 0;position:relative;top:1px;cursor:pointer}.ol-ext-colorpicker .ol-tabbar>div:nth-child(1){border-bottom-color:#fff}.ol-ext-colorpicker.ol-picker-tab .ol-tabbar>div:nth-child(1){border-bottom-color:#999}.ol-ext-colorpicker.ol-picker-tab .ol-tabbar>div:nth-child(2){border-bottom-color:#fff}.ol-ext-colorpicker.ol-popup.ol-tab .ol-popup{width:180px}.ol-ext-colorpicker.ol-tab .ol-palette{margin:0 10px}.ol-ext-colorpicker.ol-tab .ol-container{display:none}.ol-ext-colorpicker.ol-tab.ol-picker-tab .ol-container{display:block}.ol-ext-colorpicker.ol-tab.ol-picker-tab .ol-palette{display:none}.ol-ext-colorpicker.ol-popup .ol-popup{width:340px}.ol-ext-colorpicker.ol-popup .ol-vignet{content:"";position:absolute;width:100%;height:100%;top:0;left:0;border:0;background-color:currentColor;pointer-events:none}.ol-ext-colorpicker .ol-container{position:relative;display:inline-block;vertical-align:top}.ol-ext-colorpicker .ol-cursor{pointer-events:none}.ol-ext-colorpicker .ol-picker{position:relative;cursor:crosshair;width:150px;height:150px;border:5px solid #fff;background-color:currentColor;background-image:-webkit-gradient(linear,left top,left bottom,from(0),color-stop(#000),to(transparent)),-webkit-gradient(linear,left top,right top,from(#fff),to(transparent));background-image:linear-gradient(0,#000,transparent),linear-gradient(90deg,#fff,transparent)}.ol-ext-colorpicker .ol-picker .ol-cursor{position:absolute;left:50%;top:50%;border:1px solid rgba(0,0,0,.7);-webkit-box-shadow:0 0 0 1px rgba(255,255,255,.7);box-shadow:0 0 0 1px #ffffffb3;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:10px;height:10px;border-radius:50%}.ol-ext-colorpicker .ol-slider{position:relative;cursor:crosshair;background-color:#fff;height:10px;width:150px;margin:5px 0 10px;border:5px solid #fff;border-width:0 5px;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 -1px,5px 4px}.ol-ext-colorpicker .ol-slider>div{width:100%;height:100%;background-image:linear-gradient(45deg,transparent,#fff);pointer-events:none}.ol-ext-colorpicker .ol-slider .ol-cursor{position:absolute;width:4px;height:12px;border:1px solid #000;top:50%;left:0;background:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-ext-colorpicker .ol-tint{position:absolute;cursor:crosshair;width:10px;height:150px;border:5px solid #fff;border-width:5px 0;-webkit-box-sizing:border;box-sizing:border;top:0;right:5px;background-image:-webkit-gradient(linear,left top,left bottom,from(0),color-stop(#f00),color-stop(#f0f),color-stop(#00f),color-stop(#0ff),color-stop(#0f0),color-stop(#ff0),to(#f00));background-image:linear-gradient(0,#f00,#f0f,#00f,#0ff,#0f0,#ff0,#f00)}.ol-ext-colorpicker .ol-tint .ol-cursor{position:absolute;top:0;left:50%;border:1px solid #000;height:4px;width:12px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-ext-colorpicker .ol-clear{position:absolute;border:2px solid #999;right:4px;top:163px;width:10px;height:10px}.ol-ext-colorpicker .ol-clear:before,.ol-ext-colorpicker .ol-clear:after{content:"";position:absolute;width:15px;height:2px;background-color:#999;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-colorpicker .ol-clear:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-ext-colorpicker.ol-nopacity .ol-slider,.ol-ext-colorpicker.ol-nopacity .ol-clear,.ol-ext-colorpicker.ol-nopacity .ol-alpha{display:none}.ol-ext-colorpicker .ol-rgb{position:relative;padding:5px;width:170px;display:none}.ol-ext-colorpicker .ol-rgb input{width:25%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0 0 2px;border:1px solid #999;border-radius:2px;font-size:13px}.ol-ext-colorpicker .ol-rgb input:nth-child(1){background-color:#ff00001a}.ol-ext-colorpicker .ol-rgb input:nth-child(2){background-color:#00ff001a}.ol-ext-colorpicker .ol-rgb input:nth-child(3){background-color:#0000ff1f}.ol-ext-colorpicker button,.ol-ext-colorpicker .ol-txt-color{font-size:13px;margin:0 5px 5px;text-align:center;width:170px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;border:1px solid #999;border-radius:2px;display:block}.ol-ext-colorpicker button{background-color:#eee}.ol-ext-colorpicker button:hover{background-color:#e9e9e9}.ol-ext-colorpicker .ol-txt-color.ol-error{background-color:#f003}.ol-ext-colorpicker .ol-palette{padding:2px;display:inline-block;width:152px}.ol-ext-colorpicker .ol-palette>div{width:15px;height:15px;display:inline-block;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 0,5px 5px;margin:2px;-webkit-box-shadow:0 0 2px 0px #666;box-shadow:0 0 2px #666;border-radius:1px;cursor:pointer;position:relative}.ol-ext-colorpicker .ol-palette>div:before{content:"";position:absolute;background-color:currentColor;width:100%;height:100%}.ol-ext-colorpicker .ol-palette>div.ol-select:after{content:"";position:absolute;width:6px;height:12px;-webkit-box-shadow:1px 1px #fff,2px 2px #000;box-shadow:1px 1px #fff,2px 2px #000;top:30%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-colorpicker .ol-palette>div:hover{-webkit-box-shadow:0 0 2px 1px #d90;box-shadow:0 0 2px 1px #d90}.ol-ext-colorpicker .ol-palette hr{margin:0}.ol-input-popup{display:inline-block;position:relative}.ol-input-popup .ol-popup{position:absolute;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;background-color:#fff;z-index:1;display:none;left:-5px;padding:0;margin:0;list-style:none;white-space:nowrap}.ol-input-popup.ol-hover:hover .ol-popup,.ol-input-popup.ol-focus .ol-popup{display:block}.ol-input-popup.ol-right .ol-popup{left:auto;right:-5px}.ol-input-popup.ol-middle .ol-popup{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-input-popup .ol-popup li{position:relative;padding:10px 5px}.ol-input-popup li:hover,.ol-input-popup li.ol-selected{background-color:#ccc}.ol-input-popup.ol-fixed:hover .ol-popup,.ol-input-popup.ol-fixed .ol-popup{position:relative;left:0;-webkit-box-shadow:unset;box-shadow:unset;background-color:transparent;display:inline-block;vertical-align:middle}.ol-input-popup.ol-fixed.ol-left .ol-popup{float:left}.ol-input-popup>div{position:relative;display:inline-block;vertical-align:middle;border-radius:2px;border:1px solid #999;padding:3px 20px 3px 10px}.ol-input-popup>div:before{position:absolute;content:"";right:5px;top:50%;border:5px solid transparent;border-top:5px solid #999}.ol-ext-popup-input{display:inline-block;vertical-align:top}.ol-ext-popup-input.ol-popup{position:relative;width:2em;height:1.5em;display:inline-block;border:3px solid #fff;border-right-width:1em;-webkit-box-shadow:0 0 2px 1px #666;box-shadow:0 0 2px 1px #666;border-radius:2px;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.ol-ext-popup-input.ol-popup:after{content:"";position:absolute;border:.5em solid #aaa;border-width:.5em .3em 0;border-color:#999 transparent;right:-.8em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.ol-ext-popup-input *{-webkit-box-sizing:content-box;box-sizing:content-box}.ol-ext-popup-input.ol-popup .ol-popup{position:absolute;top:100%;min-width:3em;min-height:3em;left:0;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;display:block;background-color:#fff;display:none;z-index:1}.ol-ext-popup-input.ol-popup .ol-popup.ol-visible{display:block}.ol-ext-popup-input.ol-popup-fixed .ol-popup{position:fixed;top:auto;left:auto}.ol-input-popup.ol-size li{display:table-cell;height:100%;padding:5px;vertical-align:middle}.ol-input-popup.ol-size li>*{background-color:#369;border-radius:50%;vertical-align:middle;width:1em;height:1em}.ol-input-popup.ol-size li>.ol-option-0{position:relative;width:1em;height:1em;border:2px solid currentColor;color:#aaa;background-color:transparent;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-input-popup.ol-size li>*:before{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-input-popup.ol-size li>.ol-option-0:before{content:"";width:1em;height:2px;background-color:#aaa;-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-input-slider{display:inline-block;position:relative}.ol-input-slider .ol-popup{position:absolute;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;background-color:#fff;z-index:1;display:none;left:-5px}.ol-input-slider.ol-right .ol-popup{left:auto;right:-5px}.ol-input-slider.ol-hover:hover .ol-popup,.ol-input-slider.ol-focus .ol-popup{display:block;white-space:nowrap}.ol-input-slider.ol-hover:hover .ol-popup>*,.ol-input-slider.ol-focus .ol-popup>*{display:inline-block;vertical-align:middle}.ol-input-slider.ol-hover:hover .ol-popup>.ol-before,.ol-input-slider.ol-focus .ol-popup>.ol-before{margin-left:10px}.ol-input-slider.ol-hover:hover .ol-popup>.ol-after,.ol-input-slider.ol-focus .ol-popup>.ol-after{margin-right:10px}.ol-input-slider .ol-slider{position:relative;width:100px;height:3px;border:0 solid transparent;border-width:10px 15px;-webkit-box-shadow:inset 0 0 0 1px #999;box-shadow:inset 0 0 0 1px #999;-webkit-box-sizing:content-box;box-sizing:content-box;cursor:pointer}.ol-input-slider .ol-slider>.ol-cursor{position:absolute;width:5px;height:10px;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#999;pointer-events:none}.ol-input-slider.ol-fixed:hover .ol-popup,.ol-input-slider.ol-fixed .ol-popup{position:relative;left:0;-webkit-box-shadow:unset;box-shadow:unset;background-color:transparent;display:inline-block;vertical-align:middle}.ol-input-slider.ol-fixed.ol-left .ol-popup{float:left}.ol-input-slider.ol-size .ol-slider{height:auto;-webkit-box-shadow:none;box-shadow:none}.ol-input-slider.ol-size .ol-slider .ol-back{width:0;color:#aaa;border:0 solid transparent;border-width:0 0 20px 100px;border-color:currentColor transparent;pointer-events:none}.ol-input-slider.ol-size .ol-slider>.ol-cursor{width:2px;height:calc(100% + 4px);border-width:5px 3px;border-style:solid;border-color:#f00 transparent;-o-border-image:initial;border-image:initial;background-color:transparent;-webkit-box-shadow:inset 3px 0px #f00;box-shadow:inset 3px 0 red}.ol-input-popup.ol-width li{padding:5px}.ol-input-popup.ol-width li>*{background-color:#369;width:100px;height:1em}.ol-input-popup.ol-width li>.ol-option-0{position:relative;height:1px;background-image:linear-gradient(90deg,#aaa 2px,transparent 2px);background-color:transparent;background-size:4px}/*! -* ol-contextmenu - v4.1.0 -* https://github.com/jonataswalker/ol-contextmenu -* Built: Sat Aug 15 2020 10:43:26 GMT-0300 (Brasilia Standard Time) -*/.ol-ctx-menu-container{position:absolute;padding:8px;background:#fff;color:#222;font-size:13px;border-radius:5px;box-shadow:#0003 3px 3px 5px;box-sizing:border-box}.ol-ctx-menu-container div,.ol-ctx-menu-container span,.ol-ctx-menu-container a,.ol-ctx-menu-container img,.ol-ctx-menu-container ul,.ol-ctx-menu-container li{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}.ol-ctx-menu-container a img{border:none}.ol-ctx-menu-container *,.ol-ctx-menu-container *:before,.ol-ctx-menu-container *:after{box-sizing:inherit}.ol-ctx-menu-container.ol-ctx-menu-hidden{opacity:0;visibility:hidden;transition:visibility 0s linear .3s,opacity .3s}.ol-ctx-menu-container ul{list-style:none}.ol-ctx-menu-container li{position:relative;line-height:20px;padding:2px 5px}.ol-ctx-menu-container li:not(.ol-ctx-menu-separator):hover{cursor:pointer;background-color:#333;color:#eee}.ol-ctx-menu-container li.ol-ctx-menu-submenu .ol-ctx-menu-container{border:1px solid #eee;padding:8px;top:0;opacity:0;visibility:hidden;transition:visibility 0s linear .3s,opacity .3s}.ol-ctx-menu-container li.ol-ctx-menu-submenu:hover .ol-ctx-menu-container{opacity:1;visibility:visible;transition-delay:0s}.ol-ctx-menu-container li.ol-ctx-menu-submenu:after{position:absolute;top:7px;right:10px;content:"";display:inline-block;width:.6em;height:.6em;border-right:.3em solid #222;border-top:.3em solid #222;transform:rotate(45deg)}.ol-ctx-menu-container li.ol-ctx-menu-submenu:hover:after{border-color:#eee}.ol-ctx-menu-container li.ol-ctx-menu-separator{padding:0}.ol-ctx-menu-container li.ol-ctx-menu-separator hr{border:0;height:1px;background-image:linear-gradient(to left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0))}.ol-ctx-menu-icon{text-indent:20px;background-size:20px auto;background-repeat:no-repeat;background-position:left center}.ol-ctx-menu-zoom-in{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABaUlEQVQ4T72U7VHCQBCGn90GtAMuNGCswFiBWIFQgWMFxg6wArECsQKhArEBiB1Qwa1zgQn5IAYcxv13k71n3919L8KJQ07M47+BzgG9TRfZ/JBuWhS6BJFHRJICYrZGZIz3z5Ct2+B7gG6I6kt+wewdkQVwjtkAkR5mC8yu26A1oItR/cTsOweQBdgutD8G7jGm2PJ2n8oqUKIpIjd4HxTM8gvaT/F+AlmWnyWaIXKF95eNguFzTYFhNsdWu9kFgFlaFMANUH3D8wDLoLgSTSD2il8NCe2ZXQBxWDGwxmyUzzOMBZ7wy7Qb2K0wQfXjMOBuhlFpZtNty5sFaTQBuTusZdymeqs1SpYKcO9HkE3KbTd9WFijMHJQ5hBNEAYNq5Qd0dhyke0GiE4QzjqfW23mHT8Hl4DG4Lce3FPE7AtbBSdsbNqpoJLgYkRnNeUV+xwJDHTnUEkxHGbhBXUs5TjJjew/KPy94g+NRaIVRYmMXwAAAABJRU5ErkJggg==)}.ol-ctx-menu-container li:hover.ol-ctx-menu-zoom-in{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABc0lEQVQ4T71U21ECQRDsJgGdvQDECMQIxAjECMQILCPwzAAjECIQI0AiEDPQAPaWCBhrcKHuCUcV5f7dY3v6tUscefHIePhfwBBCF8CZqRCReRs1tQxDCH1VfQLQz4EsSY4AvIjIsgm8AhhCGKrqa9zwrqoLAKckB5HtguR1E2gBMITQU9VPAD8GICIGtl3e+xHJBwBT59xtHcsCYJZlUwA3kcGHbfDep51OZywi3/acZZm9vyJ5WR5o38uACmDunNt6ZwAkUxFZDwghDFT1jeSjiJinhVUBVNVJkiTDKO8CQA+AsbNQ7s1Ps0VVn5MkSfcCtmBoDZi1Bdx4eJ7zbBolrwPy3o9J3rWSHPs3A1BbjVKlYBaIyDgvu9LDXDU2RTZmXVW1oKyLxRD+OrkOrJLy5mVM0iaftDhuhVbsvBzMglzKUNW6IV/OOWtCM8MmVvEkmbwt83LaB19fdgOtVquUZJeknaDdobTwbOcvBzPcN/AXH1DFFWP7u9oAAAAASUVORK5CYII=)}.ol-ctx-menu-zoom-out{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABU0lEQVQ4T72U7VECMRRFz3sNaAdkacC1AtcKxApcKnCsQOwAK3CtQKxAqEBsANYOqCDPyTIC+8WCw5jfybn33dxEOPGSE/P4b6BzQG89RT47ZJoWhy5B5BGRZAMxWyEyxvtnyFdt8AagS1F9KQ6YvSMyB84xGyDSw2yO2XUbtAJ0MaqfmH0XAPIA2y7tj4F7jAm2uG1yWQZKNEHkBu+Dg2njWBJNEbnC+8uaIFRuWfuG2QxbbrOrUd0A1Tc8D7AIjkur7DAAsVf8MiWMZ3ZR2m02LPIMscATfjHqBnY7TFD9OAy4zTCCPG/MUKMM5O6wkXFr9dZq7FQqqHk/hDzbFa73cFONTZFDdRyiCcKg5rrSiLaXkiI6RjjrfG6VzDs+B5eAxuDXeYpmNRGzL2wZ/wof+du4GNFpBVqqz5HA4MM5VEYYDrOs+1I6Q9u/4Q8O9wN/AGgWjBVqQjjgAAAAAElFTkSuQmCC)}.ol-ctx-menu-container li:hover.ol-ctx-menu-zoom-out{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABYklEQVQ4T72U4VHCQBCF36tA91KAWIFYgViBWIFYgWMFYgdYgVCBWAFSgdiBFpAsFWSdxcDkQoBkhnF/ZjbfvX377ogjF4/Mw/8CVbUD4MynEJF5k2lqFapqz8yeAPRKkCXJEYAXEVnugm8BVXVgZq/FD+9mtgBwSrJfqF2QvN4FjYCq2jWzTwA/DhARh20qTdMRyQcA0xDCbZ3KCJhl2RTATaHgo+6HLMv8+xXJy+qB3l8FGoB5CKHsXcRV1b6ZvZF8FBH3NKotoJlNkiQZFONdlLtJ3rufbouZPSdJMjwIbKDQEzBrClx7eC4i33Uepmk6JnnXaOQifzMAtdGoRApugYiMI1uqKkrRWAfZo9MxM1+UZzFewl8mN4nYdVM83L7BkwbXLUrF3sfBLQDQBbDy08x8vOohXyEE71lVq9emuEk+3gZa3XYroCvwFyjP8yHJDsnxwaU08GxvS2uFhw78BbzWrxXgMbsHAAAAAElFTkSuQmCC)}.ol-zoomslider{top:7.5em;left:.5em;height:240px;border:2px solid rgba(0,60,136,.5)}.ol-overviewmap{left:3.5em;bottom:2.5em}.ol-mouse-position{top:0;left:50%;transform:translate(-50%);width:70%;position:absolute;text-align:center}.ol-rotate{top:.5em;right:2.5em;transition:opacity .25s linear,visibility 0s linear}.ol-layerswitcher-image li.ol-layer-hidden{opacity:1!important}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:block;opacity:0}.ol-collapsed,.ol-collapsed:hover{background-color:#fff0}.ol-control.ol-mapzone{top:12.5em!important}.ol-control.ol-mapzone button{margin-top:0!important}.ol-layerswitcher-image button{background-color:transparent!important}.ol-mapzone>div p{background-color:#000!important}.vl-shown{overflow:hidden}.vl-overlay{bottom:0;left:0;position:absolute;right:0;top:0;align-items:center;display:none;justify-content:center;overflow:hidden;z-index:9999}.vl-overlay.vl-active{display:flex}.vl-overlay.vl-full-page{z-index:9999;position:fixed}.vl-overlay .vl-background{bottom:0;left:0;position:absolute;right:0;top:0;background:#fff;opacity:.5}.vl-overlay .vl-icon,.vl-parent{position:relative} diff --git a/dist/assets/index-2cd109ed.css b/dist/assets/index-2cd109ed.css new file mode 100644 index 0000000..0583a07 --- /dev/null +++ b/dist/assets/index-2cd109ed.css @@ -0,0 +1,5 @@ +.overlay-content[data-v-e1bae6bd]{width:1%}.trainMapIcon[data-v-e1bae6bd]{height:32px;width:32px}.slideLeft-enter-active[data-v-e1bae6bd],.slideLeft-leave-active[data-v-e1bae6bd]{transition:opacity .5s;transition:all .8s}.slideLeft-enter-from[data-v-e1bae6bd],.slideLeft-leave-to[data-v-e1bae6bd]{opacity:0;transform:translate(-100px)}@keyframes gradient-e1bae6bd{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}#sidebar[data-v-e1bae6bd]{position:absolute;height:85%;width:20%;left:2%;top:12%;z-index:2;text-align:center;animation:gradient-e1bae6bd 15s ease infinite;background:linear-gradient(45deg,#000000,#111111,#222222,#333333,#444444,#555555);background-size:400%,400%;box-shadow:0 0 4px 2px #333}#sidebarDiv[data-v-e1bae6bd]{position:relative;height:100%;width:100%;color:#fff}#sidebarHeader[data-v-e1bae6bd]{position:relative;top:0%;height:10%;width:100%;overflow:hidden}#headerImage[data-v-e1bae6bd]{height:100%;width:auto;overflow:hidden}#xButton[data-v-e1bae6bd]{font-size:80%;font-family:Georgia;color:#fff;position:absolute;top:10px;right:10px}#xButton[data-v-e1bae6bd]:hover{color:red}#sidebarFooter[data-v-e1bae6bd]{position:relative;bottom:0%;height:10%;text-align:center;color:azure}#sidebarMain[data-v-e1bae6bd]{position:relative;height:80%;width:100%;overflow:hidden}#sidebarContent[data-v-e1bae6bd]{position:relative;size:6px;color:#fff;overflow-wrap:break-word;font-family:Georgia,Times New Roman,Times,serif}#mapDiv[data-v-e1bae6bd]{background-color:#000;position:absolute;float:right;right:0%;top:0%;width:100%;overflow:hidden;height:100%}#mapIFrame[data-v-e1bae6bd]{position:relative;height:100%;width:100%;top:0%;z-index:0}#buttonDiv[data-v-e1bae6bd]{position:absolute;float:right;right:10%;top:0%;width:10%;height:10px}#buttonElement[data-v-e1bae6bd]{position:relative;top:50%;left:50%;z-index:0}.ol-box{box-sizing:border-box;border-radius:2px;border:1.5px solid rgb(179,197,219);background-color:#fff6}.ol-mouse-position{top:8px;right:8px;position:absolute}.ol-scale-line{background:rgba(0,60,136,.3);border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid #eee;border-top:none;color:#eee;font-size:10px;text-align:center;margin:1px;will-change:contents,width;transition:all .25s}.ol-scale-bar{position:absolute;bottom:8px;left:8px}.ol-scale-step-marker{width:1px;height:15px;background-color:#000;float:right;z-index:10}.ol-scale-step-text{position:absolute;bottom:-5px;font-size:12px;z-index:11;color:#000;text-shadow:-2px 0 #FFFFFF,0 2px #FFFFFF,2px 0 #FFFFFF,0 -2px #FFFFFF}.ol-scale-text{position:absolute;font-size:14px;text-align:center;bottom:25px;color:#000;text-shadow:-2px 0 #FFFFFF,0 2px #FFFFFF,2px 0 #FFFFFF,0 -2px #FFFFFF}.ol-scale-singlebar{position:relative;height:10px;z-index:9;box-sizing:border-box;border:1px solid black}.ol-unsupported{display:none}.ol-viewport,.ol-unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ol-viewport canvas{all:unset}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ol-grabbing{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.ol-grab{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.ol-control{position:absolute;background-color:#fff6;border-radius:4px;padding:2px}.ol-control:hover{background-color:#fff9}.ol-zoom{top:.5em;left:.5em}.ol-rotate{top:.5em;right:.5em;transition:opacity .25s linear,visibility 0s linear}.ol-rotate.ol-hidden{opacity:0;visibility:hidden;transition:opacity .25s linear,visibility 0s linear .25s}.ol-zoom-extent{top:4.643em;left:.5em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{display:block;margin:1px;padding:0;color:#fff;font-weight:700;text-decoration:none;font-size:inherit;text-align:center;height:1.375em;width:1.375em;line-height:.4em;background-color:#003c8880;border:none;border-radius:2px}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;font-size:1.2em;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent{top:5.5em}.ol-control button:hover,.ol-control button:focus{text-decoration:none;background-color:#003c88b3}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{text-align:right;bottom:.5em;right:.5em;max-width:calc(100% - 1.3em);display:flex;flex-flow:row-reverse;align-items:center}.ol-attribution a{color:#003c88b3;text-decoration:none}.ol-attribution ul{margin:0;padding:1px .5em;color:#000;text-shadow:0 0 2px #fff;font-size:12px}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-collapsed ul{display:none}.ol-attribution:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-attribution.ol-uncollapsible{bottom:0;right:0;border-radius:4px 0 0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-attribution.ol-uncollapsible button{display:none}.ol-zoomslider{top:4.5em;left:.5em;height:200px}.ol-zoomslider button{position:relative;height:10px}.ol-touch .ol-zoomslider{top:5.5em}.ol-overviewmap{left:.5em;bottom:.5em}.ol-overviewmap.ol-uncollapsible{bottom:0;left:0;border-radius:0 4px 0 0}.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.ol-overviewmap .ol-overviewmap-map{border:1px solid #7b98bc;height:150px;margin:2px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:2px;left:2px;position:absolute}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:none}.ol-overviewmap:not(.ol-collapsed){background:rgba(255,255,255,.8)}.ol-overviewmap-box{border:2px dotted rgba(0,60,136,.7)}.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-control i{cursor:default}.ol-control.ol-bar{left:50%;min-height:1em;min-width:1em;position:absolute;top:.5em;transform:translate(-50%);-webkit-transform:translate(-50%,0);white-space:nowrap}.ol-control.ol-toggle .ol-option-bar{display:none}.ol-control.ol-bar .ol-control{position:relative;top:auto;left:auto;right:auto;bottom:auto;display:inline-block;vertical-align:middle;background-color:transparent;padding:0;margin:0;transform:none;-webkit-transform:none}.ol-control.ol-bar .ol-bar{position:static}.ol-control.ol-bar .ol-control button{margin:2px 1px;outline:none}.ol-control.ol-bar.ol-left{left:.5em;top:50%;-webkit-transform:translate(0px,-50%);transform:translateY(-50%)}.ol-control.ol-bar.ol-left .ol-control{display:block}.ol-control.ol-bar.ol-right{left:auto;right:.5em;top:50%;-webkit-transform:translate(0px,-50%);transform:translateY(-50%)}.ol-control.ol-bar.ol-right .ol-control{display:block}.ol-control.ol-bar.ol-bottom{top:auto;bottom:.5em}.ol-control.ol-bar.ol-top.ol-left,.ol-control.ol-bar.ol-top.ol-right{top:4.5em;-webkit-transform:none;transform:none}.ol-touch .ol-control.ol-bar.ol-top.ol-left,.ol-touch .ol-control.ol-bar.ol-top.ol-right{top:5.5em}.ol-control.ol-bar.ol-bottom.ol-left,.ol-control.ol-bar.ol-bottom.ol-right{top:auto;bottom:.5em;-webkit-transform:none;transform:none}.ol-control.ol-bar.ol-group{margin:1px 1px 1px 0}.ol-control.ol-bar.ol-right .ol-group,.ol-control.ol-bar.ol-left .ol-group{margin:1px 1px 0}.ol-control.ol-bar.ol-group button{border-radius:0;margin:0 0 0 1px}.ol-control.ol-bar.ol-right.ol-group button,.ol-control.ol-bar.ol-left.ol-group button,.ol-control.ol-bar.ol-right .ol-group button,.ol-control.ol-bar.ol-left .ol-group button{margin:0 0 1px}.ol-control.ol-bar.ol-group .ol-control:first-child>button{border-radius:5px 0 0 5px}.ol-control.ol-bar.ol-group .ol-control:last-child>button{border-radius:0 5px 5px 0}.ol-control.ol-bar.ol-left.ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-right.ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-left .ol-group .ol-control:first-child>button,.ol-control.ol-bar.ol-right .ol-group .ol-control:first-child>button{border-radius:5px 5px 0 0}.ol-control.ol-bar.ol-left.ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-right.ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-left .ol-group .ol-control:last-child>button,.ol-control.ol-bar.ol-right .ol-group .ol-control:last-child>button{border-radius:0 0 5px 5px}.ol-control.ol-bar .ol-rotate{opacity:1;visibility:visible}.ol-control.ol-bar .ol-rotate button{display:block}.ol-control.ol-bar .ol-toggle.ol-active>button{background-color:#3c8800b3}.ol-control.ol-bar .ol-toggle.ol-active button:hover{background-color:#3c8800b3}.ol-control.ol-toggle button:disabled{background-color:#003c884d}.ol-control.ol-bar .ol-control.ol-option-bar{display:none;position:absolute;top:100%;left:0;margin:5px 0;border-radius:0;background-color:#fffc;-webkit-box-shadow:0 0 0 1px rgba(0,60,136,.5),1px 1px 2px rgba(0,0,0,.5);box-shadow:0 0 0 1px #003c8880,1px 1px 2px #00000080}.ol-control.ol-bar .ol-option-bar:before{content:"";border:.5em solid transparent;border-color:transparent transparent rgba(0,60,136,.5);position:absolute;bottom:100%;left:.3em}.ol-control.ol-bar .ol-option-bar .ol-control{display:table-cell}.ol-control.ol-bar .ol-control .ol-bar{display:none}.ol-control.ol-bar .ol-control.ol-active>.ol-option-bar{display:block}.ol-control.ol-bar .ol-control.ol-collapsed ul{display:none}.ol-control.ol-bar .ol-control.ol-text-button>div:hover,.ol-control.ol-bar .ol-control.ol-text-button>div{background-color:transparent;color:#003c8880;width:auto;min-width:1.375em;margin:0}.ol-control.ol-bar .ol-control.ol-text-button{font-size:.9em;border-left:1px solid rgba(0,60,136,.8);border-radius:0}.ol-control.ol-bar .ol-control.ol-text-button:first-child{border-left:0}.ol-control.ol-bar .ol-control.ol-text-button>div{padding:.11em .3em;font-weight:400;font-size:1.14em;font-family:Arial,Helvetica,sans-serif}.ol-control.ol-bar .ol-control.ol-text-button div:hover{color:#003c88}.ol-control.ol-bar.ol-bottom .ol-option-bar{top:auto;bottom:100%}.ol-control.ol-bar.ol-bottom .ol-option-bar:before{border-color:rgba(0,60,136,.5) transparent transparent;bottom:auto;top:100%}.ol-control.ol-bar.ol-left .ol-option-bar{left:100%;top:0;bottom:auto;margin:0 5px}.ol-control.ol-bar.ol-left .ol-option-bar:before{border-color:transparent rgba(0,60,136,.5) transparent transparent;bottom:auto;right:100%;left:auto;top:.3em}.ol-control.ol-bar.ol-right .ol-option-bar{right:100%;left:auto;top:0;bottom:auto;margin:0 5px}.ol-control.ol-bar.ol-right .ol-option-bar:before{border-color:transparent transparent transparent rgba(0,60,136,.5);bottom:auto;left:100%;top:.3em}.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar,.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar{top:100%;bottom:auto;left:.3em;right:auto;margin:5px 0}.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar{right:.3em;left:auto}.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar:before,.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before{border-color:transparent transparent rgba(0,60,136,.5);bottom:100%;top:auto;left:.3em;right:auto}.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before{right:.3em;left:auto}.ol-control-title{position:absolute;top:0;left:0;right:0}.ol-center-position{position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:#fffc;padding:.1em 1em}.ol-compassctrl{display:none;top:1em;left:auto;right:1em}.ol-compassctrl.ol-visible{display:block!important}.ol-ext-dialog{position:fixed;top:-100%;left:0;width:150%;height:100%;opacity:0;background-color:#00000080;z-index:1000;pointer-events:none!important;-webkit-transition:opacity .2s,top 0s .2s;transition:opacity .2s,top 0s .2s}.ol-ext-dialog.ol-visible{opacity:1;top:0;pointer-events:all!important;-webkit-transition:opacity .2s,top 0s;transition:opacity .2s,top 0s}.ol-viewport .ol-ext-dialog{position:absolute}.ol-ext-dialog>form>h2{margin:0 .5em .5em 0;display:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ol-ext-dialog>form.ol-title>h2{display:block}.ol-ext-dialog>form{position:absolute;top:0;left:33.33%;min-width:5em;max-width:60%;min-height:3em;max-height:100%;background-color:#fff;border:1px solid #333;-webkit-box-shadow:3px 3px 4px rgba(0,0,0,.5);box-shadow:3px 3px 4px #00000080;-webkit-transform:translate(-50%,-30%);transform:translate(-50%,-30%);-webkit-transition:top .2s,-webkit-transform .2s;transition:top .2s,-webkit-transform .2s;transition:top .2s,transform .2s;transition:top .2s,transform .2s,-webkit-transform .2s;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-x:hidden;overflow-y:auto}.ol-ext-dialog>form.ol-closebox{padding-top:1.5em}.ol-ext-dialog>form.ol-title{padding-top:1em}.ol-ext-dialog>form.ol-button{padding-bottom:.5em}.ol-ext-dialog.ol-zoom>form{top:30%;-webkit-transform:translate(-50%,-30%) scale(0);transform:translate(-50%,-30%) scale(0)}.ol-ext-dialog.ol-visible>form{top:30%}.ol-ext-dialog.ol-zoom.ol-visible>form{-webkit-transform:translate(-50%,-30%) scale(1);transform:translate(-50%,-30%) scale(1)}.ol-ext-dialog>form .ol-content{overflow-x:hidden;overflow-y:auto}.ol-ext-dialog>form .ol-closebox{position:absolute;top:.5em;right:.5em;width:1em;height:1em;cursor:pointer;display:none}.ol-ext-dialog>form.ol-closebox .ol-closebox{display:block}.ol-ext-dialog>form .ol-closebox:before,.ol-ext-dialog>form .ol-closebox:after{content:"";position:absolute;background-color:currentColor;top:50%;left:50%;width:1em;height:.1em;border-radius:.1em;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-dialog>form .ol-closebox:before{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-ext-dialog>form .ol-buttons{text-align:right;overflow-x:hidden}.ol-ext-dialog>form .ol-buttons input{margin-top:.5em;padding:.5em;background:none;border:0;font-size:1em;color:#003c88;cursor:pointer;border-radius:.25em;outline-width:0}.ol-ext-dialog>form .ol-buttons input:hover{background-color:#003c881a}.ol-ext-dialog>form .ol-buttons input[type=submit]{font-weight:700}.ol-ext-dialog .ol-progress-message{font-size:.9em;text-align:center;padding-bottom:.5em}.ol-ext-dialog .ol-progress-bar{border:1px solid #369;width:20em;height:1em;max-width:100%;padding:2px;margin:.5em auto 0;overflow:hidden}.ol-ext-dialog .ol-progress-bar>div{background:#369;height:100%;width:50%;-webkit-transition:width .3s;transition:width .3s}.ol-ext-dialog .ol-progress-bar>div.notransition{-webkit-transition:unset;transition:unset}.ol-ext-dialog.ol-fullscreen-dialog form{top:1em;-webkit-transform:none;transform:none;left:1em;bottom:1em;right:1em;max-width:calc(66.6% - 2em);text-align:center;background:transparent;-webkit-box-shadow:none;box-shadow:none;border:none;color:#fff}.ol-ext-dialog.ol-fullscreen-dialog form .ol-closebox{top:0;right:0;font-size:2em}.ol-ext-dialog.ol-fullscreen-dialog .ol-closebox:before,.ol-ext-dialog.ol-fullscreen-dialog .ol-closebox:after{border:.1em solid currentColor}.ol-ext-dialog.ol-fullscreen-dialog img,.ol-ext-dialog.ol-fullscreen-dialog video{max-width:100%}body>.ol-ext-dialog .ol-content{max-height:calc(100vh - 10em)}body>.ol-ext-dialog>form{overflow:visible}.ol-editbar .ol-button button{position:relative;display:inline-block;font-style:normal;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}.ol-editbar .ol-button button:before,.ol-editbar .ol-button button:after{content:"";border-width:0;position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:currentColor}.ol-editbar .ol-button button:focus{outline:none}.ol-editbar .ol-selection>button:before{width:.6em;height:1em;background-color:transparent;border:.5em solid currentColor;border-width:0 .25em .65em;border-color:currentColor transparent;-webkit-box-shadow:0 .6em 0 -.23em;box-shadow:0 .6em 0 -.23em;top:.35em;left:.5em;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg)}.ol-editbar .ol-selection0>button:after{width:.28em;height:.6em;background-color:transparent;border:.5em solid currentColor;border-width:0 .05em .7em;border-color:currentColor transparent;top:.5em;left:.7em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ol-editbar .ol-delete button:after,.ol-editbar .ol-delete button:before{width:1em;height:.2em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-editbar .ol-delete button:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-editbar .ol-info button:before{width:.25em;height:.6em;border-radius:.03em;top:.47em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-info button:after{width:.25em;height:.2em;border-radius:.03em;-webkit-box-shadow:-.1em .35em,-.1em .82em,.1em .82em;box-shadow:-.1em .35em,-.1em .82em,.1em .82em;top:.12em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawpoint button:before{width:.7em;height:.7em;border-radius:50%;border:.15em solid currentColor;background-color:transparent;top:.2em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawpoint button:after{width:.4em;height:.4em;border:.15em solid currentColor;border-color:currentColor transparent;border-width:.4em .2em 0;background-color:transparent;top:.8em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawline>button:before,.ol-editbar .ol-drawpolygon>button:before,.ol-editbar .ol-drawhole>button:before{width:.8em;height:.8em;border:.13em solid currentColor;background-color:transparent;border-width:.2em .13em .09em;top:.2em;left:.25em;-webkit-transform:rotate(10deg) perspective(1em) rotateX(40deg);transform:rotate(10deg) perspective(1em) rotateX(40deg)}.ol-editbar .ol-drawline>button:before{border-bottom:0}.ol-editbar .ol-drawline>button:after,.ol-editbar .ol-drawhole>button:after,.ol-editbar .ol-drawpolygon>button:after{width:.3em;height:.3em;top:.2em;left:.25em;-webkit-box-shadow:-.2em .55em,.6em .1em,.65em .7em;box-shadow:-.2em .55em,.6em .1em,.65em .7em}.ol-editbar .ol-drawhole>button:after{-webkit-box-shadow:-.2em .55em,.6em .1em,.65em .7em,.25em .35em;box-shadow:-.2em .55em,.6em .1em,.65em .7em,.25em .35em}.ol-editbar .ol-offset>button i,.ol-editbar .ol-transform>button i{position:absolute;width:.9em;height:.9em;overflow:hidden;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-editbar .ol-offset>button i{width:.8em;height:.8em}.ol-editbar .ol-offset>button i:before,.ol-editbar .ol-transform>button i:before,.ol-editbar .ol-transform>button i:after{content:"";height:1em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:.5em 0 0 .1em,-.5em 0 0 .1em;box-shadow:.5em 0 0 .1em,-.5em 0 0 .1em;width:.1em;position:absolute;background-color:currentColor}.ol-editbar .ol-offset>button i:before{-webkit-box-shadow:.45em 0 0 .1em,-.45em 0 0 .1em;box-shadow:.45em 0 0 .1em,-.45em 0 0 .1em}.ol-editbar .ol-transform>button i:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-editbar .ol-split>button:before{width:.3em;height:.3em;top:.81em;left:.75em;border-radius:50%;-webkit-box-shadow:.1em -.4em,-.15em -.25em;box-shadow:.1em -.4em,-.15em -.25em}.ol-editbar .ol-split>button:after{width:.8em;height:.8em;top:.15em;left:-.1em;border:.1em solid currentColor;border-width:0 .2em .2em 0;background-color:transparent;border-radius:.1em;-webkit-transform:rotate(20deg) scaleY(.6) rotate(-45deg);transform:rotate(20deg) scaleY(.6) rotate(-45deg)}.ol-editbar .ol-drawregular>button:before{width:.9em;height:.9em;top:50%;left:50%;border:.1em solid currentColor;background-color:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div{border:.5em solid currentColor;border-color:transparent currentColor;display:inline-block;cursor:pointer;vertical-align:text-bottom}.ol-editbar .ol-drawregular .ol-bar:before,.ol-control.ol-bar.ol-editbar .ol-drawregular .ol-bar{left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-editbar .ol-drawregular .ol-bar .ol-text-button{min-width:6em;text-align:center}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div:first-child{border-width:.5em .5em .5em 0;margin:0 .5em 0 0}.ol-editbar .ol-drawregular .ol-bar .ol-text-button>div>div>div:last-child{border-width:.5em 0 .5em .5em;margin:0 0 0 .5em}.ol-gauge{top:.5em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-gauge>*{display:inline-block;vertical-align:middle}.ol-gauge>span{margin:0 .5em}.ol-gauge>div{display:inline-block;width:200px;border:1px solid rgba(0,60,136,.5);border-radius:3px;padding:1px}.ol-gauge button{height:.8em;margin:0;max-width:100%}.ol-control.ol-bookmark{top:.5em;left:3em}.ol-control.ol-bookmark button{position:relative}.ol-control.ol-bookmark>button:before{content:"";position:absolute;border-width:10px 5px 4px;border-style:solid;border-color:#fff;border-bottom-color:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:0}.ol-control.ol-bookmark>div{display:none;min-width:5em}.ol-control.ol-bookmark input{font-size:.9em;margin:.1em 0;padding:0 .5em}.ol-control.ol-bookmark ul{margin:0;padding:0;list-style:none;min-width:10em}.ol-control.ol-bookmark li{color:#003c88cc;font-size:.9em;padding:0 .2em 0 .5em;cursor:default;clear:both}.ol-control.ol-bookmark li:hover{background-color:#003c8880;color:#fff}.ol-control.ol-bookmark>div button{width:1em;height:.8em;float:right;background-color:transparent;cursor:pointer;border-radius:0}.ol-control.ol-bookmark>div button:before{content:"\2a2f";color:#936;font-size:1.2em;line-height:1em;border-radius:0;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bookmark ul li button,.ol-bookmark input{display:none}.ol-bookmark.ol-editable ul li button,.ol-bookmark.ol-editable input{display:block}.ol-control.ol-geobt{top:auto;left:auto;right:.5em;bottom:3em}.ol-touch .ol-control.ol-geobt{bottom:3.5em}.ol-control.ol-geobt button:before{content:"";position:absolute;background:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.16em solid currentColor;width:.4em;height:.4em;border-radius:50%}.ol-control.ol-geobt button:after{content:"";position:absolute;width:.2em;height:.2em;background:transparent;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:.42em 0,-.42em 0,0 .42em,0 -.42em;box-shadow:.42em 0,-.42em 0,0 .42em,0 -.42em}.ol-control.ol-bar.ol-geobar .ol-control{display:inline-block;vertical-align:middle}.ol-control.ol-bar.ol-geobar .ol-bar{display:none}.ol-bar.ol-geobar.ol-active .ol-bar{display:inline-block}.ol-bar.ol-geobar .geolocBt button:before,.ol-bar.ol-geobar .geolocBt button:after{content:"";display:block;position:absolute;border:1px solid transparent;border-width:.3em .8em 0 .2em;border-color:#fff transparent transparent;-webkit-transform:rotate(-30deg);transform:rotate(-30deg);top:.45em;left:.15em;font-size:1.2em}.ol-bar.ol-geobar .geolocBt button:after{border-width:0 .8em .3em .2em;border-color:transparent transparent #fff;-webkit-transform:rotate(-61deg);transform:rotate(-61deg)}.ol-bar.ol-geobar .startBt button:before{content:"";display:block;position:absolute;width:1em;height:1em;background-color:#800;border-radius:50%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bar.ol-geobar .pauseBt button:before,.ol-bar.ol-geobar .pauseBt button:after{content:"";display:block;position:absolute;width:.25em;height:1em;background-color:#fff;top:50%;left:35%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-bar.ol-geobar .pauseBt button:after{left:65%}.ol-control.ol-bar.ol-geobar .centerBt,.ol-control.ol-bar.ol-geobar .pauseBt,.ol-bar.ol-geobar.pauseTrack .startBt,.ol-bar.ol-geobar.centerTrack .startBt,.ol-bar.ol-geobar.centerTrack.pauseTrack .pauseBt,.ol-bar.ol-geobar.centerTrack .pauseBt{display:none}.ol-bar.ol-geobar.pauseTrack .pauseBt,.ol-bar.ol-geobar.centerTrack .centerBt{display:inline-block}.ol-control.ol-globe{position:absolute;left:.5em;bottom:.5em;border-radius:50%;opacity:.7;transform:scale(.5);transform-origin:0 100%;-webkit-transform:scale(.5);-webkit-transform-origin:0 100%}.ol-control.ol-globe:hover{opacity:.9}.ol-control.ol-globe .panel{display:block;width:170px;height:170px;background-color:#fff;cursor:pointer;border-radius:50%;overflow:hidden;-webkit-box-shadow:0 0 10px 5px rgba(255,255,255,.5);box-shadow:0 0 10px 5px #ffffff80}.ol-control.ol-globe .panel .ol-viewport{border-radius:50%}.ol-control.ol-globe .ol-pointer{display:block;background-color:#fff;width:10px;height:10px;border:10px solid red;position:absolute;top:50%;left:50%;transform:translate(-15px,-40px);-webkit-transform:translate(-15px,-40px);border-radius:50%;z-index:1;transition:opacity .15s,top 0s,left 0s;-webkit-transition:opacity .15s,top 0s,left 0s}.ol-control.ol-globe .ol-pointer.hidden{opacity:0;transition:opacity .15s,top 3s,left 5s;-webkit-transition:opacity .15s,top 3s,left 5s}.ol-control.ol-globe .ol-pointer:before{border-radius:50%;-webkit-box-shadow:6px 6px 10px 5px #000;box-shadow:6px 6px 10px 5px #000;content:"";display:block;height:0;left:0;position:absolute;top:23px;width:0}.ol-control.ol-globe .ol-pointer:after{content:"";width:0;height:0;display:block;position:absolute;border-width:20px 10px 0;border-color:red transparent;border-style:solid;left:-50%;top:100%}.ol-control.ol-globe .panel:before{border-radius:50%;-webkit-box-shadow:-20px -20px 80px 2px rgba(0,0,0,.7) inset;box-shadow:-20px -20px 80px 2px #000000b3 inset;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ol-control.ol-globe .panel:after{border-radius:50%;-webkit-box-shadow:0 0 20px 7px rgba(255,255,255,1);box-shadow:0 0 20px 7px #fff;content:"";display:block;height:0;left:23%;position:absolute;top:20%;-webkit-transform:rotate(-40deg);transform:rotate(-40deg);width:20%;z-index:1}.ol-control.ol-globe.ol-collapsed .panel{display:none}.ol-control-top.ol-globe{bottom:auto;top:5em;transform-origin:0 0;-webkit-transform-origin:0 0}.ol-control-right.ol-globe{left:auto;right:.5em;transform-origin:100% 100%;-webkit-transform-origin:100% 100%}.ol-control-right.ol-control-top.ol-globe{left:auto;right:.5em;transform-origin:100% 0;-webkit-transform-origin:100% 0}.ol-gridreference{background:#fff;border:1px solid #000;overflow:auto;max-height:100%;top:0;right:0}.ol-gridreference input{width:100%}.ol-gridreference ul{margin:0;padding:0;list-style:none}.ol-gridreference li{padding:0 .5em;cursor:pointer}.ol-gridreference ul li:hover{background-color:#ccc}.ol-gridreference li.ol-title,.ol-gridreference li.ol-title:hover{background:rgba(0,60,136,.5);color:#fff;cursor:default}.ol-gridreference ul li .ol-ref{margin-left:.5em}.ol-gridreference ul li .ol-ref:before{content:"("}.ol-gridreference ul li .ol-ref:after{content:")"}.ol-control.ol-imageline{bottom:0;left:0;right:0;padding:0;overflow:visible;-webkit-transition:.3s;transition:.3s;border-radius:0}.ol-control.ol-imageline.ol-collapsed{-webkit-transform:translateY(100%);transform:translateY(100%)}.ol-imageline>div{height:4em;position:relative;white-space:nowrap;scroll-behavior:smooth;overflow:hidden;width:100%}.ol-imageline>div.ol-move{scroll-behavior:unset}.ol-control.ol-imageline button{position:absolute;top:-1em;-webkit-transform:translateY(-100%);transform:translateY(-100%);margin:.65em;-webkit-box-shadow:0 0 0 .15em rgba(255,255,255,.4);box-shadow:0 0 0 .15em #fff6}.ol-control.ol-imageline button:before{content:"";position:absolute;-webkit-transform:translate(-50%,-50%) rotate(135deg);transform:translate(-50%,-50%) rotate(135deg);top:40%;left:50%;width:.4em;height:.4em;border:.1em solid currentColor;border-width:.15em .15em 0 0}.ol-control.ol-imageline.ol-collapsed button:before{top:60%;-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-imageline,.ol-imageline:hover{background-color:#000000bf}.ol-imageline.ol-arrow:after,.ol-imageline.ol-arrow:before{content:"";position:absolute;top:50%;left:.2em;border-color:#fff #000;border-width:1em .6em 1em 0;border-style:solid;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1;opacity:.8;pointer-events:none;-webkit-box-shadow:-.6em 0 0 1em #fff;box-shadow:-.6em 0 0 1em #fff}.ol-imageline.ol-arrow:after{border-width:1em 0 1em .6em;left:auto;right:.2em;-webkit-box-shadow:.6em 0 0 1em #fff;box-shadow:.6em 0 0 1em #fff}.ol-imageline.ol-scroll0.ol-arrow:before{display:none}.ol-imageline.ol-scroll1.ol-arrow:after{display:none}.ol-imageline .ol-image{position:relative;height:100%;display:inline-block;cursor:pointer}.ol-imageline img{max-height:100%;border:.25em solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-webkit-transition:1s;transition:1s}.ol-imageline img.ol-loaded{opacity:1}.ol-imageline .ol-image.select{background-color:#fff}.ol-imageline .ol-image span{position:absolute;width:125%;max-height:2.4em;left:50%;bottom:0;display:none;color:#fff;background-color:#00000080;font-size:.8em;overflow:hidden;white-space:normal;text-align:center;line-height:1.2em;-webkit-transform:translateX(-50%) scaleX(.8);transform:translate(-50%) scaleX(.8)}.ol-imageline .ol-image:hover span{display:block}.ol-control.ol-routing.ol-isochrone .ol-method-time,.ol-control.ol-routing.ol-isochrone .ol-method-distance,.ol-control.ol-routing.ol-isochrone>button{position:relative}.ol-control.ol-routing.ol-isochrone .ol-method-time:before,.ol-control.ol-routing.ol-isochrone>button:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.1em solid currentColor;width:.8em;height:.8em;border-radius:50%;-webkit-box-shadow:0 -.5em 0 -.35em,.4em -.35em 0 -.35em;box-shadow:0 -.5em 0 -.35em,.4em -.35em 0 -.35em;clip:unset}.ol-control.ol-routing.ol-isochrone .ol-method-time:after,.ol-control.ol-routing.ol-isochrone>button:after{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-60deg);transform:translate(-50%,-50%) rotate(-60deg);border-radius:50%;border:.3em solid transparent;border-right-color:currentColor;-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;clip:unset}.ol-control.ol-routing.ol-isochrone .ol-method-distance:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg);width:1em;height:.5em;border:.1em solid currentColor;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-routing.ol-isochrone .ol-method-distance:after{content:"";position:absolute;width:.1em;height:.15em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(-30deg);transform:translate(-50%,-50%) rotate(-30deg);-webkit-box-shadow:inset 0 -.15em,0 .1em,.25em .1em,-.25em .1em;box-shadow:inset 0 -.15em,0 .1em,.25em .1em,-.25em .1em}.ol-control.ol-routing.ol-isochrone .ol-direction-direct:before,.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:before{content:"";position:absolute;top:50%;left:30%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:.3em;height:.3em;border-radius:50%;border:.1em solid currentColor;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:.25em 0 0 -.05em;box-shadow:.25em 0 0 -.05em}.ol-control.ol-routing.ol-isochrone .ol-direction-direct:after,.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:after{content:"";position:absolute;top:50%;left:70%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:.4em solid transparent;border-width:.4em 0 .4em .4em;border-color:transparent currentColor}.ol-control.ol-routing.ol-isochrone .ol-direction-reverse:after{border-width:.4em .4em .4em 0}.ol-control.ol-isochrone.ol-collapsed .content{display:none}.ol-control.ol-isochrone input[type=number]{width:3em;text-align:right;margin:0 .1em}.ol-control.ol-isochrone .ol-distance input[type=number]{width:5em}.ol-isochrone .ol-time,.ol-isochrone .ol-distance{display:none}.ol-isochrone .ol-time.selected,.ol-isochrone .ol-distance.selected{display:block}.ol-control.ol-layerswitcher-popup{position:absolute;right:.5em;text-align:left;top:3em}.ol-control.ol-layerswitcher-popup .panel{clear:both;background:#fff}.ol-layerswitcher-popup .panel{list-style:none;padding:.25em;margin:0;overflow:hidden}.ol-layerswitcher-popup .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden}.ol-layerswitcher-popup.ol-collapsed .panel{display:none}.ol-layerswitcher-popup.ol-forceopen .panel{display:block}.ol-layerswitcher-popup button{background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==);background-position:center;background-repeat:no-repeat;float:right;height:38px;width:38px}.ol-layerswitcher-popup li{color:#369;padding:.25em 1em;font-family:Trebuchet MS,Helvetica,sans-serif;cursor:pointer}.ol-layerswitcher-popup li.ol-header{display:none}.ol-layerswitcher-popup li.select,.ol-layerswitcher-popup li.ol-visible{background:rgba(0,60,136,.7);color:#fff}.ol-layerswitcher-popup li:hover{background:rgba(0,60,136,.9);color:#fff}.ol-control.ol-layerswitcher.ol-layer-shop{height:calc(100% - 4em);max-height:unset;max-width:16em;background-color:transparent;pointer-events:none!important;overflow:visible}.ol-control.ol-layerswitcher>*{pointer-events:auto}.ol-control.ol-layer-shop>button,.ol-control.ol-layer-shop .panel-container{-webkit-box-shadow:0 0 0 3px rgba(255,255,255,.5);box-shadow:0 0 0 3px #ffffff80}.ol-control.ol-layerswitcher.ol-layer-shop .panel-container{overflow-y:scroll;max-height:calc(100% - 6.5em);border:2px solid #369;border-width:2px 0;padding:0}.ol-control.ol-layer-shop .panel{padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin:.25em .5em}.ol-control.ol-layerswitcher.ol-layer-shop .panel-container.ol-scrolldiv{overflow:hidden}.ol-control.ol-layer-shop .ol-scroll{background-color:#0000004d;opacity:.5}.ol-layerswitcher.ol-layer-shop ul.panel li.ol-header{display:none}.ol-layerswitcher.ol-layer-shop ul.panel li{margin-right:0;padding-right:0}.ol-layerswitcher.ol-layer-shop .layerup{height:1.5em;width:1.4em;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;background-color:transparent;color:#003c88}.ol-layerswitcher.ol-layer-shop .layerup:hover{background-color:#003c884d}.ol-layerswitcher.ol-layer-shop .layerup:before{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:0;background-color:currentColor;width:1em;height:2px;-webkit-box-shadow:0 -4px,0 4px;box-shadow:0 -4px,0 4px}.ol-layerswitcher.ol-layer-shop .layerup:after{content:unset}.ol-control.ol-layer-shop .ol-title-bar{background-color:#ffffff80;font-size:.9em;height:calc(2.8em - 4px);max-width:14.6em;padding:.7em .5em;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;-webkit-transform:scaleY(1.1);transform:scaleY(1.1);-webkit-transition:width 0s,-webkit-transform .1s;transition:width 0s,-webkit-transform .1s;transition:transform .1s,width 0s;transition:transform .1s,width 0s,-webkit-transform .1s;-webkit-transform-origin:100% 0;transform-origin:100% 0}.ol-control.ol-layer-shop:hover .ol-title-bar{background-color:#ffffffb3}.ol-control.ol-layer-shop.ol-collapsed .ol-title-bar{max-width:10em;-webkit-transform:scale(.9,1.1);transform:scale(.9,1.1)}.ol-control.ol-layer-shop.ol-forceopen .ol-title-bar{max-width:14.6em;-webkit-transform:scaleY(1.1);transform:scaleY(1.1)}.ol-control.ol-layer-shop .ol-bar{position:relative;height:1.75em;clear:both;-webkit-box-shadow:0 0 0 3px rgba(255,255,255,.5);box-shadow:0 0 0 3px #ffffff80;background-color:#fff;text-align:right;z-index:10}.ol-control.ol-layer-shop.ol-collapsed .ol-scroll,.ol-control.ol-layer-shop.ol-collapsed .ol-bar{border-width:2px 0 0;display:none}.ol-control.ol-layer-shop.ol-forceopen .ol-scroll,.ol-control.ol-layer-shop.ol-forceopen .ol-bar{display:block}.ol-control.ol-layer-shop .ol-bar>*{font-size:.9em;display:inline-block;vertical-align:middle;margin-top:.25em;background-color:transparent}.ol-layer-shop .ol-bar .ol-button,.ol-touch .ol-layer-shop .ol-bar .ol-button{position:relative;top:unset;left:unset;bottom:unset;right:unset;margin:0}.ol-layer-shop .ol-bar button{background-color:#fff;color:#003c88}.ol-layer-shop .ol-bar button:hover{background-color:#003c8833}.ol-touch .ol-layerswitcher.ol-layer-shop>button{font-size:1.7em}.ol-touch .ol-layer-shop .ol-bar{height:2em}.ol-touch .ol-layer-shop .ol-control button{font-size:1.4em}.ol-touch .ol-control.ol-layer-shop .panel{max-height:calc(100% - 7em)}.ol-touch .ol-control.ol-layer-shop .panel label{height:1.8em}.ol-touch .ol-control.ol-layer-shop .panel label span{margin-left:.5em;padding-top:.25em}.ol-touch .ol-control.ol-layer-shop .panel label:before,.ol-touch .ol-control.ol-layer-shop .panel label:after{font-size:1.3em;z-index:1}.ol-control.ol-layerswitcher{position:absolute;right:.5em;text-align:left;top:3em;max-height:calc(100% - 6em);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.ol-control.ol-layerswitcher .ol-switchertopdiv,.ol-control.ol-layerswitcher .ol-switcherbottomdiv{display:block}.ol-control.ol-layerswitcher.ol-collapsed .ol-switchertopdiv,.ol-control.ol-layerswitcher.ol-collapsed .ol-switcherbottomdiv{display:none}.ol-layerswitcher.ol-forceopen.ol-collapsed .ol-switchertopdiv,.ol-layerswitcher.ol-forceopen.ol-collapsed .ol-switcherbottomdiv{display:block}.ol-control.ol-layerswitcher .ol-switchertopdiv,.ol-control.ol-layerswitcher .ol-switcherbottomdiv{position:absolute;top:0;left:0;right:0;height:45px;background:#fff;z-index:2;opacity:1;cursor:pointer;border-top:2px solid transparent;border-bottom:2px solid #369;margin:0 2px;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-layerswitcher .ol-switcherbottomdiv{top:auto;bottom:0;height:2em;border-top:2px solid #369;border-bottom:2px solid transparent}.ol-control.ol-layerswitcher .ol-switchertopdiv:before,.ol-control.ol-layerswitcher .ol-switcherbottomdiv:before{content:"";position:absolute;left:50%;top:50%;border:10px solid transparent;width:0;height:0;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);opacity:.8}.ol-control.ol-layerswitcher .ol-switchertopdiv:hover:before,.ol-control.ol-layerswitcher .ol-switcherbottomdiv:hover:before{opacity:1}.ol-control.ol-layerswitcher .ol-switchertopdiv:before{border-bottom-color:#369;border-top:0}.ol-control.ol-layerswitcher .ol-switcherbottomdiv:before{border-top-color:#369;border-bottom:0}.ol-control.ol-layerswitcher .panel-container{background-color:#fff;border-radius:0 0 2px 2px;clear:both;display:block;padding:.5em .5em 0}.ol-layerswitcher .panel{list-style:none;padding:0;margin:0;overflow:hidden;font-family:Tahoma,Geneva,sans-serif;font-size:.9em;-webkit-transition:top .3s;transition:top .3s;position:relative;top:0}.ol-layerswitcher .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden;clear:both}.ol-layerswitcher input[type=radio],.ol-layerswitcher input[type=checkbox]{display:none}.ol-layerswitcher .panel li{-weblit-transition:-webkit-transform .2s linear;-webkit-transition:-webkit-transform .2s linear;transition:-webkit-transform .2s linear;transition:transform .2s linear;transition:transform .2s linear,-webkit-transform .2s linear;clear:both;display:block;border:1px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-layerswitcher .panel li.ol-layer-select{background-color:#003c8833;margin:0 -.5em;padding:0 .5em}.ol-layerswitcher .panel li.drag{opacity:.5;transform:scale(.8);-webkit-transform:scale(.8)}.ol-dragover{background:rgba(51,102,153,.5);opacity:.8}.ol-layerswitcher .panel li.forbidden,.forbidden .ol-layerswitcher-buttons div,.forbidden .layerswitcher-opacity div{background:rgba(255,0,0,.5);color:red!important}.ol-layerswitcher.drag,.ol-layerswitcher.drag *{cursor:not-allowed!important;cursor:no-drop!important}.ol-layerswitcher.drag .panel li.dropover,.ol-layerswitcher.drag .panel li.dropover *{cursor:pointer!important;cursor:n-resize!important;cursor:ns-resize!important;cursor:-webkit-grab!important;cursor:grab!important;cursor:-webkit-grabbing!important;cursor:grabbing!important}.ol-layerswitcher .panel li.dropover{background:rgba(51,102,153,.5)}.ol-layerswitcher .panel li label{display:inline-block;height:1.4em;max-width:12em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 0 0 1.7em;position:relative}.ol-layerswitcher .panel li label span{display:inline-block;width:100%;height:100%;overflow:hidden;text-overflow:ellipsis;padding-right:.2em}.ol-layerswitcher [type=radio]+label:before,.ol-layerswitcher [type=checkbox]+label:before,.ol-layerswitcher [type=radio]:checked+label:after,.ol-layerswitcher [type=checkbox]:checked+label:after{content:"";position:absolute;left:.1em;top:.1em;width:1.2em;height:1.2em;border:2px solid #369;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-layerswitcher [type=radio]+label:before,.ol-layerswitcher [type=radio]+label:after{border-radius:50%}.ol-layerswitcher [type=radio]:checked+label:after{background:#369 none repeat scroll 0 0;margin:.3em;width:.6em;height:.6em}.ol-layerswitcher [type=checkbox]:checked+label:after{background:transparent;border-width:0 3px 3px 0;border-style:solid;border-color:#369;width:.7em;height:1em;-webkit-transform:rotate(45deg);transform:rotate(45deg);left:.55em;top:-.05em;-webkit-box-shadow:1px 0px 1px 1px #fff;box-shadow:1px 0 1px 1px #fff}.ol-layerswitcher .panel li.ol-layer-hidden{opacity:.6}.ol-layerswitcher.ol-collapsed .panel-container{display:none}.ol-layerswitcher.ol-forceopen .panel-container{display:block}.ol-layerswitcher>button{background-color:#fff;float:right;z-index:10;position:relative;font-size:1.7em}.ol-touch .ol-layerswitcher>button{font-size:2.5em}.ol-layerswitcher>button:before,.ol-layerswitcher>button:after{content:"";position:absolute;width:.75em;height:.75em;border-radius:.15em;-webkit-transform:scaleY(.8) rotate(45deg);transform:scaleY(.8) rotate(45deg)}.ol-layerswitcher>button:before{background:#e2e4e1;top:.32em;left:.34em;-webkit-box-shadow:.1em .1em #325158;box-shadow:.1em .1em #325158}.ol-layerswitcher>button:after{top:.22em;left:.34em;background:#83bcc5;background-image:radial-gradient(circle at .85em .6em,#70b3be 0,#70b3be .65em,#83bcc5 .65em)}.ol-layerswitcher-buttons{display:block;float:right;text-align:right}.ol-layerswitcher-buttons>div{display:inline-block;position:relative;cursor:pointer;height:1em;width:1em;margin:2px;line-height:1em;text-align:center;background:#369;vertical-align:middle;color:#fff}.ol-layerswitcher .panel li>div{display:inline-block;position:relative}.ol-layerswitcher .ol-separator{display:block;width:0;height:0;padding:0;margin:0}.ol-layerswitcher .layerup{float:right;height:2.5em;background-color:#369;opacity:.5;cursor:move;cursor:ns-resize}.ol-layerswitcher .layerup:before,.ol-layerswitcher .layerup:after{border-color:#fff transparent;border-style:solid;border-width:.4em .4em 0;content:"";height:0;position:absolute;bottom:3px;left:.1em;width:0}.ol-layerswitcher .layerup:after{border-width:0 .4em .4em;top:3px;bottom:auto}.ol-layerswitcher .layerInfo{background:#369;border-radius:100%}.ol-layerswitcher .layerInfo:before{color:#fff;content:"i";display:block;font-size:.8em;font-weight:700;text-align:center;width:1.25em;position:absolute;left:0;top:0}.ol-layerswitcher .layerTrash{background:#369}.ol-layerswitcher .layerTrash:before{color:#fff;content:"\d7";font-size:1em;top:50%;left:0;right:0;text-align:center;line-height:1em;margin:-.5em 0;position:absolute}.ol-layerswitcher .layerExtent{background:#369}.ol-layerswitcher .layerExtent:before{border-right:1px solid #fff;border-bottom:1px solid #fff;content:"";display:block;position:absolute;left:6px;right:2px;top:6px;bottom:3px}.ol-layerswitcher .layerExtent:after{border-left:1px solid #fff;border-top:1px solid #fff;content:"";display:block;position:absolute;bottom:6px;left:2px;right:6px;top:3px}.ol-layerswitcher .expend-layers,.ol-layerswitcher .collapse-layers{margin:0 2px;background-color:transparent}.ol-layerswitcher .expend-layers:before,.ol-layerswitcher .collapse-layers:before{content:"";position:absolute;top:50%;left:0;margin-top:-2px;height:4px;width:100%;background:#369}.ol-layerswitcher .expend-layers:after{content:"";position:absolute;left:50%;top:0;margin-left:-2px;width:4px;height:100%;background:#369}.ol-layerswitcher .layerswitcher-opacity{position:relative;border:1px solid #369;height:3px;width:120px;margin:5px 1em 10px 7px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;background:#69c;background:-webkit-gradient(linear,left top,right top,from(rgba(0,60,136,0)),to(rgba(0,60,136,.6)));background:linear-gradient(to right,rgba(0,60,136,0),rgba(0,60,136,.6));cursor:pointer;-webkit-box-shadow:1px 1px 1px rgba(0,0,0,.5);box-shadow:1px 1px 1px #00000080}.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor,.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before{position:absolute;width:20px;height:20px;top:50%;left:50%;background:rgba(0,60,136,.5);border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1}.ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor:before{content:"";position:absolute;width:50%;height:50%}.ol-touch .ol-layerswitcher .layerswitcher-opacity .layerswitcher-opacity-cursor{width:26px;height:26px}.ol-layerswitcher .layerswitcher-opacity-label{display:none;position:absolute;right:-2.5em;bottom:5px;font-size:.8em}.ol-layerswitcher .layerswitcher-opacity-label:after{content:"%"}.ol-layerswitcher .layerswitcher-progress{display:block;margin:-4px 1em 2px 7px;width:120px}.ol-layerswitcher .layerswitcher-progress div{background-color:#369;height:2px;display:block;width:0}.ol-control.ol-layerswitcher-image{position:absolute;right:.5em;text-align:left;top:1em;transition:all .2s ease 0s;-webkit-transition:all .2s ease 0s}.ol-control.ol-layerswitcher-image.ol-collapsed{top:3em;-webkit-transition:none;transition:none}.ol-layerswitcher-image .panel{list-style:none;padding:.25em;margin:0;overflow:hidden}.ol-layerswitcher-image .panel ul{list-style:none;padding:0 0 0 20px;overflow:hidden}.ol-layerswitcher-image.ol-collapsed .panel{display:none}.ol-layerswitcher-image.ol-forceopen .panel{display:block;clear:both}.ol-layerswitcher-image button{background-color:#fff;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAACE1BMVEX///8A//8AgICA//8AVVVAQID///8rVVVJtttgv98nTmJ2xNgkW1ttyNsmWWZmzNZYxM4gWGgeU2JmzNNr0N1Rwc0eU2VXxdEhV2JqytQeVmMhVmNoydUfVGUgVGQfVGQfVmVqy9hqy9dWw9AfVWRpydVry9YhVmMgVGNUw9BrytchVWRexdGw294gVWQgVmUhVWPd4N6HoaZsy9cfVmQgVGRrytZsy9cgVWQgVWMgVWRsy9YfVWNsy9YgVWVty9YgVWVry9UgVWRsy9Zsy9UfVWRsy9YgVWVty9YgVWRty9Vsy9aM09sgVWRTws/AzM0gVWRtzNYgVWRuy9Zsy9cgVWRGcHxty9bb5ORbxdEgVWRty9bn6OZTws9mydRfxtLX3Nva5eRix9NFcXxOd4JPeINQeIMiVmVUws9Vws9Vw9BXw9BYxNBaxNBbxNBcxdJexdElWWgmWmhjyNRlx9IqXGtoipNpytVqytVryNNrytZsjZUuX210k5t1y9R2zNR3y9V4lp57zth9zdaAnKOGoaeK0NiNpquV09mesrag1tuitbmj1tuj19uktrqr2d2svcCu2d2xwMO63N+7x8nA3uDC3uDFz9DK4eHL4eLN4eIyYnDX5OM5Z3Tb397e4uDf4uHf5uXi5ePi5+Xj5+Xk5+Xm5+Xm6OY6aHXQ19fT4+NfhI1Ww89gx9Nhx9Nsy9ZWw9Dpj2abAAAAWnRSTlMAAQICAwQEBgcIDQ0ODhQZGiAiIyYpKywvNTs+QklPUlNUWWJjaGt0dnd+hIWFh4mNjZCSm6CpsbW2t7nDzNDT1dje5efr7PHy9PT29/j4+Pn5+vr8/f39/f6DPtKwAAABTklEQVR4Xr3QVWPbMBSAUTVFZmZmhhSXMjNvkhwqMzMzMzPDeD+xASvObKePPa+ffHVl8PlsnE0+qPpBuQjVJjno6pZpSKXYl7/bZyFaQxhf98hHDKEppwdWIW1frFnrxSOWHFfWesSEWC6R/P4zOFrix3TzDFLlXRTR8c0fEEJ1/itpo7SVO9Jdr1DVxZ0USyjZsEY5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg==);background-position:center;background-repeat:no-repeat;float:right;height:38px;width:38px;display:none}.ol-layerswitcher-image.ol-collapsed button{display:block;position:relative}.ol-layerswitcher-image li{border-radius:4px;border:3px solid transparent;-webkit-box-shadow:1px 1px 4px rgba(0,0,0,.5);box-shadow:1px 1px 4px #00000080;display:inline-block;width:64px;height:64px;margin:2px;position:relative;background-color:#fff;overflow:hidden;vertical-align:middle;cursor:pointer}.ol-layerswitcher-image li.ol-layer-hidden{opacity:.5;border-color:#555}.ol-layerswitcher-image li.ol-header{display:none}.ol-layerswitcher-image li img{position:absolute;max-width:100%}.ol-layerswitcher-image li.select,.ol-layerswitcher-image li.ol-visible{border:3px solid red}.ol-layerswitcher-image li p{display:none}.ol-layerswitcher-image li:hover p{background-color:#00000080;color:#fff;bottom:0;display:block;left:0;margin:0;overflow:hidden;position:absolute;right:0;text-align:center;height:1.2em;font-family:Verdana,Geneva,sans-serif;font-size:.8em}.ol-control.ol-legend{bottom:.5em;left:.5em;z-index:1;max-height:90%;max-width:90%;overflow-x:hidden;overflow-y:auto}.ol-control.ol-legend.ol-collapsed{overflow:hidden}.ol-control.ol-legend button{position:relative;display:none}.ol-control.ol-legend.ol-collapsed button{display:block}.ol-control.ol-legend.ol-uncollapsible button{display:none}.ol-control.ol-legend button.ol-closebox{display:block;position:absolute;top:0;right:0;background:none;cursor:pointer;z-index:1}.ol-control.ol-legend.ol-uncollapsible button.ol-closebox,.ol-control.ol-legend.ol-collapsed button.ol-closebox{display:none}.ol-control.ol-legend button.ol-closebox:before{content:"\d7";background:none;color:#003c8880;font-size:1.3em}.ol-control.ol-legend button.ol-closebox:hover:before{color:#003c88}.ol-control.ol-legend .ol-legendImg{display:block}.ol-control.ol-legend.ol-collapsed .ol-legendImg{display:none}.ol-control.ol-legend.ol-uncollapsible .ol-legendImg{display:block}.ol-control.ol-legend>button:first-child:before,.ol-control.ol-legend>button:first-child:after{content:"";position:absolute;top:.25em;left:.2em;width:.2em;height:.2em;background-color:currentColor;-webkit-box-shadow:0 .35em,0 .7em;box-shadow:0 .35em,0 .7em}.ol-control.ol-legend button:first-child:after{top:.27em;left:.55em;height:.15em;width:.6em}ul.ol-legend{position:absolute;top:0;left:0;width:100%;margin:0;padding:0;list-style:none}.ol-control.ol-legend.ol-collapsed ul{display:none}.ol-control.ol-legend.ol-uncollapsible ul{display:block}ul.ol-legend li.ol-title{text-align:center;font-weight:700}ul.ol-legend li.ol-title>div:first-child{width:0!important}ul.ol-legend li{overflow:hidden;padding:0;white-space:nowrap}ul.ol-legend li div{display:inline-block;vertical-align:middle}.ol-control.ol-legend .ol-legend{display:inline-block}.ol-control.ol-legend.ol-collapsed .ol-legend{display:none}.ol-control.ol-mapzone{position:absolute;right:.5em;text-align:left;top:.5em;max-height:calc(100% - 6em);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.ol-control.ol-mapzone.ol-collapsed{top:3em}.ol-control.ol-mapzone button{position:relative;float:right;margin-top:2.2em}.ol-touch .ol-control.ol-mapzone button{margin-top:1.67em}.ol-control.ol-mapzone.ol-collapsed button{margin-top:0}.ol-control.ol-mapzone button i{border:.1em solid currentColor;border-radius:50%;width:.9em;height:.9em;overflow:hidden;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-control.ol-mapzone button i:before{content:"";background-color:currentColor;width:.4em;height:.4em;position:absolute;left:.5em;top:.3em;border-radius:50%;-webkit-box-shadow:.05em .3em 0 -.051em currentColor,-.05em -.35em 0 -.1em currentColor,-.5em -.35em 0 0em currentColor,-.65em .1em 0 -.03em currentColor,-.65em -.05em 0 -.05em currentColor;box-shadow:.05em .3em 0 -.051em currentColor,-.05em -.35em 0 -.1em currentColor,-.5em -.35em 0 0 currentColor,-.65em .1em 0 -.03em currentColor,-.65em -.05em 0 -.05em currentColor}.ol-mapzone>div{position:relative;display:inline-block;width:5em;height:5em;margin:0 .2em 0 0}.ol-control.ol-mapzone.ol-collapsed>div{display:none}.ol-mapzone>div p{margin:0;position:absolute;bottom:0;color:#fff;font-weight:700;text-align:center;width:160%;overflow:hidden;font-family:Lucida Grande,Verdana,Geneva,Lucida,Arial,Helvetica,sans-serif;-webkit-transform:scaleX(.625);transform:scaleX(.625);-webkit-transform-origin:0 0;transform-origin:0 0;cursor:default}.ol-notification{width:150%;bottom:0;border:0;background:none;margin:0;padding:0}.ol-notification>div,.ol-notification>div:hover{position:absolute;background-color:#000c;color:#fff;bottom:0;left:33.33%;max-width:calc(66% - 4em);min-width:5em;max-height:5em;min-height:1em;border-radius:4px 4px 0 0;padding:.2em .5em;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-transition:.3s;transition:.3s;opacity:1}.ol-notification.ol-collapsed>div{bottom:-5em;opacity:0}.ol-notification a{color:#9cf;cursor:pointer}.ol-notification .ol-close,.ol-notification .ol-close:hover{padding-right:1.5em}.ol-notification .closeBox{position:absolute;top:0;right:.3em}.ol-notification .closeBox:before{content:"\d7"}.ol-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#0006;padding:1em;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1;opacity:0;display:none;cursor:default;overflow:hidden;-webkit-transition:all .5s;transition:all .5s;pointer-events:none}.ol-overlay.slide-up{transform:translateY(100%);-webkit-transform:translateY(100%)}.ol-overlay.slide-down{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.ol-overlay.slide-left{-webkit-transform:translateX(-100%);transform:translate(-100%)}.ol-overlay.slide-right{-webkit-transform:translateX(100%);transform:translate(100%)}.ol-overlay.zoom{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0)}.ol-overlay.zoomout{-webkit-transform:scale(3);transform:scale(3)}.ol-overlay.zoomrotate{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scale(0) rotate(360deg);transform:translate(-50%,-50%) scale(0) rotate(360deg)}.ol-overlay.stretch{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scaleX(0);transform:translate(-50%,-50%) scaleX(0)}.ol-overlay.stretchy{top:50%;left:50%;opacity:.5;-webkit-transform:translate(-50%,-50%) scaleY(0);transform:translate(-50%,-50%) scaleY(0)}.ol-overlay.wipe{opacity:1}.ol-overlay.flip{-webkit-transform:perspective(600px) rotateY(180deg);transform:perspective(600px) rotateY(180deg)}.ol-overlay.card{opacity:.5;-webkit-transform:translate(-80%,100%) rotate(-.5turn);transform:translate(-80%,100%) rotate(-.5turn)}.ol-overlay.book{-webkit-transform:perspective(600px) rotateY(-180deg) scaleX(.6);transform:perspective(600px) rotateY(-180deg) scaleX(.6);-webkit-transform-origin:10% 50%;transform-origin:10% 50%}.ol-overlay.book.visible{-webkit-transform-origin:10% 50%;transform-origin:10% 50%}.ol-overlay.ol-visible{opacity:1;top:0;left:0;right:0;bottom:0;-webkit-transform:none;transform:none;pointer-events:all}.ol-overlay .ol-closebox{position:absolute;top:1em;right:1em;width:1em;height:1em;cursor:pointer;z-index:1}.ol-overlay .ol-closebox:before{content:"\274c";display:block;text-align:center;vertical-align:middle}.ol-overlay .ol-fullscreen-image{position:absolute;top:0;left:0;bottom:0;right:0}.ol-overlay .ol-fullscreen-image img{position:absolute;max-width:100%;max-height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1em;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlay .ol-fullscreen-image.ol-has-title img{padding-bottom:3em}.ol-overlay .ol-fullscreen-image p{background-color:#00000080;padding:.5em;position:absolute;left:0;right:0;bottom:0;margin:0;text-align:center}.ol-control.ol-overview{position:absolute;left:.5em;text-align:left;bottom:.5em}.ol-control.ol-overview .panel{display:block;width:150px;height:150px;margin:2px;background-color:#fff;border:1px solid #369;cursor:pointer}.ol-overview:not(.ol-collapsed) button{position:absolute;bottom:2px;left:2px;z-index:2}.ol-control.ol-overview.ol-collapsed .panel{display:none}.ol-overview.ol-collapsed button:before{content:"\bb"}.ol-overview button:before{content:"\ab"}.ol-control-right.ol-overview{left:auto;right:.5em}.ol-control-right.ol-overview:not(.ol-collapsed) button{left:auto;right:2px}.ol-control-right.ol-overview.ol-collapsed button:before{content:"\ab"}.ol-control-right.ol-overview button:before{content:"\bb"}.ol-control-top.ol-overview{bottom:auto;top:5em}.ol-control-top.ol-overview:not(.ol-collapsed) button{bottom:auto;top:2px}.ol-permalink{position:absolute;top:.5em;right:2.5em}.ol-touch .ol-permalink{right:3em}.ol-permalink button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AcFBjYE1ZK03gAAAUlJREFUOMuVk71KA1EQhc/NaiP+gCRpFHwGBSFlCrFVfAsbwSJCBMv06QIGJOBziI3EYAgkjU8gIloIAasIn4WzMqx34zrN7J6de+6ZmbNSgQDSfADcATPgHbgCyvonSYv8KEzWdofegH3gwmG9Ikq67sAESFzNueHThTyiEIKAmr2OJCUhhO30Aou+5aUQU2Ik65K2JC1KegohPGfUBkmvksqShnntHEcGOs60NXHfjmKz6czZTsNqbhzW+muwY2ATWAWawCOwBgxcTfvnvCPxKx4Cy5bPgBWgauRpdL2ImNlGhp3MabETm8mh94nDk4yCNE5/KTGg7xxbyhYAG0AN2AEqURIDZ0a0Fxn+LXAPXDpzRqMk6cOedz1ubdYl1b6NHgZRJe72nuu/CdSBl+yKi/zZlTnbaeXOJIesClwDU+ATeEhtX5TkCwAWUyAsHH1QAAAAAElFTkSuQmCC);background-position:center;background-repeat:no-repeat}.ol-control.ol-print{top:.5em;left:3em}.ol-control.ol-print button:before{content:"";width:.9em;height:.35em;position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset 0 0 0 .1em,inset .55em 0,0 .2em 0 -.1em;box-shadow:inset 0 0 0 .1em,inset .55em 0,0 .2em 0 -.1em}.ol-control.ol-print button:after{content:"";width:.7em;height:.6em;position:absolute;left:50%;top:25%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset 0 0 0 .15em;box-shadow:inset 0 0 0 .15em}.ol-ext-print-dialog{width:100%;height:100%}.ol-ext-print-dialog>form .ol-closebox{right:auto;left:16.5em;z-index:1;color:#999}.ol-ext-print-dialog .ol-content[data-status=printing]{opacity:.5}.ol-ext-print-dialog .ol-content .ol-error{display:none;background:#b00;color:#ff0;text-align:center;padding:1em .5em;font-weight:700;margin:0 -1em}.ol-ext-print-dialog .ol-content[data-status=error] .ol-error{display:block}.ol-ext-print-dialog>form,.ol-ext-print-dialog.ol-visible>form{-webkit-transition:none;transition:none;top:1em;left:1em;bottom:1em;right:1em;-webkit-transform:none;transform:none;max-width:100%;max-height:100%;background-color:#eee;padding:0}.ol-ext-print-dialog .ol-print-map{position:absolute;top:0;bottom:0;right:0;width:calc(100% - 18em);overflow:hidden}.ol-ext-print-dialog .ol-print-map .ol-page{position:absolute;left:50%;top:50%;background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-print-dialog .ol-print-map .ol-page.margin{-webkit-box-sizing:content-box;box-sizing:content-box}.ol-ext-print-dialog .ol-map{width:100%;height:100%}.ol-ext-print-dialog .ol-print-map .ol-control{display:none!important}.ol-ext-print-dialog .ol-print-param{position:absolute;overflow-x:hidden;top:0;bottom:0;left:0;width:18em;background-color:#fff;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-print-dialog .ol-print-param h2{display:block;color:#003c88b3;font-size:1.1em}.ol-ext-print-dialog .ol-print-param ul{padding:0;list-style:none}.ol-ext-print-dialog .ol-print-param li{position:relative;margin:.5em 0;font-size:.9em}.ol-ext-print-dialog .ol-print-param li.hidden{display:none}.ol-ext-print-dialog .ol-print-param label{width:8em;display:inline-block;vertical-align:middle}.ol-ext-print-dialog select{outline:none;vertical-align:middle}.ol-ext-print-dialog .ol-orientation{text-align:center}.ol-ext-print-dialog .ol-orientation label{position:relative;width:7em;cursor:pointer}.ol-ext-print-dialog .ol-orientation input{position:absolute;opacity:0;width:0;height:0}.ol-ext-print-dialog .ol-orientation span{position:relative;width:80%;display:block;padding:3.5em 0 .2em}.ol-ext-print-dialog .ol-orientation span:before{content:"";position:absolute;width:2em;height:2.6em;bottom:1.5em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);color:#333;background-color:currentColor;border:1px solid currentColor;border-radius:0 1em 0 0;opacity:.5;overflow:hidden;-webkit-box-shadow:inset 1.3em -1.91em #ddd;box-shadow:inset 1.3em -1.91em #ddd}.ol-ext-print-dialog .ol-orientation .landscape span:before{width:2.6em;height:2em;margin:.2em 0;-webkit-box-shadow:inset 1.91em -1.3em #ddd;box-shadow:inset 1.91em -1.3em #ddd}.ol-ext-print-dialog .ol-orientation input:checked+span{opacity:1;-webkit-box-shadow:0 0 .2em rgba(0,0,0,.5);box-shadow:0 0 .2em #00000080}.ol-ext-print-dialog .ol-ext-toggle-switch span{position:absolute;right:-2em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-print-title input[type=text]{margin-top:.5em;width:calc(100% - 6em);margin-left:6em}.ol-ext-print-dialog .ol-size option:first-child{font-style:italic}.ol-ext-print-dialog .ol-saveas,.ol-ext-print-dialog .ol-savelegend{text-align:center}.ol-ext-print-dialog .ol-saveas select,.ol-ext-print-dialog .ol-savelegend select{background-color:#003c88b3;color:#fff;padding:.5em;margin:1em 0 0;font-size:1em;border:0;font-weight:700;max-width:12em}.ol-ext-print-dialog .ol-saveas select option,.ol-ext-print-dialog .ol-savelegend select option{background-color:#fff;color:#666}.ol-ext-print-dialog .ol-savelegend select{margin-top:0}.ol-ext-print-dialog .ol-ext-buttons{text-align:right;border-top:1px solid #ccc;padding:.8em .5em;margin:0 -1em}.ol-ext-print-dialog button{font-size:1em;margin:0 .2em;border:1px solid #999;background:none;padding:.3em 1em;color:#333}.ol-ext-print-dialog button[type=submit]{background-color:#003c88b3;color:#fff;font-weight:700}.ol-ext-print-dialog .ol-clipboard-copy{position:absolute;pointer-events:none;top:0;background-color:#00000080;color:#fff;padding:.5em 1em;border-radius:1em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-transition:0s;transition:0s;opacity:0}.ol-ext-print-dialog .ol-clipboard-copy.visible{-webkit-animation:1s ol-clipboard-copy;animation:1s ol-clipboard-copy}.ol-ext-print-dialog .ol-print-map .ol-control.ol-canvas-control,.ol-ext-print-dialog .ol-print-map .ol-control.ol-print-compass{display:block!important}.ol-ext-print-dialog .ol-print-map .ol-control.olext-print-compass{top:0;right:0;width:60px;height:60px;margin:20px}@-webkit-keyframes ol-clipboard-copy{0%{opacity:0;top:0}80%{opacity:1;top:-3em}to{opacity:0;top:-3em}}@keyframes ol-clipboard-copy{0%{opacity:0;top:0}80%{opacity:1;top:-3em}to{opacity:0;top:-3em}}@media print{body.ol-print-document{margin:0!important;padding:0!important}body.ol-print-document>*{display:none!important}body.ol-print-document>.ol-ext-print-dialog{display:block!important}.ol-ext-print-dialog>form,.ol-ext-print-dialog{position:unset;-webkit-box-shadow:none;box-shadow:none;background:none!important;border:0}.ol-ext-print-dialog>form>*,.ol-ext-print-dialog .ol-print-param{display:none!important;background:none}.ol-ext-print-dialog .ol-content{display:block!important;border:0;background:none}.ol-ext-print-dialog .ol-print-map{position:unset;background:none;width:auto;overflow:visible}.ol-ext-print-dialog .ol-print-map .ol-page{-webkit-transform:none!important;transform:none!important;-webkit-box-shadow:none!important;box-shadow:none!important;position:unset}}@media (max-width: 25em){.ol-ext-print-dialog .ol-print-param{width:13em}.ol-ext-print-dialog .ol-print-map{width:calc(100% - 13em)}.ol-ext-print-dialog .ol-print-param .ol-print-title input[type=text]{width:100%;margin:0}}.ol-profil{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-control.ol-profil{position:absolute;top:.5em;right:3em;text-align:right;overflow:hidden}.ol-profil .ol-zoom-out{position:absolute;top:10px;right:10px;width:1em;height:1em;padding:0;border:1px solid #000;border-radius:2px;cursor:pointer}.ol-profil .ol-zoom-out:before{content:"";height:2px;width:60%;background:currentColor;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-profil .ol-inner{position:relative;padding:.5em;font-size:.8em}.ol-control.ol-profil .ol-inner{display:block;background-color:#ffffffb3;margin:2.3em 2px 2px}.ol-control.ol-profil.ol-collapsed .ol-inner{display:none}.ol-profil canvas{display:block}.ol-profil button{display:block;position:absolute;right:2px;background-position:center;background-repeat:no-repeat;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAPCAYAAAALWoRrAAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AgXCR4dn7j9TAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAAz0lEQVQ4y7WTMU4CURRFz0xIpLUBEhdAY2tJYW1jaWlsXYVxDWyBhWCFCYugYgnDFPMOhTMJGf3AwHiqn/uTk5v/3gfAH6b0RH7sMiIe1Ts162z+q2lVVbd1XqijLuJk0zzP1/VxCGyApLgsy+HJphGx8DeFOm6L1bn6eVQaEW+m2amTRqx+1fkqKY2Ie0+zUx/U7WGYfNMsy57PmMMN8A1MWsWeUoPyivV8PWtPOzL7D+lYHfUtBXgHGLTCJfBxodD6k9Dsm8BLE17LobQ39nJC61aLVoVsAAAAAElFTkSuQmCC)}.ol-profil.ol-collapsed button{position:static}.ol-profil .ol-profilbar,.ol-profil .ol-profilcursor{position:absolute;pointer-events:none;width:1px;display:none}.ol-profil .ol-profilcursor{width:0;height:0}.ol-profil .ol-profilcursor:before{content:"";pointer-events:none;display:block;margin:-2px;width:5px;height:5px}.ol-profil .ol-profilbar,.ol-profil .ol-profilcursor:before{background:red}.ol-profil table{text-align:center;width:100%}.ol-profil table span{display:block}.ol-profilpopup{background-color:#ffffff80;margin:.5em;padding:0 .5em;position:absolute;top:-1em;white-space:nowrap}.ol-profilpopup.ol-left{right:0}.ol-profil table td{padding:0 2px}.ol-profil table .track-info{display:table-row}.ol-profil table .point-info,.ol-profil .over table .track-info{display:none}.ol-profil .over table .point-info{display:table-row}.ol-profil p{text-align:center;margin:0}.ol-control.ol-progress-bar{position:absolute;top:0;bottom:0;left:0;right:0;padding:0;pointer-events:none!important;background-color:transparent}.ol-control.ol-progress-bar>.ol-bar{position:absolute;background-color:#003c8880;left:0;bottom:0;height:.5em;width:0;-webkit-transition:width .2s;transition:width .2s;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-progress-bar>.ol-waiting{display:none}.ol-viewport .ol-control.ol-progress-bar>.ol-waiting{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff;font-size:2em;display:block;-webkit-animation:1s linear infinite ol-progress-bar-blink;animation:1s linear infinite ol-progress-bar-blink}@-webkit-keyframes ol-progress-bar-blink{0%,30%{visibility:hidden}to{visibility:visible}}@keyframes ol-progress-bar-blink{0%,30%{visibility:hidden}to{visibility:visible}}.ol-control.ol-routing{top:.5em;left:3em;max-height:90%;overflow-y:auto}.ol-touch .ol-control.ol-routing{left:3.5em}.ol-control.ol-routing.ol-searching{opacity:.5}.ol-control.ol-routing .ol-car,.ol-control.ol-routing>button{position:relative}.ol-control.ol-routing .ol-car:after,.ol-control.ol-routing>button:after{content:"";position:absolute;width:.78em;height:.6em;border-radius:40% 50% 0 0/50% 70% 0 0;-webkit-box-shadow:inset 0 0 0 .065em,-.35em .14em 0 -.09em,inset 0 -.37em,inset -.14em .005em;box-shadow:inset 0 0 0 .065em,-.35em .14em 0 -.09em,inset 0 -.37em,inset -.14em .005em;clip:rect(0 1em .5em -1em);top:.35em;left:.4em}.ol-control.ol-routing .ol-car:before,.ol-control.ol-routing>button:before{content:"";position:absolute;width:.28em;height:.28em;border-radius:50%;-webkit-box-shadow:inset 0 0 0 1em,.65em 0;box-shadow:inset 0 0 0 1em,.65em 0;top:.73em;left:.2em}.ol-control.ol-routing .ol-pedestrian:after{content:"";position:absolute;width:.3em;height:.4em;top:.25em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);-webkit-box-shadow:inset .3em 0,.1em .5em 0 -.1em,-.1em .5em 0 -.1em,.25em .1em 0 -.1em,-.25em .1em 0 -.1em;box-shadow:inset .3em 0,.1em .5em 0 -.1em,-.1em .5em 0 -.1em,.25em .1em 0 -.1em,-.25em .1em 0 -.1em;border-top:.2em solid transparent}.ol-control.ol-routing .ol-pedestrian:before{content:"";position:absolute;width:.3em;height:.3em;top:.1em;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);border-radius:50%;background-color:currentColor}.ol-control.ol-routing.ol-collapsed .content,.ol-routing .ol-search.ol-collapsed ul,.ol-routing .ol-search ul .copy{display:none}.ol-routing .content .search-input>div>*{display:inline-block;vertical-align:top}.ol-routing .ol-result ul{list-style:none;display:block}.ol-routing .ol-result li{position:relative;min-height:1.65em}.ol-routing .ol-result li i{display:block;font-size:.8em;font-weight:700}.ol-routing .ol-result li:before{content:"";border:5px solid transparent;position:absolute;left:-1.75em;border-bottom-color:#369;border-width:.6em .4em .6em;-webkit-transform-origin:50% 125%;transform-origin:50% 125%;-webkit-box-shadow:0 .65em 0 -.25em #369;box-shadow:0 .65em 0 -.25em #369;top:-.8em}.ol-routing .ol-result li:after{content:"";position:absolute;width:.3em;height:.6em;left:-1.5em;background:#369;top:.6em}.ol-routing .ol-result li.R:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ol-routing .ol-result li.FR:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ol-routing .ol-result li.L:before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.ol-routing .ol-result li.FL:before{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.ol-routing .content>i{vertical-align:middle;margin:0 .3em 0 .1em;font-style:normal}.ol-routing .ol-button,.ol-routing .ol-button:focus,.ol-routing .ol-pedestrian,.ol-routing .ol-car{font-size:1.1em;position:relative;display:inline-block;width:1.4em;height:1.4em;color:#003c88;background-color:transparent;margin:0 .1em;opacity:.5;vertical-align:middle;outline:none;cursor:pointer}.ol-routing .ol-button:hover,.ol-routing .ol-button.selected,.ol-routing i.selected{opacity:1;background:transparent}.ol-control.ol-routing:hover{background-color:#ffffffd9}.search-input>div>button:before{content:"\b1"}.ol-viewport .ol-scale{left:.5em;bottom:2.5em;text-align:center;-webkit-transform:scaleX(.8);-webkit-transform-origin:0 0;transform:scaleX(.8);transform-origin:0 0}.ol-viewport .ol-scale input{background:none;border:0;width:8em;text-align:center}.ol-search{top:.5em;left:3em}.ol-touch .ol-search{left:3.5em}.ol-search button{top:2px;left:2px;float:left}.ol-control.ol-search>button:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:.7em;height:.7em;background-color:transparent;border:.12em solid currentColor;border-radius:100%;top:.35em;left:.35em}.ol-control.ol-search>button:after{content:"";position:absolute;top:1.1em;left:.95em;width:.45em;height:.15em;background-color:currentColor;border-radius:.05em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.18em 0 0 -.03em;box-shadow:-.18em 0 0 -.03em}.ol-search button.ol-revers{float:none;background-image:none;display:inline-block;vertical-align:bottom;position:relative;top:0;left:0}.ol-search.ol-revers button.ol-revers{background-color:#00883c80}.ol-control.ol-search.ol-collapsed button.ol-revers{display:none}.ol-search button.ol-revers:before{content:"";border:.1em solid currentColor;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:50%;width:.55em;height:.55em;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-search button.ol-revers:after{content:"";position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:.2em;height:.2em;background-color:transparent;-webkit-box-shadow:.35em 0 currentColor,0 .35em currentColor,-.35em 0 currentColor,0 -.35em currentColor;box-shadow:.35em 0 currentColor,0 .35em currentColor,-.35em 0 currentColor,0 -.35em currentColor}.ol-search input{display:inline-block;border:0;margin:1px 1px 1px 2px;font-size:1.14em;padding-left:.3em;height:1.375em;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .1s;transition:all .1s}.ol-touch .ol-search input,.ol-touch .ol-search ul{font-size:1.5em}.ol-search.ol-revers>ul,.ol-control.ol-search.ol-collapsed>*{display:none}.ol-control.ol-search.ol-collapsed>button{display:block}.ol-search ul{list-style:none;padding:0;margin:0;display:block;clear:both;cursor:pointer;max-width:17em;overflow-x:hidden;z-index:1;background:#fff}.ol-search ul li{padding:.1em .5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ol-search ul li.select,.ol-search ul li:hover{background-color:#003c8880;color:#fff}.ol-search ul li img{float:left;max-height:2em}.ol-search li.copy{background:rgba(0,0,0,.5);color:#fff}.ol-search li.copy a{color:#fff;text-decoration:none}.ol-search.searching:before{content:"";position:absolute;height:3px;left:0;top:1.6em;-webkit-animation:pulse .5s infinite alternate linear;animation:pulse .5s infinite alternate linear;background:red;z-index:2}@-webkit-keyframes pulse{0%{left:0;right:95%}50%{left:30%;right:30%}to{left:95%;right:0}}@keyframes pulse{0%{left:0;right:95%}50%{left:30%;right:30%}to{left:95%;right:0}}.ol-search.IGNF-parcelle input{width:13.5em}.ol-search.IGNF-parcelle input:-moz-read-only{background:#ccc;opacity:.8}.ol-search.IGNF-parcelle input:read-only{background:#ccc;opacity:.8}.ol-search.IGNF-parcelle.ol-collapsed-list>ul.autocomplete{display:none}.ol-search.IGNF-parcelle label{display:block;clear:both}.ol-search.IGNF-parcelle>div input,.ol-search.IGNF-parcelle>div label{width:5em;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;margin:.1em;font-size:1em}.ol-search.IGNF-parcelle ul.autocomplete-page{margin-top:.5em;width:100%;text-align:center;display:none}.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-parcelle,.ol-search.IGNF-parcelle.ol-collapsed-list ul.autocomplete-page{display:block}.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-page,.ol-search.IGNF-parcelle.ol-collapsed ul.autocomplete-parcelle,.ol-search.IGNF-parcelle ul.autocomplete-parcelle{display:none}.ol-search.IGNF-parcelle ul.autocomplete-page li{display:inline-block;color:#fff;background:rgba(0,60,136,.5);border-radius:50%;width:1.3em;height:1.3em;padding:.1em;margin:0 .1em}.ol-search.IGNF-parcelle ul.autocomplete-page li.selected{background:rgba(0,60,136,1)}.ol-searchgps input.search{display:none}.ol-control.ol-searchgps>button:first-child{background-image:none}.ol-control.ol-searchgps>button:first-child:before{content:"x/y";position:unset;display:block;-webkit-transform:scaleX(.8);transform:scaleX(.8);border:unset;border-radius:0;width:auto;height:auto}.ol-control.ol-searchgps>button:first-child:after{content:unset}.ol-control.ol-searchgps .ol-latitude,.ol-control.ol-searchgps .ol-longitude{clear:both}.ol-control.ol-searchgps .ol-latitude label,.ol-control.ol-searchgps .ol-longitude label{width:5.5em;display:inline-block;text-align:right;-webkit-transform:scaleX(.8);transform:scaleX(.8);margin:0 -.8em 0 0;-webkit-transform-origin:0 0;transform-origin:0 0}.ol-control.ol-searchgps .ol-latitude input,.ol-control.ol-searchgps .ol-longitude input{max-width:10em}.ol-control.ol-searchgps .ol-ext-toggle-switch{cursor:pointer;float:right;margin:.5em;font-size:.9em}.ol-searchgps .ol-decimal{display:inline-block;margin-right:.7em}.ol-searchgps .ol-dms,.ol-searchgps.ol-dms .ol-decimal{display:none;width:3em;text-align:right}.ol-searchgps.ol-dms .ol-dms{display:inline-block}.ol-searchgps span.ol-dms{width:.5em;text-align:left}.ol-searchgps.ol-control.ol-collapsed button.ol-geoloc{display:none}.ol-searchgps button.ol-geoloc{top:0;float:right;margin-right:3px;background-image:none;position:relative}.ol-searchgps button.ol-geoloc:before{content:"";position:absolute;left:50%;top:50%;width:.6em;height:.6em;border:.1em solid currentColor;border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-searchgps button.ol-geoloc:after{content:"";position:absolute;left:50%;top:50%;width:.2em;height:.2em;background-color:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-box-shadow:.45em 0 currentColor,-.45em 0 currentColor,0 -.45em currentColor,0 .45em currentColor,.25em 0 currentColor,-.25em 0 currentColor,0 -.25em currentColor,0 .25em currentColor;box-shadow:.45em 0 currentColor,-.45em 0 currentColor,0 -.45em currentColor,0 .45em currentColor,.25em 0 currentColor,-.25em 0 currentColor,0 -.25em currentColor,0 .25em currentColor}.ol-control.ol-select{top:.5em;left:3em}.ol-touch .ol-control.ol-select{left:3.5em}.ol-control.ol-select>button:before{content:"A";font-size:.6em;font-weight:400;position:absolute;-webkit-box-sizing:content-box;box-sizing:content-box;width:1em;height:1em;background-color:transparent;border:.2em solid currentColor;border-radius:100%;top:.5em;left:.5em;line-height:1em;text-align:center}.ol-control.ol-select>button:after{content:"";position:absolute;top:1.15em;left:1em;width:.45em;height:.15em;background-color:currentColor;border-radius:.05em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.18em 0 0 -.03em;box-shadow:-.18em 0 0 -.03em}.ol-select>div button{width:auto;padding:0 .5em;float:right;font-weight:400}.ol-select .ol-delete{width:1.5em;height:1em;vertical-align:middle;display:inline-block;position:relative;cursor:pointer}.ol-select .ol-delete:before{content:"\d7";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%;text-align:center;font-weight:700}.ol-control.ol-select input{font-size:1em}.ol-control.ol-select select{font-size:1em;max-width:10em}.ol-control.ol-select select option.ol-default{color:#999;font-style:italic}.ol-control.ol-select>div{display:block}.ol-control.ol-select.ol-collapsed>div{display:none}.ol-control.ol-select.ol-select-check{max-width:20em}.ol-control.ol-select label.ol-ext-check{margin-right:1em}.ol-control.ol-select label.ol-ext-toggle-switch span{font-size:1.1em}.ol-select ul{list-style:none;margin:0;padding:0}.ol-control.ol-select input[type=search],.ol-control.ol-select input[type=text]{width:8em}.ol-select .ol-autocomplete{display:inline}.ol-select .ol-autocomplete ul{position:absolute;display:block;background:#fff;border:1px solid #999;min-width:10em;font-size:.85em}.ol-select .ol-autocomplete ul li{padding:0 .5em}.ol-select .ol-autocomplete ul li:hover{color:#fff;background:rgba(0,60,136,.5)}.ol-select ul.ol-hidden{display:none}.ol-select-multi li>div:hover,.ol-select-multi li>div.ol-control.ol-select{position:relative;top:unset;left:unset;background:transparent}.ol-select-multi li>div>button,.ol-select-multi li>div .ol-ok{display:none}.ol-select-multi li .ol-control.ol-select.ol-collapsed>div,.ol-select-multi li>div>div{display:block}.ol-control.ol-status{top:0;left:0;background:rgba(0,0,0,.2);color:#fff;font-size:.9em;padding:.3em 3em;border-radius:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none!important;display:none}.ol-control.ol-status.ol-visible{display:initial}.ol-control.ol-status.ol-bottom{top:auto;bottom:0}.ol-control.ol-status.ol-left{top:0;bottom:0;padding:.3em .5em .3em 3em;width:auto}.ol-control.ol-status.ol-right{top:0;bottom:0;left:auto;right:0;padding:.3em 3em .3em .5em;width:auto}.ol-control.ol-status.ol-center{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-control.ol-storymap{top:.5em;left:.5em;bottom:.5em;max-width:35%;border-radius:.5em;position:absolute;height:auto}.ol-storymap{overflow:hidden;padding:0;height:100%;position:relative}.ol-storymap>div{overflow:hidden;padding:0;height:100%;position:relative;scroll-behavior:smooth;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-storymap>div.ol-move{scroll-behavior:unset}.ol-control.ol-storymap .chapter{padding:.5em}.ol-storymap .chapter{cursor:pointer;opacity:.4}.ol-storymap .chapter.ol-select{cursor:default;opacity:1}.ol-storymap .ol-scroll-top,.ol-storymap .ol-scroll-next{position:relative;min-height:1.7em;color:#003c8880;text-align:center;cursor:pointer}.ol-storymap .ol-scroll-next span{padding-bottom:1.4em;display:block}.ol-storymap .ol-scroll-top span{padding-top:1.4em;display:block}.ol-storymap .ol-scroll-top:before,.ol-storymap .ol-scroll-next:before{content:"";border:.3em solid currentColor;border-radius:.3em;border-color:transparent currentColor currentColor transparent;width:.8em;height:.8em;display:block;position:absolute;left:50%;-webkit-transform:translateX(-50%) rotate(45deg);transform:translate(-50%) rotate(45deg);-webkit-animation:ol-bounce-bottom .35s linear infinite alternate;animation:ol-bounce-bottom .35s linear infinite alternate;pointer-events:none}.ol-storymap .ol-scroll-top:before{border-color:currentColor transparent transparent currentColor;-webkit-animation:ol-bounce-top .35s linear infinite alternate;animation:ol-bounce-top .35s linear infinite alternate}@-webkit-keyframes ol-bounce-top{0%{top:-.2em}to{top:.5em}}@keyframes ol-bounce-top{0%{top:-.2em}to{top:.5em}}@-webkit-keyframes ol-bounce-bottom{0%{bottom:-.2em}to{bottom:.5em}}@keyframes ol-bounce-bottom{0%{bottom:-.2em}to{bottom:.5em}}.ol-storymap img[data-title]{cursor:pointer}.ol-swipe{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-ms-touch-action:none;touch-action:none}.ol-swipe:before{content:"";position:absolute;top:-5000px;bottom:-5000px;left:50%;width:4px;background:#fff;z-index:-1;-webkit-transform:translate(-2px,0);transform:translate(-2px)}.ol-swipe.horizontal:before{left:-5000px;right:-5000px;top:50%;bottom:auto;width:auto;height:4px}.ol-swipe,.ol-swipe button{cursor:ew-resize}.ol-swipe.horizontal,.ol-swipe.horizontal button{cursor:ns-resize}.ol-swipe:after,.ol-swipe button:before,.ol-swipe button:after{content:"";position:absolute;top:25%;bottom:25%;left:50%;width:2px;background:rgba(255,255,255,.8);transform:translate(-1px);-webkit-transform:translate(-1px,0)}.ol-swipe button:after{transform:translate(5px);-webkit-transform:translateX(5px)}.ol-swipe button:before{transform:translate(-7px);-webkit-transform:translateX(-7px)}.ol-control.ol-timeline{bottom:0;left:0;right:0;-webkit-transition:.3s;transition:.3s}.ol-control.ol-timeline.ol-collapsed{-webkit-transform:translateY(100%);transform:translateY(100%)}.ol-timeline{overflow:hidden;padding:2px 0 0}.ol-timeline .ol-scroll{overflow:hidden;scroll-behavior:smooth;line-height:1em;height:6em;padding:0 50%}.ol-timeline .ol-scroll.ol-move{scroll-behavior:unset}.ol-timeline.ol-hasbutton .ol-scroll{margin-left:1.5em;padding:0 calc(50% - .75em)}.ol-timeline .ol-buttons{display:none;position:absolute;top:0;background:rgba(255,255,255,.5);width:1.5em;bottom:0;left:0;z-index:10}.ol-timeline.ol-hasbutton .ol-buttons{display:block}.ol-timeline .ol-buttons button{font-size:1em;margin:1px;position:relative}.ol-timeline .ol-buttons .ol-zoom-in:before,.ol-timeline .ol-buttons .ol-zoom-out:before{content:"+";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-timeline .ol-buttons .ol-zoom-out:before{content:"\2212"}.ol-timeline .ol-scroll>div{height:100%;position:relative}.ol-timeline .ol-scroll .ol-times{background:rgba(255,255,255,.5);height:1em;bottom:0;position:absolute;left:-1000px;right:-1000px}.ol-timeline .ol-scroll .ol-time{position:absolute;font-size:.7em;color:#999;bottom:0;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-timeline .ol-scroll .ol-time.ol-year{color:#666;z-index:1}.ol-timeline .ol-scroll .ol-time:before{content:"";position:absolute;bottom:1.2em;left:50%;height:500px;border-left:1px solid currentColor}.ol-timeline .ol-scroll .ol-features{position:absolute;top:0;bottom:1em;left:-200px;right:-1000px;margin:0 0 0 200px;overflow:hidden}.ol-timeline .ol-scroll .ol-feature{position:absolute;font-size:.7em;color:#999;top:0;background:#fff;max-width:3em;max-height:2.4em;min-height:1em;line-height:1.2em;border:1px solid #ccc;overflow:hidden;padding:0 .5em 0 0;-webkit-transition:all .3s;transition:all .3s;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-timeline.ol-zoomhover .ol-scroll .ol-feature:hover,.ol-timeline.ol-zoomhover .ol-scroll .ol-feature.ol-select{z-index:1;-webkit-transform:scale(1.2);transform:scale(1.2);background:#eee}.ol-timeline .ol-center-date{display:none;position:absolute;left:50%;height:100%;width:2px;bottom:0;z-index:2;pointer-events:none;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:red;opacity:.4}.ol-timeline.ol-hasbutton .ol-center-date{left:calc(50% + .75em)}.ol-timeline.ol-pointer .ol-center-date{display:block}.ol-timeline.ol-pointer .ol-center-date:before,.ol-timeline.ol-pointer .ol-center-date:after{content:"";border:.3em solid transparent;border-width:.3em .25em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%)}.ol-timeline.ol-pointer .ol-center-date:before{border-top-color:red;top:0}.ol-timeline.ol-pointer .ol-center-date:after{border-bottom-color:red;bottom:0}.ol-timeline.ol-interval .ol-center-date{display:block;background-color:transparent;border:0 solid #000;border-width:0 10000px;-webkit-box-sizing:content-box;box-sizing:content-box;opacity:.2}.ol-control.ol-videorec{top:0;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);white-space:nowrap}.ol-control.ol-videorec button{position:relative;display:inline-block;vertical-align:middle}.ol-control.ol-videorec button:before{content:"";position:absolute;top:50%;left:50%;width:.8em;height:.8em;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:currentColor}.ol-control.ol-videorec button.ol-start:before{width:.9em;height:.9em;border-radius:50%;background-color:#c00}.ol-control.ol-videorec button.ol-pause:before{width:.2em;background-color:transparent;-webkit-box-shadow:-.2em 0,.2em 0;box-shadow:-.2em 0,.2em 0}.ol-control.ol-videorec button.ol-resume:before{border-style:solid;background:transparent;width:auto;border-width:.4em 0 .4em .6em;border-color:transparent transparent transparent currentColor;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-control.ol-videorec button.ol-stop,.ol-control.ol-videorec button.ol-pause,.ol-control.ol-videorec button.ol-resume,.ol-control.ol-videorec[data-state=rec] .ol-start,.ol-control.ol-videorec[data-state=pause] .ol-start{display:none}.ol-control.ol-videorec[data-state=rec] .ol-stop,.ol-control.ol-videorec[data-state=pause] .ol-stop,.ol-control.ol-videorec[data-state=rec] .ol-pause,.ol-control.ol-videorec[data-state=pause] .ol-resume{display:inline-block}.ol-control.ol-wmscapabilities{top:.5em;right:2.5em}.ol-touch .ol-control.ol-wmscapabilities{right:3em}.ol-control.ol-wmscapabilities.ol-hidden{display:none}.ol-control.ol-wmscapabilities button:before{content:"+";position:absolute;top:calc(50% - .35em);left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-control.ol-wmscapabilities button:after{content:"";width:.75em;height:.75em;position:absolute;background:transparent;top:calc(50% - .05em);left:50%;-webkit-transform:scaleY(.6) translate(-50%,-50%) rotate(45deg);transform:scaleY(.6) translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:inset -.18em -.18em currentColor,-.4em .1em 0 -.25em currentColor,.1em -.35em 0 -.25em currentColor,.15em .15em currentColor;box-shadow:inset -.18em -.18em currentColor,-.4em .1em 0 -.25em currentColor,.1em -.35em 0 -.25em currentColor,.15em .15em currentColor;border-radius:.1em 0;border:.15em solid transparent;border-width:0 .15em .15em 0}.ol-wmscapabilities .ol-searching{opacity:.5}.ol-wmscapabilities .ol-searching .ol-url:after{content:"";width:.7em;height:.7em;background-color:currentColor;position:absolute;top:6em;border-radius:50%;display:block;left:calc(50% - .35em);-webkit-box-shadow:0 1em currentColor,0 -1em currentColor,1em 0 currentColor,-1em 0 currentColor;box-shadow:0 1em currentColor,0 -1em currentColor,1em 0 currentColor,-1em 0 currentColor;-webkit-animation:ol-wmscapabilities-rotate 2s linear infinite;animation:ol-wmscapabilities-rotate 2s linear infinite}@-webkit-keyframes ol-wmscapabilities-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes ol-wmscapabilities-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ol-wmscapabilities .ol-url input{width:calc(100% - 10em);-webkit-box-sizing:border-box;box-sizing:border-box;min-width:Min(100%,20em)}.ol-wmscapabilities .ol-url select{width:2em;height:100%;padding:1px}.ol-wmscapabilities .ol-url button{width:7.5em;margin-left:.5em}.ol-wmscapabilities .ol-result{display:none;margin-top:.5em}.ol-wmscapabilities .ol-result.ol-visible{display:block}.ol-wmscapabilities .ol-select-list{position:relative;border:1px solid #369;overflow-x:hidden;width:calc(100% - 120px);-webkit-box-sizing:border-box;box-sizing:border-box;max-height:14.5em}.ol-wmscapabilities .ol-select-list div{padding:0 .5em;cursor:pointer;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden}.ol-wmscapabilities .ol-select-list .level-1{padding-left:1em}.ol-wmscapabilities .ol-select-list .level-2{padding-left:1.5em}.ol-wmscapabilities .ol-select-list .level-3{padding-left:2em}.ol-wmscapabilities .ol-select-list .level-4{padding-left:2.5em}.ol-wmscapabilities .ol-select-list .level-5{padding-left:3em}.ol-wmscapabilities .ol-select-list .ol-info{font-style:italic}.ol-wmscapabilities .ol-select-list .ol-title{background-color:#003c881a}.ol-wmscapabilities .ol-select-list div:hover{background-color:#003c8880;color:#fff}.ol-wmscapabilities .ol-select-list div.selected{background-color:#003c88b3;color:#fff}.ol-wmscapabilities .ol-preview{width:100px;float:right;background:rgba(0,60,136,.1);color:#666;padding:0 5px 5px;text-align:center;margin-left:10px}.ol-wmscapabilities .ol-preview.tainted{width:100px;float:right;background:rgba(136,0,60,.1);color:#666;padding:0 5px 5px;text-align:center;margin-left:10px}.ol-wmscapabilities .ol-preview img{width:100%;display:block;background:#fff}.ol-wmscapabilities .ol-legend{max-width:100%;display:none}.ol-wmscapabilities .ol-legend.visible{display:block}.ol-wmscapabilities .ol-buttons{clear:both;text-align:right}.ol-wmscapabilities .ol-data p{margin:0}.ol-wmscapabilities .ol-data p.ol-title{font-weight:700;margin:1em 0 .5em}.ol-wmscapabilities .ol-error{color:#800}.ol-wmscapabilities ul.ol-wmsform{display:none;list-style:none;padding:0}.ol-wmscapabilities ul.ol-wmsform.visible{display:block}.ol-wmscapabilities .ol-wmsform label{display:inline-block;text-align:right;width:calc(40% - .5em);margin-right:.5em}.ol-wmscapabilities .ol-wmsform input{display:inline-block;width:60%;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-wmscapabilities .ol-wmsform input[type=checkbox]{width:auto}.ol-wmscapabilities .ol-wmsform button{float:right;margin:1em 0}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] input{width:calc(60% - 2em)}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button{position:relative;width:2em;height:1.6em;margin:0;vertical-align:middle;color:#444}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:before,.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:after{content:"";position:absolute;width:.25em;height:.9em;border:.1em solid currentColor;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) skewY(-15deg);transform:translate(-50%,-50%) skewY(-15deg)}.ol-wmscapabilities ul.ol-wmsform li[data-param=extent] button:after{-webkit-transform:translateX(.4em) translate(-50%,-50%) skewY(15deg);transform:translate(.4em) translate(-50%,-50%) skewY(15deg);-webkit-box-shadow:-.8em .25em;box-shadow:-.8em .25em}.ol-ext-dialog.ol-wmscapabilities form{max-height:calc(85% - 1em);width:600px;min-height:15em;top:15%;-webkit-transform:translate(-50%,0);transform:translate(-50%)}.ol-ext-dialog.ol-wmtscapabilities [data-param=map],.ol-ext-dialog [data-param=style]{display:none}.ol-ext-dialog.ol-wmtscapabilities [data-param=style]{display:list-item}.ol-ext-dialog.ol-wmtscapabilities [data-param=proj],.ol-ext-dialog.ol-wmtscapabilities [data-param=version]{opacity:.6;pointer-events:none}.ol-ext-dialog.ol-wmscapabilities button.ol-wmsform{width:1.8em;text-align:center}.ol-ext-dialog.ol-wmscapabilities button.ol-wmsform:before{content:"+"}.ol-ext-dialog.ol-wmscapabilities .ol-form button.ol-wmsform:before{content:"-"}.ol-ext-dialog.ol-wmscapabilities .ol-form button.ol-load,.ol-ext-dialog.ol-wmscapabilities .ol-form .ol-legend{display:none}.ol-ext-dialog.ol-wmscapabilities .ol-form ul.ol-wmsform{display:block;clear:both}.ol-target-overlay .ol-target{border:1px solid transparent;-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff;display:block;height:20px;width:0}.ol-target-overlay .ol-target:after,.ol-target-overlay .ol-target:before{content:"";border:1px solid #369;-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff;display:block;width:20px;height:0;position:absolute;top:10px;left:-10px}.ol-target-overlay .ol-target:after{-webkit-box-shadow:none;box-shadow:none;height:20px;width:0;top:0px;left:0px}.ol-overlaycontainer .ol-touch-cursor{width:56px;height:56px;margin:6px;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.4);-webkit-box-shadow:inset 0 0 0 5px #369;box-shadow:inset 0 0 0 5px #369}.ol-overlaycontainer .ol-touch-cursor:after{content:"";position:absolute;top:0;left:0;width:50%;height:50%;background:radial-gradient(circle at 100% 100%,transparent,transparent 70%,#369 70%,#369)}.ol-overlaycontainer .ol-touch-cursor .ol-button{position:absolute;color:#369;height:55%;width:55%;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.4);-webkit-box-shadow:inset 0 0 0 3px currentColor;box-shadow:inset 0 0 0 3px currentColor;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);-webkit-transition:all .5s,opacity 0s,background 0s;transition:all .5s,opacity 0s,background 0s;overflow:hidden}.ol-overlaycontainer .ol-touch-cursor.active.disable .ol-button{opacity:.8;background:rgba(51,102,153,.2)}.ol-overlaycontainer .ol-touch-cursor.active .ol-button{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-0{top:-18%;left:118%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-1{top:50%;left:140%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-2{top:120%;left:120%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-3{top:140%;left:50%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-4{top:118%;left:-18%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-5{top:50%;left:-40%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-6{top:-18%;left:-18%}.ol-overlaycontainer .ol-touch-cursor.active .ol-button-7{top:-40%;left:50%}.ol-overlaycontainer .ol-touch-cursor .ol-button:before{content:"";width:1.5em;height:1em;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:1em;text-align:center}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-add:before,.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-remove:before{content:"\2212";line-height:.95em;font-size:1.375em;font-weight:700}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-add:before{content:"+"}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-x:before{content:"\d7";font-size:1.2em;font-weight:700}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-move:before{content:"\2725";font-size:1.2em}.ol-overlaycontainer .ol-touch-cursor .ol-button.ol-button-check:before{content:"\2713";font-weight:700}.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-x,.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-remove,.ol-overlaycontainer .ol-touch-cursor.nodrawing .ol-button.ol-button-check{opacity:.8;background:rgba(51,102,153,.2)}.ol-overlaycontainer .ol-touch-cursor .ol-button>div{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlaycontainer .ol-touch-cursor .ol-button-type:before{content:"\21ce";font-weight:700}.mapboxgl-canvas:focus{outline:none}.ol-perspective-map{position:absolute;left:50%;top:50%;width:200%;height:200%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-perspective-map .ol-layer{z-index:-1!important}.ol-perspective-map .ol-layers{-webkit-transform:translateY(0) perspective(200px) rotateX(0deg) scaleY(1);transform:translateY(0) perspective(200px) rotateX(0) scaleY(1)}.ol-perspective-map .ol-overlaycontainer,.ol-perspective-map .ol-overlaycontainer-stopevent{width:50%!important;height:50%!important;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-overlay-container .ol-magnify{background:rgba(0,0,0,.5);border:3px solid #369;border-radius:50%;height:150px;width:150px;overflow:hidden;-webkit-box-shadow:5px 5px 5px rgba(0,0,0,.5);box-shadow:5px 5px 5px #00000080;position:relative;z-index:0}.ol-overlay-container .ol-magnify:before{border-radius:50%;-webkit-box-shadow:0 0 40px 2px rgba(0,0,0,.25) inset;box-shadow:0 0 40px 2px #00000040 inset;content:"";display:block;height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ol-overlay-container .ol-magnify:after{border-radius:50%;-webkit-box-shadow:0 0 20px 7px rgba(255,255,255,1);box-shadow:0 0 20px 7px #fff;content:"";display:block;height:0;left:23%;position:absolute;top:20%;width:20%;z-index:1;transform:rotate(-40deg);-webkit-transform:rotate(-40deg)}.ol-popup.anim{visibility:hidden}.ol-popup.anim.visible{visibility:visible}.ol-popup.anim.visible>div{visibility:visible;-webkit-transform:none;transform:none;-webkit-animation:ol-popup_bounce .4s ease 1;animation:ol-popup_bounce .4s ease 1}@-webkit-keyframes ol-popup_bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes ol-popup_bounce{0%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1.1);transform:scale(1.1)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}.ol-popup.anim.ol-popup-bottom.ol-popup-left>div{-webkit-transform-origin:0 100%;transform-origin:0 100%}.ol-popup.anim.ol-popup-bottom.ol-popup-right>div{-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.ol-popup.anim.ol-popup-bottom.ol-popup-center>div{-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.ol-popup.anim.ol-popup-top.ol-popup-left>div{-webkit-transform-origin:0 0;transform-origin:0 0}.ol-popup.anim.ol-popup-top.ol-popup-right>div{-webkit-transform-origin:100% 0;transform-origin:100% 0}.ol-popup.anim.ol-popup-top.ol-popup-center>div{-webkit-transform-origin:50% 0;transform-origin:50% 0}.ol-popup.anim.ol-popup-middle.ol-popup-left>div{-webkit-transform-origin:0 50%;transform-origin:0 50%}.ol-popup.anim.ol-popup-middle.ol-popup-right>div{-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.ol-popup{font-size:.9em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ol-popup .ol-popup-content{overflow:hidden;cursor:default;padding:.25em .5em}.ol-popup.hasclosebox .ol-popup-content{margin-right:1.7em}.ol-popup .ol-popup-content:after{clear:both;content:"";display:block;font-size:0;height:0}.ol-popup .anchor{display:block;width:0px;height:0px;background:red;position:absolute;margin:-11px 22px;pointer-events:none}.ol-popup .anchor:after,.ol-popup .anchor:before{position:absolute}.ol-popup-right .anchor:after,.ol-popup-right .anchor:before{right:0}.ol-popup-top .anchor{top:0}.ol-popup-bottom .anchor{bottom:0}.ol-popup-right .anchor{right:0}.ol-popup-left .anchor{left:0}.ol-popup-center .anchor{left:50%;margin-left:0!important}.ol-popup-middle .anchor{top:50%;margin-top:0!important}.ol-popup-center.ol-popup-middle .anchor{display:none}.ol-popup.ol-fixed{margin:0!important;top:.5em!important;right:.5em!important;left:auto!important;bottom:auto!important;-webkit-transform:none!important;transform:none!important}.ol-popup.ol-fixed .anchor{display:none}.ol-popup.ol-fixed.anim>div{-webkit-animation:none;animation:none}.ol-popup .ol-fix{width:1em;height:.9em;background:#fff;position:relative;float:right;margin:.2em;cursor:pointer}.ol-popup .ol-fix:before{content:"";width:.8em;height:.7em;display:block;border:.1em solid #666;border-right-width:.1em;border-right-width:.3em;-webkit-box-sizing:border-box;box-sizing:border-box;margin:.1em}.ol-popup.shadow{-webkit-box-shadow:2px 2px 2px 2px rgba(0,0,0,.5);box-shadow:2px 2px 2px 2px #00000080}.ol-popup .closeBox{background-color:#003c8880;color:#fff;border:0;border-radius:2px;cursor:pointer;float:right;font-size:.9em;font-weight:700;width:1.4em;height:1.4em;margin:5px 5px 0 0;padding:0;position:relative;display:none}.ol-popup.hasclosebox .closeBox{display:block}.ol-popup .closeBox:hover{background-color:#003c88b3}.ol-popup .closeBox:after{content:"\d7";font-size:1.5em;top:50%;left:0;right:0;width:100%;text-align:center;line-height:1em;margin:-.5em 0;position:absolute}.ol-popup.modifytouch{background-color:#eee}.ol-popup.modifytouch .ol-popup-content{padding:0 .25em;font-size:.85em;white-space:nowrap}.ol-popup.modifytouch .ol-popup-content a{text-decoration:none}.ol-popup.tooltips{background-color:#ffa}.ol-popup.tooltips .ol-popup-content{padding:0 .25em;font-size:.85em;white-space:nowrap}.ol-popup.default>div{background-color:#fff;border:1px solid #69f;border-radius:5px}.ol-popup.default{margin:-11px 0;-webkit-transform:translate(0,-22px);transform:translateY(-22px)}.ol-popup-top.ol-popup.default{margin:11px 0;-webkit-transform:none;transform:none}.ol-popup-left.default{margin:-11px -22px;-webkit-transform:translate(0,-22px);transform:translateY(-22px)}.ol-popup-top.ol-popup-left.default{margin:11px -22px;-webkit-transform:none;transform:none}.ol-popup-right.default{margin:-11px 22px;-webkit-transform:translate(44px,-22px);transform:translate(44px,-22px)}.ol-popup-top.ol-popup-right.default{margin:11px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.default{margin:0 10px;-webkit-transform:none;transform:none}.ol-popup-middle.ol-popup-right.default{margin:0 -10px;-webkit-transform:translate(-20px,0);transform:translate(-20px)}.ol-popup.default .anchor{color:#69f}.ol-popup.default .anchor:after,.ol-popup.default .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:11px;margin:0 -11px}.ol-popup.default .anchor:after{border-color:#fff transparent;border-width:11px;margin:2px -11px}.ol-popup-top.default .anchor:before,.ol-popup-top.default .anchor:after{border-top:0;top:0}.ol-popup-bottom.default .anchor:before,.ol-popup-bottom.default .anchor:after{border-bottom:0;bottom:0}.ol-popup-middle.default .anchor:before{margin:-11px -33px;border-color:transparent currentColor}.ol-popup-middle.default .anchor:after{margin:-11px -31px;border-color:transparent #fff}.ol-popup-middle.ol-popup-left.default .anchor:before,.ol-popup-middle.ol-popup-left.default .anchor:after{border-left:0}.ol-popup-middle.ol-popup-right.default .anchor:before,.ol-popup-middle.ol-popup-right.default .anchor:after{border-right:0}.ol-popup.placemark{color:#c00;margin:-.65em 0;-webkit-transform:translate(0,-1.3em);transform:translateY(-1.3em)}.ol-popup.placemark>div{position:relative;font-size:15px;background-color:#fff;border:0;-webkit-box-shadow:inset 0 0 0 .45em;box-shadow:inset 0 0 0 .45em;width:2em;height:2em;border-radius:50%;min-width:unset;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-popup.placemark .ol-popup-content{overflow:hidden;cursor:default;text-align:center;padding:.25em 0;width:1em;height:1em;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:1em}.ol-popup.placemark .anchor{margin:0}.ol-popup.placemark .anchor:before{content:"";margin:-.5em;background:transparent;width:1em;height:.5em;border-radius:50%;-webkit-box-shadow:0 1em .5em rgba(0,0,0,.5);box-shadow:0 1em .5em #00000080}.ol-popup.placemark .anchor:after{content:"";border-color:currentColor transparent;border-style:solid;border-width:1em .7em 0;margin:-.75em -.7em;bottom:0}.ol-popup.placemark.shield>div{border-radius:.2em}.ol-popup.placemark.shield .anchor:after{border-width:.8em 1em 0;margin:-.7em -1em}.ol-popup.placemark.blazon>div{border-radius:.2em}.ol-popup.placemark.pushpin{margin:-2.2em 0;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.pushpin>div{border-radius:0;background:transparent!important;-webkit-box-shadow:inset 2em 0 currentColor;box-shadow:inset 2em 0 currentColor;width:1.1em}.ol-popup.placemark.pushpin>div:before{content:"";width:1.3em;height:1.5em;border-style:solid;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-color:currentColor transparent;border-width:.3em .5em .5em;pointer-events:none}.ol-popup.placemark.needle{margin:-2em 0;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.pushpin .anchor,.ol-popup.placemark.needle .anchor{margin:-1.2em}.ol-popup.placemark.pushpin .anchor:after,.ol-popup.placemark.needle .anchor:after{border-style:solid;border-width:2em .15em 0;margin:-.55em -.2em;width:.1em}.ol-popup.placemark.pushpin .anchor:before,.ol-popup.placemark.needle .anchor:before{margin:-.75em -.5em}.ol-popup.placemark.flagv{margin:-2em 1em;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.flagv>div{border-radius:0;-webkit-box-shadow:none;box-shadow:none;background-color:transparent}.ol-popup.placemark.flagv>div:before{content:"";border:1em solid transparent;position:absolute;border-left:2em solid currentColor;pointer-events:none}.ol-popup.placemark.flagv .anchor{margin:-1.4em}.ol-popup.placemark.flag{margin:-2em 1em;-webkit-transform:translate(0,-4em);transform:translateY(-4em)}.ol-popup.placemark.flag>div{border-radius:0;-webkit-transform-origin:0% 150%!important;transform-origin:0% 150%!important}.ol-popup.placemark.flag .anchor{margin:-1.4em}.ol-popup.placemark.flagv .anchor:after,.ol-popup.placemark.flag .anchor:after{border-style:solid;border-width:2em .15em 0;margin:-.55em -1em;width:.1em}.ol-popup.placemark.flagv .anchor:before,.ol-popup.placemark.flag .anchor:before{margin:-.75em -1.25em}.ol-popup.placemark.flag.finish{margin:-2em 1em}.ol-popup.placemark.flag.finish>div{background-image:linear-gradient(45deg,currentColor 25%,transparent 25%,transparent 75%,currentColor 75%,currentColor),linear-gradient(45deg,currentColor 25%,transparent 25%,transparent 75%,currentColor 75%,currentColor);background-size:1em 1em;background-position:.5em 0,0 .5em;-webkit-box-shadow:inset 0 0 0 .25em;box-shadow:inset 0 0 0 .25em}.ol-popup.black .closeBox{background-color:#00000080;border-radius:5px;color:#f80}.ol-popup.black .closeBox:hover{background-color:#000000b3;color:#da2}.ol-popup.black{margin:-20px 0;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup.black>div{background-color:#0009;border-radius:5px;color:#fff}.ol-popup-top.ol-popup.black{margin:20px 0;-webkit-transform:none;transform:none}.ol-popup-left.black{margin:-20px -22px;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup-top.ol-popup-left.black{margin:20px -22px;-webkit-transform:none;transform:none}.ol-popup-right.black{margin:-20px 22px;-webkit-transform:translate(44px,-40px);transform:translate(44px,-40px)}.ol-popup-top.ol-popup-right.black{margin:20px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.black{margin:0 11px;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.black{-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.black{margin:0 -11px;-webkit-transform:translate(-22px,0);transform:translate(-22px)}.ol-popup.black .anchor{margin:-20px 11px;color:#0009}.ol-popup.black .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:20px 11px}.ol-popup-top.black .anchor:before{border-top:0;top:0}.ol-popup-bottom.black .anchor:before{border-bottom:0;bottom:0}.ol-popup-middle.black .anchor:before{margin:-20px -22px;border-color:transparent currentColor}.ol-popup-middle.ol-popup-left.black .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.black .anchor:before{border-right:0}.ol-popup-center.black .anchor:before{margin:0 -10px}.ol-popup.tips .closeBox{background-color:red;border-radius:50%;color:#fff;width:1.2em;height:1.2em}.ol-popup.tips .closeBox:hover{background-color:#f40}.ol-popup.tips{margin:-20px 0;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup.tips>div{background-color:#cea;border:5px solid #ad7;border-radius:5px;color:#333}.ol-popup-top.ol-popup.tips{margin:20px 0;-webkit-transform:none;transform:none}.ol-popup-left.tips{margin:-20px -22px;-webkit-transform:translate(0,-40px);transform:translateY(-40px)}.ol-popup-top.ol-popup-left.tips{margin:20px -22px;-webkit-transform:none;transform:none}.ol-popup-right.tips{margin:-20px 22px;-webkit-transform:translate(44px,-40px);transform:translate(44px,-40px)}.ol-popup-top.ol-popup-right.tips{margin:20px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.tips{margin:0;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.tips{margin:0 22px;-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.tips{margin:0 -22px;-webkit-transform:translate(-44px,0);transform:translate(-44px)}.ol-popup.tips .anchor{margin:-18px 22px;color:#ad7}.ol-popup.tips .anchor:before{content:"";border-color:currentColor transparent;border-style:solid;border-width:20px 11px}.ol-popup-top.tips .anchor:before{border-top:0;top:0}.ol-popup-bottom.tips .anchor:before{border-bottom:0;bottom:0}.ol-popup-center.tips .anchor:before{border-width:20px 6px;margin:0 -6px}.ol-popup-left.tips .anchor:before{border-left:0;margin-left:0}.ol-popup-right.tips .anchor:before{border-right:0;margin-right:0}.ol-popup-middle.tips .anchor:before{margin:-6px -41px;border-color:transparent currentColor;border-width:6px 20px}.ol-popup-middle.ol-popup-left.tips .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.tips .anchor:before{border-right:0}.ol-popup.warning .closeBox{background-color:red;border-radius:50%;color:#fff;font-size:.83em}.ol-popup.warning .closeBox:hover{background-color:#f40}.ol-popup.warning{background-color:#fd0;border-radius:3px;border:4px dashed #f00;color:#900;margin:-28px 10px;-webkit-transform:translate(0,-56px);transform:translateY(-56px)}.ol-popup-top.ol-popup.warning{margin:28px 10px;-webkit-transform:none;transform:none}.ol-popup-left.warning{margin:-28px -22px;-webkit-transform:translate(0,-56px);transform:translateY(-56px)}.ol-popup-top.ol-popup-left.warning{margin:28px -22px;-webkit-transform:none;transform:none}.ol-popup-right.warning{margin:-28px 22px;-webkit-transform:translate(44px,-56px);transform:translate(44px,-56px)}.ol-popup-top.ol-popup-right.warning{margin:28px 22px;-webkit-transform:translate(44px,0);transform:translate(44px)}.ol-popup-middle.warning{margin:0;-webkit-transform:none;transform:none}.ol-popup-left.ol-popup-middle.warning{margin:0 22px;-webkit-transform:none;transform:none}.ol-popup-right.ol-popup-middle.warning{margin:0 -22px;-webkit-transform:translate(-44px,0);transform:translate(-44px)}.ol-popup.warning .anchor{margin:-33px 7px}.ol-popup.warning .anchor:before{content:"";border-color:#f00 transparent;border-style:solid;border-width:30px 11px}.ol-popup-top.warning .anchor:before{border-top:0;top:0}.ol-popup-bottom.warning .anchor:before{border-bottom:0;bottom:0}.ol-popup-center.warning .anchor:before{margin:0 -21px}.ol-popup-middle.warning .anchor:before{margin:-10px -33px;border-color:transparent #f00;border-width:10px 22px}.ol-popup-middle.ol-popup-left.warning .anchor:before{border-left:0}.ol-popup-middle.ol-popup-right.warning .anchor:before{border-right:0}.ol-popup .ol-popupfeature table{width:100%}.ol-popup .ol-popupfeature table td{max-width:25em;overflow:hidden;text-overflow:ellipsis}.ol-popup .ol-popupfeature table td img{max-width:100px;max-height:100px}.ol-popup .ol-popupfeature tr:nth-child(2n+1){background-color:#eee}.ol-popup .ol-popupfeature .ol-zoombt{border:0;width:2em;height:2em;display:inline-block;color:#003c8880;position:relative;background:transparent;outline:none}.ol-popup .ol-popupfeature .ol-zoombt:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:1em;height:1em;background-color:transparent;border:.17em solid currentColor;border-radius:100%;top:.3em;left:.3em}.ol-popup .ol-popupfeature .ol-zoombt:after{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;top:1.35em;left:1.15em;border-width:.1em .3em;border-style:solid;border-radius:.03em;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-box-shadow:-.2em 0 0 -.04em;box-shadow:-.2em 0 0 -.04em}.ol-popup .ol-popupfeature .ol-count{float:right;margin:.25em 0}.ol-popup .ol-popupfeature .ol-prev,.ol-popup .ol-popupfeature .ol-next{border-style:solid;border-color:transparent rgba(0,60,136,.5);border-width:.5em 0 .5em .5em;display:inline-block;vertical-align:bottom;margin:0 .5em;cursor:pointer}.ol-popup .ol-popupfeature .ol-prev{border-width:.5em .5em .5em 0}.ol-popup.tooltips.black{background-color:transparent}.ol-popup.tooltips.black>div{-webkit-transform:scaleY(1.3);transform:scaleY(1.3);padding:.2em .5em;background-color:#00000080}.ol-popup-middle.tooltips.black .anchor:before{border-width:5px 10px;margin:-5px -21px}.ol-popup-center.ol-popup-middle,.ol-popup-top.ol-popup-left.ol-fixPopup,.ol-popup-top.ol-popup-right.ol-fixPopup,.ol-popup.ol-fixPopup{margin:0}.ol-miniscroll{position:relative}.ol-miniscroll:hover .ol-scroll{opacity:.5;-webkit-transition:opacity 1s;transition:opacity 1s}.ol-miniscroll .ol-scroll{-ms-touch-action:none;touch-action:none;position:absolute;right:0px;width:9px;height:auto;max-height:100%;opacity:0;border-radius:9px;-webkit-transition:opacity 1s .5s;transition:opacity 1s .5s;overflow:hidden;z-index:1}.ol-miniscroll .ol-scroll>div{-ms-touch-action:none;touch-action:none;position:absolute;top:0;right:0px;width:9px;height:9px;-webkit-box-shadow:inset 10px 0 currentColor;box-shadow:inset 10px 0 currentColor;border-radius:9px/12px;border:2px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.ol-miniscroll .ol-scroll.ol-100pc{opacity:0}.ol-viewport canvas.ol-fixedoverlay{position:absolute;top:0;left:0;width:100%;height:100%}.ol-ext-toggle-switch{cursor:pointer;position:relative}.ol-ext-toggle-switch input[type=radio],.ol-ext-toggle-switch input[type=checkbox]{display:none}.ol-ext-toggle-switch span{color:#003c8880;position:relative;cursor:pointer;background-color:#ccc;-webkit-transition:.4s,background-color 0s,border-color 0s;transition:.4s,background-color 0s,border-color 0s;width:1.6em;height:1em;display:inline-block;border-radius:1em;font-size:1.3em;vertical-align:middle;margin:-.15em .2em .15em}.ol-ext-toggle-switch span:before{position:absolute;content:"";height:1em;width:1em;left:0;top:50%;background-color:#fff;-webkit-transition:.4s;transition:.4s;border-radius:1em;display:block;-webkit-transform:translateY(-50%);transform:translateY(-50%);border:2px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-ext-toggle-switch:hover span{background-color:#999}.ol-ext-toggle-switch:hover span:before{border-color:#999}.ol-ext-toggle-switch input:checked+span{background-color:currentColor}.ol-ext-toggle-switch input:checked+span:before{-webkit-transform:translate(.6em,-50%);transform:translate(.6em,-50%);border-color:currentColor}.ol-ext-check{position:relative;display:inline-block}.ol-ext-check input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.ol-ext-check span{color:#003c8880;position:relative;display:inline-block;width:1em;height:1em;margin:-.1em .5em .1em;background-color:#ccc;vertical-align:middle}.ol-ext-check:hover span{background-color:#999}.ol-ext-checkbox input:checked~span{background-color:currentColor}.ol-ext-checkbox input:checked~span:before{content:"";position:absolute;width:.5em;height:.8em;top:50%;left:50%;-webkit-transform:translateY(-.1em) translate(-50%,-50%) rotate(45deg);transform:translateY(-.1em) translate(-50%,-50%) rotate(45deg);-webkit-box-shadow:inset -.2em -.2em #fff;box-shadow:inset -.2em -.2em #fff}.ol-ext-radio span{width:1.1em;height:1.1em;border-radius:50%}.ol-ext-radio:hover input:checked~span{background-color:#ccc}.ol-ext-radio input:checked~span:before{content:"";position:absolute;width:50%;height:50%;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:50%;background-color:currentColor}.ol-collection-list{margin:0;padding:0;list-style:none}.ol-collection-list li{position:relative;padding:0 2em 0 1em}.ol-collection-list li:hover{background-color:#003c8833}.ol-collection-list li.ol-select{background-color:#003c8880;color:#fff}.ol-collection-list li .ol-order{position:absolute;-ms-touch-action:none;touch-action:none;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:2em;height:100%;cursor:n-resize}.ol-collection-list li .ol-order:before{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:18px;height:2px;background-color:currentColor;-webkit-box-shadow:0 5px,0 -5px;box-shadow:0 5px,0 -5px;border-radius:2px}.ol-ext-colorpicker.ol-popup{width:2em;height:1.5em;background-color:transparent;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 -1px,5px 4px}.ol-ext-colorpicker .ol-tabbar{background-color:#eee;border-bottom:1px solid #999;display:none}.ol-ext-colorpicker.ol-tab .ol-tabbar{display:block}.ol-ext-colorpicker .ol-tabbar>div{display:inline-block;background-color:#fff;padding:0 .5em;border:1px solid #999;border-radius:2px 2px 0 0;position:relative;top:1px;cursor:pointer}.ol-ext-colorpicker .ol-tabbar>div:nth-child(1){border-bottom-color:#fff}.ol-ext-colorpicker.ol-picker-tab .ol-tabbar>div:nth-child(1){border-bottom-color:#999}.ol-ext-colorpicker.ol-picker-tab .ol-tabbar>div:nth-child(2){border-bottom-color:#fff}.ol-ext-colorpicker.ol-popup.ol-tab .ol-popup{width:180px}.ol-ext-colorpicker.ol-tab .ol-palette{margin:0 10px}.ol-ext-colorpicker.ol-tab .ol-container{display:none}.ol-ext-colorpicker.ol-tab.ol-picker-tab .ol-container{display:block}.ol-ext-colorpicker.ol-tab.ol-picker-tab .ol-palette{display:none}.ol-ext-colorpicker.ol-popup .ol-popup{width:340px}.ol-ext-colorpicker.ol-popup .ol-vignet{content:"";position:absolute;width:100%;height:100%;top:0;left:0;border:0;background-color:currentColor;pointer-events:none}.ol-ext-colorpicker .ol-container{position:relative;display:inline-block;vertical-align:top}.ol-ext-colorpicker .ol-cursor{pointer-events:none}.ol-ext-colorpicker .ol-picker{position:relative;cursor:crosshair;width:150px;height:150px;border:5px solid #fff;background-color:currentColor;background-image:-webkit-gradient(linear,left top,left bottom,from(0),color-stop(#000),to(transparent)),-webkit-gradient(linear,left top,right top,from(#fff),to(transparent));background-image:linear-gradient(0,#000,transparent),linear-gradient(90deg,#fff,transparent)}.ol-ext-colorpicker .ol-picker .ol-cursor{position:absolute;left:50%;top:50%;border:1px solid rgba(0,0,0,.7);-webkit-box-shadow:0 0 0 1px rgba(255,255,255,.7);box-shadow:0 0 0 1px #ffffffb3;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:10px;height:10px;border-radius:50%}.ol-ext-colorpicker .ol-slider{position:relative;cursor:crosshair;background-color:#fff;height:10px;width:150px;margin:5px 0 10px;border:5px solid #fff;border-width:0 5px;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 -1px,5px 4px}.ol-ext-colorpicker .ol-slider>div{width:100%;height:100%;background-image:linear-gradient(45deg,transparent,#fff);pointer-events:none}.ol-ext-colorpicker .ol-slider .ol-cursor{position:absolute;width:4px;height:12px;border:1px solid #000;top:50%;left:0;background:transparent;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-ext-colorpicker .ol-tint{position:absolute;cursor:crosshair;width:10px;height:150px;border:5px solid #fff;border-width:5px 0;-webkit-box-sizing:border;box-sizing:border;top:0;right:5px;background-image:-webkit-gradient(linear,left top,left bottom,from(0),color-stop(#f00),color-stop(#f0f),color-stop(#00f),color-stop(#0ff),color-stop(#0f0),color-stop(#ff0),to(#f00));background-image:linear-gradient(0,#f00,#f0f,#00f,#0ff,#0f0,#ff0,#f00)}.ol-ext-colorpicker .ol-tint .ol-cursor{position:absolute;top:0;left:50%;border:1px solid #000;height:4px;width:12px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-ext-colorpicker .ol-clear{position:absolute;border:2px solid #999;right:4px;top:163px;width:10px;height:10px}.ol-ext-colorpicker .ol-clear:before,.ol-ext-colorpicker .ol-clear:after{content:"";position:absolute;width:15px;height:2px;background-color:#999;top:50%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-colorpicker .ol-clear:after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-ext-colorpicker.ol-nopacity .ol-slider,.ol-ext-colorpicker.ol-nopacity .ol-clear,.ol-ext-colorpicker.ol-nopacity .ol-alpha{display:none}.ol-ext-colorpicker .ol-rgb{position:relative;padding:5px;width:170px;display:none}.ol-ext-colorpicker .ol-rgb input{width:25%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 0 0 2px;border:1px solid #999;border-radius:2px;font-size:13px}.ol-ext-colorpicker .ol-rgb input:nth-child(1){background-color:#ff00001a}.ol-ext-colorpicker .ol-rgb input:nth-child(2){background-color:#00ff001a}.ol-ext-colorpicker .ol-rgb input:nth-child(3){background-color:#0000ff1f}.ol-ext-colorpicker button,.ol-ext-colorpicker .ol-txt-color{font-size:13px;margin:0 5px 5px;text-align:center;width:170px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;border:1px solid #999;border-radius:2px;display:block}.ol-ext-colorpicker button{background-color:#eee}.ol-ext-colorpicker button:hover{background-color:#e9e9e9}.ol-ext-colorpicker .ol-txt-color.ol-error{background-color:#f003}.ol-ext-colorpicker .ol-palette{padding:2px;display:inline-block;width:152px}.ol-ext-colorpicker .ol-palette>div{width:15px;height:15px;display:inline-block;background-image:linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%),linear-gradient(45deg,#aaa 25%,transparent 25%,transparent 75%,#aaa 75%);background-size:10px 10px;background-position:0 0,5px 5px;margin:2px;-webkit-box-shadow:0 0 2px 0px #666;box-shadow:0 0 2px #666;border-radius:1px;cursor:pointer;position:relative}.ol-ext-colorpicker .ol-palette>div:before{content:"";position:absolute;background-color:currentColor;width:100%;height:100%}.ol-ext-colorpicker .ol-palette>div.ol-select:after{content:"";position:absolute;width:6px;height:12px;-webkit-box-shadow:1px 1px #fff,2px 2px #000;box-shadow:1px 1px #fff,2px 2px #000;top:30%;left:50%;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.ol-ext-colorpicker .ol-palette>div:hover{-webkit-box-shadow:0 0 2px 1px #d90;box-shadow:0 0 2px 1px #d90}.ol-ext-colorpicker .ol-palette hr{margin:0}.ol-input-popup{display:inline-block;position:relative}.ol-input-popup .ol-popup{position:absolute;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;background-color:#fff;z-index:1;display:none;left:-5px;padding:0;margin:0;list-style:none;white-space:nowrap}.ol-input-popup.ol-hover:hover .ol-popup,.ol-input-popup.ol-focus .ol-popup{display:block}.ol-input-popup.ol-right .ol-popup{left:auto;right:-5px}.ol-input-popup.ol-middle .ol-popup{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ol-input-popup .ol-popup li{position:relative;padding:10px 5px}.ol-input-popup li:hover,.ol-input-popup li.ol-selected{background-color:#ccc}.ol-input-popup.ol-fixed:hover .ol-popup,.ol-input-popup.ol-fixed .ol-popup{position:relative;left:0;-webkit-box-shadow:unset;box-shadow:unset;background-color:transparent;display:inline-block;vertical-align:middle}.ol-input-popup.ol-fixed.ol-left .ol-popup{float:left}.ol-input-popup>div{position:relative;display:inline-block;vertical-align:middle;border-radius:2px;border:1px solid #999;padding:3px 20px 3px 10px}.ol-input-popup>div:before{position:absolute;content:"";right:5px;top:50%;border:5px solid transparent;border-top:5px solid #999}.ol-ext-popup-input{display:inline-block;vertical-align:top}.ol-ext-popup-input.ol-popup{position:relative;width:2em;height:1.5em;display:inline-block;border:3px solid #fff;border-right-width:1em;-webkit-box-shadow:0 0 2px 1px #666;box-shadow:0 0 2px 1px #666;border-radius:2px;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}.ol-ext-popup-input.ol-popup:after{content:"";position:absolute;border:.5em solid #aaa;border-width:.5em .3em 0;border-color:#999 transparent;right:-.8em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.ol-ext-popup-input *{-webkit-box-sizing:content-box;box-sizing:content-box}.ol-ext-popup-input.ol-popup .ol-popup{position:absolute;top:100%;min-width:3em;min-height:3em;left:0;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;display:block;background-color:#fff;display:none;z-index:1}.ol-ext-popup-input.ol-popup .ol-popup.ol-visible{display:block}.ol-ext-popup-input.ol-popup-fixed .ol-popup{position:fixed;top:auto;left:auto}.ol-input-popup.ol-size li{display:table-cell;height:100%;padding:5px;vertical-align:middle}.ol-input-popup.ol-size li>*{background-color:#369;border-radius:50%;vertical-align:middle;width:1em;height:1em}.ol-input-popup.ol-size li>.ol-option-0{position:relative;width:1em;height:1em;border:2px solid currentColor;color:#aaa;background-color:transparent;-webkit-box-sizing:border-box;box-sizing:border-box}.ol-input-popup.ol-size li>*:before{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ol-input-popup.ol-size li>.ol-option-0:before{content:"";width:1em;height:2px;background-color:#aaa;-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg)}.ol-input-slider{display:inline-block;position:relative}.ol-input-slider .ol-popup{position:absolute;-webkit-box-shadow:1px 1px 3px 1px #999;box-shadow:1px 1px 3px 1px #999;background-color:#fff;z-index:1;display:none;left:-5px}.ol-input-slider.ol-right .ol-popup{left:auto;right:-5px}.ol-input-slider.ol-hover:hover .ol-popup,.ol-input-slider.ol-focus .ol-popup{display:block;white-space:nowrap}.ol-input-slider.ol-hover:hover .ol-popup>*,.ol-input-slider.ol-focus .ol-popup>*{display:inline-block;vertical-align:middle}.ol-input-slider.ol-hover:hover .ol-popup>.ol-before,.ol-input-slider.ol-focus .ol-popup>.ol-before{margin-left:10px}.ol-input-slider.ol-hover:hover .ol-popup>.ol-after,.ol-input-slider.ol-focus .ol-popup>.ol-after{margin-right:10px}.ol-input-slider .ol-slider{position:relative;width:100px;height:3px;border:0 solid transparent;border-width:10px 15px;-webkit-box-shadow:inset 0 0 0 1px #999;box-shadow:inset 0 0 0 1px #999;-webkit-box-sizing:content-box;box-sizing:content-box;cursor:pointer}.ol-input-slider .ol-slider>.ol-cursor{position:absolute;width:5px;height:10px;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#999;pointer-events:none}.ol-input-slider.ol-fixed:hover .ol-popup,.ol-input-slider.ol-fixed .ol-popup{position:relative;left:0;-webkit-box-shadow:unset;box-shadow:unset;background-color:transparent;display:inline-block;vertical-align:middle}.ol-input-slider.ol-fixed.ol-left .ol-popup{float:left}.ol-input-slider.ol-size .ol-slider{height:auto;-webkit-box-shadow:none;box-shadow:none}.ol-input-slider.ol-size .ol-slider .ol-back{width:0;color:#aaa;border:0 solid transparent;border-width:0 0 20px 100px;border-color:currentColor transparent;pointer-events:none}.ol-input-slider.ol-size .ol-slider>.ol-cursor{width:2px;height:calc(100% + 4px);border-width:5px 3px;border-style:solid;border-color:#f00 transparent;-o-border-image:initial;border-image:initial;background-color:transparent;-webkit-box-shadow:inset 3px 0px #f00;box-shadow:inset 3px 0 red}.ol-input-popup.ol-width li{padding:5px}.ol-input-popup.ol-width li>*{background-color:#369;width:100px;height:1em}.ol-input-popup.ol-width li>.ol-option-0{position:relative;height:1px;background-image:linear-gradient(90deg,#aaa 2px,transparent 2px);background-color:transparent;background-size:4px}/*! +* ol-contextmenu - v4.1.0 +* https://github.com/jonataswalker/ol-contextmenu +* Built: Sat Aug 15 2020 10:43:26 GMT-0300 (Brasilia Standard Time) +*/.ol-ctx-menu-container{position:absolute;padding:8px;background:#fff;color:#222;font-size:13px;border-radius:5px;box-shadow:#0003 3px 3px 5px;box-sizing:border-box}.ol-ctx-menu-container div,.ol-ctx-menu-container span,.ol-ctx-menu-container a,.ol-ctx-menu-container img,.ol-ctx-menu-container ul,.ol-ctx-menu-container li{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}.ol-ctx-menu-container a img{border:none}.ol-ctx-menu-container *,.ol-ctx-menu-container *:before,.ol-ctx-menu-container *:after{box-sizing:inherit}.ol-ctx-menu-container.ol-ctx-menu-hidden{opacity:0;visibility:hidden;transition:visibility 0s linear .3s,opacity .3s}.ol-ctx-menu-container ul{list-style:none}.ol-ctx-menu-container li{position:relative;line-height:20px;padding:2px 5px}.ol-ctx-menu-container li:not(.ol-ctx-menu-separator):hover{cursor:pointer;background-color:#333;color:#eee}.ol-ctx-menu-container li.ol-ctx-menu-submenu .ol-ctx-menu-container{border:1px solid #eee;padding:8px;top:0;opacity:0;visibility:hidden;transition:visibility 0s linear .3s,opacity .3s}.ol-ctx-menu-container li.ol-ctx-menu-submenu:hover .ol-ctx-menu-container{opacity:1;visibility:visible;transition-delay:0s}.ol-ctx-menu-container li.ol-ctx-menu-submenu:after{position:absolute;top:7px;right:10px;content:"";display:inline-block;width:.6em;height:.6em;border-right:.3em solid #222;border-top:.3em solid #222;transform:rotate(45deg)}.ol-ctx-menu-container li.ol-ctx-menu-submenu:hover:after{border-color:#eee}.ol-ctx-menu-container li.ol-ctx-menu-separator{padding:0}.ol-ctx-menu-container li.ol-ctx-menu-separator hr{border:0;height:1px;background-image:linear-gradient(to left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0))}.ol-ctx-menu-icon{text-indent:20px;background-size:20px auto;background-repeat:no-repeat;background-position:left center}.ol-ctx-menu-zoom-in{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABaUlEQVQ4T72U7VHCQBCGn90GtAMuNGCswFiBWIFQgWMFxg6wArECsQKhArEBiB1Qwa1zgQn5IAYcxv13k71n3919L8KJQ07M47+BzgG9TRfZ/JBuWhS6BJFHRJICYrZGZIz3z5Ct2+B7gG6I6kt+wewdkQVwjtkAkR5mC8yu26A1oItR/cTsOweQBdgutD8G7jGm2PJ2n8oqUKIpIjd4HxTM8gvaT/F+AlmWnyWaIXKF95eNguFzTYFhNsdWu9kFgFlaFMANUH3D8wDLoLgSTSD2il8NCe2ZXQBxWDGwxmyUzzOMBZ7wy7Qb2K0wQfXjMOBuhlFpZtNty5sFaTQBuTusZdymeqs1SpYKcO9HkE3KbTd9WFijMHJQ5hBNEAYNq5Qd0dhyke0GiE4QzjqfW23mHT8Hl4DG4Lce3FPE7AtbBSdsbNqpoJLgYkRnNeUV+xwJDHTnUEkxHGbhBXUs5TjJjew/KPy94g+NRaIVRYmMXwAAAABJRU5ErkJggg==)}.ol-ctx-menu-container li:hover.ol-ctx-menu-zoom-in{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABc0lEQVQ4T71U21ECQRDsJgGdvQDECMQIxAjECMQILCPwzAAjECIQI0AiEDPQAPaWCBhrcKHuCUcV5f7dY3v6tUscefHIePhfwBBCF8CZqRCReRs1tQxDCH1VfQLQz4EsSY4AvIjIsgm8AhhCGKrqa9zwrqoLAKckB5HtguR1E2gBMITQU9VPAD8GICIGtl3e+xHJBwBT59xtHcsCYJZlUwA3kcGHbfDep51OZywi3/acZZm9vyJ5WR5o38uACmDunNt6ZwAkUxFZDwghDFT1jeSjiJinhVUBVNVJkiTDKO8CQA+AsbNQ7s1Ps0VVn5MkSfcCtmBoDZi1Bdx4eJ7zbBolrwPy3o9J3rWSHPs3A1BbjVKlYBaIyDgvu9LDXDU2RTZmXVW1oKyLxRD+OrkOrJLy5mVM0iaftDhuhVbsvBzMglzKUNW6IV/OOWtCM8MmVvEkmbwt83LaB19fdgOtVquUZJeknaDdobTwbOcvBzPcN/AXH1DFFWP7u9oAAAAASUVORK5CYII=)}.ol-ctx-menu-zoom-out{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABU0lEQVQ4T72U7VECMRRFz3sNaAdkacC1AtcKxApcKnCsQOwAK3CtQKxAqEBsANYOqCDPyTIC+8WCw5jfybn33dxEOPGSE/P4b6BzQG89RT47ZJoWhy5B5BGRZAMxWyEyxvtnyFdt8AagS1F9KQ6YvSMyB84xGyDSw2yO2XUbtAJ0MaqfmH0XAPIA2y7tj4F7jAm2uG1yWQZKNEHkBu+Dg2njWBJNEbnC+8uaIFRuWfuG2QxbbrOrUd0A1Tc8D7AIjkur7DAAsVf8MiWMZ3ZR2m02LPIMscATfjHqBnY7TFD9OAy4zTCCPG/MUKMM5O6wkXFr9dZq7FQqqHk/hDzbFa73cFONTZFDdRyiCcKg5rrSiLaXkiI6RjjrfG6VzDs+B5eAxuDXeYpmNRGzL2wZ/wof+du4GNFpBVqqz5HA4MM5VEYYDrOs+1I6Q9u/4Q8O9wN/AGgWjBVqQjjgAAAAAElFTkSuQmCC)}.ol-ctx-menu-container li:hover.ol-ctx-menu-zoom-out{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABYklEQVQ4T72U4VHCQBCF36tA91KAWIFYgViBWIFYgWMFYgdYgVCBWAFSgdiBFpAsFWSdxcDkQoBkhnF/ZjbfvX377ogjF4/Mw/8CVbUD4MynEJF5k2lqFapqz8yeAPRKkCXJEYAXEVnugm8BVXVgZq/FD+9mtgBwSrJfqF2QvN4FjYCq2jWzTwA/DhARh20qTdMRyQcA0xDCbZ3KCJhl2RTATaHgo+6HLMv8+xXJy+qB3l8FGoB5CKHsXcRV1b6ZvZF8FBH3NKotoJlNkiQZFONdlLtJ3rufbouZPSdJMjwIbKDQEzBrClx7eC4i33Uepmk6JnnXaOQifzMAtdGoRApugYiMI1uqKkrRWAfZo9MxM1+UZzFewl8mN4nYdVM83L7BkwbXLUrF3sfBLQDQBbDy08x8vOohXyEE71lVq9emuEk+3gZa3XYroCvwFyjP8yHJDsnxwaU08GxvS2uFhw78BbzWrxXgMbsHAAAAAElFTkSuQmCC)}.ol-zoomslider{top:7.5em;left:.5em;height:240px;border:2px solid rgba(0,60,136,.5)}.ol-overviewmap{left:3.5em;bottom:2.5em}.ol-mouse-position{top:0;left:50%;transform:translate(-50%);width:70%;position:absolute;text-align:center}.ol-rotate{top:.5em;right:2.5em;transition:opacity .25s linear,visibility 0s linear}.ol-layerswitcher-image li.ol-layer-hidden{opacity:1!important}.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button{display:block;opacity:0}.ol-collapsed,.ol-collapsed:hover{background-color:#fff0}.ol-control.ol-mapzone{top:12.5em!important}.ol-control.ol-mapzone button{margin-top:0!important}.ol-layerswitcher-image button{background-color:transparent!important}.ol-mapzone>div p{background-color:#000!important}.vl-shown{overflow:hidden}.vl-overlay{bottom:0;left:0;position:absolute;right:0;top:0;align-items:center;display:none;justify-content:center;overflow:hidden;z-index:9999}.vl-overlay.vl-active{display:flex}.vl-overlay.vl-full-page{z-index:9999;position:fixed}.vl-overlay .vl-background{bottom:0;left:0;position:absolute;right:0;top:0;background:#fff;opacity:.5}.vl-overlay .vl-icon,.vl-parent{position:relative} diff --git a/dist/assets/index-f45376ca.js b/dist/assets/index-e189e6d8.js similarity index 85% rename from dist/assets/index-f45376ca.js rename to dist/assets/index-e189e6d8.js index ebd7bcd..6ca6963 100644 --- a/dist/assets/index-f45376ca.js +++ b/dist/assets/index-e189e6d8.js @@ -1,4 +1,4 @@ -var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();function T1(r,e){const t=Object.create(null),n=r.split(",");for(let i=0;i!!t[i.toLowerCase()]:i=>!!t[i]}const F9="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",L9=T1(F9);function Mg(r){if(we(r)){const e={};for(let t=0;t{if(t){const n=t.split(R9);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ng(r){let e="";if(Pn(r))e=r;else if(we(r))for(let t=0;tIu(t,e))}const tu=r=>Pn(r)?r:r==null?"":we(r)||hn(r)&&(r.toString===M2||!je(r.toString))?JSON.stringify(r,R2,2):String(r),R2=(r,e)=>e&&e.__v_isRef?R2(r,e.value):ep(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i])=>(t[`${n} =>`]=i,t),{})}:wh(e)?{[`Set(${e.size})`]:[...e.values()]}:hn(e)&&!we(e)&&!N2(e)?String(e):e,nn={},tp=[],Ts=()=>{},H9=()=>!1,G9=/^on[^a-z]/,Pg=r=>G9.test(r),Wb=r=>r.startsWith("onUpdate:"),Kn=Object.assign,qb=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},k9=Object.prototype.hasOwnProperty,br=(r,e)=>k9.call(r,e),we=Array.isArray,ep=r=>Ug(r)==="[object Map]",wh=r=>Ug(r)==="[object Set]",GO=r=>Ug(r)==="[object Date]",je=r=>typeof r=="function",Pn=r=>typeof r=="string",Jv=r=>typeof r=="symbol",hn=r=>r!==null&&typeof r=="object",Zb=r=>hn(r)&&je(r.then)&&je(r.catch),M2=Object.prototype.toString,Ug=r=>M2.call(r),$9=r=>Ug(r).slice(8,-1),N2=r=>Ug(r)==="[object Object]",Jb=r=>Pn(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Iv=T1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),x1=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},V9=/-(\w)/g,so=x1(r=>r.replace(V9,(e,t)=>t?t.toUpperCase():"")),j9=/\B([A-Z])/g,Wo=x1(r=>r.replace(j9,"-$1").toLowerCase()),Dg=x1(r=>r.charAt(0).toUpperCase()+r.slice(1)),Fv=x1(r=>r?`on${Dg(r)}`:""),_p=(r,e)=>!Object.is(r,e),rp=(r,e)=>{for(let t=0;t{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:t})},Al=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let kO;const K9=()=>kO||(kO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let xo;class tI{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=xo,!e&&xo&&(this.index=(xo.scopes||(xo.scopes=[])).push(this)-1)}run(e){if(this.active){const t=xo;try{return xo=this,e()}finally{xo=t}}}on(){xo=this}off(){xo=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const e=new Set(r);return e.w=0,e.n=0,e},U2=r=>(r.w&Fu)>0,D2=r=>(r.n&Fu)>0,W9=({deps:r})=>{if(r.length)for(let e=0;e{const{deps:e}=r;if(e.length){let t=0;for(let n=0;n{(u==="length"||u>=A)&&s.push(l)})}else switch(t!==void 0&&s.push(o.get(t)),e){case"add":we(r)?Jb(t)&&s.push(o.get("length")):(s.push(o.get($c)),ep(r)&&s.push(o.get(vT)));break;case"delete":we(r)||(s.push(o.get($c)),ep(r)&&s.push(o.get(vT)));break;case"set":ep(r)&&s.push(o.get($c));break}if(s.length===1)s[0]&&gT(s[0]);else{const A=[];for(const l of s)l&&A.push(...l);gT(eI(A))}}function gT(r,e){const t=we(r)?r:[...r];for(const n of t)n.computed&&VO(n);for(const n of t)n.computed||VO(n)}function VO(r,e){(r!==Es||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const t$=T1("__proto__,__v_isRef,__isVue"),G2=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Jv)),e$=b1(),r$=b1(!1,!0),n$=b1(!0),i$=b1(!0,!0),jO=a$();function a$(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...t){const n=Lr(this);for(let a=0,o=this.length;a{r[e]=function(...t){Qp();const n=Lr(this)[e].apply(this,t);return Hp(),n}}),r}function b1(r=!1,e=!1){return function(n,i,a){if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&a===(r?e?Y2:z2:e?K2:j2).get(n))return n;const o=we(n);if(!r&&o&&br(jO,i))return Reflect.get(jO,i,a);const s=Reflect.get(n,i,a);return(Jv(i)?G2.has(i):t$(i))||(r||Mo(n,"get",i),e)?s:Wi(s)?o&&Jb(i)?s:s.value:hn(s)?r?nI(s):Hg(s):s}}const o$=k2(),s$=k2(!0);function k2(r=!1){return function(t,n,i,a){let o=t[n];if(ih(o)&&Wi(o)&&!Wi(i))return!1;if(!r&&(!tg(i)&&!ih(i)&&(o=Lr(o),i=Lr(i)),!we(t)&&Wi(o)&&!Wi(i)))return o.value=i,!0;const s=we(t)&&Jb(n)?Number(n)r,I1=r=>Reflect.getPrototypeOf(r);function lm(r,e,t=!1,n=!1){r=r.__v_raw;const i=Lr(r),a=Lr(e);t||(e!==a&&Mo(i,"get",e),Mo(i,"get",a));const{has:o}=I1(i),s=n?rI:t?oI:eg;if(o.call(i,e))return s(r.get(e));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(e)}function um(r,e=!1){const t=this.__v_raw,n=Lr(t),i=Lr(r);return e||(r!==i&&Mo(n,"has",r),Mo(n,"has",i)),r===i?t.has(r):t.has(r)||t.has(i)}function cm(r,e=!1){return r=r.__v_raw,!e&&Mo(Lr(r),"iterate",$c),Reflect.get(r,"size",r)}function KO(r){r=Lr(r);const e=Lr(this);return I1(e).has.call(e,r)||(e.add(r),ll(e,"add",r,r)),this}function zO(r,e){e=Lr(e);const t=Lr(this),{has:n,get:i}=I1(t);let a=n.call(t,r);a||(r=Lr(r),a=n.call(t,r));const o=i.call(t,r);return t.set(r,e),a?_p(e,o)&&ll(t,"set",r,e):ll(t,"add",r,e),this}function YO(r){const e=Lr(this),{has:t,get:n}=I1(e);let i=t.call(e,r);i||(r=Lr(r),i=t.call(e,r)),n&&n.call(e,r);const a=e.delete(r);return i&&ll(e,"delete",r,void 0),a}function XO(){const r=Lr(this),e=r.size!==0,t=r.clear();return e&&ll(r,"clear",void 0,void 0),t}function hm(r,e){return function(n,i){const a=this,o=a.__v_raw,s=Lr(o),A=e?rI:r?oI:eg;return!r&&Mo(s,"iterate",$c),o.forEach((l,u)=>n.call(i,A(l),A(u),a))}}function fm(r,e,t){return function(...n){const i=this.__v_raw,a=Lr(i),o=ep(a),s=r==="entries"||r===Symbol.iterator&&o,A=r==="keys"&&o,l=i[r](...n),u=t?rI:e?oI:eg;return!e&&Mo(a,"iterate",A?vT:$c),{next(){const{value:c,done:h}=l.next();return h?{value:c,done:h}:{value:s?[u(c[0]),u(c[1])]:u(c),done:h}},[Symbol.iterator](){return this}}}}function $l(r){return function(...e){return r==="delete"?!1:this}}function f$(){const r={get(a){return lm(this,a)},get size(){return cm(this)},has:um,add:KO,set:zO,delete:YO,clear:XO,forEach:hm(!1,!1)},e={get(a){return lm(this,a,!1,!0)},get size(){return cm(this)},has:um,add:KO,set:zO,delete:YO,clear:XO,forEach:hm(!1,!0)},t={get(a){return lm(this,a,!0)},get size(){return cm(this,!0)},has(a){return um.call(this,a,!0)},add:$l("add"),set:$l("set"),delete:$l("delete"),clear:$l("clear"),forEach:hm(!0,!1)},n={get(a){return lm(this,a,!0,!0)},get size(){return cm(this,!0)},has(a){return um.call(this,a,!0)},add:$l("add"),set:$l("set"),delete:$l("delete"),clear:$l("clear"),forEach:hm(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{r[a]=fm(a,!1,!1),t[a]=fm(a,!0,!1),e[a]=fm(a,!1,!0),n[a]=fm(a,!0,!0)}),[r,t,e,n]}const[p$,d$,v$,g$]=f$();function F1(r,e){const t=e?r?g$:v$:r?d$:p$;return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(br(t,i)&&i in n?t:n,i,a)}const y$={get:F1(!1,!1)},m$={get:F1(!1,!0)},_$={get:F1(!0,!1)},w$={get:F1(!0,!0)},j2=new WeakMap,K2=new WeakMap,z2=new WeakMap,Y2=new WeakMap;function E$(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function C$(r){return r.__v_skip||!Object.isExtensible(r)?0:E$($9(r))}function Hg(r){return ih(r)?r:L1(r,!1,$2,y$,j2)}function X2(r){return L1(r,!1,c$,m$,K2)}function nI(r){return L1(r,!0,V2,_$,z2)}function B$(r){return L1(r,!0,h$,w$,Y2)}function L1(r,e,t,n,i){if(!hn(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const a=i.get(r);if(a)return a;const o=C$(r);if(o===0)return r;const s=new Proxy(r,o===2?n:t);return i.set(r,s),s}function Vc(r){return ih(r)?Vc(r.__v_raw):!!(r&&r.__v_isReactive)}function ih(r){return!!(r&&r.__v_isReadonly)}function tg(r){return!!(r&&r.__v_isShallow)}function iI(r){return Vc(r)||ih(r)}function Lr(r){const e=r&&r.__v_raw;return e?Lr(e):r}function aI(r){return a_(r,"__v_skip",!0),r}const eg=r=>hn(r)?Hg(r):r,oI=r=>hn(r)?nI(r):r;function sI(r){mu&&Es&&(r=Lr(r),H2(r.dep||(r.dep=eI())))}function O1(r,e){r=Lr(r),r.dep&&gT(r.dep)}function Wi(r){return!!(r&&r.__v_isRef===!0)}function Gn(r){return W2(r,!1)}function T$(r){return W2(r,!0)}function W2(r,e){return Wi(r)?r:new S$(r,e)}class S${constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lr(e),this._value=t?e:eg(e)}get value(){return sI(this),this._value}set value(e){const t=this.__v_isShallow||tg(e)||ih(e);e=t?e:Lr(e),_p(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:eg(e),O1(this))}}function x$(r){O1(r)}function q2(r){return Wi(r)?r.value:r}const b$={get:(r,e,t)=>q2(Reflect.get(r,e,t)),set:(r,e,t,n)=>{const i=r[e];return Wi(i)&&!Wi(t)?(i.value=t,!0):Reflect.set(r,e,t,n)}};function AI(r){return Vc(r)?r:new Proxy(r,b$)}class I${constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>sI(this),()=>O1(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function F$(r){return new I$(r)}function Lu(r){const e=we(r)?new Array(r.length):{};for(const t in r)e[t]=Z2(r,t);return e}class L${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 e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Z2(r,e,t){const n=r[e];return Wi(n)?n:new L$(r,e,t)}var J2;class O${constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[J2]=!1,this._dirty=!0,this.effect=new Qg(e,()=>{this._dirty||(this._dirty=!0,O1(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Lr(this);return sI(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}J2="__v_isReadonly";function R$(r,e,t=!1){let n,i;const a=je(r);return a?(n=r,i=Ts):(n=r.get,i=r.set),new O$(n,i,a||!i,t)}function M$(r,...e){}function JA(r,e,t,n){let i;try{i=n?r(...n):r()}catch(a){Eh(a,e,t)}return i}function Ro(r,e,t,n){if(je(r)){const a=JA(r,e,t,n);return a&&Zb(a)&&a.catch(o=>{Eh(o,e,t)}),a}const i=[];for(let a=0;a>>1;ng(Ea[n])zs&&Ea.splice(e,1)}function cI(r){we(r)?np.push(...r):(!jA||!jA.includes(r,r.allowRecurse?Fc+1:Fc))&&np.push(r),eD()}function WO(r,e=rg?zs+1:0){for(;eng(t)-ng(n)),Fc=0;Fcr.id==null?1/0:r.id,D$=(r,e)=>{const t=ng(r)-ng(e);if(t===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return t};function rD(r){yT=!1,rg=!0,Ea.sort(D$);const e=Ts;try{for(zs=0;zsFf.emit(i,...a)),pm=[]):typeof window<"u"&&window.HTMLElement&&!(!((n=(t=window.navigator)===null||t===void 0?void 0:t.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{nD(a,e)}),setTimeout(()=>{Ff||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,pm=[])},3e3)):pm=[]}function Q$(r,e,...t){if(r.isUnmounted)return;const n=r.vnode.props||nn;let i=t;const a=e.startsWith("update:"),o=a&&e.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[u]||nn;h&&(i=t.map(f=>Pn(f)?f.trim():f)),c&&(i=t.map(Al))}let s,A=n[s=Fv(e)]||n[s=Fv(so(e))];!A&&a&&(A=n[s=Fv(Wo(e))]),A&&Ro(A,r,6,i);const l=n[s+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Ro(l,r,6,i)}}function iD(r,e,t=!1){const n=e.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!je(r)){const A=l=>{const u=iD(l,e,!0);u&&(s=!0,Kn(o,u))};!t&&e.mixins.length&&e.mixins.forEach(A),r.extends&&A(r.extends),r.mixins&&r.mixins.forEach(A)}return!a&&!s?(hn(r)&&n.set(r,null),null):(we(a)?a.forEach(A=>o[A]=null):Kn(o,a),hn(r)&&n.set(r,o),o)}function M1(r,e){return!r||!Pg(e)?!1:(e=e.slice(2).replace(/Once$/,""),br(r,e[0].toLowerCase()+e.slice(1))||br(r,Wo(e))||br(r,e))}let ia=null,N1=null;function ig(r){const e=ia;return ia=r,N1=r&&r.type.__scopeId||null,e}function aD(r){N1=r}function oD(){N1=null}const H$=r=>Nc;function Nc(r,e=ia,t){if(!e||r._n)return r;const n=(...i)=>{n._d&&TT(-1);const a=ig(e);let o;try{o=r(...i)}finally{ig(a),n._d&&TT(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function L0(r){const{type:e,vnode:t,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:A,emit:l,render:u,renderCache:c,data:h,setupState:f,ctx:p,inheritAttrs:v}=r;let m,g;const _=ig(r);try{if(t.shapeFlag&4){const B=i||n;m=bo(u.call(B,B,c,a,f,h,p)),g=A}else{const B=e;m=bo(B.length>1?B(a,{attrs:A,slots:s,emit:l}):B(a,null)),g=e.props?A:k$(A)}}catch(B){Rv.length=0,Eh(B,r,1),m=Wr(Ba)}let E=m;if(g&&v!==!1){const B=Object.keys(g),{shapeFlag:L}=E;B.length&&L&7&&(o&&B.some(Wb)&&(g=$$(g,o)),E=sA(E,g))}return t.dirs&&(E=sA(E),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&(E.transition=t.transition),m=E,ig(_),m}function G$(r){let e;for(let t=0;t{let e;for(const t in r)(t==="class"||t==="style"||Pg(t))&&((e||(e={}))[t]=r[t]);return e},$$=(r,e)=>{const t={};for(const n in r)(!Wb(n)||!(n.slice(9)in e))&&(t[n]=r[n]);return t};function V$(r,e,t){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:A}=e,l=a.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&A>=0){if(A&1024)return!0;if(A&16)return n?qO(n,o,l):!!o;if(A&8){const u=e.dynamicProps;for(let c=0;cr.__isSuspense,j$={name:"Suspense",__isSuspense:!0,process(r,e,t,n,i,a,o,s,A,l){r==null?z$(e,t,n,i,a,o,s,A,l):Y$(r,e,t,n,i,o,s,A,l)},hydrate:X$,create:fI,normalize:W$},K$=j$;function ag(r,e){const t=r.props&&r.props[e];je(t)&&t()}function z$(r,e,t,n,i,a,o,s,A){const{p:l,o:{createElement:u}}=A,c=u("div"),h=r.suspense=fI(r,i,n,e,c,t,a,o,s,A);l(null,h.pendingBranch=r.ssContent,c,null,n,h,a,o),h.deps>0?(ag(r,"onPending"),ag(r,"onFallback"),l(null,r.ssFallback,e,t,n,null,a,o),ip(h,r.ssFallback)):h.resolve()}function Y$(r,e,t,n,i,a,o,s,{p:A,um:l,o:{createElement:u}}){const c=e.suspense=r.suspense;c.vnode=e,e.el=r.el;const h=e.ssContent,f=e.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:m,isHydrating:g}=c;if(v)c.pendingBranch=h,Ys(h,v)?(A(v,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():m&&(A(p,f,t,n,i,null,a,o,s),ip(c,f))):(c.pendingId++,g?(c.isHydrating=!1,c.activeBranch=v):l(v,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=u("div"),m?(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(A(p,f,t,n,i,null,a,o,s),ip(c,f))):p&&Ys(h,p)?(A(p,h,t,n,i,c,a,o,s),c.resolve(!0)):(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(p&&Ys(h,p))A(p,h,t,n,i,c,a,o,s),ip(c,h);else if(ag(e,"onPending"),c.pendingBranch=h,c.pendingId++,A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:E}=c;_>0?setTimeout(()=>{c.pendingId===E&&c.fallback(f)},_):_===0&&c.fallback(f)}}function fI(r,e,t,n,i,a,o,s,A,l,u=!1){const{p:c,m:h,um:f,n:p,o:{parentNode:v,remove:m}}=l,g=Al(r.props&&r.props.timeout),_={vnode:r,parent:e,parentComponent:t,isSVG:o,container:n,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:B,activeBranch:L,pendingBranch:O,pendingId:b,effects:T,parentComponent:I,container:M}=_;if(_.isHydrating)_.isHydrating=!1;else if(!E){const N=L&&O.transition&&O.transition.mode==="out-in";N&&(L.transition.afterLeave=()=>{b===_.pendingId&&h(O,M,P,0)});let{anchor:P}=_;L&&(P=p(L),f(L,I,_,!0)),N||h(O,M,P,0)}ip(_,O),_.pendingBranch=null,_.isInFallback=!1;let x=_.parent,S=!1;for(;x;){if(x.pendingBranch){x.effects.push(...T),S=!0;break}x=x.parent}S||cI(T),_.effects=[],ag(B,"onResolve")},fallback(E){if(!_.pendingBranch)return;const{vnode:B,activeBranch:L,parentComponent:O,container:b,isSVG:T}=_;ag(B,"onFallback");const I=p(L),M=()=>{_.isInFallback&&(c(null,E,b,I,O,null,T,s,A),ip(_,E))},x=E.transition&&E.transition.mode==="out-in";x&&(L.transition.afterLeave=M),_.isInFallback=!0,f(L,O,null,!0),x||M()},move(E,B,L){_.activeBranch&&h(_.activeBranch,E,B,L),_.container=E},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(E,B){const L=!!_.pendingBranch;L&&_.deps++;const O=E.vnode.el;E.asyncDep.catch(b=>{Eh(b,E,0)}).then(b=>{if(E.isUnmounted||_.isUnmounted||_.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:T}=E;ST(E,b,!1),O&&(T.el=O);const I=!O&&E.subTree.el;B(E,T,v(O||E.subTree.el),O?null:p(E.subTree),_,o,A),I&&m(I),hI(E,T.el),L&&--_.deps===0&&_.resolve()})},unmount(E,B){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,t,E,B),_.pendingBranch&&f(_.pendingBranch,t,E,B)}};return _}function X$(r,e,t,n,i,a,o,s,A){const l=e.suspense=fI(e,n,t,r.parentNode,document.createElement("div"),null,i,a,o,s,!0),u=A(r,l.pendingBranch=e.ssContent,t,l,a,o);return l.deps===0&&l.resolve(),u}function W$(r){const{shapeFlag:e,children:t}=r,n=e&32;r.ssContent=ZO(n?t.default:t),r.ssFallback=n?ZO(t.fallback):Wr(Ba)}function ZO(r){let e;if(je(r)){const t=sh&&r._c;t&&(r._d=!1,cn()),r=r(),t&&(r._d=!0,e=oo,PD())}return we(r)&&(r=G$(r)),r=bo(r),e&&!r.dynamicChildren&&(r.dynamicChildren=e.filter(t=>t!==r)),r}function AD(r,e){e&&e.pendingBranch?we(r)?e.effects.push(...r):e.effects.push(r):cI(r)}function ip(r,e){r.activeBranch=e;const{vnode:t,parentComponent:n}=r,i=t.el=e.el;n&&n.subTree===t&&(n.vnode.el=i,hI(n,i))}function Mr(r,e){if(Ni){let t=Ni.provides;const n=Ni.parent&&Ni.parent.provides;n===t&&(t=Ni.provides=Object.create(n)),t[r]=e}}function Ce(r,e,t=!1){const n=Ni||ia;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&r in i)return i[r];if(arguments.length>1)return t&&je(e)?e.call(n.proxy):e}}function lD(r,e){return Gg(r,null,e)}function uD(r,e){return Gg(r,null,{flush:"post"})}function q$(r,e){return Gg(r,null,{flush:"sync"})}const dm={};function he(r,e,t){return Gg(r,e,t)}function Gg(r,e,{immediate:t,deep:n,flush:i,onTrack:a,onTrigger:o}=nn){const s=Ni;let A,l=!1,u=!1;if(Wi(r)?(A=()=>r.value,l=tg(r)):Vc(r)?(A=()=>r,n=!0):we(r)?(u=!0,l=r.some(E=>Vc(E)||tg(E)),A=()=>r.map(E=>{if(Wi(E))return E.value;if(Vc(E))return Pc(E);if(je(E))return JA(E,s,2)})):je(r)?e?A=()=>JA(r,s,2):A=()=>{if(!(s&&s.isUnmounted))return c&&c(),Ro(r,s,3,[h])}:A=Ts,e&&n){const E=A;A=()=>Pc(E())}let c,h=E=>{c=g.onStop=()=>{JA(E,s,4)}},f;if(Ep)if(h=Ts,e?t&&Ro(e,s,3,[A(),u?[]:void 0,h]):A(),i==="sync"){const E=XD();f=E.__watcherHandles||(E.__watcherHandles=[])}else return Ts;let p=u?new Array(r.length).fill(dm):dm;const v=()=>{if(g.active)if(e){const E=g.run();(n||l||(u?E.some((B,L)=>_p(B,p[L])):_p(E,p)))&&(c&&c(),Ro(e,s,3,[E,p===dm?void 0:u&&p[0]===dm?[]:p,h]),p=E)}else g.run()};v.allowRecurse=!!e;let m;i==="sync"?m=v:i==="post"?m=()=>ea(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),m=()=>R1(v));const g=new Qg(A,m);e?t?v():p=g.run():i==="post"?ea(g.run.bind(g),s&&s.suspense):g.run();const _=()=>{g.stop(),s&&s.scope&&qb(s.scope.effects,g)};return f&&f.push(_),_}function Z$(r,e,t){const n=this.proxy,i=Pn(r)?r.includes(".")?cD(n,r):()=>n[r]:r.bind(n,n);let a;je(e)?a=e:(a=e.handler,t=e);const o=Ni;Ru(this);const s=Gg(i,a.bind(n),t);return o?Ru(o):_u(),s}function cD(r,e){const t=e.split(".");return()=>{let n=r;for(let i=0;i{Pc(t,e)});else if(N2(r))for(const t in r)Pc(r[t],e);return r}function pI(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ze(()=>{r.isMounted=!0}),Q1(()=>{r.isUnmounting=!0}),r}const Vo=[Function,Array],J$={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vo,onEnter:Vo,onAfterEnter:Vo,onEnterCancelled:Vo,onBeforeLeave:Vo,onLeave:Vo,onAfterLeave:Vo,onLeaveCancelled:Vo,onBeforeAppear:Vo,onAppear:Vo,onAfterAppear:Vo,onAppearCancelled:Vo},setup(r,{slots:e}){const t=Yu(),n=pI();let i;return()=>{const a=e.default&&P1(e.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const v of a)if(v.type!==Ba){o=v;break}}const s=Lr(r),{mode:A}=s;if(n.isLeaving)return ZE(o);const l=JO(o);if(!l)return ZE(o);const u=wp(l,s,n,t);ah(l,u);const c=t.subTree,h=c&&JO(c);let f=!1;const{getTransitionKey:p}=l.type;if(p){const v=p();i===void 0?i=v:v!==i&&(i=v,f=!0)}if(h&&h.type!==Ba&&(!Ys(l,h)||f)){const v=wp(h,s,n,t);if(ah(h,v),A==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,t.update.active!==!1&&t.update()},ZE(o);A==="in-out"&&l.type!==Ba&&(v.delayLeave=(m,g,_)=>{const E=hD(n,h);E[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=_})}return o}}},dI=J$;function hD(r,e){const{leavingVNodes:t}=r;let n=t.get(e.type);return n||(n=Object.create(null),t.set(e.type,n)),n}function wp(r,e,t,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:A,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:c,onLeave:h,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:_}=e,E=String(r.key),B=hD(t,r),L=(T,I)=>{T&&Ro(T,n,9,I)},O=(T,I)=>{const M=I[1];L(T,I),we(T)?T.every(x=>x.length<=1)&&M():T.length<=1&&M()},b={mode:a,persisted:o,beforeEnter(T){let I=s;if(!t.isMounted)if(i)I=v||s;else return;T._leaveCb&&T._leaveCb(!0);const M=B[E];M&&Ys(r,M)&&M.el._leaveCb&&M.el._leaveCb(),L(I,[T])},enter(T){let I=A,M=l,x=u;if(!t.isMounted)if(i)I=m||A,M=g||l,x=_||u;else return;let S=!1;const N=T._enterCb=P=>{S||(S=!0,P?L(x,[T]):L(M,[T]),b.delayedLeave&&b.delayedLeave(),T._enterCb=void 0)};I?O(I,[T,N]):N()},leave(T,I){const M=String(r.key);if(T._enterCb&&T._enterCb(!0),t.isUnmounting)return I();L(c,[T]);let x=!1;const S=T._leaveCb=N=>{x||(x=!0,I(),N?L(p,[T]):L(f,[T]),T._leaveCb=void 0,B[M]===r&&delete B[M])};B[M]=r,h?O(h,[T,S]):S()},clone(T){return wp(T,e,t,n)}};return b}function ZE(r){if(kg(r))return r=sA(r),r.children=null,r}function JO(r){return kg(r)?r.children?r.children[0]:void 0:r}function ah(r,e){r.shapeFlag&6&&r.component?ah(r.component.subTree,e):r.shapeFlag&128?(r.ssContent.transition=e.clone(r.ssContent),r.ssFallback.transition=e.clone(r.ssFallback)):r.transition=e}function P1(r,e=!1,t){let n=[],i=0;for(let a=0;a1)for(let a=0;a!!r.type.__asyncLoader;function tV(r){je(r)&&(r={loader:r});const{loader:e,loadingComponent:t,errorComponent:n,delay:i=200,timeout:a,suspensible:o=!0,onError:s}=r;let A=null,l,u=0;const c=()=>(u++,A=null,h()),h=()=>{let f;return A||(f=A=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,m)=>{s(p,()=>v(c()),()=>m(p),u+1)});throw p}).then(p=>f!==A&&A?A:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return vI({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const f=Ni;if(l)return()=>JE(l,f);const p=_=>{A=null,Eh(_,f,13,!n)};if(o&&f.suspense||Ep)return h().then(_=>()=>JE(_,f)).catch(_=>(p(_),()=>n?Wr(n,{error:_}):null));const v=Gn(!1),m=Gn(),g=Gn(!!i);return i&&setTimeout(()=>{g.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!m.value){const _=new Error(`Async component timed out after ${a}ms.`);p(_),m.value=_}},a),h().then(()=>{v.value=!0,f.parent&&kg(f.parent.vnode)&&R1(f.parent.update)}).catch(_=>{p(_),m.value=_}),()=>{if(v.value&&l)return JE(l,f);if(m.value&&n)return Wr(n,{error:m.value});if(t&&!g.value)return Wr(t)}}})}function JE(r,e){const{ref:t,props:n,children:i,ce:a}=e.vnode,o=Wr(r,n,i);return o.ref=t,o.ce=a,delete e.vnode.ce,o}const kg=r=>r.type.__isKeepAlive,eV={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:e}){const t=Yu(),n=t.ctx;if(!n.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=t.suspense,{renderer:{p:A,m:l,um:u,o:{createElement:c}}}=n,h=c("div");n.activate=(_,E,B,L,O)=>{const b=_.component;l(_,E,B,0,s),A(b.vnode,_,E,B,b,s,L,_.slotScopeIds,O),ea(()=>{b.isDeactivated=!1,b.a&&rp(b.a);const T=_.props&&_.props.onVnodeMounted;T&&ro(T,b.parent,_)},s)},n.deactivate=_=>{const E=_.component;l(_,h,null,1,s),ea(()=>{E.da&&rp(E.da);const B=_.props&&_.props.onVnodeUnmounted;B&&ro(B,E.parent,_),E.isDeactivated=!0},s)};function f(_){tC(_),u(_,t,s,!0)}function p(_){i.forEach((E,B)=>{const L=bT(E.type);L&&(!_||!_(L))&&v(B)})}function v(_){const E=i.get(_);!o||E.type!==o.type?f(E):o&&tC(o),i.delete(_),a.delete(_)}he(()=>[r.include,r.exclude],([_,E])=>{_&&p(B=>uv(_,B)),E&&p(B=>!uv(E,B))},{flush:"post",deep:!0});let m=null;const g=()=>{m!=null&&i.set(m,eC(t.subTree))};return Ze(g),D1(g),Q1(()=>{i.forEach(_=>{const{subTree:E,suspense:B}=t,L=eC(E);if(_.type===L.type){tC(L);const O=L.component.da;O&&ea(O,B);return}f(_)})}),()=>{if(m=null,!e.default)return null;const _=e.default(),E=_[0];if(_.length>1)return o=null,_;if(!Ou(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let B=eC(E);const L=B.type,O=bT(jc(B)?B.type.__asyncResolved||{}:L),{include:b,exclude:T,max:I}=r;if(b&&(!O||!uv(b,O))||T&&O&&uv(T,O))return o=B,E;const M=B.key==null?L:B.key,x=i.get(M);return B.el&&(B=sA(B),E.shapeFlag&128&&(E.ssContent=B)),m=M,x?(B.el=x.el,B.component=x.component,B.transition&&ah(B,B.transition),B.shapeFlag|=512,a.delete(M),a.add(M)):(a.add(M),I&&a.size>parseInt(I,10)&&v(a.values().next().value)),B.shapeFlag|=256,o=B,sD(E.type)?E:B}}},rV=eV;function uv(r,e){return we(r)?r.some(t=>uv(t,e)):Pn(r)?r.split(",").includes(e):r.test?r.test(e):!1}function fD(r,e){dD(r,"a",e)}function pD(r,e){dD(r,"da",e)}function dD(r,e,t=Ni){const n=r.__wdc||(r.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(U1(e,n,t),t){let i=t.parent;for(;i&&i.parent;)kg(i.parent.vnode)&&nV(n,e,t,i),i=i.parent}}function nV(r,e,t,n){const i=U1(e,r,n,!0);ir(()=>{qb(n[e],i)},t)}function tC(r){r.shapeFlag&=-257,r.shapeFlag&=-513}function eC(r){return r.shapeFlag&128?r.ssContent:r}function U1(r,e,t=Ni,n=!1){if(t){const i=t[r]||(t[r]=[]),a=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Qp(),Ru(t);const s=Ro(e,t,r,o);return _u(),Hp(),s});return n?i.unshift(a):i.push(a),a}}const gl=r=>(e,t=Ni)=>(!Ep||r==="sp")&&U1(r,(...n)=>e(...n),t),vD=gl("bm"),Ze=gl("m"),gD=gl("bu"),D1=gl("u"),Q1=gl("bum"),ir=gl("um"),yD=gl("sp"),mD=gl("rtg"),_D=gl("rtc");function wD(r,e=Ni){U1("ec",r,e)}function iV(r,e){const t=ia;if(t===null)return r;const n=G1(t)||t.proxy,i=r.dirs||(r.dirs=[]);for(let a=0;ae(o,s,void 0,a&&a[s]));else{const o=Object.keys(r);i=new Array(o.length);for(let s=0,A=o.length;s{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return r}function mr(r,e,t={},n,i){if(ia.isCE||ia.parent&&jc(ia.parent)&&ia.parent.isCE)return e!=="default"&&(t.name=e),Wr("slot",t,n&&n());let a=r[e];a&&a._c&&(a._d=!1),cn();const o=a&&BD(a(t)),s=$g(Ri,{key:t.key||o&&o.key||`_${e}`},o||(n?n():[]),o&&r._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function BD(r){return r.some(e=>Ou(e)?!(e.type===Ba||e.type===Ri&&!BD(e.children)):!0)?r:null}function lV(r,e){const t={};for(const n in r)t[e&&/[A-Z]/.test(n)?`on:${n}`:Fv(n)]=r[n];return t}const mT=r=>r?kD(r)?G1(r)||r.proxy:mT(r.parent):null,Lv=Kn(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>mT(r.parent),$root:r=>mT(r.root),$emit:r=>r.emit,$options:r=>mI(r),$forceUpdate:r=>r.f||(r.f=()=>R1(r.update)),$nextTick:r=>r.n||(r.n=uI.bind(r.proxy)),$watch:r=>Z$.bind(r)}),rC=(r,e)=>r!==nn&&!r.__isScriptSetup&&br(r,e),_T={get({_:r},e){const{ctx:t,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:A}=r;let l;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return a[e]}else{if(rC(n,e))return o[e]=1,n[e];if(i!==nn&&br(i,e))return o[e]=2,i[e];if((l=r.propsOptions[0])&&br(l,e))return o[e]=3,a[e];if(t!==nn&&br(t,e))return o[e]=4,t[e];wT&&(o[e]=0)}}const u=Lv[e];let c,h;if(u)return e==="$attrs"&&Mo(r,"get",e),u(r);if((c=s.__cssModules)&&(c=c[e]))return c;if(t!==nn&&br(t,e))return o[e]=4,t[e];if(h=A.config.globalProperties,br(h,e))return h[e]},set({_:r},e,t){const{data:n,setupState:i,ctx:a}=r;return rC(i,e)?(i[e]=t,!0):n!==nn&&br(n,e)?(n[e]=t,!0):br(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(a[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!t[o]||r!==nn&&br(r,o)||rC(e,o)||(s=a[0])&&br(s,o)||br(n,o)||br(Lv,o)||br(i.config.globalProperties,o)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:br(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}},uV=Kn({},_T,{get(r,e){if(e!==Symbol.unscopables)return _T.get(r,e,r)},has(r,e){return e[0]!=="_"&&!L9(e)}});let wT=!0;function cV(r){const e=mI(r),t=r.proxy,n=r.ctx;wT=!1,e.beforeCreate&&eR(e.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:A,inject:l,created:u,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:_,destroyed:E,unmounted:B,render:L,renderTracked:O,renderTriggered:b,errorCaptured:T,serverPrefetch:I,expose:M,inheritAttrs:x,components:S,directives:N,filters:P}=e;if(l&&hV(l,n,null,r.appContext.config.unwrapInjectedRef),o)for(const tt in o){const J=o[tt];je(J)&&(n[tt]=J.bind(t))}if(i){const tt=i.call(t,t);hn(tt)&&(r.data=Hg(tt))}if(wT=!0,a)for(const tt in a){const J=a[tt],nt=je(J)?J.bind(t,t):je(J.get)?J.get.bind(t,t):Ts,it=!je(J)&&je(J.set)?J.set.bind(t):Ts,_t=hr({get:nt,set:it});Object.defineProperty(n,tt,{enumerable:!0,configurable:!0,get:()=>_t.value,set:R=>_t.value=R})}if(s)for(const tt in s)TD(s[tt],n,t,tt);if(A){const tt=je(A)?A.call(t):A;Reflect.ownKeys(tt).forEach(J=>{Mr(J,tt[J])})}u&&eR(u,r,"c");function z(tt,J){we(J)?J.forEach(nt=>tt(nt.bind(t))):J&&tt(J.bind(t))}if(z(vD,c),z(Ze,h),z(gD,f),z(D1,p),z(fD,v),z(pD,m),z(wD,T),z(_D,O),z(mD,b),z(Q1,_),z(ir,B),z(yD,I),we(M))if(M.length){const tt=r.exposed||(r.exposed={});M.forEach(J=>{Object.defineProperty(tt,J,{get:()=>t[J],set:nt=>t[J]=nt})})}else r.exposed||(r.exposed={});L&&r.render===Ts&&(r.render=L),x!=null&&(r.inheritAttrs=x),S&&(r.components=S),N&&(r.directives=N)}function hV(r,e,t=Ts,n=!1){we(r)&&(r=ET(r));for(const i in r){const a=r[i];let o;hn(a)?"default"in a?o=Ce(a.from||i,a.default,!0):o=Ce(a.from||i):o=Ce(a),Wi(o)&&n?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[i]=o}}function eR(r,e,t){Ro(we(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,t)}function TD(r,e,t,n){const i=n.includes(".")?cD(t,n):()=>t[n];if(Pn(r)){const a=e[r];je(a)&&he(i,a)}else if(je(r))he(i,r.bind(t));else if(hn(r))if(we(r))r.forEach(a=>TD(a,e,t,n));else{const a=je(r.handler)?r.handler.bind(t):e[r.handler];je(a)&&he(i,a,r)}}function mI(r){const e=r.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(e);let A;return s?A=s:!i.length&&!t&&!n?A=e:(A={},i.length&&i.forEach(l=>s_(A,l,o,!0)),s_(A,e,o)),hn(e)&&a.set(e,A),A}function s_(r,e,t,n=!1){const{mixins:i,extends:a}=e;a&&s_(r,a,t,!0),i&&i.forEach(o=>s_(r,o,t,!0));for(const o in e)if(!(n&&o==="expose")){const s=fV[o]||t&&t[o];r[o]=s?s(r[o],e[o]):e[o]}return r}const fV={data:rR,props:Tc,emits:Tc,methods:Tc,computed:Tc,beforeCreate:Ra,created:Ra,beforeMount:Ra,mounted:Ra,beforeUpdate:Ra,updated:Ra,beforeDestroy:Ra,beforeUnmount:Ra,destroyed:Ra,unmounted:Ra,activated:Ra,deactivated:Ra,errorCaptured:Ra,serverPrefetch:Ra,components:Tc,directives:Tc,watch:dV,provide:rR,inject:pV};function rR(r,e){return e?r?function(){return Kn(je(r)?r.call(this,this):r,je(e)?e.call(this,this):e)}:e:r}function pV(r,e){return Tc(ET(r),ET(e))}function ET(r){if(we(r)){const e={};for(let t=0;t0)&&!(o&16)){if(o&8){const u=r.vnode.dynamicProps;for(let c=0;c{A=!0;const[h,f]=xD(c,e,!0);Kn(o,h),f&&s.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!a&&!A)return hn(r)&&n.set(r,tp),tp;if(we(a))for(let u=0;u-1,f[1]=v<0||p-1||br(f,"default"))&&s.push(c)}}}const l=[o,s];return hn(r)&&n.set(r,l),l}function nR(r){return r[0]!=="$"}function iR(r){const e=r&&r.toString().match(/^\s*function (\w+)/);return e?e[1]:r===null?"null":""}function aR(r,e){return iR(r)===iR(e)}function oR(r,e){return we(e)?e.findIndex(t=>aR(t,r)):je(e)&&aR(e,r)?0:-1}const bD=r=>r[0]==="_"||r==="$stable",_I=r=>we(r)?r.map(bo):[bo(r)],yV=(r,e,t)=>{if(e._n)return e;const n=Nc((...i)=>_I(e(...i)),t);return n._c=!1,n},ID=(r,e,t)=>{const n=r._ctx;for(const i in r){if(bD(i))continue;const a=r[i];if(je(a))e[i]=yV(i,a,n);else if(a!=null){const o=_I(a);e[i]=()=>o}}},FD=(r,e)=>{const t=_I(e);r.slots.default=()=>t},mV=(r,e)=>{if(r.vnode.shapeFlag&32){const t=e._;t?(r.slots=Lr(e),a_(e,"_",t)):ID(e,r.slots={})}else r.slots={},e&&FD(r,e);a_(r.slots,H1,1)},_V=(r,e,t)=>{const{vnode:n,slots:i}=r;let a=!0,o=nn;if(n.shapeFlag&32){const s=e._;s?t&&s===1?a=!1:(Kn(i,e),!t&&s===1&&delete i._):(a=!e.$stable,ID(e,i)),o=e}else e&&(FD(r,e),o={default:1});if(a)for(const s in i)!bD(s)&&!(s in o)&&delete i[s]};function LD(){return{app:null,config:{isNativeTag:H9,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 wV=0;function EV(r,e){return function(n,i=null){je(n)||(n=Object.assign({},n)),i!=null&&!hn(i)&&(i=null);const a=LD(),o=new Set;let s=!1;const A=a.app={_uid:wV++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:qD,get config(){return a.config},set config(l){},use(l,...u){return o.has(l)||(l&&je(l.install)?(o.add(l),l.install(A,...u)):je(l)&&(o.add(l),l(A,...u))),A},mixin(l){return a.mixins.includes(l)||a.mixins.push(l),A},component(l,u){return u?(a.components[l]=u,A):a.components[l]},directive(l,u){return u?(a.directives[l]=u,A):a.directives[l]},mount(l,u,c){if(!s){const h=Wr(n,i);return h.appContext=a,u&&e?e(h,l):r(h,l,c),s=!0,A._container=l,l.__vue_app__=A,G1(h.component)||h.component.proxy}},unmount(){s&&(r(null,A._container),delete A._container.__vue_app__)},provide(l,u){return a.provides[l]=u,A}};return A}}function A_(r,e,t,n,i=!1){if(we(r)){r.forEach((h,f)=>A_(h,e&&(we(e)?e[f]:e),t,n,i));return}if(jc(n)&&!i)return;const a=n.shapeFlag&4?G1(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:A}=r,l=e&&e.r,u=s.refs===nn?s.refs={}:s.refs,c=s.setupState;if(l!=null&&l!==A&&(Pn(l)?(u[l]=null,br(c,l)&&(c[l]=null)):Wi(l)&&(l.value=null)),je(A))JA(A,s,12,[o,u]);else{const h=Pn(A),f=Wi(A);if(h||f){const p=()=>{if(r.f){const v=h?br(c,A)?c[A]:u[A]:A.value;i?we(v)&&qb(v,a):we(v)?v.includes(a)||v.push(a):h?(u[A]=[a],br(c,A)&&(c[A]=u[A])):(A.value=[a],r.k&&(u[r.k]=A.value))}else h?(u[A]=o,br(c,A)&&(c[A]=o)):f&&(A.value=o,r.k&&(u[r.k]=o))};o?(p.id=-1,ea(p,t)):p()}}}let Vl=!1;const vm=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",gm=r=>r.nodeType===8;function CV(r){const{mt:e,p:t,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:A,createComment:l}}=r,u=(g,_)=>{if(!_.hasChildNodes()){t(null,g,_),o_(),_._vnode=g;return}Vl=!1,c(_.firstChild,g,null,null,null),o_(),_._vnode=g,Vl&&console.error("Hydration completed but contains mismatches.")},c=(g,_,E,B,L,O=!1)=>{const b=gm(g)&&g.data==="[",T=()=>v(g,_,E,B,L,b),{type:I,ref:M,shapeFlag:x,patchFlag:S}=_;let N=g.nodeType;_.el=g,S===-2&&(O=!1,_.dynamicChildren=null);let P=null;switch(I){case oh:N!==3?_.children===""?(A(_.el=i(""),o(g),g),P=g):P=T():(g.data!==_.children&&(Vl=!0,g.data=_.children),P=a(g));break;case Ba:N!==8||b?P=T():P=a(g);break;case Kc:if(b&&(g=a(g),N=g.nodeType),N===1||N===3){P=g;const X=!_.children.length;for(let z=0;z<_.staticCount;z++)X&&(_.children+=P.nodeType===1?P.outerHTML:P.data),z===_.staticCount-1&&(_.anchor=P),P=a(P);return b?a(P):P}else T();break;case Ri:b?P=p(g,_,E,B,L,O):P=T();break;default:if(x&1)N!==1||_.type.toLowerCase()!==g.tagName.toLowerCase()?P=T():P=h(g,_,E,B,L,O);else if(x&6){_.slotScopeIds=L;const X=o(g);if(e(_,X,null,E,B,vm(X),O),P=b?m(g):a(g),P&&gm(P)&&P.data==="teleport end"&&(P=a(P)),jc(_)){let z;b?(z=Wr(Ri),z.anchor=P?P.previousSibling:X.lastChild):z=g.nodeType===3?EI(""):Wr("div"),z.el=g,_.component.subTree=z}}else x&64?N!==8?P=T():P=_.type.hydrate(g,_,E,B,L,O,r,f):x&128&&(P=_.type.hydrate(g,_,E,B,vm(o(g)),L,O,r,c))}return M!=null&&A_(M,null,B,_),P},h=(g,_,E,B,L,O)=>{O=O||!!_.dynamicChildren;const{type:b,props:T,patchFlag:I,shapeFlag:M,dirs:x}=_,S=b==="input"&&x||b==="option";if(S||I!==-1){if(x&&js(_,null,E,"created"),T)if(S||!O||I&48)for(const P in T)(S&&P.endsWith("value")||Pg(P)&&!Iv(P))&&n(g,P,null,T[P],!1,void 0,E);else T.onClick&&n(g,"onClick",null,T.onClick,!1,void 0,E);let N;if((N=T&&T.onVnodeBeforeMount)&&ro(N,E,_),x&&js(_,null,E,"beforeMount"),((N=T&&T.onVnodeMounted)||x)&&AD(()=>{N&&ro(N,E,_),x&&js(_,null,E,"mounted")},B),M&16&&!(T&&(T.innerHTML||T.textContent))){let P=f(g.firstChild,_,g,E,B,L,O);for(;P;){Vl=!0;const X=P;P=P.nextSibling,s(X)}}else M&8&&g.textContent!==_.children&&(Vl=!0,g.textContent=_.children)}return g.nextSibling},f=(g,_,E,B,L,O,b)=>{b=b||!!_.dynamicChildren;const T=_.children,I=T.length;for(let M=0;M{const{slotScopeIds:b}=_;b&&(L=L?L.concat(b):b);const T=o(g),I=f(a(g),_,T,E,B,L,O);return I&&gm(I)&&I.data==="]"?a(_.anchor=I):(Vl=!0,A(_.anchor=l("]"),T,I),I)},v=(g,_,E,B,L,O)=>{if(Vl=!0,_.el=null,O){const I=m(g);for(;;){const M=a(g);if(M&&M!==I)s(M);else break}}const b=a(g),T=o(g);return s(g),t(null,_,T,b,E,B,vm(T),L),b},m=g=>{let _=0;for(;g;)if(g=a(g),g&&gm(g)&&(g.data==="["&&_++,g.data==="]")){if(_===0)return a(g);_--}return g};return[u,c]}const ea=AD;function OD(r){return MD(r)}function RD(r){return MD(r,CV)}function MD(r,e){const t=K9();t.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:A,setText:l,setElementText:u,parentNode:c,nextSibling:h,setScopeId:f=Ts,insertStaticContent:p}=r,v=(j,Z,ut,rt=null,G=null,xt=null,bt=!1,dt=null,Et=!!Z.dynamicChildren)=>{if(j===Z)return;j&&!Ys(j,Z)&&(rt=vt(j),R(j,G,xt,!0),j=null),Z.patchFlag===-2&&(Et=!1,Z.dynamicChildren=null);const{type:yt,ref:St,shapeFlag:Ft}=Z;switch(yt){case oh:m(j,Z,ut,rt);break;case Ba:g(j,Z,ut,rt);break;case Kc:j==null&&_(Z,ut,rt,bt);break;case Ri:S(j,Z,ut,rt,G,xt,bt,dt,Et);break;default:Ft&1?L(j,Z,ut,rt,G,xt,bt,dt,Et):Ft&6?N(j,Z,ut,rt,G,xt,bt,dt,Et):(Ft&64||Ft&128)&&yt.process(j,Z,ut,rt,G,xt,bt,dt,Et,W)}St!=null&&G&&A_(St,j&&j.ref,xt,Z||j,!Z)},m=(j,Z,ut,rt)=>{if(j==null)n(Z.el=s(Z.children),ut,rt);else{const G=Z.el=j.el;Z.children!==j.children&&l(G,Z.children)}},g=(j,Z,ut,rt)=>{j==null?n(Z.el=A(Z.children||""),ut,rt):Z.el=j.el},_=(j,Z,ut,rt)=>{[j.el,j.anchor]=p(j.children,Z,ut,rt,j.el,j.anchor)},E=({el:j,anchor:Z},ut,rt)=>{let G;for(;j&&j!==Z;)G=h(j),n(j,ut,rt),j=G;n(Z,ut,rt)},B=({el:j,anchor:Z})=>{let ut;for(;j&&j!==Z;)ut=h(j),i(j),j=ut;i(Z)},L=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{bt=bt||Z.type==="svg",j==null?O(Z,ut,rt,G,xt,bt,dt,Et):I(j,Z,G,xt,bt,dt,Et)},O=(j,Z,ut,rt,G,xt,bt,dt)=>{let Et,yt;const{type:St,props:Ft,shapeFlag:Mt,transition:Vt,dirs:Yt}=j;if(Et=j.el=o(j.type,xt,Ft&&Ft.is,Ft),Mt&8?u(Et,j.children):Mt&16&&T(j.children,Et,null,rt,G,xt&&St!=="foreignObject",bt,dt),Yt&&js(j,null,rt,"created"),Ft){for(const ee in Ft)ee!=="value"&&!Iv(ee)&&a(Et,ee,null,Ft[ee],xt,j.children,rt,G,at);"value"in Ft&&a(Et,"value",null,Ft.value),(yt=Ft.onVnodeBeforeMount)&&ro(yt,rt,j)}b(Et,j,j.scopeId,bt,rt),Yt&&js(j,null,rt,"beforeMount");const ie=(!G||G&&!G.pendingBranch)&&Vt&&!Vt.persisted;ie&&Vt.beforeEnter(Et),n(Et,Z,ut),((yt=Ft&&Ft.onVnodeMounted)||ie||Yt)&&ea(()=>{yt&&ro(yt,rt,j),ie&&Vt.enter(Et),Yt&&js(j,null,rt,"mounted")},G)},b=(j,Z,ut,rt,G)=>{if(ut&&f(j,ut),rt)for(let xt=0;xt{for(let yt=Et;yt{const dt=Z.el=j.el;let{patchFlag:Et,dynamicChildren:yt,dirs:St}=Z;Et|=j.patchFlag&16;const Ft=j.props||nn,Mt=Z.props||nn;let Vt;ut&&hc(ut,!1),(Vt=Mt.onVnodeBeforeUpdate)&&ro(Vt,ut,Z,j),St&&js(Z,j,ut,"beforeUpdate"),ut&&hc(ut,!0);const Yt=G&&Z.type!=="foreignObject";if(yt?M(j.dynamicChildren,yt,dt,ut,rt,Yt,xt):bt||J(j,Z,dt,null,ut,rt,Yt,xt,!1),Et>0){if(Et&16)x(dt,Z,Ft,Mt,ut,rt,G);else if(Et&2&&Ft.class!==Mt.class&&a(dt,"class",null,Mt.class,G),Et&4&&a(dt,"style",Ft.style,Mt.style,G),Et&8){const ie=Z.dynamicProps;for(let ee=0;ee{Vt&&ro(Vt,ut,Z,j),St&&js(Z,j,ut,"updated")},rt)},M=(j,Z,ut,rt,G,xt,bt)=>{for(let dt=0;dt{if(ut!==rt){if(ut!==nn)for(const dt in ut)!Iv(dt)&&!(dt in rt)&&a(j,dt,ut[dt],null,bt,Z.children,G,xt,at);for(const dt in rt){if(Iv(dt))continue;const Et=rt[dt],yt=ut[dt];Et!==yt&&dt!=="value"&&a(j,dt,yt,Et,bt,Z.children,G,xt,at)}"value"in rt&&a(j,"value",ut.value,rt.value)}},S=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{const yt=Z.el=j?j.el:s(""),St=Z.anchor=j?j.anchor:s("");let{patchFlag:Ft,dynamicChildren:Mt,slotScopeIds:Vt}=Z;Vt&&(dt=dt?dt.concat(Vt):Vt),j==null?(n(yt,ut,rt),n(St,ut,rt),T(Z.children,ut,St,G,xt,bt,dt,Et)):Ft>0&&Ft&64&&Mt&&j.dynamicChildren?(M(j.dynamicChildren,Mt,ut,G,xt,bt,dt),(Z.key!=null||G&&Z===G.subTree)&&wI(j,Z,!0)):J(j,Z,ut,St,G,xt,bt,dt,Et)},N=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{Z.slotScopeIds=dt,j==null?Z.shapeFlag&512?G.ctx.activate(Z,ut,rt,bt,Et):P(Z,ut,rt,G,xt,bt,Et):X(j,Z,Et)},P=(j,Z,ut,rt,G,xt,bt)=>{const dt=j.component=GD(j,rt,G);if(kg(j)&&(dt.ctx.renderer=W),$D(dt),dt.asyncDep){if(G&&G.registerDep(dt,z),!j.el){const Et=dt.subTree=Wr(Ba);g(null,Et,Z,ut)}return}z(dt,j,Z,ut,G,xt,bt)},X=(j,Z,ut)=>{const rt=Z.component=j.component;if(V$(j,Z,ut))if(rt.asyncDep&&!rt.asyncResolved){tt(rt,Z,ut);return}else rt.next=Z,U$(rt.update),rt.update();else Z.el=j.el,rt.vnode=Z},z=(j,Z,ut,rt,G,xt,bt)=>{const dt=()=>{if(j.isMounted){let{next:St,bu:Ft,u:Mt,parent:Vt,vnode:Yt}=j,ie=St,ee;hc(j,!1),St?(St.el=Yt.el,tt(j,St,bt)):St=Yt,Ft&&rp(Ft),(ee=St.props&&St.props.onVnodeBeforeUpdate)&&ro(ee,Vt,St,Yt),hc(j,!0);const Xt=L0(j),oe=j.subTree;j.subTree=Xt,v(oe,Xt,c(oe.el),vt(oe),j,G,xt),St.el=Xt.el,ie===null&&hI(j,Xt.el),Mt&&ea(Mt,G),(ee=St.props&&St.props.onVnodeUpdated)&&ea(()=>ro(ee,Vt,St,Yt),G)}else{let St;const{el:Ft,props:Mt}=Z,{bm:Vt,m:Yt,parent:ie}=j,ee=jc(Z);if(hc(j,!1),Vt&&rp(Vt),!ee&&(St=Mt&&Mt.onVnodeBeforeMount)&&ro(St,ie,Z),hc(j,!0),Ft&&Ot){const Xt=()=>{j.subTree=L0(j),Ot(Ft,j.subTree,j,G,null)};ee?Z.type.__asyncLoader().then(()=>!j.isUnmounted&&Xt()):Xt()}else{const Xt=j.subTree=L0(j);v(null,Xt,ut,rt,j,G,xt),Z.el=Xt.el}if(Yt&&ea(Yt,G),!ee&&(St=Mt&&Mt.onVnodeMounted)){const Xt=Z;ea(()=>ro(St,ie,Xt),G)}(Z.shapeFlag&256||ie&&jc(ie.vnode)&&ie.vnode.shapeFlag&256)&&j.a&&ea(j.a,G),j.isMounted=!0,Z=ut=rt=null}},Et=j.effect=new Qg(dt,()=>R1(yt),j.scope),yt=j.update=()=>Et.run();yt.id=j.uid,hc(j,!0),yt()},tt=(j,Z,ut)=>{Z.component=j;const rt=j.vnode.props;j.vnode=Z,j.next=null,gV(j,Z.props,rt,ut),_V(j,Z.children,ut),Qp(),WO(),Hp()},J=(j,Z,ut,rt,G,xt,bt,dt,Et=!1)=>{const yt=j&&j.children,St=j?j.shapeFlag:0,Ft=Z.children,{patchFlag:Mt,shapeFlag:Vt}=Z;if(Mt>0){if(Mt&128){it(yt,Ft,ut,rt,G,xt,bt,dt,Et);return}else if(Mt&256){nt(yt,Ft,ut,rt,G,xt,bt,dt,Et);return}}Vt&8?(St&16&&at(yt,G,xt),Ft!==yt&&u(ut,Ft)):St&16?Vt&16?it(yt,Ft,ut,rt,G,xt,bt,dt,Et):at(yt,G,xt,!0):(St&8&&u(ut,""),Vt&16&&T(Ft,ut,rt,G,xt,bt,dt,Et))},nt=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{j=j||tp,Z=Z||tp;const yt=j.length,St=Z.length,Ft=Math.min(yt,St);let Mt;for(Mt=0;MtSt?at(j,G,xt,!0,!1,Ft):T(Z,ut,rt,G,xt,bt,dt,Et,Ft)},it=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{let yt=0;const St=Z.length;let Ft=j.length-1,Mt=St-1;for(;yt<=Ft&&yt<=Mt;){const Vt=j[yt],Yt=Z[yt]=Et?au(Z[yt]):bo(Z[yt]);if(Ys(Vt,Yt))v(Vt,Yt,ut,null,G,xt,bt,dt,Et);else break;yt++}for(;yt<=Ft&&yt<=Mt;){const Vt=j[Ft],Yt=Z[Mt]=Et?au(Z[Mt]):bo(Z[Mt]);if(Ys(Vt,Yt))v(Vt,Yt,ut,null,G,xt,bt,dt,Et);else break;Ft--,Mt--}if(yt>Ft){if(yt<=Mt){const Vt=Mt+1,Yt=VtMt)for(;yt<=Ft;)R(j[yt],G,xt,!0),yt++;else{const Vt=yt,Yt=yt,ie=new Map;for(yt=Yt;yt<=Mt;yt++){const Ie=Z[yt]=Et?au(Z[yt]):bo(Z[yt]);Ie.key!=null&&ie.set(Ie.key,yt)}let ee,Xt=0;const oe=Mt-Yt+1;let Kt=!1,Xe=0;const Re=new Array(oe);for(yt=0;yt=oe){R(Ie,G,xt,!0);continue}let xe;if(Ie.key!=null)xe=ie.get(Ie.key);else for(ee=Yt;ee<=Mt;ee++)if(Re[ee-Yt]===0&&Ys(Ie,Z[ee])){xe=ee;break}xe===void 0?R(Ie,G,xt,!0):(Re[xe-Yt]=yt+1,xe>=Xe?Xe=xe:Kt=!0,v(Ie,Z[xe],ut,null,G,xt,bt,dt,Et),Xt++)}const pr=Kt?BV(Re):tp;for(ee=pr.length-1,yt=oe-1;yt>=0;yt--){const Ie=Yt+yt,xe=Z[Ie],on=Ie+1{const{el:xt,type:bt,transition:dt,children:Et,shapeFlag:yt}=j;if(yt&6){_t(j.component.subTree,Z,ut,rt);return}if(yt&128){j.suspense.move(Z,ut,rt);return}if(yt&64){bt.move(j,Z,ut,W);return}if(bt===Ri){n(xt,Z,ut);for(let Ft=0;Ftdt.enter(xt),G);else{const{leave:Ft,delayLeave:Mt,afterLeave:Vt}=dt,Yt=()=>n(xt,Z,ut),ie=()=>{Ft(xt,()=>{Yt(),Vt&&Vt()})};Mt?Mt(xt,Yt,ie):ie()}else n(xt,Z,ut)},R=(j,Z,ut,rt=!1,G=!1)=>{const{type:xt,props:bt,ref:dt,children:Et,dynamicChildren:yt,shapeFlag:St,patchFlag:Ft,dirs:Mt}=j;if(dt!=null&&A_(dt,null,ut,j,!0),St&256){Z.ctx.deactivate(j);return}const Vt=St&1&&Mt,Yt=!jc(j);let ie;if(Yt&&(ie=bt&&bt.onVnodeBeforeUnmount)&&ro(ie,Z,j),St&6)q(j.component,ut,rt);else{if(St&128){j.suspense.unmount(ut,rt);return}Vt&&js(j,null,Z,"beforeUnmount"),St&64?j.type.remove(j,Z,ut,G,W,rt):yt&&(xt!==Ri||Ft>0&&Ft&64)?at(yt,Z,ut,!1,!0):(xt===Ri&&Ft&384||!G&&St&16)&&at(Et,Z,ut),rt&&$(j)}(Yt&&(ie=bt&&bt.onVnodeUnmounted)||Vt)&&ea(()=>{ie&&ro(ie,Z,j),Vt&&js(j,null,Z,"unmounted")},ut)},$=j=>{const{type:Z,el:ut,anchor:rt,transition:G}=j;if(Z===Ri){K(ut,rt);return}if(Z===Kc){B(j);return}const xt=()=>{i(ut),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(j.shapeFlag&1&&G&&!G.persisted){const{leave:bt,delayLeave:dt}=G,Et=()=>bt(ut,xt);dt?dt(j.el,xt,Et):Et()}else xt()},K=(j,Z)=>{let ut;for(;j!==Z;)ut=h(j),i(j),j=ut;i(Z)},q=(j,Z,ut)=>{const{bum:rt,scope:G,update:xt,subTree:bt,um:dt}=j;rt&&rp(rt),G.stop(),xt&&(xt.active=!1,R(bt,j,Z,ut)),dt&&ea(dt,Z),ea(()=>{j.isUnmounted=!0},Z),Z&&Z.pendingBranch&&!Z.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===Z.pendingId&&(Z.deps--,Z.deps===0&&Z.resolve())},at=(j,Z,ut,rt=!1,G=!1,xt=0)=>{for(let bt=xt;btj.shapeFlag&6?vt(j.component.subTree):j.shapeFlag&128?j.suspense.next():h(j.anchor||j.el),wt=(j,Z,ut)=>{j==null?Z._vnode&&R(Z._vnode,null,null,!0):v(Z._vnode||null,j,Z,null,null,null,ut),WO(),o_(),Z._vnode=j},W={p:v,um:R,m:_t,r:$,mt:P,mc:T,pc:J,pbc:M,n:vt,o:r};let It,Ot;return e&&([It,Ot]=e(W)),{render:wt,hydrate:It,createApp:EV(wt,It)}}function hc({effect:r,update:e},t){r.allowRecurse=e.allowRecurse=t}function wI(r,e,t=!1){const n=r.children,i=e.children;if(we(n)&&we(i))for(let a=0;a>1,r[t[s]]0&&(e[n]=t[a-1]),t[a]=n)}}for(a=t.length,o=t[a-1];a-- >0;)t[a]=o,o=e[o];return t}const TV=r=>r.__isTeleport,Ov=r=>r&&(r.disabled||r.disabled===""),sR=r=>typeof SVGElement<"u"&&r instanceof SVGElement,BT=(r,e)=>{const t=r&&r.to;return Pn(t)?e?e(t):null:t},SV={__isTeleport:!0,process(r,e,t,n,i,a,o,s,A,l){const{mc:u,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:v,createComment:m}}=l,g=Ov(e.props);let{shapeFlag:_,children:E,dynamicChildren:B}=e;if(r==null){const L=e.el=v(""),O=e.anchor=v("");f(L,t,n),f(O,t,n);const b=e.target=BT(e.props,p),T=e.targetAnchor=v("");b&&(f(T,b),o=o||sR(b));const I=(M,x)=>{_&16&&u(E,M,x,i,a,o,s,A)};g?I(t,O):b&&I(b,T)}else{e.el=r.el;const L=e.anchor=r.anchor,O=e.target=r.target,b=e.targetAnchor=r.targetAnchor,T=Ov(r.props),I=T?t:O,M=T?L:b;if(o=o||sR(O),B?(h(r.dynamicChildren,B,I,i,a,o,s),wI(r,e,!0)):A||c(r,e,I,M,i,a,o,s,!1),g)T||ym(e,t,L,l,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const x=e.target=BT(e.props,p);x&&ym(e,x,null,l,0)}else T&&ym(e,O,b,l,1)}ND(e)},remove(r,e,t,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:A,anchor:l,targetAnchor:u,target:c,props:h}=r;if(c&&a(u),(o||!Ov(h))&&(a(l),s&16))for(let f=0;f0?oo||tp:null,PD(),sh>0&&oo&&oo.push(r),r}function Vn(r,e,t,n,i,a){return UD(Ki(r,e,t,n,i,a,!0))}function $g(r,e,t,n,i){return UD(Wr(r,e,t,n,i,!0))}function Ou(r){return r?r.__v_isVNode===!0:!1}function Ys(r,e){return r.type===e.type&&r.key===e.key}function IV(r){}const H1="__vInternal",DD=({key:r})=>r??null,O0=({ref:r,ref_key:e,ref_for:t})=>r!=null?Pn(r)||Wi(r)||je(r)?{i:ia,r,k:e,f:!!t}:r:null;function Ki(r,e=null,t=null,n=0,i=null,a=r===Ri?0:1,o=!1,s=!1){const A={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&DD(e),ref:e&&O0(e),scopeId:N1,slotScopeIds:null,children:t,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:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ia};return s?(CI(A,t),a&128&&r.normalize(A)):t&&(A.shapeFlag|=Pn(t)?8:16),sh>0&&!o&&oo&&(A.patchFlag>0||a&6)&&A.patchFlag!==32&&oo.push(A),A}const Wr=FV;function FV(r,e=null,t=null,n=0,i=null,a=!1){if((!r||r===ED)&&(r=Ba),Ou(r)){const s=sA(r,e,!0);return t&&CI(s,t),sh>0&&!a&&oo&&(s.shapeFlag&6?oo[oo.indexOf(r)]=s:oo.push(s)),s.patchFlag|=-2,s}if(DV(r)&&(r=r.__vccOpts),e){e=QD(e);let{class:s,style:A}=e;s&&!Pn(s)&&(e.class=Ng(s)),hn(A)&&(iI(A)&&!we(A)&&(A=Kn({},A)),e.style=Mg(A))}const o=Pn(r)?1:sD(r)?128:TV(r)?64:hn(r)?4:je(r)?2:0;return Ki(r,e,t,n,i,o,a,!0)}function QD(r){return r?iI(r)||H1 in r?Kn({},r):r:null}function sA(r,e,t=!1){const{props:n,ref:i,patchFlag:a,children:o}=r,s=e?HD(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:s,key:s&&DD(s),ref:e&&e.ref?t&&i?we(i)?i.concat(O0(e)):[i,O0(e)]:O0(e):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==Ri?a===-1?16:a|16:a,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&sA(r.ssContent),ssFallback:r.ssFallback&&sA(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx}}function EI(r=" ",e=0){return Wr(oh,null,r,e)}function LV(r,e){const t=Wr(Kc,null,r);return t.staticCount=e,t}function dr(r="",e=!1){return e?(cn(),$g(Ba,null,r)):Wr(Ba,null,r)}function bo(r){return r==null||typeof r=="boolean"?Wr(Ba):we(r)?Wr(Ri,null,r.slice()):typeof r=="object"?au(r):Wr(oh,null,String(r))}function au(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:sA(r)}function CI(r,e){let t=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(we(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),CI(r,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(H1 in e)?e._ctx=ia:i===3&&ia&&(ia.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else je(e)?(e={default:e,_ctx:ia},t=32):(e=String(e),n&64?(t=16,e=[EI(e)]):t=8);r.children=e,r.shapeFlag|=t}function HD(...r){const e={};for(let t=0;tNi||ia,Ru=r=>{Ni=r,r.scope.on()},_u=()=>{Ni&&Ni.scope.off(),Ni=null};function kD(r){return r.vnode.shapeFlag&4}let Ep=!1;function $D(r,e=!1){Ep=e;const{props:t,children:n}=r.vnode,i=kD(r);vV(r,t,i,e),mV(r,n);const a=i?MV(r,e):void 0;return Ep=!1,a}function MV(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=aI(new Proxy(r.ctx,_T));const{setup:n}=t;if(n){const i=r.setupContext=n.length>1?jD(r):null;Ru(r),Qp();const a=JA(n,r,0,[r.props,i]);if(Hp(),_u(),Zb(a)){if(a.then(_u,_u),e)return a.then(o=>{ST(r,o,e)}).catch(o=>{Eh(o,r,0)});r.asyncDep=a}else ST(r,a,e)}else VD(r,e)}function ST(r,e,t){je(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:hn(e)&&(r.setupState=AI(e)),VD(r,t)}let l_,xT;function NV(r){l_=r,xT=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,uV))}}const PV=()=>!l_;function VD(r,e,t){const n=r.type;if(!r.render){if(!e&&l_&&!n.render){const i=n.template||mI(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:A}=n,l=Kn(Kn({isCustomElement:a,delimiters:s},o),A);n.render=l_(i,l)}}r.render=n.render||Ts,xT&&xT(r)}Ru(r),Qp(),cV(r),Hp(),_u()}function UV(r){return new Proxy(r.attrs,{get(e,t){return Mo(r,"get","$attrs"),e[t]}})}function jD(r){const e=n=>{r.exposed=n||{}};let t;return{get attrs(){return t||(t=UV(r))},slots:r.slots,emit:r.emit,expose:e}}function G1(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(AI(aI(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in Lv)return Lv[t](r)},has(e,t){return t in e||t in Lv}}))}function bT(r,e=!0){return je(r)?r.displayName||r.name:r.name||e&&r.__name}function DV(r){return je(r)&&"__vccOpts"in r}const hr=(r,e)=>R$(r,e,Ep);function QV(){return null}function HV(){return null}function GV(r){}function kV(r,e){return null}function $V(){return KD().slots}function VV(){return KD().attrs}function KD(){const r=Yu();return r.setupContext||(r.setupContext=jD(r))}function jV(r,e){const t=we(r)?r.reduce((n,i)=>(n[i]={},n),{}):r;for(const n in e){const i=t[n];i?we(i)||je(i)?t[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(t[n]={default:e[n]})}return t}function KV(r,e){const t={};for(const n in r)e.includes(n)||Object.defineProperty(t,n,{enumerable:!0,get:()=>r[n]});return t}function zV(r){const e=Yu();let t=r();return _u(),Zb(t)&&(t=t.catch(n=>{throw Ru(e),n})),[t,()=>Ru(e)]}function zD(r,e,t){const n=arguments.length;return n===2?hn(e)&&!we(e)?Ou(e)?Wr(r,null,[e]):Wr(r,e):Wr(r,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Ou(t)&&(t=[t]),Wr(r,e,t))}const YD=Symbol(""),XD=()=>Ce(YD);function YV(){}function XV(r,e,t,n){const i=t[n];if(i&&WD(i,r))return i;const a=e();return a.memo=r.slice(),t[n]=a}function WD(r,e){const t=r.memo;if(t.length!=e.length)return!1;for(let n=0;n0&&oo&&oo.push(r),!0}const qD="3.2.45",WV={createComponentInstance:GD,setupComponent:$D,renderComponentRoot:L0,setCurrentRenderingInstance:ig,isVNode:Ou,normalizeVNode:bo},qV=WV,ZV=null,JV=null,tj="http://www.w3.org/2000/svg",Lc=typeof document<"u"?document:null,AR=Lc&&Lc.createElement("template"),ej={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,n)=>{const i=e?Lc.createElementNS(tj,r):Lc.createElement(r,t?{is:t}:void 0);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Lc.createTextNode(r),createComment:r=>Lc.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Lc.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,n,i,a){const o=t?t.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===a||!(i=i.nextSibling)););else{AR.innerHTML=n?`${r}`:r;const s=AR.content;if(n){const A=s.firstChild;for(;A.firstChild;)s.appendChild(A.firstChild);s.removeChild(A)}e.insertBefore(s,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}};function rj(r,e,t){const n=r._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}function nj(r,e,t){const n=r.style,i=Pn(t);if(t&&!i){for(const a in t)IT(n,a,t[a]);if(e&&!Pn(e))for(const a in e)t[a]==null&&IT(n,a,"")}else{const a=n.display;i?e!==t&&(n.cssText=t):e&&r.removeAttribute("style"),"_vod"in r&&(n.display=a)}}const lR=/\s*!important$/;function IT(r,e,t){if(we(t))t.forEach(n=>IT(r,e,n));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const n=ij(r,e);lR.test(t)?r.setProperty(Wo(n),t.replace(lR,""),"important"):r[n]=t}}const uR=["Webkit","Moz","ms"],nC={};function ij(r,e){const t=nC[e];if(t)return t;let n=so(e);if(n!=="filter"&&n in r)return nC[e]=n;n=Dg(n);for(let i=0;iiC||(uj.then(()=>iC=0),iC=Date.now());function hj(r,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;Ro(fj(n,t.value),e,5,[n])};return t.value=r,t.attached=cj(),t}function fj(r,e){if(we(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const fR=/^on[a-z]/,pj=(r,e,t,n,i=!1,a,o,s,A)=>{e==="class"?rj(r,n,i):e==="style"?nj(r,t,n):Pg(e)?Wb(e)||Aj(r,e,t,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):dj(r,e,n,i))?oj(r,e,n,a,o,s,A):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),aj(r,e,n,i))};function dj(r,e,t,n){return n?!!(e==="innerHTML"||e==="textContent"||e in r&&fR.test(e)&&je(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA"||fR.test(e)&&Pn(t)?!1:e in r}function ZD(r,e){const t=vI(r);class n extends k1{constructor(a){super(t,a,e)}}return n.def=t,n}const vj=r=>ZD(r,f6),gj=typeof HTMLElement<"u"?HTMLElement:class{};class k1 extends gj{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,uI(()=>{this._connected||(OT(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const i of n)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const e=(n,i=!1)=>{const{props:a,styles:o}=n;let s;if(a&&!we(a))for(const A in a){const l=a[A];(l===Number||l&&l.type===Number)&&(A in this._props&&(this._props[A]=Al(this._props[A])),(s||(s=Object.create(null)))[so(A)]=!0)}this._numberProps=s,i&&this._resolveProps(n),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,n=we(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(so))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(e){let t=this.getAttribute(e);const n=so(e);this._numberProps&&this._numberProps[n]&&(t=Al(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(t===!0?this.setAttribute(Wo(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Wo(e),t+""):t||this.removeAttribute(Wo(e))))}_update(){OT(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Wr(this._def,Kn({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0;const n=(a,o)=>{this.dispatchEvent(new CustomEvent(a,{detail:o}))};t.emit=(a,...o)=>{n(a,o),Wo(a)!==a&&n(Wo(a),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof k1){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const n=document.createElement("style");n.textContent=t,this.shadowRoot.appendChild(n)})}}function yj(r="$style"){{const e=Yu();if(!e)return nn;const t=e.type.__cssModules;if(!t)return nn;const n=t[r];return n||nn}}function mj(r){const e=Yu();if(!e)return;const t=e.ut=(i=r(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>LT(a,i))},n=()=>{const i=r(e.proxy);FT(e.subTree,i),t(i)};uD(n),Ze(()=>{const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),ir(()=>i.disconnect())})}function FT(r,e){if(r.shapeFlag&128){const t=r.suspense;r=t.activeBranch,t.pendingBranch&&!t.isHydrating&&t.effects.push(()=>{FT(t.activeBranch,e)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)LT(r.el,e);else if(r.type===Ri)r.children.forEach(t=>FT(t,e));else if(r.type===Kc){let{el:t,anchor:n}=r;for(;t&&(LT(t,e),t!==n);)t=t.nextSibling}}function LT(r,e){if(r.nodeType===1){const t=r.style;for(const n in e)t.setProperty(`--${n}`,e[n])}}const jl="transition",Qd="animation",$1=(r,{slots:e})=>zD(dI,t6(r),e);$1.displayName="Transition";const JD={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},_j=$1.props=Kn({},dI.props,JD),fc=(r,e=[])=>{we(r)?r.forEach(t=>t(...e)):r&&r(...e)},pR=r=>r?we(r)?r.some(e=>e.length>1):r.length>1:!1;function t6(r){const e={};for(const S in r)S in JD||(e[S]=r[S]);if(r.css===!1)return e;const{name:t="v",type:n,duration:i,enterFromClass:a=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:s=`${t}-enter-to`,appearFromClass:A=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:c=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=r,p=wj(i),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:E,onLeave:B,onLeaveCancelled:L,onBeforeAppear:O=g,onAppear:b=_,onAppearCancelled:T=E}=e,I=(S,N,P)=>{eu(S,N?u:s),eu(S,N?l:o),P&&P()},M=(S,N)=>{S._isLeaving=!1,eu(S,c),eu(S,f),eu(S,h),N&&N()},x=S=>(N,P)=>{const X=S?b:_,z=()=>I(N,S,P);fc(X,[N,z]),dR(()=>{eu(N,S?A:a),$A(N,S?u:s),pR(X)||vR(N,n,v,z)})};return Kn(e,{onBeforeEnter(S){fc(g,[S]),$A(S,a),$A(S,o)},onBeforeAppear(S){fc(O,[S]),$A(S,A),$A(S,l)},onEnter:x(!1),onAppear:x(!0),onLeave(S,N){S._isLeaving=!0;const P=()=>M(S,N);$A(S,c),r6(),$A(S,h),dR(()=>{S._isLeaving&&(eu(S,c),$A(S,f),pR(B)||vR(S,n,m,P))}),fc(B,[S,P])},onEnterCancelled(S){I(S,!1),fc(E,[S])},onAppearCancelled(S){I(S,!0),fc(T,[S])},onLeaveCancelled(S){M(S),fc(L,[S])}})}function wj(r){if(r==null)return null;if(hn(r))return[aC(r.enter),aC(r.leave)];{const e=aC(r);return[e,e]}}function aC(r){return Al(r)}function $A(r,e){e.split(/\s+/).forEach(t=>t&&r.classList.add(t)),(r._vtc||(r._vtc=new Set)).add(e)}function eu(r,e){e.split(/\s+/).forEach(n=>n&&r.classList.remove(n));const{_vtc:t}=r;t&&(t.delete(e),t.size||(r._vtc=void 0))}function dR(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let Ej=0;function vR(r,e,t,n){const i=r._endId=++Ej,a=()=>{i===r._endId&&n()};if(t)return setTimeout(a,t);const{type:o,timeout:s,propCount:A}=e6(r,e);if(!o)return n();const l=o+"end";let u=0;const c=()=>{r.removeEventListener(l,h),a()},h=f=>{f.target===r&&++u>=A&&c()};setTimeout(()=>{u(t[p]||"").split(", "),i=n(`${jl}Delay`),a=n(`${jl}Duration`),o=gR(i,a),s=n(`${Qd}Delay`),A=n(`${Qd}Duration`),l=gR(s,A);let u=null,c=0,h=0;e===jl?o>0&&(u=jl,c=o,h=a.length):e===Qd?l>0&&(u=Qd,c=l,h=A.length):(c=Math.max(o,l),u=c>0?o>l?jl:Qd:null,h=u?u===jl?a.length:A.length:0);const f=u===jl&&/\b(transform|all)(,|$)/.test(n(`${jl}Property`).toString());return{type:u,timeout:c,propCount:h,hasTransform:f}}function gR(r,e){for(;r.lengthyR(t)+yR(r[n])))}function yR(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function r6(){return document.body.offsetHeight}const n6=new WeakMap,i6=new WeakMap,Cj={name:"TransitionGroup",props:Kn({},_j,{tag:String,moveClass:String}),setup(r,{slots:e}){const t=Yu(),n=pI();let i,a;return D1(()=>{if(!i.length)return;const o=r.moveClass||`${r.name||"v"}-move`;if(!bj(i[0].el,t.vnode.el,o))return;i.forEach(Tj),i.forEach(Sj);const s=i.filter(xj);r6(),s.forEach(A=>{const l=A.el,u=l.style;$A(l,o),u.transform=u.webkitTransform=u.transitionDuration="";const c=l._moveCb=h=>{h&&h.target!==l||(!h||/transform$/.test(h.propertyName))&&(l.removeEventListener("transitionend",c),l._moveCb=null,eu(l,o))};l.addEventListener("transitionend",c)})}),()=>{const o=Lr(r),s=t6(o);let A=o.tag||Ri;i=a,a=e.default?P1(e.default()):[];for(let l=0;l{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),t.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(n);const{hasTransform:a}=e6(n);return i.removeChild(n),a}const Mu=r=>{const e=r.props["onUpdate:modelValue"]||!1;return we(e)?t=>rp(e,t):e};function Ij(r){r.target.composing=!0}function mR(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const u_={created(r,{modifiers:{lazy:e,trim:t,number:n}},i){r._assign=Mu(i);const a=n||i.props&&i.props.type==="number";WA(r,e?"change":"input",o=>{if(o.target.composing)return;let s=r.value;t&&(s=s.trim()),a&&(s=Al(s)),r._assign(s)}),t&&WA(r,"change",()=>{r.value=r.value.trim()}),e||(WA(r,"compositionstart",Ij),WA(r,"compositionend",mR),WA(r,"change",mR))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:t,trim:n,number:i}},a){if(r._assign=Mu(a),r.composing||document.activeElement===r&&r.type!=="range"&&(t||n&&r.value.trim()===e||(i||r.type==="number")&&Al(r.value)===e))return;const o=e??"";r.value!==o&&(r.value=o)}},BI={deep:!0,created(r,e,t){r._assign=Mu(t),WA(r,"change",()=>{const n=r._modelValue,i=Cp(r),a=r.checked,o=r._assign;if(we(n)){const s=S1(n,i),A=s!==-1;if(a&&!A)o(n.concat(i));else if(!a&&A){const l=[...n];l.splice(s,1),o(l)}}else if(wh(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(o6(r,a))})},mounted:_R,beforeUpdate(r,e,t){r._assign=Mu(t),_R(r,e,t)}};function _R(r,{value:e,oldValue:t},n){r._modelValue=e,we(e)?r.checked=S1(e,n.props.value)>-1:wh(e)?r.checked=e.has(n.props.value):e!==t&&(r.checked=Iu(e,o6(r,!0)))}const TI={created(r,{value:e},t){r.checked=Iu(e,t.props.value),r._assign=Mu(t),WA(r,"change",()=>{r._assign(Cp(r))})},beforeUpdate(r,{value:e,oldValue:t},n){r._assign=Mu(n),e!==t&&(r.checked=Iu(e,n.props.value))}},a6={deep:!0,created(r,{value:e,modifiers:{number:t}},n){const i=wh(e);WA(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>t?Al(Cp(o)):Cp(o));r._assign(r.multiple?i?new Set(a):a:a[0])}),r._assign=Mu(n)},mounted(r,{value:e}){wR(r,e)},beforeUpdate(r,e,t){r._assign=Mu(t)},updated(r,{value:e}){wR(r,e)}};function wR(r,e){const t=r.multiple;if(!(t&&!we(e)&&!wh(e))){for(let n=0,i=r.options.length;n-1:a.selected=e.has(o);else if(Iu(Cp(a),e)){r.selectedIndex!==n&&(r.selectedIndex=n);return}}!t&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Cp(r){return"_value"in r?r._value:r.value}function o6(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const s6={created(r,e,t){mm(r,e,t,null,"created")},mounted(r,e,t){mm(r,e,t,null,"mounted")},beforeUpdate(r,e,t,n){mm(r,e,t,n,"beforeUpdate")},updated(r,e,t,n){mm(r,e,t,n,"updated")}};function A6(r,e){switch(r){case"SELECT":return a6;case"TEXTAREA":return u_;default:switch(e){case"checkbox":return BI;case"radio":return TI;default:return u_}}}function mm(r,e,t,n,i){const o=A6(r.tagName,t.props&&t.props.type)[i];o&&o(r,e,t,n)}function Fj(){u_.getSSRProps=({value:r})=>({value:r}),TI.getSSRProps=({value:r},e)=>{if(e.props&&Iu(e.props.value,r))return{checked:!0}},BI.getSSRProps=({value:r},e)=>{if(we(r)){if(e.props&&S1(r,e.props.value)>-1)return{checked:!0}}else if(wh(r)){if(e.props&&r.has(e.props.value))return{checked:!0}}else if(r)return{checked:!0}},s6.getSSRProps=(r,e)=>{if(typeof e.type!="string")return;const t=A6(e.type.toUpperCase(),e.props&&e.props.type);if(t.getSSRProps)return t.getSSRProps(r,e)}}const Lj=["ctrl","shift","alt","meta"],Oj={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>Lj.some(t=>r[`${t}Key`]&&!e.includes(t))},Rj=(r,e)=>(t,...n)=>{for(let i=0;it=>{if(!("key"in t))return;const n=Wo(t.key);if(e.some(i=>i===n||Mj[i]===n))return r(t)},l6={beforeMount(r,{value:e},{transition:t}){r._vod=r.style.display==="none"?"":r.style.display,t&&e?t.beforeEnter(r):Hd(r,e)},mounted(r,{value:e},{transition:t}){t&&e&&t.enter(r)},updated(r,{value:e,oldValue:t},{transition:n}){!e!=!t&&(n?e?(n.beforeEnter(r),Hd(r,!0),n.enter(r)):n.leave(r,()=>{Hd(r,!1)}):Hd(r,e))},beforeUnmount(r,{value:e}){Hd(r,e)}};function Hd(r,e){r.style.display=e?r._vod:"none"}function Pj(){l6.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const u6=Kn({patchProp:pj},ej);let Mv,ER=!1;function c6(){return Mv||(Mv=OD(u6))}function h6(){return Mv=ER?Mv:RD(u6),ER=!0,Mv}const OT=(...r)=>{c6().render(...r)},f6=(...r)=>{h6().hydrate(...r)},p6=(...r)=>{const e=c6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=d6(n);if(!i)return;const a=e._component;!je(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},Uj=(...r)=>{const e=h6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=d6(n);if(i)return t(i,!0,i instanceof SVGElement)},e};function d6(r){return Pn(r)?document.querySelector(r):r}let CR=!1;const Dj=()=>{CR||(CR=!0,Fj(),Pj())},Qj=()=>{},Hj=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:dI,Comment:Ba,EffectScope:tI,Fragment:Ri,KeepAlive:rV,ReactiveEffect:Qg,Static:Kc,Suspense:K$,Teleport:bV,Text:oh,Transition:$1,TransitionGroup:Bj,VueElement:k1,callWithAsyncErrorHandling:Ro,callWithErrorHandling:JA,camelize:so,capitalize:Dg,cloneVNode:sA,compatUtils:JV,compile:Qj,computed:hr,createApp:p6,createBlock:$g,createCommentVNode:dr,createElementBlock:Vn,createElementVNode:Ki,createHydrationRenderer:RD,createPropsRestProxy:KV,createRenderer:OD,createSSRApp:Uj,createSlots:AV,createStaticVNode:LV,createTextVNode:EI,createVNode:Wr,customRef:F$,defineAsyncComponent:tV,defineComponent:vI,defineCustomElement:ZD,defineEmits:HV,defineExpose:GV,defineProps:QV,defineSSRCustomElement:vj,get devtools(){return Ff},effect:Z9,effectScope:z9,getCurrentInstance:Yu,getCurrentScope:Y9,getTransitionRawChildren:P1,guardReactiveProps:QD,h:zD,handleError:Eh,hydrate:f6,initCustomFormatter:YV,initDirectivesForSSR:Dj,inject:Ce,isMemoSame:WD,isProxy:iI,isReactive:Vc,isReadonly:ih,isRef:Wi,isRuntimeOnly:PV,isShallow:tg,isVNode:Ou,markRaw:aI,mergeDefaults:jV,mergeProps:HD,nextTick:uI,normalizeClass:Ng,normalizeProps:P9,normalizeStyle:Mg,onActivated:fD,onBeforeMount:vD,onBeforeUnmount:Q1,onBeforeUpdate:gD,onDeactivated:pD,onErrorCaptured:wD,onMounted:Ze,onRenderTracked:_D,onRenderTriggered:mD,onScopeDispose:X9,onServerPrefetch:yD,onUnmounted:ir,onUpdated:D1,openBlock:cn,popScopeId:oD,provide:Mr,proxyRefs:AI,pushScopeId:aD,queuePostFlushCb:cI,reactive:Hg,readonly:nI,ref:Gn,registerRuntimeCompiler:NV,render:OT,renderList:CD,renderSlot:mr,resolveComponent:Lf,resolveDirective:sV,resolveDynamicComponent:oV,resolveFilter:ZV,resolveTransitionHooks:wp,setBlockTracking:TT,setDevtoolsHook:nD,setTransitionHooks:ah,shallowReactive:X2,shallowReadonly:B$,shallowRef:T$,ssrContextKey:YD,ssrUtils:qV,stop:J9,toDisplayString:tu,toHandlerKey:Fv,toHandlers:lV,toRaw:Lr,toRef:Z2,toRefs:Lu,transformVNodeArgs:IV,triggerRef:x$,unref:q2,useAttrs:VV,useCssModule:yj,useCssVars:mj,useSSRContext:XD,useSlots:$V,useTransitionState:pI,vModelCheckbox:BI,vModelDynamic:s6,vModelRadio:TI,vModelSelect:a6,vModelText:u_,vShow:l6,version:qD,warn:M$,watch:he,watchEffect:lD,watchPostEffect:uD,watchSyncEffect:q$,withAsyncContext:zV,withCtx:Nc,withDefaults:kV,withDirectives:iV,withKeys:Nj,withMemo:XV,withModifiers:Rj,withScopeId:H$},Symbol.toStringTag,{value:"Module"})),Gj={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let kj=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Gj[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const v6=kj,Vg=6378137,kf=Math.PI*Vg,$j=[-kf,-kf,kf,kf],Vj=[-180,-85,180,85],_m=Vg*Math.log(Math.tan(Math.PI/2));let uf=class extends v6{constructor(e){super({code:e,units:"m",extent:$j,global:!0,worldExtent:Vj,getPointResolution:function(t,n){return t/Math.cosh(n[1]/Vg)}})}};const BR=[new uf("EPSG:3857"),new uf("EPSG:102100"),new uf("EPSG:102113"),new uf("EPSG:900913"),new uf("http://www.opengis.net/def/crs/EPSG/0/3857"),new uf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function jj(r,e,t){const n=r.length;t=t>1?t:2,e===void 0&&(t>2?e=r.slice():e=new Array(n));for(let i=0;i_m?a=_m:a<-_m&&(a=-_m),e[i+1]=a}return e}function Kj(r,e,t){const n=r.length;t=t>1?t:2,e===void 0&&(t>2?e=r.slice():e=new Array(n));for(let i=0;i()=>(e||r((e={exports:{}}).exports,e),e.exports);var rRt=F9(Ei=>{(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();function T1(r,e){const t=Object.create(null),n=r.split(",");for(let i=0;i!!t[i.toLowerCase()]:i=>!!t[i]}const L9="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",O9=T1(L9);function Mg(r){if(we(r)){const e={};for(let t=0;t{if(t){const n=t.split(M9);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Ng(r){let e="";if(Pn(r))e=r;else if(we(r))for(let t=0;tIu(t,e))}const tu=r=>Pn(r)?r:r==null?"":we(r)||hn(r)&&(r.toString===M2||!je(r.toString))?JSON.stringify(r,R2,2):String(r),R2=(r,e)=>e&&e.__v_isRef?R2(r,e.value):ep(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i])=>(t[`${n} =>`]=i,t),{})}:wh(e)?{[`Set(${e.size})`]:[...e.values()]}:hn(e)&&!we(e)&&!N2(e)?String(e):e,nn={},tp=[],Ts=()=>{},G9=()=>!1,k9=/^on[^a-z]/,Pg=r=>k9.test(r),Wb=r=>r.startsWith("onUpdate:"),Kn=Object.assign,qb=(r,e)=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)},$9=Object.prototype.hasOwnProperty,br=(r,e)=>$9.call(r,e),we=Array.isArray,ep=r=>Ug(r)==="[object Map]",wh=r=>Ug(r)==="[object Set]",GO=r=>Ug(r)==="[object Date]",je=r=>typeof r=="function",Pn=r=>typeof r=="string",Jv=r=>typeof r=="symbol",hn=r=>r!==null&&typeof r=="object",Zb=r=>hn(r)&&je(r.then)&&je(r.catch),M2=Object.prototype.toString,Ug=r=>M2.call(r),V9=r=>Ug(r).slice(8,-1),N2=r=>Ug(r)==="[object Object]",Jb=r=>Pn(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,Iv=T1(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),x1=r=>{const e=Object.create(null);return t=>e[t]||(e[t]=r(t))},j9=/-(\w)/g,so=x1(r=>r.replace(j9,(e,t)=>t?t.toUpperCase():"")),K9=/\B([A-Z])/g,Wo=x1(r=>r.replace(K9,"-$1").toLowerCase()),Dg=x1(r=>r.charAt(0).toUpperCase()+r.slice(1)),Fv=x1(r=>r?`on${Dg(r)}`:""),_p=(r,e)=>!Object.is(r,e),rp=(r,e)=>{for(let t=0;t{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:t})},Al=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let kO;const z9=()=>kO||(kO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let xo;class tI{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=xo,!e&&xo&&(this.index=(xo.scopes||(xo.scopes=[])).push(this)-1)}run(e){if(this.active){const t=xo;try{return xo=this,e()}finally{xo=t}}}on(){xo=this}off(){xo=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const e=new Set(r);return e.w=0,e.n=0,e},U2=r=>(r.w&Fu)>0,D2=r=>(r.n&Fu)>0,q9=({deps:r})=>{if(r.length)for(let e=0;e{const{deps:e}=r;if(e.length){let t=0;for(let n=0;n{(u==="length"||u>=A)&&s.push(l)})}else switch(t!==void 0&&s.push(o.get(t)),e){case"add":we(r)?Jb(t)&&s.push(o.get("length")):(s.push(o.get($c)),ep(r)&&s.push(o.get(vT)));break;case"delete":we(r)||(s.push(o.get($c)),ep(r)&&s.push(o.get(vT)));break;case"set":ep(r)&&s.push(o.get($c));break}if(s.length===1)s[0]&&gT(s[0]);else{const A=[];for(const l of s)l&&A.push(...l);gT(eI(A))}}function gT(r,e){const t=we(r)?r:[...r];for(const n of t)n.computed&&VO(n);for(const n of t)n.computed||VO(n)}function VO(r,e){(r!==Es||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const e$=T1("__proto__,__v_isRef,__isVue"),G2=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Jv)),r$=b1(),n$=b1(!1,!0),i$=b1(!0),a$=b1(!0,!0),jO=o$();function o$(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...t){const n=Lr(this);for(let a=0,o=this.length;a{r[e]=function(...t){Qp();const n=Lr(this)[e].apply(this,t);return Hp(),n}}),r}function b1(r=!1,e=!1){return function(n,i,a){if(i==="__v_isReactive")return!r;if(i==="__v_isReadonly")return r;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&a===(r?e?Y2:z2:e?K2:j2).get(n))return n;const o=we(n);if(!r&&o&&br(jO,i))return Reflect.get(jO,i,a);const s=Reflect.get(n,i,a);return(Jv(i)?G2.has(i):e$(i))||(r||Mo(n,"get",i),e)?s:Wi(s)?o&&Jb(i)?s:s.value:hn(s)?r?nI(s):Hg(s):s}}const s$=k2(),A$=k2(!0);function k2(r=!1){return function(t,n,i,a){let o=t[n];if(ih(o)&&Wi(o)&&!Wi(i))return!1;if(!r&&(!tg(i)&&!ih(i)&&(o=Lr(o),i=Lr(i)),!we(t)&&Wi(o)&&!Wi(i)))return o.value=i,!0;const s=we(t)&&Jb(n)?Number(n)r,I1=r=>Reflect.getPrototypeOf(r);function lm(r,e,t=!1,n=!1){r=r.__v_raw;const i=Lr(r),a=Lr(e);t||(e!==a&&Mo(i,"get",e),Mo(i,"get",a));const{has:o}=I1(i),s=n?rI:t?oI:eg;if(o.call(i,e))return s(r.get(e));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(e)}function um(r,e=!1){const t=this.__v_raw,n=Lr(t),i=Lr(r);return e||(r!==i&&Mo(n,"has",r),Mo(n,"has",i)),r===i?t.has(r):t.has(r)||t.has(i)}function cm(r,e=!1){return r=r.__v_raw,!e&&Mo(Lr(r),"iterate",$c),Reflect.get(r,"size",r)}function KO(r){r=Lr(r);const e=Lr(this);return I1(e).has.call(e,r)||(e.add(r),ll(e,"add",r,r)),this}function zO(r,e){e=Lr(e);const t=Lr(this),{has:n,get:i}=I1(t);let a=n.call(t,r);a||(r=Lr(r),a=n.call(t,r));const o=i.call(t,r);return t.set(r,e),a?_p(e,o)&&ll(t,"set",r,e):ll(t,"add",r,e),this}function YO(r){const e=Lr(this),{has:t,get:n}=I1(e);let i=t.call(e,r);i||(r=Lr(r),i=t.call(e,r)),n&&n.call(e,r);const a=e.delete(r);return i&&ll(e,"delete",r,void 0),a}function XO(){const r=Lr(this),e=r.size!==0,t=r.clear();return e&&ll(r,"clear",void 0,void 0),t}function hm(r,e){return function(n,i){const a=this,o=a.__v_raw,s=Lr(o),A=e?rI:r?oI:eg;return!r&&Mo(s,"iterate",$c),o.forEach((l,u)=>n.call(i,A(l),A(u),a))}}function fm(r,e,t){return function(...n){const i=this.__v_raw,a=Lr(i),o=ep(a),s=r==="entries"||r===Symbol.iterator&&o,A=r==="keys"&&o,l=i[r](...n),u=t?rI:e?oI:eg;return!e&&Mo(a,"iterate",A?vT:$c),{next(){const{value:c,done:h}=l.next();return h?{value:c,done:h}:{value:s?[u(c[0]),u(c[1])]:u(c),done:h}},[Symbol.iterator](){return this}}}}function $l(r){return function(...e){return r==="delete"?!1:this}}function p$(){const r={get(a){return lm(this,a)},get size(){return cm(this)},has:um,add:KO,set:zO,delete:YO,clear:XO,forEach:hm(!1,!1)},e={get(a){return lm(this,a,!1,!0)},get size(){return cm(this)},has:um,add:KO,set:zO,delete:YO,clear:XO,forEach:hm(!1,!0)},t={get(a){return lm(this,a,!0)},get size(){return cm(this,!0)},has(a){return um.call(this,a,!0)},add:$l("add"),set:$l("set"),delete:$l("delete"),clear:$l("clear"),forEach:hm(!0,!1)},n={get(a){return lm(this,a,!0,!0)},get size(){return cm(this,!0)},has(a){return um.call(this,a,!0)},add:$l("add"),set:$l("set"),delete:$l("delete"),clear:$l("clear"),forEach:hm(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{r[a]=fm(a,!1,!1),t[a]=fm(a,!0,!1),e[a]=fm(a,!1,!0),n[a]=fm(a,!0,!0)}),[r,t,e,n]}const[d$,v$,g$,y$]=p$();function F1(r,e){const t=e?r?y$:g$:r?v$:d$;return(n,i,a)=>i==="__v_isReactive"?!r:i==="__v_isReadonly"?r:i==="__v_raw"?n:Reflect.get(br(t,i)&&i in n?t:n,i,a)}const m$={get:F1(!1,!1)},_$={get:F1(!1,!0)},w$={get:F1(!0,!1)},E$={get:F1(!0,!0)},j2=new WeakMap,K2=new WeakMap,z2=new WeakMap,Y2=new WeakMap;function C$(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function B$(r){return r.__v_skip||!Object.isExtensible(r)?0:C$(V9(r))}function Hg(r){return ih(r)?r:L1(r,!1,$2,m$,j2)}function X2(r){return L1(r,!1,h$,_$,K2)}function nI(r){return L1(r,!0,V2,w$,z2)}function T$(r){return L1(r,!0,f$,E$,Y2)}function L1(r,e,t,n,i){if(!hn(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const a=i.get(r);if(a)return a;const o=B$(r);if(o===0)return r;const s=new Proxy(r,o===2?n:t);return i.set(r,s),s}function Vc(r){return ih(r)?Vc(r.__v_raw):!!(r&&r.__v_isReactive)}function ih(r){return!!(r&&r.__v_isReadonly)}function tg(r){return!!(r&&r.__v_isShallow)}function iI(r){return Vc(r)||ih(r)}function Lr(r){const e=r&&r.__v_raw;return e?Lr(e):r}function aI(r){return a_(r,"__v_skip",!0),r}const eg=r=>hn(r)?Hg(r):r,oI=r=>hn(r)?nI(r):r;function sI(r){mu&&Es&&(r=Lr(r),H2(r.dep||(r.dep=eI())))}function O1(r,e){r=Lr(r),r.dep&&gT(r.dep)}function Wi(r){return!!(r&&r.__v_isRef===!0)}function Gn(r){return W2(r,!1)}function S$(r){return W2(r,!0)}function W2(r,e){return Wi(r)?r:new x$(r,e)}class x${constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Lr(e),this._value=t?e:eg(e)}get value(){return sI(this),this._value}set value(e){const t=this.__v_isShallow||tg(e)||ih(e);e=t?e:Lr(e),_p(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:eg(e),O1(this))}}function b$(r){O1(r)}function q2(r){return Wi(r)?r.value:r}const I$={get:(r,e,t)=>q2(Reflect.get(r,e,t)),set:(r,e,t,n)=>{const i=r[e];return Wi(i)&&!Wi(t)?(i.value=t,!0):Reflect.set(r,e,t,n)}};function AI(r){return Vc(r)?r:new Proxy(r,I$)}class F${constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e(()=>sI(this),()=>O1(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function L$(r){return new F$(r)}function Lu(r){const e=we(r)?new Array(r.length):{};for(const t in r)e[t]=Z2(r,t);return e}class O${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 e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Z2(r,e,t){const n=r[e];return Wi(n)?n:new O$(r,e,t)}var J2;class R${constructor(e,t,n,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[J2]=!1,this._dirty=!0,this.effect=new Qg(e,()=>{this._dirty||(this._dirty=!0,O1(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Lr(this);return sI(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}J2="__v_isReadonly";function M$(r,e,t=!1){let n,i;const a=je(r);return a?(n=r,i=Ts):(n=r.get,i=r.set),new R$(n,i,a||!i,t)}function N$(r,...e){}function JA(r,e,t,n){let i;try{i=n?r(...n):r()}catch(a){Eh(a,e,t)}return i}function Ro(r,e,t,n){if(je(r)){const a=JA(r,e,t,n);return a&&Zb(a)&&a.catch(o=>{Eh(o,e,t)}),a}const i=[];for(let a=0;a>>1;ng(Ea[n])zs&&Ea.splice(e,1)}function cI(r){we(r)?np.push(...r):(!jA||!jA.includes(r,r.allowRecurse?Fc+1:Fc))&&np.push(r),eD()}function WO(r,e=rg?zs+1:0){for(;eng(t)-ng(n)),Fc=0;Fcr.id==null?1/0:r.id,Q$=(r,e)=>{const t=ng(r)-ng(e);if(t===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return t};function rD(r){yT=!1,rg=!0,Ea.sort(Q$);const e=Ts;try{for(zs=0;zsFf.emit(i,...a)),pm=[]):typeof window<"u"&&window.HTMLElement&&!(!((n=(t=window.navigator)===null||t===void 0?void 0:t.userAgent)===null||n===void 0)&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{nD(a,e)}),setTimeout(()=>{Ff||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,pm=[])},3e3)):pm=[]}function H$(r,e,...t){if(r.isUnmounted)return;const n=r.vnode.props||nn;let i=t;const a=e.startsWith("update:"),o=a&&e.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:h}=n[u]||nn;h&&(i=t.map(f=>Pn(f)?f.trim():f)),c&&(i=t.map(Al))}let s,A=n[s=Fv(e)]||n[s=Fv(so(e))];!A&&a&&(A=n[s=Fv(Wo(e))]),A&&Ro(A,r,6,i);const l=n[s+"Once"];if(l){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,Ro(l,r,6,i)}}function iD(r,e,t=!1){const n=e.emitsCache,i=n.get(r);if(i!==void 0)return i;const a=r.emits;let o={},s=!1;if(!je(r)){const A=l=>{const u=iD(l,e,!0);u&&(s=!0,Kn(o,u))};!t&&e.mixins.length&&e.mixins.forEach(A),r.extends&&A(r.extends),r.mixins&&r.mixins.forEach(A)}return!a&&!s?(hn(r)&&n.set(r,null),null):(we(a)?a.forEach(A=>o[A]=null):Kn(o,a),hn(r)&&n.set(r,o),o)}function M1(r,e){return!r||!Pg(e)?!1:(e=e.slice(2).replace(/Once$/,""),br(r,e[0].toLowerCase()+e.slice(1))||br(r,Wo(e))||br(r,e))}let ia=null,N1=null;function ig(r){const e=ia;return ia=r,N1=r&&r.type.__scopeId||null,e}function aD(r){N1=r}function oD(){N1=null}const G$=r=>Nc;function Nc(r,e=ia,t){if(!e||r._n)return r;const n=(...i)=>{n._d&&TT(-1);const a=ig(e);let o;try{o=r(...i)}finally{ig(a),n._d&&TT(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function L0(r){const{type:e,vnode:t,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:A,emit:l,render:u,renderCache:c,data:h,setupState:f,ctx:p,inheritAttrs:v}=r;let m,g;const _=ig(r);try{if(t.shapeFlag&4){const B=i||n;m=bo(u.call(B,B,c,a,f,h,p)),g=A}else{const B=e;m=bo(B.length>1?B(a,{attrs:A,slots:s,emit:l}):B(a,null)),g=e.props?A:$$(A)}}catch(B){Rv.length=0,Eh(B,r,1),m=Wr(Ba)}let E=m;if(g&&v!==!1){const B=Object.keys(g),{shapeFlag:L}=E;B.length&&L&7&&(o&&B.some(Wb)&&(g=V$(g,o)),E=sA(E,g))}return t.dirs&&(E=sA(E),E.dirs=E.dirs?E.dirs.concat(t.dirs):t.dirs),t.transition&&(E.transition=t.transition),m=E,ig(_),m}function k$(r){let e;for(let t=0;t{let e;for(const t in r)(t==="class"||t==="style"||Pg(t))&&((e||(e={}))[t]=r[t]);return e},V$=(r,e)=>{const t={};for(const n in r)(!Wb(n)||!(n.slice(9)in e))&&(t[n]=r[n]);return t};function j$(r,e,t){const{props:n,children:i,component:a}=r,{props:o,children:s,patchFlag:A}=e,l=a.emitsOptions;if(e.dirs||e.transition)return!0;if(t&&A>=0){if(A&1024)return!0;if(A&16)return n?qO(n,o,l):!!o;if(A&8){const u=e.dynamicProps;for(let c=0;cr.__isSuspense,K$={name:"Suspense",__isSuspense:!0,process(r,e,t,n,i,a,o,s,A,l){r==null?Y$(e,t,n,i,a,o,s,A,l):X$(r,e,t,n,i,o,s,A,l)},hydrate:W$,create:fI,normalize:q$},z$=K$;function ag(r,e){const t=r.props&&r.props[e];je(t)&&t()}function Y$(r,e,t,n,i,a,o,s,A){const{p:l,o:{createElement:u}}=A,c=u("div"),h=r.suspense=fI(r,i,n,e,c,t,a,o,s,A);l(null,h.pendingBranch=r.ssContent,c,null,n,h,a,o),h.deps>0?(ag(r,"onPending"),ag(r,"onFallback"),l(null,r.ssFallback,e,t,n,null,a,o),ip(h,r.ssFallback)):h.resolve()}function X$(r,e,t,n,i,a,o,s,{p:A,um:l,o:{createElement:u}}){const c=e.suspense=r.suspense;c.vnode=e,e.el=r.el;const h=e.ssContent,f=e.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:m,isHydrating:g}=c;if(v)c.pendingBranch=h,Ys(h,v)?(A(v,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():m&&(A(p,f,t,n,i,null,a,o,s),ip(c,f))):(c.pendingId++,g?(c.isHydrating=!1,c.activeBranch=v):l(v,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=u("div"),m?(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(A(p,f,t,n,i,null,a,o,s),ip(c,f))):p&&Ys(h,p)?(A(p,h,t,n,i,c,a,o,s),c.resolve(!0)):(A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(p&&Ys(h,p))A(p,h,t,n,i,c,a,o,s),ip(c,h);else if(ag(e,"onPending"),c.pendingBranch=h,c.pendingId++,A(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:E}=c;_>0?setTimeout(()=>{c.pendingId===E&&c.fallback(f)},_):_===0&&c.fallback(f)}}function fI(r,e,t,n,i,a,o,s,A,l,u=!1){const{p:c,m:h,um:f,n:p,o:{parentNode:v,remove:m}}=l,g=Al(r.props&&r.props.timeout),_={vnode:r,parent:e,parentComponent:t,isSVG:o,container:n,hiddenContainer:i,anchor:a,deps:0,pendingId:0,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:B,activeBranch:L,pendingBranch:O,pendingId:b,effects:T,parentComponent:I,container:M}=_;if(_.isHydrating)_.isHydrating=!1;else if(!E){const N=L&&O.transition&&O.transition.mode==="out-in";N&&(L.transition.afterLeave=()=>{b===_.pendingId&&h(O,M,P,0)});let{anchor:P}=_;L&&(P=p(L),f(L,I,_,!0)),N||h(O,M,P,0)}ip(_,O),_.pendingBranch=null,_.isInFallback=!1;let x=_.parent,S=!1;for(;x;){if(x.pendingBranch){x.effects.push(...T),S=!0;break}x=x.parent}S||cI(T),_.effects=[],ag(B,"onResolve")},fallback(E){if(!_.pendingBranch)return;const{vnode:B,activeBranch:L,parentComponent:O,container:b,isSVG:T}=_;ag(B,"onFallback");const I=p(L),M=()=>{_.isInFallback&&(c(null,E,b,I,O,null,T,s,A),ip(_,E))},x=E.transition&&E.transition.mode==="out-in";x&&(L.transition.afterLeave=M),_.isInFallback=!0,f(L,O,null,!0),x||M()},move(E,B,L){_.activeBranch&&h(_.activeBranch,E,B,L),_.container=E},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(E,B){const L=!!_.pendingBranch;L&&_.deps++;const O=E.vnode.el;E.asyncDep.catch(b=>{Eh(b,E,0)}).then(b=>{if(E.isUnmounted||_.isUnmounted||_.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:T}=E;ST(E,b,!1),O&&(T.el=O);const I=!O&&E.subTree.el;B(E,T,v(O||E.subTree.el),O?null:p(E.subTree),_,o,A),I&&m(I),hI(E,T.el),L&&--_.deps===0&&_.resolve()})},unmount(E,B){_.isUnmounted=!0,_.activeBranch&&f(_.activeBranch,t,E,B),_.pendingBranch&&f(_.pendingBranch,t,E,B)}};return _}function W$(r,e,t,n,i,a,o,s,A){const l=e.suspense=fI(e,n,t,r.parentNode,document.createElement("div"),null,i,a,o,s,!0),u=A(r,l.pendingBranch=e.ssContent,t,l,a,o);return l.deps===0&&l.resolve(),u}function q$(r){const{shapeFlag:e,children:t}=r,n=e&32;r.ssContent=ZO(n?t.default:t),r.ssFallback=n?ZO(t.fallback):Wr(Ba)}function ZO(r){let e;if(je(r)){const t=sh&&r._c;t&&(r._d=!1,cn()),r=r(),t&&(r._d=!0,e=oo,PD())}return we(r)&&(r=k$(r)),r=bo(r),e&&!r.dynamicChildren&&(r.dynamicChildren=e.filter(t=>t!==r)),r}function AD(r,e){e&&e.pendingBranch?we(r)?e.effects.push(...r):e.effects.push(r):cI(r)}function ip(r,e){r.activeBranch=e;const{vnode:t,parentComponent:n}=r,i=t.el=e.el;n&&n.subTree===t&&(n.vnode.el=i,hI(n,i))}function Mr(r,e){if(Ni){let t=Ni.provides;const n=Ni.parent&&Ni.parent.provides;n===t&&(t=Ni.provides=Object.create(n)),t[r]=e}}function Ce(r,e,t=!1){const n=Ni||ia;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&r in i)return i[r];if(arguments.length>1)return t&&je(e)?e.call(n.proxy):e}}function lD(r,e){return Gg(r,null,e)}function uD(r,e){return Gg(r,null,{flush:"post"})}function Z$(r,e){return Gg(r,null,{flush:"sync"})}const dm={};function he(r,e,t){return Gg(r,e,t)}function Gg(r,e,{immediate:t,deep:n,flush:i,onTrack:a,onTrigger:o}=nn){const s=Ni;let A,l=!1,u=!1;if(Wi(r)?(A=()=>r.value,l=tg(r)):Vc(r)?(A=()=>r,n=!0):we(r)?(u=!0,l=r.some(E=>Vc(E)||tg(E)),A=()=>r.map(E=>{if(Wi(E))return E.value;if(Vc(E))return Pc(E);if(je(E))return JA(E,s,2)})):je(r)?e?A=()=>JA(r,s,2):A=()=>{if(!(s&&s.isUnmounted))return c&&c(),Ro(r,s,3,[h])}:A=Ts,e&&n){const E=A;A=()=>Pc(E())}let c,h=E=>{c=g.onStop=()=>{JA(E,s,4)}},f;if(Ep)if(h=Ts,e?t&&Ro(e,s,3,[A(),u?[]:void 0,h]):A(),i==="sync"){const E=XD();f=E.__watcherHandles||(E.__watcherHandles=[])}else return Ts;let p=u?new Array(r.length).fill(dm):dm;const v=()=>{if(g.active)if(e){const E=g.run();(n||l||(u?E.some((B,L)=>_p(B,p[L])):_p(E,p)))&&(c&&c(),Ro(e,s,3,[E,p===dm?void 0:u&&p[0]===dm?[]:p,h]),p=E)}else g.run()};v.allowRecurse=!!e;let m;i==="sync"?m=v:i==="post"?m=()=>ea(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),m=()=>R1(v));const g=new Qg(A,m);e?t?v():p=g.run():i==="post"?ea(g.run.bind(g),s&&s.suspense):g.run();const _=()=>{g.stop(),s&&s.scope&&qb(s.scope.effects,g)};return f&&f.push(_),_}function J$(r,e,t){const n=this.proxy,i=Pn(r)?r.includes(".")?cD(n,r):()=>n[r]:r.bind(n,n);let a;je(e)?a=e:(a=e.handler,t=e);const o=Ni;Ru(this);const s=Gg(i,a.bind(n),t);return o?Ru(o):_u(),s}function cD(r,e){const t=e.split(".");return()=>{let n=r;for(let i=0;i{Pc(t,e)});else if(N2(r))for(const t in r)Pc(r[t],e);return r}function pI(){const r={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ze(()=>{r.isMounted=!0}),Q1(()=>{r.isUnmounting=!0}),r}const Vo=[Function,Array],tV={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vo,onEnter:Vo,onAfterEnter:Vo,onEnterCancelled:Vo,onBeforeLeave:Vo,onLeave:Vo,onAfterLeave:Vo,onLeaveCancelled:Vo,onBeforeAppear:Vo,onAppear:Vo,onAfterAppear:Vo,onAppearCancelled:Vo},setup(r,{slots:e}){const t=Yu(),n=pI();let i;return()=>{const a=e.default&&P1(e.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const v of a)if(v.type!==Ba){o=v;break}}const s=Lr(r),{mode:A}=s;if(n.isLeaving)return ZE(o);const l=JO(o);if(!l)return ZE(o);const u=wp(l,s,n,t);ah(l,u);const c=t.subTree,h=c&&JO(c);let f=!1;const{getTransitionKey:p}=l.type;if(p){const v=p();i===void 0?i=v:v!==i&&(i=v,f=!0)}if(h&&h.type!==Ba&&(!Ys(l,h)||f)){const v=wp(h,s,n,t);if(ah(h,v),A==="out-in")return n.isLeaving=!0,v.afterLeave=()=>{n.isLeaving=!1,t.update.active!==!1&&t.update()},ZE(o);A==="in-out"&&l.type!==Ba&&(v.delayLeave=(m,g,_)=>{const E=hD(n,h);E[String(h.key)]=h,m._leaveCb=()=>{g(),m._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=_})}return o}}},dI=tV;function hD(r,e){const{leavingVNodes:t}=r;let n=t.get(e.type);return n||(n=Object.create(null),t.set(e.type,n)),n}function wp(r,e,t,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:A,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:c,onLeave:h,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:_}=e,E=String(r.key),B=hD(t,r),L=(T,I)=>{T&&Ro(T,n,9,I)},O=(T,I)=>{const M=I[1];L(T,I),we(T)?T.every(x=>x.length<=1)&&M():T.length<=1&&M()},b={mode:a,persisted:o,beforeEnter(T){let I=s;if(!t.isMounted)if(i)I=v||s;else return;T._leaveCb&&T._leaveCb(!0);const M=B[E];M&&Ys(r,M)&&M.el._leaveCb&&M.el._leaveCb(),L(I,[T])},enter(T){let I=A,M=l,x=u;if(!t.isMounted)if(i)I=m||A,M=g||l,x=_||u;else return;let S=!1;const N=T._enterCb=P=>{S||(S=!0,P?L(x,[T]):L(M,[T]),b.delayedLeave&&b.delayedLeave(),T._enterCb=void 0)};I?O(I,[T,N]):N()},leave(T,I){const M=String(r.key);if(T._enterCb&&T._enterCb(!0),t.isUnmounting)return I();L(c,[T]);let x=!1;const S=T._leaveCb=N=>{x||(x=!0,I(),N?L(p,[T]):L(f,[T]),T._leaveCb=void 0,B[M]===r&&delete B[M])};B[M]=r,h?O(h,[T,S]):S()},clone(T){return wp(T,e,t,n)}};return b}function ZE(r){if(kg(r))return r=sA(r),r.children=null,r}function JO(r){return kg(r)?r.children?r.children[0]:void 0:r}function ah(r,e){r.shapeFlag&6&&r.component?ah(r.component.subTree,e):r.shapeFlag&128?(r.ssContent.transition=e.clone(r.ssContent),r.ssFallback.transition=e.clone(r.ssFallback)):r.transition=e}function P1(r,e=!1,t){let n=[],i=0;for(let a=0;a1)for(let a=0;a!!r.type.__asyncLoader;function eV(r){je(r)&&(r={loader:r});const{loader:e,loadingComponent:t,errorComponent:n,delay:i=200,timeout:a,suspensible:o=!0,onError:s}=r;let A=null,l,u=0;const c=()=>(u++,A=null,h()),h=()=>{let f;return A||(f=A=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),s)return new Promise((v,m)=>{s(p,()=>v(c()),()=>m(p),u+1)});throw p}).then(p=>f!==A&&A?A:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return vI({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return l},setup(){const f=Ni;if(l)return()=>JE(l,f);const p=_=>{A=null,Eh(_,f,13,!n)};if(o&&f.suspense||Ep)return h().then(_=>()=>JE(_,f)).catch(_=>(p(_),()=>n?Wr(n,{error:_}):null));const v=Gn(!1),m=Gn(),g=Gn(!!i);return i&&setTimeout(()=>{g.value=!1},i),a!=null&&setTimeout(()=>{if(!v.value&&!m.value){const _=new Error(`Async component timed out after ${a}ms.`);p(_),m.value=_}},a),h().then(()=>{v.value=!0,f.parent&&kg(f.parent.vnode)&&R1(f.parent.update)}).catch(_=>{p(_),m.value=_}),()=>{if(v.value&&l)return JE(l,f);if(m.value&&n)return Wr(n,{error:m.value});if(t&&!g.value)return Wr(t)}}})}function JE(r,e){const{ref:t,props:n,children:i,ce:a}=e.vnode,o=Wr(r,n,i);return o.ref=t,o.ce=a,delete e.vnode.ce,o}const kg=r=>r.type.__isKeepAlive,rV={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(r,{slots:e}){const t=Yu(),n=t.ctx;if(!n.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=t.suspense,{renderer:{p:A,m:l,um:u,o:{createElement:c}}}=n,h=c("div");n.activate=(_,E,B,L,O)=>{const b=_.component;l(_,E,B,0,s),A(b.vnode,_,E,B,b,s,L,_.slotScopeIds,O),ea(()=>{b.isDeactivated=!1,b.a&&rp(b.a);const T=_.props&&_.props.onVnodeMounted;T&&ro(T,b.parent,_)},s)},n.deactivate=_=>{const E=_.component;l(_,h,null,1,s),ea(()=>{E.da&&rp(E.da);const B=_.props&&_.props.onVnodeUnmounted;B&&ro(B,E.parent,_),E.isDeactivated=!0},s)};function f(_){tC(_),u(_,t,s,!0)}function p(_){i.forEach((E,B)=>{const L=bT(E.type);L&&(!_||!_(L))&&v(B)})}function v(_){const E=i.get(_);!o||E.type!==o.type?f(E):o&&tC(o),i.delete(_),a.delete(_)}he(()=>[r.include,r.exclude],([_,E])=>{_&&p(B=>uv(_,B)),E&&p(B=>!uv(E,B))},{flush:"post",deep:!0});let m=null;const g=()=>{m!=null&&i.set(m,eC(t.subTree))};return Ze(g),D1(g),Q1(()=>{i.forEach(_=>{const{subTree:E,suspense:B}=t,L=eC(E);if(_.type===L.type){tC(L);const O=L.component.da;O&&ea(O,B);return}f(_)})}),()=>{if(m=null,!e.default)return null;const _=e.default(),E=_[0];if(_.length>1)return o=null,_;if(!Ou(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let B=eC(E);const L=B.type,O=bT(jc(B)?B.type.__asyncResolved||{}:L),{include:b,exclude:T,max:I}=r;if(b&&(!O||!uv(b,O))||T&&O&&uv(T,O))return o=B,E;const M=B.key==null?L:B.key,x=i.get(M);return B.el&&(B=sA(B),E.shapeFlag&128&&(E.ssContent=B)),m=M,x?(B.el=x.el,B.component=x.component,B.transition&&ah(B,B.transition),B.shapeFlag|=512,a.delete(M),a.add(M)):(a.add(M),I&&a.size>parseInt(I,10)&&v(a.values().next().value)),B.shapeFlag|=256,o=B,sD(E.type)?E:B}}},nV=rV;function uv(r,e){return we(r)?r.some(t=>uv(t,e)):Pn(r)?r.split(",").includes(e):r.test?r.test(e):!1}function fD(r,e){dD(r,"a",e)}function pD(r,e){dD(r,"da",e)}function dD(r,e,t=Ni){const n=r.__wdc||(r.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return r()});if(U1(e,n,t),t){let i=t.parent;for(;i&&i.parent;)kg(i.parent.vnode)&&iV(n,e,t,i),i=i.parent}}function iV(r,e,t,n){const i=U1(e,r,n,!0);ir(()=>{qb(n[e],i)},t)}function tC(r){r.shapeFlag&=-257,r.shapeFlag&=-513}function eC(r){return r.shapeFlag&128?r.ssContent:r}function U1(r,e,t=Ni,n=!1){if(t){const i=t[r]||(t[r]=[]),a=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Qp(),Ru(t);const s=Ro(e,t,r,o);return _u(),Hp(),s});return n?i.unshift(a):i.push(a),a}}const gl=r=>(e,t=Ni)=>(!Ep||r==="sp")&&U1(r,(...n)=>e(...n),t),vD=gl("bm"),Ze=gl("m"),gD=gl("bu"),D1=gl("u"),Q1=gl("bum"),ir=gl("um"),yD=gl("sp"),mD=gl("rtg"),_D=gl("rtc");function wD(r,e=Ni){U1("ec",r,e)}function aV(r,e){const t=ia;if(t===null)return r;const n=G1(t)||t.proxy,i=r.dirs||(r.dirs=[]);for(let a=0;ae(o,s,void 0,a&&a[s]));else{const o=Object.keys(r);i=new Array(o.length);for(let s=0,A=o.length;s{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return r}function mr(r,e,t={},n,i){if(ia.isCE||ia.parent&&jc(ia.parent)&&ia.parent.isCE)return e!=="default"&&(t.name=e),Wr("slot",t,n&&n());let a=r[e];a&&a._c&&(a._d=!1),cn();const o=a&&BD(a(t)),s=$g(Ri,{key:t.key||o&&o.key||`_${e}`},o||(n?n():[]),o&&r._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function BD(r){return r.some(e=>Ou(e)?!(e.type===Ba||e.type===Ri&&!BD(e.children)):!0)?r:null}function uV(r,e){const t={};for(const n in r)t[e&&/[A-Z]/.test(n)?`on:${n}`:Fv(n)]=r[n];return t}const mT=r=>r?kD(r)?G1(r)||r.proxy:mT(r.parent):null,Lv=Kn(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>mT(r.parent),$root:r=>mT(r.root),$emit:r=>r.emit,$options:r=>mI(r),$forceUpdate:r=>r.f||(r.f=()=>R1(r.update)),$nextTick:r=>r.n||(r.n=uI.bind(r.proxy)),$watch:r=>J$.bind(r)}),rC=(r,e)=>r!==nn&&!r.__isScriptSetup&&br(r,e),_T={get({_:r},e){const{ctx:t,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:A}=r;let l;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return a[e]}else{if(rC(n,e))return o[e]=1,n[e];if(i!==nn&&br(i,e))return o[e]=2,i[e];if((l=r.propsOptions[0])&&br(l,e))return o[e]=3,a[e];if(t!==nn&&br(t,e))return o[e]=4,t[e];wT&&(o[e]=0)}}const u=Lv[e];let c,h;if(u)return e==="$attrs"&&Mo(r,"get",e),u(r);if((c=s.__cssModules)&&(c=c[e]))return c;if(t!==nn&&br(t,e))return o[e]=4,t[e];if(h=A.config.globalProperties,br(h,e))return h[e]},set({_:r},e,t){const{data:n,setupState:i,ctx:a}=r;return rC(i,e)?(i[e]=t,!0):n!==nn&&br(n,e)?(n[e]=t,!0):br(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(a[e]=t,!0)},has({_:{data:r,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!t[o]||r!==nn&&br(r,o)||rC(e,o)||(s=a[0])&&br(s,o)||br(n,o)||br(Lv,o)||br(i.config.globalProperties,o)},defineProperty(r,e,t){return t.get!=null?r._.accessCache[e]=0:br(t,"value")&&this.set(r,e,t.value,null),Reflect.defineProperty(r,e,t)}},cV=Kn({},_T,{get(r,e){if(e!==Symbol.unscopables)return _T.get(r,e,r)},has(r,e){return e[0]!=="_"&&!O9(e)}});let wT=!0;function hV(r){const e=mI(r),t=r.proxy,n=r.ctx;wT=!1,e.beforeCreate&&eR(e.beforeCreate,r,"bc");const{data:i,computed:a,methods:o,watch:s,provide:A,inject:l,created:u,beforeMount:c,mounted:h,beforeUpdate:f,updated:p,activated:v,deactivated:m,beforeDestroy:g,beforeUnmount:_,destroyed:E,unmounted:B,render:L,renderTracked:O,renderTriggered:b,errorCaptured:T,serverPrefetch:I,expose:M,inheritAttrs:x,components:S,directives:N,filters:P}=e;if(l&&fV(l,n,null,r.appContext.config.unwrapInjectedRef),o)for(const tt in o){const J=o[tt];je(J)&&(n[tt]=J.bind(t))}if(i){const tt=i.call(t,t);hn(tt)&&(r.data=Hg(tt))}if(wT=!0,a)for(const tt in a){const J=a[tt],nt=je(J)?J.bind(t,t):je(J.get)?J.get.bind(t,t):Ts,it=!je(J)&&je(J.set)?J.set.bind(t):Ts,_t=hr({get:nt,set:it});Object.defineProperty(n,tt,{enumerable:!0,configurable:!0,get:()=>_t.value,set:R=>_t.value=R})}if(s)for(const tt in s)TD(s[tt],n,t,tt);if(A){const tt=je(A)?A.call(t):A;Reflect.ownKeys(tt).forEach(J=>{Mr(J,tt[J])})}u&&eR(u,r,"c");function z(tt,J){we(J)?J.forEach(nt=>tt(nt.bind(t))):J&&tt(J.bind(t))}if(z(vD,c),z(Ze,h),z(gD,f),z(D1,p),z(fD,v),z(pD,m),z(wD,T),z(_D,O),z(mD,b),z(Q1,_),z(ir,B),z(yD,I),we(M))if(M.length){const tt=r.exposed||(r.exposed={});M.forEach(J=>{Object.defineProperty(tt,J,{get:()=>t[J],set:nt=>t[J]=nt})})}else r.exposed||(r.exposed={});L&&r.render===Ts&&(r.render=L),x!=null&&(r.inheritAttrs=x),S&&(r.components=S),N&&(r.directives=N)}function fV(r,e,t=Ts,n=!1){we(r)&&(r=ET(r));for(const i in r){const a=r[i];let o;hn(a)?"default"in a?o=Ce(a.from||i,a.default,!0):o=Ce(a.from||i):o=Ce(a),Wi(o)&&n?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[i]=o}}function eR(r,e,t){Ro(we(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,t)}function TD(r,e,t,n){const i=n.includes(".")?cD(t,n):()=>t[n];if(Pn(r)){const a=e[r];je(a)&&he(i,a)}else if(je(r))he(i,r.bind(t));else if(hn(r))if(we(r))r.forEach(a=>TD(a,e,t,n));else{const a=je(r.handler)?r.handler.bind(t):e[r.handler];je(a)&&he(i,a,r)}}function mI(r){const e=r.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=r.appContext,s=a.get(e);let A;return s?A=s:!i.length&&!t&&!n?A=e:(A={},i.length&&i.forEach(l=>s_(A,l,o,!0)),s_(A,e,o)),hn(e)&&a.set(e,A),A}function s_(r,e,t,n=!1){const{mixins:i,extends:a}=e;a&&s_(r,a,t,!0),i&&i.forEach(o=>s_(r,o,t,!0));for(const o in e)if(!(n&&o==="expose")){const s=pV[o]||t&&t[o];r[o]=s?s(r[o],e[o]):e[o]}return r}const pV={data:rR,props:Tc,emits:Tc,methods:Tc,computed:Tc,beforeCreate:Ra,created:Ra,beforeMount:Ra,mounted:Ra,beforeUpdate:Ra,updated:Ra,beforeDestroy:Ra,beforeUnmount:Ra,destroyed:Ra,unmounted:Ra,activated:Ra,deactivated:Ra,errorCaptured:Ra,serverPrefetch:Ra,components:Tc,directives:Tc,watch:vV,provide:rR,inject:dV};function rR(r,e){return e?r?function(){return Kn(je(r)?r.call(this,this):r,je(e)?e.call(this,this):e)}:e:r}function dV(r,e){return Tc(ET(r),ET(e))}function ET(r){if(we(r)){const e={};for(let t=0;t0)&&!(o&16)){if(o&8){const u=r.vnode.dynamicProps;for(let c=0;c{A=!0;const[h,f]=xD(c,e,!0);Kn(o,h),f&&s.push(...f)};!t&&e.mixins.length&&e.mixins.forEach(u),r.extends&&u(r.extends),r.mixins&&r.mixins.forEach(u)}if(!a&&!A)return hn(r)&&n.set(r,tp),tp;if(we(a))for(let u=0;u-1,f[1]=v<0||p-1||br(f,"default"))&&s.push(c)}}}const l=[o,s];return hn(r)&&n.set(r,l),l}function nR(r){return r[0]!=="$"}function iR(r){const e=r&&r.toString().match(/^\s*function (\w+)/);return e?e[1]:r===null?"null":""}function aR(r,e){return iR(r)===iR(e)}function oR(r,e){return we(e)?e.findIndex(t=>aR(t,r)):je(e)&&aR(e,r)?0:-1}const bD=r=>r[0]==="_"||r==="$stable",_I=r=>we(r)?r.map(bo):[bo(r)],mV=(r,e,t)=>{if(e._n)return e;const n=Nc((...i)=>_I(e(...i)),t);return n._c=!1,n},ID=(r,e,t)=>{const n=r._ctx;for(const i in r){if(bD(i))continue;const a=r[i];if(je(a))e[i]=mV(i,a,n);else if(a!=null){const o=_I(a);e[i]=()=>o}}},FD=(r,e)=>{const t=_I(e);r.slots.default=()=>t},_V=(r,e)=>{if(r.vnode.shapeFlag&32){const t=e._;t?(r.slots=Lr(e),a_(e,"_",t)):ID(e,r.slots={})}else r.slots={},e&&FD(r,e);a_(r.slots,H1,1)},wV=(r,e,t)=>{const{vnode:n,slots:i}=r;let a=!0,o=nn;if(n.shapeFlag&32){const s=e._;s?t&&s===1?a=!1:(Kn(i,e),!t&&s===1&&delete i._):(a=!e.$stable,ID(e,i)),o=e}else e&&(FD(r,e),o={default:1});if(a)for(const s in i)!bD(s)&&!(s in o)&&delete i[s]};function LD(){return{app:null,config:{isNativeTag:G9,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 EV=0;function CV(r,e){return function(n,i=null){je(n)||(n=Object.assign({},n)),i!=null&&!hn(i)&&(i=null);const a=LD(),o=new Set;let s=!1;const A=a.app={_uid:EV++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:qD,get config(){return a.config},set config(l){},use(l,...u){return o.has(l)||(l&&je(l.install)?(o.add(l),l.install(A,...u)):je(l)&&(o.add(l),l(A,...u))),A},mixin(l){return a.mixins.includes(l)||a.mixins.push(l),A},component(l,u){return u?(a.components[l]=u,A):a.components[l]},directive(l,u){return u?(a.directives[l]=u,A):a.directives[l]},mount(l,u,c){if(!s){const h=Wr(n,i);return h.appContext=a,u&&e?e(h,l):r(h,l,c),s=!0,A._container=l,l.__vue_app__=A,G1(h.component)||h.component.proxy}},unmount(){s&&(r(null,A._container),delete A._container.__vue_app__)},provide(l,u){return a.provides[l]=u,A}};return A}}function A_(r,e,t,n,i=!1){if(we(r)){r.forEach((h,f)=>A_(h,e&&(we(e)?e[f]:e),t,n,i));return}if(jc(n)&&!i)return;const a=n.shapeFlag&4?G1(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:A}=r,l=e&&e.r,u=s.refs===nn?s.refs={}:s.refs,c=s.setupState;if(l!=null&&l!==A&&(Pn(l)?(u[l]=null,br(c,l)&&(c[l]=null)):Wi(l)&&(l.value=null)),je(A))JA(A,s,12,[o,u]);else{const h=Pn(A),f=Wi(A);if(h||f){const p=()=>{if(r.f){const v=h?br(c,A)?c[A]:u[A]:A.value;i?we(v)&&qb(v,a):we(v)?v.includes(a)||v.push(a):h?(u[A]=[a],br(c,A)&&(c[A]=u[A])):(A.value=[a],r.k&&(u[r.k]=A.value))}else h?(u[A]=o,br(c,A)&&(c[A]=o)):f&&(A.value=o,r.k&&(u[r.k]=o))};o?(p.id=-1,ea(p,t)):p()}}}let Vl=!1;const vm=r=>/svg/.test(r.namespaceURI)&&r.tagName!=="foreignObject",gm=r=>r.nodeType===8;function BV(r){const{mt:e,p:t,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:A,createComment:l}}=r,u=(g,_)=>{if(!_.hasChildNodes()){t(null,g,_),o_(),_._vnode=g;return}Vl=!1,c(_.firstChild,g,null,null,null),o_(),_._vnode=g,Vl&&console.error("Hydration completed but contains mismatches.")},c=(g,_,E,B,L,O=!1)=>{const b=gm(g)&&g.data==="[",T=()=>v(g,_,E,B,L,b),{type:I,ref:M,shapeFlag:x,patchFlag:S}=_;let N=g.nodeType;_.el=g,S===-2&&(O=!1,_.dynamicChildren=null);let P=null;switch(I){case oh:N!==3?_.children===""?(A(_.el=i(""),o(g),g),P=g):P=T():(g.data!==_.children&&(Vl=!0,g.data=_.children),P=a(g));break;case Ba:N!==8||b?P=T():P=a(g);break;case Kc:if(b&&(g=a(g),N=g.nodeType),N===1||N===3){P=g;const X=!_.children.length;for(let z=0;z<_.staticCount;z++)X&&(_.children+=P.nodeType===1?P.outerHTML:P.data),z===_.staticCount-1&&(_.anchor=P),P=a(P);return b?a(P):P}else T();break;case Ri:b?P=p(g,_,E,B,L,O):P=T();break;default:if(x&1)N!==1||_.type.toLowerCase()!==g.tagName.toLowerCase()?P=T():P=h(g,_,E,B,L,O);else if(x&6){_.slotScopeIds=L;const X=o(g);if(e(_,X,null,E,B,vm(X),O),P=b?m(g):a(g),P&&gm(P)&&P.data==="teleport end"&&(P=a(P)),jc(_)){let z;b?(z=Wr(Ri),z.anchor=P?P.previousSibling:X.lastChild):z=g.nodeType===3?EI(""):Wr("div"),z.el=g,_.component.subTree=z}}else x&64?N!==8?P=T():P=_.type.hydrate(g,_,E,B,L,O,r,f):x&128&&(P=_.type.hydrate(g,_,E,B,vm(o(g)),L,O,r,c))}return M!=null&&A_(M,null,B,_),P},h=(g,_,E,B,L,O)=>{O=O||!!_.dynamicChildren;const{type:b,props:T,patchFlag:I,shapeFlag:M,dirs:x}=_,S=b==="input"&&x||b==="option";if(S||I!==-1){if(x&&js(_,null,E,"created"),T)if(S||!O||I&48)for(const P in T)(S&&P.endsWith("value")||Pg(P)&&!Iv(P))&&n(g,P,null,T[P],!1,void 0,E);else T.onClick&&n(g,"onClick",null,T.onClick,!1,void 0,E);let N;if((N=T&&T.onVnodeBeforeMount)&&ro(N,E,_),x&&js(_,null,E,"beforeMount"),((N=T&&T.onVnodeMounted)||x)&&AD(()=>{N&&ro(N,E,_),x&&js(_,null,E,"mounted")},B),M&16&&!(T&&(T.innerHTML||T.textContent))){let P=f(g.firstChild,_,g,E,B,L,O);for(;P;){Vl=!0;const X=P;P=P.nextSibling,s(X)}}else M&8&&g.textContent!==_.children&&(Vl=!0,g.textContent=_.children)}return g.nextSibling},f=(g,_,E,B,L,O,b)=>{b=b||!!_.dynamicChildren;const T=_.children,I=T.length;for(let M=0;M{const{slotScopeIds:b}=_;b&&(L=L?L.concat(b):b);const T=o(g),I=f(a(g),_,T,E,B,L,O);return I&&gm(I)&&I.data==="]"?a(_.anchor=I):(Vl=!0,A(_.anchor=l("]"),T,I),I)},v=(g,_,E,B,L,O)=>{if(Vl=!0,_.el=null,O){const I=m(g);for(;;){const M=a(g);if(M&&M!==I)s(M);else break}}const b=a(g),T=o(g);return s(g),t(null,_,T,b,E,B,vm(T),L),b},m=g=>{let _=0;for(;g;)if(g=a(g),g&&gm(g)&&(g.data==="["&&_++,g.data==="]")){if(_===0)return a(g);_--}return g};return[u,c]}const ea=AD;function OD(r){return MD(r)}function RD(r){return MD(r,BV)}function MD(r,e){const t=z9();t.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:A,setText:l,setElementText:u,parentNode:c,nextSibling:h,setScopeId:f=Ts,insertStaticContent:p}=r,v=(j,Z,ut,rt=null,G=null,xt=null,bt=!1,dt=null,Et=!!Z.dynamicChildren)=>{if(j===Z)return;j&&!Ys(j,Z)&&(rt=vt(j),R(j,G,xt,!0),j=null),Z.patchFlag===-2&&(Et=!1,Z.dynamicChildren=null);const{type:yt,ref:St,shapeFlag:Ft}=Z;switch(yt){case oh:m(j,Z,ut,rt);break;case Ba:g(j,Z,ut,rt);break;case Kc:j==null&&_(Z,ut,rt,bt);break;case Ri:S(j,Z,ut,rt,G,xt,bt,dt,Et);break;default:Ft&1?L(j,Z,ut,rt,G,xt,bt,dt,Et):Ft&6?N(j,Z,ut,rt,G,xt,bt,dt,Et):(Ft&64||Ft&128)&&yt.process(j,Z,ut,rt,G,xt,bt,dt,Et,W)}St!=null&&G&&A_(St,j&&j.ref,xt,Z||j,!Z)},m=(j,Z,ut,rt)=>{if(j==null)n(Z.el=s(Z.children),ut,rt);else{const G=Z.el=j.el;Z.children!==j.children&&l(G,Z.children)}},g=(j,Z,ut,rt)=>{j==null?n(Z.el=A(Z.children||""),ut,rt):Z.el=j.el},_=(j,Z,ut,rt)=>{[j.el,j.anchor]=p(j.children,Z,ut,rt,j.el,j.anchor)},E=({el:j,anchor:Z},ut,rt)=>{let G;for(;j&&j!==Z;)G=h(j),n(j,ut,rt),j=G;n(Z,ut,rt)},B=({el:j,anchor:Z})=>{let ut;for(;j&&j!==Z;)ut=h(j),i(j),j=ut;i(Z)},L=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{bt=bt||Z.type==="svg",j==null?O(Z,ut,rt,G,xt,bt,dt,Et):I(j,Z,G,xt,bt,dt,Et)},O=(j,Z,ut,rt,G,xt,bt,dt)=>{let Et,yt;const{type:St,props:Ft,shapeFlag:Mt,transition:Vt,dirs:Yt}=j;if(Et=j.el=o(j.type,xt,Ft&&Ft.is,Ft),Mt&8?u(Et,j.children):Mt&16&&T(j.children,Et,null,rt,G,xt&&St!=="foreignObject",bt,dt),Yt&&js(j,null,rt,"created"),Ft){for(const ee in Ft)ee!=="value"&&!Iv(ee)&&a(Et,ee,null,Ft[ee],xt,j.children,rt,G,at);"value"in Ft&&a(Et,"value",null,Ft.value),(yt=Ft.onVnodeBeforeMount)&&ro(yt,rt,j)}b(Et,j,j.scopeId,bt,rt),Yt&&js(j,null,rt,"beforeMount");const ie=(!G||G&&!G.pendingBranch)&&Vt&&!Vt.persisted;ie&&Vt.beforeEnter(Et),n(Et,Z,ut),((yt=Ft&&Ft.onVnodeMounted)||ie||Yt)&&ea(()=>{yt&&ro(yt,rt,j),ie&&Vt.enter(Et),Yt&&js(j,null,rt,"mounted")},G)},b=(j,Z,ut,rt,G)=>{if(ut&&f(j,ut),rt)for(let xt=0;xt{for(let yt=Et;yt{const dt=Z.el=j.el;let{patchFlag:Et,dynamicChildren:yt,dirs:St}=Z;Et|=j.patchFlag&16;const Ft=j.props||nn,Mt=Z.props||nn;let Vt;ut&&hc(ut,!1),(Vt=Mt.onVnodeBeforeUpdate)&&ro(Vt,ut,Z,j),St&&js(Z,j,ut,"beforeUpdate"),ut&&hc(ut,!0);const Yt=G&&Z.type!=="foreignObject";if(yt?M(j.dynamicChildren,yt,dt,ut,rt,Yt,xt):bt||J(j,Z,dt,null,ut,rt,Yt,xt,!1),Et>0){if(Et&16)x(dt,Z,Ft,Mt,ut,rt,G);else if(Et&2&&Ft.class!==Mt.class&&a(dt,"class",null,Mt.class,G),Et&4&&a(dt,"style",Ft.style,Mt.style,G),Et&8){const ie=Z.dynamicProps;for(let ee=0;ee{Vt&&ro(Vt,ut,Z,j),St&&js(Z,j,ut,"updated")},rt)},M=(j,Z,ut,rt,G,xt,bt)=>{for(let dt=0;dt{if(ut!==rt){if(ut!==nn)for(const dt in ut)!Iv(dt)&&!(dt in rt)&&a(j,dt,ut[dt],null,bt,Z.children,G,xt,at);for(const dt in rt){if(Iv(dt))continue;const Et=rt[dt],yt=ut[dt];Et!==yt&&dt!=="value"&&a(j,dt,yt,Et,bt,Z.children,G,xt,at)}"value"in rt&&a(j,"value",ut.value,rt.value)}},S=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{const yt=Z.el=j?j.el:s(""),St=Z.anchor=j?j.anchor:s("");let{patchFlag:Ft,dynamicChildren:Mt,slotScopeIds:Vt}=Z;Vt&&(dt=dt?dt.concat(Vt):Vt),j==null?(n(yt,ut,rt),n(St,ut,rt),T(Z.children,ut,St,G,xt,bt,dt,Et)):Ft>0&&Ft&64&&Mt&&j.dynamicChildren?(M(j.dynamicChildren,Mt,ut,G,xt,bt,dt),(Z.key!=null||G&&Z===G.subTree)&&wI(j,Z,!0)):J(j,Z,ut,St,G,xt,bt,dt,Et)},N=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{Z.slotScopeIds=dt,j==null?Z.shapeFlag&512?G.ctx.activate(Z,ut,rt,bt,Et):P(Z,ut,rt,G,xt,bt,Et):X(j,Z,Et)},P=(j,Z,ut,rt,G,xt,bt)=>{const dt=j.component=GD(j,rt,G);if(kg(j)&&(dt.ctx.renderer=W),$D(dt),dt.asyncDep){if(G&&G.registerDep(dt,z),!j.el){const Et=dt.subTree=Wr(Ba);g(null,Et,Z,ut)}return}z(dt,j,Z,ut,G,xt,bt)},X=(j,Z,ut)=>{const rt=Z.component=j.component;if(j$(j,Z,ut))if(rt.asyncDep&&!rt.asyncResolved){tt(rt,Z,ut);return}else rt.next=Z,D$(rt.update),rt.update();else Z.el=j.el,rt.vnode=Z},z=(j,Z,ut,rt,G,xt,bt)=>{const dt=()=>{if(j.isMounted){let{next:St,bu:Ft,u:Mt,parent:Vt,vnode:Yt}=j,ie=St,ee;hc(j,!1),St?(St.el=Yt.el,tt(j,St,bt)):St=Yt,Ft&&rp(Ft),(ee=St.props&&St.props.onVnodeBeforeUpdate)&&ro(ee,Vt,St,Yt),hc(j,!0);const Xt=L0(j),oe=j.subTree;j.subTree=Xt,v(oe,Xt,c(oe.el),vt(oe),j,G,xt),St.el=Xt.el,ie===null&&hI(j,Xt.el),Mt&&ea(Mt,G),(ee=St.props&&St.props.onVnodeUpdated)&&ea(()=>ro(ee,Vt,St,Yt),G)}else{let St;const{el:Ft,props:Mt}=Z,{bm:Vt,m:Yt,parent:ie}=j,ee=jc(Z);if(hc(j,!1),Vt&&rp(Vt),!ee&&(St=Mt&&Mt.onVnodeBeforeMount)&&ro(St,ie,Z),hc(j,!0),Ft&&Ot){const Xt=()=>{j.subTree=L0(j),Ot(Ft,j.subTree,j,G,null)};ee?Z.type.__asyncLoader().then(()=>!j.isUnmounted&&Xt()):Xt()}else{const Xt=j.subTree=L0(j);v(null,Xt,ut,rt,j,G,xt),Z.el=Xt.el}if(Yt&&ea(Yt,G),!ee&&(St=Mt&&Mt.onVnodeMounted)){const Xt=Z;ea(()=>ro(St,ie,Xt),G)}(Z.shapeFlag&256||ie&&jc(ie.vnode)&&ie.vnode.shapeFlag&256)&&j.a&&ea(j.a,G),j.isMounted=!0,Z=ut=rt=null}},Et=j.effect=new Qg(dt,()=>R1(yt),j.scope),yt=j.update=()=>Et.run();yt.id=j.uid,hc(j,!0),yt()},tt=(j,Z,ut)=>{Z.component=j;const rt=j.vnode.props;j.vnode=Z,j.next=null,yV(j,Z.props,rt,ut),wV(j,Z.children,ut),Qp(),WO(),Hp()},J=(j,Z,ut,rt,G,xt,bt,dt,Et=!1)=>{const yt=j&&j.children,St=j?j.shapeFlag:0,Ft=Z.children,{patchFlag:Mt,shapeFlag:Vt}=Z;if(Mt>0){if(Mt&128){it(yt,Ft,ut,rt,G,xt,bt,dt,Et);return}else if(Mt&256){nt(yt,Ft,ut,rt,G,xt,bt,dt,Et);return}}Vt&8?(St&16&&at(yt,G,xt),Ft!==yt&&u(ut,Ft)):St&16?Vt&16?it(yt,Ft,ut,rt,G,xt,bt,dt,Et):at(yt,G,xt,!0):(St&8&&u(ut,""),Vt&16&&T(Ft,ut,rt,G,xt,bt,dt,Et))},nt=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{j=j||tp,Z=Z||tp;const yt=j.length,St=Z.length,Ft=Math.min(yt,St);let Mt;for(Mt=0;MtSt?at(j,G,xt,!0,!1,Ft):T(Z,ut,rt,G,xt,bt,dt,Et,Ft)},it=(j,Z,ut,rt,G,xt,bt,dt,Et)=>{let yt=0;const St=Z.length;let Ft=j.length-1,Mt=St-1;for(;yt<=Ft&&yt<=Mt;){const Vt=j[yt],Yt=Z[yt]=Et?au(Z[yt]):bo(Z[yt]);if(Ys(Vt,Yt))v(Vt,Yt,ut,null,G,xt,bt,dt,Et);else break;yt++}for(;yt<=Ft&&yt<=Mt;){const Vt=j[Ft],Yt=Z[Mt]=Et?au(Z[Mt]):bo(Z[Mt]);if(Ys(Vt,Yt))v(Vt,Yt,ut,null,G,xt,bt,dt,Et);else break;Ft--,Mt--}if(yt>Ft){if(yt<=Mt){const Vt=Mt+1,Yt=VtMt)for(;yt<=Ft;)R(j[yt],G,xt,!0),yt++;else{const Vt=yt,Yt=yt,ie=new Map;for(yt=Yt;yt<=Mt;yt++){const Ie=Z[yt]=Et?au(Z[yt]):bo(Z[yt]);Ie.key!=null&&ie.set(Ie.key,yt)}let ee,Xt=0;const oe=Mt-Yt+1;let Kt=!1,Xe=0;const Re=new Array(oe);for(yt=0;yt=oe){R(Ie,G,xt,!0);continue}let xe;if(Ie.key!=null)xe=ie.get(Ie.key);else for(ee=Yt;ee<=Mt;ee++)if(Re[ee-Yt]===0&&Ys(Ie,Z[ee])){xe=ee;break}xe===void 0?R(Ie,G,xt,!0):(Re[xe-Yt]=yt+1,xe>=Xe?Xe=xe:Kt=!0,v(Ie,Z[xe],ut,null,G,xt,bt,dt,Et),Xt++)}const pr=Kt?TV(Re):tp;for(ee=pr.length-1,yt=oe-1;yt>=0;yt--){const Ie=Yt+yt,xe=Z[Ie],on=Ie+1{const{el:xt,type:bt,transition:dt,children:Et,shapeFlag:yt}=j;if(yt&6){_t(j.component.subTree,Z,ut,rt);return}if(yt&128){j.suspense.move(Z,ut,rt);return}if(yt&64){bt.move(j,Z,ut,W);return}if(bt===Ri){n(xt,Z,ut);for(let Ft=0;Ftdt.enter(xt),G);else{const{leave:Ft,delayLeave:Mt,afterLeave:Vt}=dt,Yt=()=>n(xt,Z,ut),ie=()=>{Ft(xt,()=>{Yt(),Vt&&Vt()})};Mt?Mt(xt,Yt,ie):ie()}else n(xt,Z,ut)},R=(j,Z,ut,rt=!1,G=!1)=>{const{type:xt,props:bt,ref:dt,children:Et,dynamicChildren:yt,shapeFlag:St,patchFlag:Ft,dirs:Mt}=j;if(dt!=null&&A_(dt,null,ut,j,!0),St&256){Z.ctx.deactivate(j);return}const Vt=St&1&&Mt,Yt=!jc(j);let ie;if(Yt&&(ie=bt&&bt.onVnodeBeforeUnmount)&&ro(ie,Z,j),St&6)q(j.component,ut,rt);else{if(St&128){j.suspense.unmount(ut,rt);return}Vt&&js(j,null,Z,"beforeUnmount"),St&64?j.type.remove(j,Z,ut,G,W,rt):yt&&(xt!==Ri||Ft>0&&Ft&64)?at(yt,Z,ut,!1,!0):(xt===Ri&&Ft&384||!G&&St&16)&&at(Et,Z,ut),rt&&$(j)}(Yt&&(ie=bt&&bt.onVnodeUnmounted)||Vt)&&ea(()=>{ie&&ro(ie,Z,j),Vt&&js(j,null,Z,"unmounted")},ut)},$=j=>{const{type:Z,el:ut,anchor:rt,transition:G}=j;if(Z===Ri){K(ut,rt);return}if(Z===Kc){B(j);return}const xt=()=>{i(ut),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(j.shapeFlag&1&&G&&!G.persisted){const{leave:bt,delayLeave:dt}=G,Et=()=>bt(ut,xt);dt?dt(j.el,xt,Et):Et()}else xt()},K=(j,Z)=>{let ut;for(;j!==Z;)ut=h(j),i(j),j=ut;i(Z)},q=(j,Z,ut)=>{const{bum:rt,scope:G,update:xt,subTree:bt,um:dt}=j;rt&&rp(rt),G.stop(),xt&&(xt.active=!1,R(bt,j,Z,ut)),dt&&ea(dt,Z),ea(()=>{j.isUnmounted=!0},Z),Z&&Z.pendingBranch&&!Z.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===Z.pendingId&&(Z.deps--,Z.deps===0&&Z.resolve())},at=(j,Z,ut,rt=!1,G=!1,xt=0)=>{for(let bt=xt;btj.shapeFlag&6?vt(j.component.subTree):j.shapeFlag&128?j.suspense.next():h(j.anchor||j.el),wt=(j,Z,ut)=>{j==null?Z._vnode&&R(Z._vnode,null,null,!0):v(Z._vnode||null,j,Z,null,null,null,ut),WO(),o_(),Z._vnode=j},W={p:v,um:R,m:_t,r:$,mt:P,mc:T,pc:J,pbc:M,n:vt,o:r};let It,Ot;return e&&([It,Ot]=e(W)),{render:wt,hydrate:It,createApp:CV(wt,It)}}function hc({effect:r,update:e},t){r.allowRecurse=e.allowRecurse=t}function wI(r,e,t=!1){const n=r.children,i=e.children;if(we(n)&&we(i))for(let a=0;a>1,r[t[s]]0&&(e[n]=t[a-1]),t[a]=n)}}for(a=t.length,o=t[a-1];a-- >0;)t[a]=o,o=e[o];return t}const SV=r=>r.__isTeleport,Ov=r=>r&&(r.disabled||r.disabled===""),sR=r=>typeof SVGElement<"u"&&r instanceof SVGElement,BT=(r,e)=>{const t=r&&r.to;return Pn(t)?e?e(t):null:t},xV={__isTeleport:!0,process(r,e,t,n,i,a,o,s,A,l){const{mc:u,pc:c,pbc:h,o:{insert:f,querySelector:p,createText:v,createComment:m}}=l,g=Ov(e.props);let{shapeFlag:_,children:E,dynamicChildren:B}=e;if(r==null){const L=e.el=v(""),O=e.anchor=v("");f(L,t,n),f(O,t,n);const b=e.target=BT(e.props,p),T=e.targetAnchor=v("");b&&(f(T,b),o=o||sR(b));const I=(M,x)=>{_&16&&u(E,M,x,i,a,o,s,A)};g?I(t,O):b&&I(b,T)}else{e.el=r.el;const L=e.anchor=r.anchor,O=e.target=r.target,b=e.targetAnchor=r.targetAnchor,T=Ov(r.props),I=T?t:O,M=T?L:b;if(o=o||sR(O),B?(h(r.dynamicChildren,B,I,i,a,o,s),wI(r,e,!0)):A||c(r,e,I,M,i,a,o,s,!1),g)T||ym(e,t,L,l,1);else if((e.props&&e.props.to)!==(r.props&&r.props.to)){const x=e.target=BT(e.props,p);x&&ym(e,x,null,l,0)}else T&&ym(e,O,b,l,1)}ND(e)},remove(r,e,t,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:A,anchor:l,targetAnchor:u,target:c,props:h}=r;if(c&&a(u),(o||!Ov(h))&&(a(l),s&16))for(let f=0;f0?oo||tp:null,PD(),sh>0&&oo&&oo.push(r),r}function Vn(r,e,t,n,i,a){return UD(Ki(r,e,t,n,i,a,!0))}function $g(r,e,t,n,i){return UD(Wr(r,e,t,n,i,!0))}function Ou(r){return r?r.__v_isVNode===!0:!1}function Ys(r,e){return r.type===e.type&&r.key===e.key}function FV(r){}const H1="__vInternal",DD=({key:r})=>r??null,O0=({ref:r,ref_key:e,ref_for:t})=>r!=null?Pn(r)||Wi(r)||je(r)?{i:ia,r,k:e,f:!!t}:r:null;function Ki(r,e=null,t=null,n=0,i=null,a=r===Ri?0:1,o=!1,s=!1){const A={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&DD(e),ref:e&&O0(e),scopeId:N1,slotScopeIds:null,children:t,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:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ia};return s?(CI(A,t),a&128&&r.normalize(A)):t&&(A.shapeFlag|=Pn(t)?8:16),sh>0&&!o&&oo&&(A.patchFlag>0||a&6)&&A.patchFlag!==32&&oo.push(A),A}const Wr=LV;function LV(r,e=null,t=null,n=0,i=null,a=!1){if((!r||r===ED)&&(r=Ba),Ou(r)){const s=sA(r,e,!0);return t&&CI(s,t),sh>0&&!a&&oo&&(s.shapeFlag&6?oo[oo.indexOf(r)]=s:oo.push(s)),s.patchFlag|=-2,s}if(QV(r)&&(r=r.__vccOpts),e){e=QD(e);let{class:s,style:A}=e;s&&!Pn(s)&&(e.class=Ng(s)),hn(A)&&(iI(A)&&!we(A)&&(A=Kn({},A)),e.style=Mg(A))}const o=Pn(r)?1:sD(r)?128:SV(r)?64:hn(r)?4:je(r)?2:0;return Ki(r,e,t,n,i,o,a,!0)}function QD(r){return r?iI(r)||H1 in r?Kn({},r):r:null}function sA(r,e,t=!1){const{props:n,ref:i,patchFlag:a,children:o}=r,s=e?HD(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:s,key:s&&DD(s),ref:e&&e.ref?t&&i?we(i)?i.concat(O0(e)):[i,O0(e)]:O0(e):i,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==Ri?a===-1?16:a|16:a,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&sA(r.ssContent),ssFallback:r.ssFallback&&sA(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx}}function EI(r=" ",e=0){return Wr(oh,null,r,e)}function OV(r,e){const t=Wr(Kc,null,r);return t.staticCount=e,t}function dr(r="",e=!1){return e?(cn(),$g(Ba,null,r)):Wr(Ba,null,r)}function bo(r){return r==null||typeof r=="boolean"?Wr(Ba):we(r)?Wr(Ri,null,r.slice()):typeof r=="object"?au(r):Wr(oh,null,String(r))}function au(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:sA(r)}function CI(r,e){let t=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(we(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),CI(r,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!(H1 in e)?e._ctx=ia:i===3&&ia&&(ia.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else je(e)?(e={default:e,_ctx:ia},t=32):(e=String(e),n&64?(t=16,e=[EI(e)]):t=8);r.children=e,r.shapeFlag|=t}function HD(...r){const e={};for(let t=0;tNi||ia,Ru=r=>{Ni=r,r.scope.on()},_u=()=>{Ni&&Ni.scope.off(),Ni=null};function kD(r){return r.vnode.shapeFlag&4}let Ep=!1;function $D(r,e=!1){Ep=e;const{props:t,children:n}=r.vnode,i=kD(r);gV(r,t,i,e),_V(r,n);const a=i?NV(r,e):void 0;return Ep=!1,a}function NV(r,e){const t=r.type;r.accessCache=Object.create(null),r.proxy=aI(new Proxy(r.ctx,_T));const{setup:n}=t;if(n){const i=r.setupContext=n.length>1?jD(r):null;Ru(r),Qp();const a=JA(n,r,0,[r.props,i]);if(Hp(),_u(),Zb(a)){if(a.then(_u,_u),e)return a.then(o=>{ST(r,o,e)}).catch(o=>{Eh(o,r,0)});r.asyncDep=a}else ST(r,a,e)}else VD(r,e)}function ST(r,e,t){je(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:hn(e)&&(r.setupState=AI(e)),VD(r,t)}let l_,xT;function PV(r){l_=r,xT=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,cV))}}const UV=()=>!l_;function VD(r,e,t){const n=r.type;if(!r.render){if(!e&&l_&&!n.render){const i=n.template||mI(r).template;if(i){const{isCustomElement:a,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:A}=n,l=Kn(Kn({isCustomElement:a,delimiters:s},o),A);n.render=l_(i,l)}}r.render=n.render||Ts,xT&&xT(r)}Ru(r),Qp(),hV(r),Hp(),_u()}function DV(r){return new Proxy(r.attrs,{get(e,t){return Mo(r,"get","$attrs"),e[t]}})}function jD(r){const e=n=>{r.exposed=n||{}};let t;return{get attrs(){return t||(t=DV(r))},slots:r.slots,emit:r.emit,expose:e}}function G1(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(AI(aI(r.exposed)),{get(e,t){if(t in e)return e[t];if(t in Lv)return Lv[t](r)},has(e,t){return t in e||t in Lv}}))}function bT(r,e=!0){return je(r)?r.displayName||r.name:r.name||e&&r.__name}function QV(r){return je(r)&&"__vccOpts"in r}const hr=(r,e)=>M$(r,e,Ep);function HV(){return null}function GV(){return null}function kV(r){}function $V(r,e){return null}function VV(){return KD().slots}function jV(){return KD().attrs}function KD(){const r=Yu();return r.setupContext||(r.setupContext=jD(r))}function KV(r,e){const t=we(r)?r.reduce((n,i)=>(n[i]={},n),{}):r;for(const n in e){const i=t[n];i?we(i)||je(i)?t[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(t[n]={default:e[n]})}return t}function zV(r,e){const t={};for(const n in r)e.includes(n)||Object.defineProperty(t,n,{enumerable:!0,get:()=>r[n]});return t}function YV(r){const e=Yu();let t=r();return _u(),Zb(t)&&(t=t.catch(n=>{throw Ru(e),n})),[t,()=>Ru(e)]}function zD(r,e,t){const n=arguments.length;return n===2?hn(e)&&!we(e)?Ou(e)?Wr(r,null,[e]):Wr(r,e):Wr(r,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Ou(t)&&(t=[t]),Wr(r,e,t))}const YD=Symbol(""),XD=()=>Ce(YD);function XV(){}function WV(r,e,t,n){const i=t[n];if(i&&WD(i,r))return i;const a=e();return a.memo=r.slice(),t[n]=a}function WD(r,e){const t=r.memo;if(t.length!=e.length)return!1;for(let n=0;n0&&oo&&oo.push(r),!0}const qD="3.2.45",qV={createComponentInstance:GD,setupComponent:$D,renderComponentRoot:L0,setCurrentRenderingInstance:ig,isVNode:Ou,normalizeVNode:bo},ZV=qV,JV=null,tj=null,ej="http://www.w3.org/2000/svg",Lc=typeof document<"u"?document:null,AR=Lc&&Lc.createElement("template"),rj={insert:(r,e,t)=>{e.insertBefore(r,t||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,t,n)=>{const i=e?Lc.createElementNS(ej,r):Lc.createElement(r,t?{is:t}:void 0);return r==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:r=>Lc.createTextNode(r),createComment:r=>Lc.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Lc.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,t,n,i,a){const o=t?t.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===a||!(i=i.nextSibling)););else{AR.innerHTML=n?`${r}`:r;const s=AR.content;if(n){const A=s.firstChild;for(;A.firstChild;)s.appendChild(A.firstChild);s.removeChild(A)}e.insertBefore(s,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}};function nj(r,e,t){const n=r._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):t?r.setAttribute("class",e):r.className=e}function ij(r,e,t){const n=r.style,i=Pn(t);if(t&&!i){for(const a in t)IT(n,a,t[a]);if(e&&!Pn(e))for(const a in e)t[a]==null&&IT(n,a,"")}else{const a=n.display;i?e!==t&&(n.cssText=t):e&&r.removeAttribute("style"),"_vod"in r&&(n.display=a)}}const lR=/\s*!important$/;function IT(r,e,t){if(we(t))t.forEach(n=>IT(r,e,n));else if(t==null&&(t=""),e.startsWith("--"))r.setProperty(e,t);else{const n=aj(r,e);lR.test(t)?r.setProperty(Wo(n),t.replace(lR,""),"important"):r[n]=t}}const uR=["Webkit","Moz","ms"],nC={};function aj(r,e){const t=nC[e];if(t)return t;let n=so(e);if(n!=="filter"&&n in r)return nC[e]=n;n=Dg(n);for(let i=0;iiC||(cj.then(()=>iC=0),iC=Date.now());function fj(r,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;Ro(pj(n,t.value),e,5,[n])};return t.value=r,t.attached=hj(),t}function pj(r,e){if(we(e)){const t=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{t.call(r),r._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const fR=/^on[a-z]/,dj=(r,e,t,n,i=!1,a,o,s,A)=>{e==="class"?nj(r,n,i):e==="style"?ij(r,t,n):Pg(e)?Wb(e)||lj(r,e,t,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):vj(r,e,n,i))?sj(r,e,n,a,o,s,A):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),oj(r,e,n,i))};function vj(r,e,t,n){return n?!!(e==="innerHTML"||e==="textContent"||e in r&&fR.test(e)&&je(t)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA"||fR.test(e)&&Pn(t)?!1:e in r}function ZD(r,e){const t=vI(r);class n extends k1{constructor(a){super(t,a,e)}}return n.def=t,n}const gj=r=>ZD(r,f6),yj=typeof HTMLElement<"u"?HTMLElement:class{};class k1 extends yj{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,uI(()=>{this._connected||(OT(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const i of n)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const e=(n,i=!1)=>{const{props:a,styles:o}=n;let s;if(a&&!we(a))for(const A in a){const l=a[A];(l===Number||l&&l.type===Number)&&(A in this._props&&(this._props[A]=Al(this._props[A])),(s||(s=Object.create(null)))[so(A)]=!0)}this._numberProps=s,i&&this._resolveProps(n),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,n=we(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(so))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a)}})}_setAttr(e){let t=this.getAttribute(e);const n=so(e);this._numberProps&&this._numberProps[n]&&(t=Al(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(t===!0?this.setAttribute(Wo(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Wo(e),t+""):t||this.removeAttribute(Wo(e))))}_update(){OT(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Wr(this._def,Kn({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0;const n=(a,o)=>{this.dispatchEvent(new CustomEvent(a,{detail:o}))};t.emit=(a,...o)=>{n(a,o),Wo(a)!==a&&n(Wo(a),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof k1){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const n=document.createElement("style");n.textContent=t,this.shadowRoot.appendChild(n)})}}function mj(r="$style"){{const e=Yu();if(!e)return nn;const t=e.type.__cssModules;if(!t)return nn;const n=t[r];return n||nn}}function _j(r){const e=Yu();if(!e)return;const t=e.ut=(i=r(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>LT(a,i))},n=()=>{const i=r(e.proxy);FT(e.subTree,i),t(i)};uD(n),Ze(()=>{const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),ir(()=>i.disconnect())})}function FT(r,e){if(r.shapeFlag&128){const t=r.suspense;r=t.activeBranch,t.pendingBranch&&!t.isHydrating&&t.effects.push(()=>{FT(t.activeBranch,e)})}for(;r.component;)r=r.component.subTree;if(r.shapeFlag&1&&r.el)LT(r.el,e);else if(r.type===Ri)r.children.forEach(t=>FT(t,e));else if(r.type===Kc){let{el:t,anchor:n}=r;for(;t&&(LT(t,e),t!==n);)t=t.nextSibling}}function LT(r,e){if(r.nodeType===1){const t=r.style;for(const n in e)t.setProperty(`--${n}`,e[n])}}const jl="transition",Qd="animation",$1=(r,{slots:e})=>zD(dI,t6(r),e);$1.displayName="Transition";const JD={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},wj=$1.props=Kn({},dI.props,JD),fc=(r,e=[])=>{we(r)?r.forEach(t=>t(...e)):r&&r(...e)},pR=r=>r?we(r)?r.some(e=>e.length>1):r.length>1:!1;function t6(r){const e={};for(const S in r)S in JD||(e[S]=r[S]);if(r.css===!1)return e;const{name:t="v",type:n,duration:i,enterFromClass:a=`${t}-enter-from`,enterActiveClass:o=`${t}-enter-active`,enterToClass:s=`${t}-enter-to`,appearFromClass:A=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:c=`${t}-leave-from`,leaveActiveClass:h=`${t}-leave-active`,leaveToClass:f=`${t}-leave-to`}=r,p=Ej(i),v=p&&p[0],m=p&&p[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:E,onLeave:B,onLeaveCancelled:L,onBeforeAppear:O=g,onAppear:b=_,onAppearCancelled:T=E}=e,I=(S,N,P)=>{eu(S,N?u:s),eu(S,N?l:o),P&&P()},M=(S,N)=>{S._isLeaving=!1,eu(S,c),eu(S,f),eu(S,h),N&&N()},x=S=>(N,P)=>{const X=S?b:_,z=()=>I(N,S,P);fc(X,[N,z]),dR(()=>{eu(N,S?A:a),$A(N,S?u:s),pR(X)||vR(N,n,v,z)})};return Kn(e,{onBeforeEnter(S){fc(g,[S]),$A(S,a),$A(S,o)},onBeforeAppear(S){fc(O,[S]),$A(S,A),$A(S,l)},onEnter:x(!1),onAppear:x(!0),onLeave(S,N){S._isLeaving=!0;const P=()=>M(S,N);$A(S,c),r6(),$A(S,h),dR(()=>{S._isLeaving&&(eu(S,c),$A(S,f),pR(B)||vR(S,n,m,P))}),fc(B,[S,P])},onEnterCancelled(S){I(S,!1),fc(E,[S])},onAppearCancelled(S){I(S,!0),fc(T,[S])},onLeaveCancelled(S){M(S),fc(L,[S])}})}function Ej(r){if(r==null)return null;if(hn(r))return[aC(r.enter),aC(r.leave)];{const e=aC(r);return[e,e]}}function aC(r){return Al(r)}function $A(r,e){e.split(/\s+/).forEach(t=>t&&r.classList.add(t)),(r._vtc||(r._vtc=new Set)).add(e)}function eu(r,e){e.split(/\s+/).forEach(n=>n&&r.classList.remove(n));const{_vtc:t}=r;t&&(t.delete(e),t.size||(r._vtc=void 0))}function dR(r){requestAnimationFrame(()=>{requestAnimationFrame(r)})}let Cj=0;function vR(r,e,t,n){const i=r._endId=++Cj,a=()=>{i===r._endId&&n()};if(t)return setTimeout(a,t);const{type:o,timeout:s,propCount:A}=e6(r,e);if(!o)return n();const l=o+"end";let u=0;const c=()=>{r.removeEventListener(l,h),a()},h=f=>{f.target===r&&++u>=A&&c()};setTimeout(()=>{u(t[p]||"").split(", "),i=n(`${jl}Delay`),a=n(`${jl}Duration`),o=gR(i,a),s=n(`${Qd}Delay`),A=n(`${Qd}Duration`),l=gR(s,A);let u=null,c=0,h=0;e===jl?o>0&&(u=jl,c=o,h=a.length):e===Qd?l>0&&(u=Qd,c=l,h=A.length):(c=Math.max(o,l),u=c>0?o>l?jl:Qd:null,h=u?u===jl?a.length:A.length:0);const f=u===jl&&/\b(transform|all)(,|$)/.test(n(`${jl}Property`).toString());return{type:u,timeout:c,propCount:h,hasTransform:f}}function gR(r,e){for(;r.lengthyR(t)+yR(r[n])))}function yR(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function r6(){return document.body.offsetHeight}const n6=new WeakMap,i6=new WeakMap,Bj={name:"TransitionGroup",props:Kn({},wj,{tag:String,moveClass:String}),setup(r,{slots:e}){const t=Yu(),n=pI();let i,a;return D1(()=>{if(!i.length)return;const o=r.moveClass||`${r.name||"v"}-move`;if(!Ij(i[0].el,t.vnode.el,o))return;i.forEach(Sj),i.forEach(xj);const s=i.filter(bj);r6(),s.forEach(A=>{const l=A.el,u=l.style;$A(l,o),u.transform=u.webkitTransform=u.transitionDuration="";const c=l._moveCb=h=>{h&&h.target!==l||(!h||/transform$/.test(h.propertyName))&&(l.removeEventListener("transitionend",c),l._moveCb=null,eu(l,o))};l.addEventListener("transitionend",c)})}),()=>{const o=Lr(r),s=t6(o);let A=o.tag||Ri;i=a,a=e.default?P1(e.default()):[];for(let l=0;l{o.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),t.split(/\s+/).forEach(o=>o&&n.classList.add(o)),n.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(n);const{hasTransform:a}=e6(n);return i.removeChild(n),a}const Mu=r=>{const e=r.props["onUpdate:modelValue"]||!1;return we(e)?t=>rp(e,t):e};function Fj(r){r.target.composing=!0}function mR(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const u_={created(r,{modifiers:{lazy:e,trim:t,number:n}},i){r._assign=Mu(i);const a=n||i.props&&i.props.type==="number";WA(r,e?"change":"input",o=>{if(o.target.composing)return;let s=r.value;t&&(s=s.trim()),a&&(s=Al(s)),r._assign(s)}),t&&WA(r,"change",()=>{r.value=r.value.trim()}),e||(WA(r,"compositionstart",Fj),WA(r,"compositionend",mR),WA(r,"change",mR))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:t,trim:n,number:i}},a){if(r._assign=Mu(a),r.composing||document.activeElement===r&&r.type!=="range"&&(t||n&&r.value.trim()===e||(i||r.type==="number")&&Al(r.value)===e))return;const o=e??"";r.value!==o&&(r.value=o)}},BI={deep:!0,created(r,e,t){r._assign=Mu(t),WA(r,"change",()=>{const n=r._modelValue,i=Cp(r),a=r.checked,o=r._assign;if(we(n)){const s=S1(n,i),A=s!==-1;if(a&&!A)o(n.concat(i));else if(!a&&A){const l=[...n];l.splice(s,1),o(l)}}else if(wh(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(o6(r,a))})},mounted:_R,beforeUpdate(r,e,t){r._assign=Mu(t),_R(r,e,t)}};function _R(r,{value:e,oldValue:t},n){r._modelValue=e,we(e)?r.checked=S1(e,n.props.value)>-1:wh(e)?r.checked=e.has(n.props.value):e!==t&&(r.checked=Iu(e,o6(r,!0)))}const TI={created(r,{value:e},t){r.checked=Iu(e,t.props.value),r._assign=Mu(t),WA(r,"change",()=>{r._assign(Cp(r))})},beforeUpdate(r,{value:e,oldValue:t},n){r._assign=Mu(n),e!==t&&(r.checked=Iu(e,n.props.value))}},a6={deep:!0,created(r,{value:e,modifiers:{number:t}},n){const i=wh(e);WA(r,"change",()=>{const a=Array.prototype.filter.call(r.options,o=>o.selected).map(o=>t?Al(Cp(o)):Cp(o));r._assign(r.multiple?i?new Set(a):a:a[0])}),r._assign=Mu(n)},mounted(r,{value:e}){wR(r,e)},beforeUpdate(r,e,t){r._assign=Mu(t)},updated(r,{value:e}){wR(r,e)}};function wR(r,e){const t=r.multiple;if(!(t&&!we(e)&&!wh(e))){for(let n=0,i=r.options.length;n-1:a.selected=e.has(o);else if(Iu(Cp(a),e)){r.selectedIndex!==n&&(r.selectedIndex=n);return}}!t&&r.selectedIndex!==-1&&(r.selectedIndex=-1)}}function Cp(r){return"_value"in r?r._value:r.value}function o6(r,e){const t=e?"_trueValue":"_falseValue";return t in r?r[t]:e}const s6={created(r,e,t){mm(r,e,t,null,"created")},mounted(r,e,t){mm(r,e,t,null,"mounted")},beforeUpdate(r,e,t,n){mm(r,e,t,n,"beforeUpdate")},updated(r,e,t,n){mm(r,e,t,n,"updated")}};function A6(r,e){switch(r){case"SELECT":return a6;case"TEXTAREA":return u_;default:switch(e){case"checkbox":return BI;case"radio":return TI;default:return u_}}}function mm(r,e,t,n,i){const o=A6(r.tagName,t.props&&t.props.type)[i];o&&o(r,e,t,n)}function Lj(){u_.getSSRProps=({value:r})=>({value:r}),TI.getSSRProps=({value:r},e)=>{if(e.props&&Iu(e.props.value,r))return{checked:!0}},BI.getSSRProps=({value:r},e)=>{if(we(r)){if(e.props&&S1(r,e.props.value)>-1)return{checked:!0}}else if(wh(r)){if(e.props&&r.has(e.props.value))return{checked:!0}}else if(r)return{checked:!0}},s6.getSSRProps=(r,e)=>{if(typeof e.type!="string")return;const t=A6(e.type.toUpperCase(),e.props&&e.props.type);if(t.getSSRProps)return t.getSSRProps(r,e)}}const Oj=["ctrl","shift","alt","meta"],Rj={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>Oj.some(t=>r[`${t}Key`]&&!e.includes(t))},Mj=(r,e)=>(t,...n)=>{for(let i=0;it=>{if(!("key"in t))return;const n=Wo(t.key);if(e.some(i=>i===n||Nj[i]===n))return r(t)},l6={beforeMount(r,{value:e},{transition:t}){r._vod=r.style.display==="none"?"":r.style.display,t&&e?t.beforeEnter(r):Hd(r,e)},mounted(r,{value:e},{transition:t}){t&&e&&t.enter(r)},updated(r,{value:e,oldValue:t},{transition:n}){!e!=!t&&(n?e?(n.beforeEnter(r),Hd(r,!0),n.enter(r)):n.leave(r,()=>{Hd(r,!1)}):Hd(r,e))},beforeUnmount(r,{value:e}){Hd(r,e)}};function Hd(r,e){r.style.display=e?r._vod:"none"}function Uj(){l6.getSSRProps=({value:r})=>{if(!r)return{style:{display:"none"}}}}const u6=Kn({patchProp:dj},rj);let Mv,ER=!1;function c6(){return Mv||(Mv=OD(u6))}function h6(){return Mv=ER?Mv:RD(u6),ER=!0,Mv}const OT=(...r)=>{c6().render(...r)},f6=(...r)=>{h6().hydrate(...r)},p6=(...r)=>{const e=c6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=d6(n);if(!i)return;const a=e._component;!je(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=t(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},Dj=(...r)=>{const e=h6().createApp(...r),{mount:t}=e;return e.mount=n=>{const i=d6(n);if(i)return t(i,!0,i instanceof SVGElement)},e};function d6(r){return Pn(r)?document.querySelector(r):r}let CR=!1;const Qj=()=>{CR||(CR=!0,Lj(),Uj())},Hj=()=>{},Gj=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:dI,Comment:Ba,EffectScope:tI,Fragment:Ri,KeepAlive:nV,ReactiveEffect:Qg,Static:Kc,Suspense:z$,Teleport:IV,Text:oh,Transition:$1,TransitionGroup:Tj,VueElement:k1,callWithAsyncErrorHandling:Ro,callWithErrorHandling:JA,camelize:so,capitalize:Dg,cloneVNode:sA,compatUtils:tj,compile:Hj,computed:hr,createApp:p6,createBlock:$g,createCommentVNode:dr,createElementBlock:Vn,createElementVNode:Ki,createHydrationRenderer:RD,createPropsRestProxy:zV,createRenderer:OD,createSSRApp:Dj,createSlots:lV,createStaticVNode:OV,createTextVNode:EI,createVNode:Wr,customRef:L$,defineAsyncComponent:eV,defineComponent:vI,defineCustomElement:ZD,defineEmits:GV,defineExpose:kV,defineProps:HV,defineSSRCustomElement:gj,get devtools(){return Ff},effect:J9,effectScope:Y9,getCurrentInstance:Yu,getCurrentScope:X9,getTransitionRawChildren:P1,guardReactiveProps:QD,h:zD,handleError:Eh,hydrate:f6,initCustomFormatter:XV,initDirectivesForSSR:Qj,inject:Ce,isMemoSame:WD,isProxy:iI,isReactive:Vc,isReadonly:ih,isRef:Wi,isRuntimeOnly:UV,isShallow:tg,isVNode:Ou,markRaw:aI,mergeDefaults:KV,mergeProps:HD,nextTick:uI,normalizeClass:Ng,normalizeProps:U9,normalizeStyle:Mg,onActivated:fD,onBeforeMount:vD,onBeforeUnmount:Q1,onBeforeUpdate:gD,onDeactivated:pD,onErrorCaptured:wD,onMounted:Ze,onRenderTracked:_D,onRenderTriggered:mD,onScopeDispose:W9,onServerPrefetch:yD,onUnmounted:ir,onUpdated:D1,openBlock:cn,popScopeId:oD,provide:Mr,proxyRefs:AI,pushScopeId:aD,queuePostFlushCb:cI,reactive:Hg,readonly:nI,ref:Gn,registerRuntimeCompiler:PV,render:OT,renderList:CD,renderSlot:mr,resolveComponent:Lf,resolveDirective:AV,resolveDynamicComponent:sV,resolveFilter:JV,resolveTransitionHooks:wp,setBlockTracking:TT,setDevtoolsHook:nD,setTransitionHooks:ah,shallowReactive:X2,shallowReadonly:T$,shallowRef:S$,ssrContextKey:YD,ssrUtils:ZV,stop:t$,toDisplayString:tu,toHandlerKey:Fv,toHandlers:uV,toRaw:Lr,toRef:Z2,toRefs:Lu,transformVNodeArgs:FV,triggerRef:b$,unref:q2,useAttrs:jV,useCssModule:mj,useCssVars:_j,useSSRContext:XD,useSlots:VV,useTransitionState:pI,vModelCheckbox:BI,vModelDynamic:s6,vModelRadio:TI,vModelSelect:a6,vModelText:u_,vShow:l6,version:qD,warn:N$,watch:he,watchEffect:lD,watchPostEffect:uD,watchSyncEffect:Z$,withAsyncContext:YV,withCtx:Nc,withDefaults:$V,withDirectives:aV,withKeys:Pj,withMemo:WV,withModifiers:Mj,withScopeId:G$},Symbol.toStringTag,{value:"Module"})),kj={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};let $j=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||kj[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const v6=$j,Vg=6378137,kf=Math.PI*Vg,Vj=[-kf,-kf,kf,kf],jj=[-180,-85,180,85],_m=Vg*Math.log(Math.tan(Math.PI/2));let uf=class extends v6{constructor(e){super({code:e,units:"m",extent:Vj,global:!0,worldExtent:jj,getPointResolution:function(t,n){return t/Math.cosh(n[1]/Vg)}})}};const BR=[new uf("EPSG:3857"),new uf("EPSG:102100"),new uf("EPSG:102113"),new uf("EPSG:900913"),new uf("http://www.opengis.net/def/crs/EPSG/0/3857"),new uf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Kj(r,e,t){const n=r.length;t=t>1?t:2,e===void 0&&(t>2?e=r.slice():e=new Array(n));for(let i=0;i_m?a=_m:a<-_m&&(a=-_m),e[i+1]=a}return e}function zj(r,e,t){const n=r.length;t=t>1?t:2,e===void 0&&(t>2?e=r.slice():e=new Array(n));for(let i=0;i()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const y6=function(r){const e=[];let t=0;for(let n=0;n>6|192,e[t++]=i&63|128):(i&64512)===55296&&n+1>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e},oK=function(r){const e=[];let t=0,n=0;for(;t191&&i<224){const a=r[t++];e[n++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){const a=r[t++],o=r[t++],s=r[t++],A=((i&7)<<18|(a&63)<<12|(o&63)<<6|s&63)-65536;e[n++]=String.fromCharCode(55296+(A>>10)),e[n++]=String.fromCharCode(56320+(A&1023))}else{const a=r[t++],o=r[t++];e[n++]=String.fromCharCode((i&15)<<12|(a&63)<<6|o&63)}}return e.join("")},m6={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(r,e){if(!Array.isArray(r))throw Error("encodeByteArray takes an array as a parameter");this.init_();const t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let i=0;i>2,c=(a&3)<<4|s>>4;let h=(s&15)<<2|l>>6,f=l&63;A||(f=64,o||(h=64)),n.push(t[u],t[c],t[h],t[f])}return n.join("")},encodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(r):this.encodeByteArray(y6(r),e)},decodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(r):oK(this.decodeStringToByteArray(r,e))},decodeStringToByteArray(r,e){this.init_();const t=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let i=0;i>4;if(n.push(h),l!==64){const f=s<<4&240|l>>2;if(n.push(f),c!==64){const p=l<<6&192|c;n.push(p)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let r=0;r=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(r)]=r,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(r)]=r)}}},sK=function(r){const e=y6(r);return m6.encodeByteArray(e,!0)},_6=function(r){return sK(r).replace(/\./g,"")},AK=function(r){try{return m6.decodeString(r,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** + */const y6=function(r){const e=[];let t=0;for(let n=0;n>6|192,e[t++]=i&63|128):(i&64512)===55296&&n+1>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e},sK=function(r){const e=[];let t=0,n=0;for(;t191&&i<224){const a=r[t++];e[n++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){const a=r[t++],o=r[t++],s=r[t++],A=((i&7)<<18|(a&63)<<12|(o&63)<<6|s&63)-65536;e[n++]=String.fromCharCode(55296+(A>>10)),e[n++]=String.fromCharCode(56320+(A&1023))}else{const a=r[t++],o=r[t++];e[n++]=String.fromCharCode((i&15)<<12|(a&63)<<6|o&63)}}return e.join("")},m6={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(r,e){if(!Array.isArray(r))throw Error("encodeByteArray takes an array as a parameter");this.init_();const t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let i=0;i>2,c=(a&3)<<4|s>>4;let h=(s&15)<<2|l>>6,f=l&63;A||(f=64,o||(h=64)),n.push(t[u],t[c],t[h],t[f])}return n.join("")},encodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(r):this.encodeByteArray(y6(r),e)},decodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(r):sK(this.decodeStringToByteArray(r,e))},decodeStringToByteArray(r,e){this.init_();const t=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let i=0;i>4;if(n.push(h),l!==64){const f=s<<4&240|l>>2;if(n.push(f),c!==64){const p=l<<6&192|c;n.push(p)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let r=0;r=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(r)]=r,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(r)]=r)}}},AK=function(r){const e=y6(r);return m6.encodeByteArray(e,!0)},_6=function(r){return AK(r).replace(/\./g,"")},lK=function(r){try{return m6.decodeString(r,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** * @license * Copyright 2022 Google LLC * @@ -43,7 +43,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function lK(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** + */function uK(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** * @license * Copyright 2022 Google LLC * @@ -58,7 +58,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const uK=()=>lK().__FIREBASE_DEFAULTS__,cK=()=>{if(typeof process>"u"||typeof process.env>"u")return;const r={}.__FIREBASE_DEFAULTS__;if(r)return JSON.parse(r)},hK=()=>{if(typeof document>"u")return;let r;try{r=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=r&&AK(r[1]);return e&&JSON.parse(e)},w6=()=>{try{return uK()||cK()||hK()}catch(r){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${r}`);return}},fK=r=>{var e,t;return(t=(e=w6())===null||e===void 0?void 0:e.emulatorHosts)===null||t===void 0?void 0:t[r]},pK=r=>{const e=fK(r);if(!e)return;const t=e.lastIndexOf(":");if(t<=0||t+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const n=parseInt(e.substring(t+1),10);return e[0]==="["?[e.substring(1,t-1),n]:[e.substring(0,t),n]},dK=()=>{var r;return(r=w6())===null||r===void 0?void 0:r.config};/** + */const cK=()=>uK().__FIREBASE_DEFAULTS__,hK=()=>{if(typeof process>"u"||typeof process.env>"u")return;const r={}.__FIREBASE_DEFAULTS__;if(r)return JSON.parse(r)},fK=()=>{if(typeof document>"u")return;let r;try{r=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=r&&lK(r[1]);return e&&JSON.parse(e)},w6=()=>{try{return cK()||hK()||fK()}catch(r){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${r}`);return}},pK=r=>{var e,t;return(t=(e=w6())===null||e===void 0?void 0:e.emulatorHosts)===null||t===void 0?void 0:t[r]},dK=r=>{const e=pK(r);if(!e)return;const t=e.lastIndexOf(":");if(t<=0||t+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const n=parseInt(e.substring(t+1),10);return e[0]==="["?[e.substring(1,t-1),n]:[e.substring(0,t),n]},vK=()=>{var r;return(r=w6())===null||r===void 0?void 0:r.config};/** * @license * Copyright 2017 Google LLC * @@ -73,7 +73,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class vK{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,n))}}}function gK(){try{return typeof indexedDB=="object"}catch{return!1}}function yK(){return new Promise((r,e)=>{try{let t=!0;const n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(n),r(!0)},i.onupgradeneeded=()=>{t=!1},i.onerror=()=>{var a;e(((a=i.error)===null||a===void 0?void 0:a.message)||"")}}catch(t){e(t)}})}/** + */class gK{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,n))}}}function yK(){try{return typeof indexedDB=="object"}catch{return!1}}function mK(){return new Promise((r,e)=>{try{let t=!0;const n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(n),r(!0)},i.onupgradeneeded=()=>{t=!1},i.onerror=()=>{var a;e(((a=i.error)===null||a===void 0?void 0:a.message)||"")}}catch(t){e(t)}})}/** * @license * Copyright 2017 Google LLC * @@ -88,7 +88,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const mK="FirebaseError";class Gp extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name=mK,Object.setPrototypeOf(this,Gp.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,E6.prototype.create)}}class E6{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},i=`${this.service}/${e}`,a=this.errors[e],o=a?_K(a,n):"Error",s=`${this.serviceName}: ${o} (${i}).`;return new Gp(i,s,n)}}function _K(r,e){return r.replace(wK,(t,n)=>{const i=e[n];return i!=null?String(i):`<${n}?>`})}const wK=/\{\$([^}]+)}/g;function MT(r,e){if(r===e)return!0;const t=Object.keys(r),n=Object.keys(e);for(const i of t){if(!n.includes(i))return!1;const a=r[i],o=e[i];if(FR(a)&&FR(o)){if(!MT(a,o))return!1}else if(a!==o)return!1}for(const i of n)if(!t.includes(i))return!1;return!0}function FR(r){return r!==null&&typeof r=="object"}/** + */const _K="FirebaseError";class Gp extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name=_K,Object.setPrototypeOf(this,Gp.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,E6.prototype.create)}}class E6{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},i=`${this.service}/${e}`,a=this.errors[e],o=a?wK(a,n):"Error",s=`${this.serviceName}: ${o} (${i}).`;return new Gp(i,s,n)}}function wK(r,e){return r.replace(EK,(t,n)=>{const i=e[n];return i!=null?String(i):`<${n}?>`})}const EK=/\{\$([^}]+)}/g;function MT(r,e){if(r===e)return!0;const t=Object.keys(r),n=Object.keys(e);for(const i of t){if(!n.includes(i))return!1;const a=r[i],o=e[i];if(FR(a)&&FR(o)){if(!MT(a,o))return!1}else if(a!==o)return!1}for(const i of n)if(!t.includes(i))return!1;return!0}function FR(r){return r!==null&&typeof r=="object"}/** * @license * Copyright 2021 Google LLC * @@ -133,7 +133,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class EK{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const n=new vK;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:t});i&&n.resolve(i)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(t=e==null?void 0:e.optional)!==null&&t!==void 0?t:!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(a){if(i)return null;throw a}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(BK(e))try{this.getOrInitializeService({instanceIdentifier:Sc})}catch{}for(const[t,n]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(t);try{const a=this.getOrInitializeService({instanceIdentifier:i});n.resolve(a)}catch{}}}}clearInstance(e=Sc){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>"_delete"in t).map(t=>t._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Sc){return this.instances.has(e)}getOptions(e=Sc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[a,o]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(a);n===s&&o.resolve(i)}return i}onInit(e,t){var n;const i=this.normalizeInstanceIdentifier(t),a=(n=this.onInitCallbacks.get(i))!==null&&n!==void 0?n:new Set;a.add(e),this.onInitCallbacks.set(i,a);const o=this.instances.get(i);return o&&e(o,i),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:CK(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=Sc){return this.component?this.component.multipleInstances?e:Sc:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function CK(r){return r===Sc?void 0:r}function BK(r){return r.instantiationMode==="EAGER"}/** + */class CK{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const n=new gK;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:t});i&&n.resolve(i)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(t=e==null?void 0:e.optional)!==null&&t!==void 0?t:!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(a){if(i)return null;throw a}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(TK(e))try{this.getOrInitializeService({instanceIdentifier:Sc})}catch{}for(const[t,n]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(t);try{const a=this.getOrInitializeService({instanceIdentifier:i});n.resolve(a)}catch{}}}}clearInstance(e=Sc){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>"_delete"in t).map(t=>t._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Sc){return this.instances.has(e)}getOptions(e=Sc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[a,o]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(a);n===s&&o.resolve(i)}return i}onInit(e,t){var n;const i=this.normalizeInstanceIdentifier(t),a=(n=this.onInitCallbacks.get(i))!==null&&n!==void 0?n:new Set;a.add(e),this.onInitCallbacks.set(i,a);const o=this.instances.get(i);return o&&e(o,i),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const i of n)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:BK(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=Sc){return this.component?this.component.multipleInstances?e:Sc:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function BK(r){return r===Sc?void 0:r}function TK(r){return r.instantiationMode==="EAGER"}/** * @license * Copyright 2019 Google LLC * @@ -148,7 +148,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class TK{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new EK(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}/** + */class SK{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new CK(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}/** * @license * Copyright 2017 Google LLC * @@ -163,7 +163,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */var Bn;(function(r){r[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT"})(Bn||(Bn={}));const SK={debug:Bn.DEBUG,verbose:Bn.VERBOSE,info:Bn.INFO,warn:Bn.WARN,error:Bn.ERROR,silent:Bn.SILENT},xK=Bn.INFO,bK={[Bn.DEBUG]:"log",[Bn.VERBOSE]:"log",[Bn.INFO]:"info",[Bn.WARN]:"warn",[Bn.ERROR]:"error"},IK=(r,e,...t)=>{if(ee.some(t=>r instanceof t);let LR,OR;function OK(){return LR||(LR=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function RK(){return OR||(OR=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const C6=new WeakMap,NT=new WeakMap,B6=new WeakMap,oC=new WeakMap,xI=new WeakMap;function MK(r){const e=new Promise((t,n)=>{const i=()=>{r.removeEventListener("success",a),r.removeEventListener("error",o)},a=()=>{t(wu(r.result)),i()},o=()=>{n(r.error),i()};r.addEventListener("success",a),r.addEventListener("error",o)});return e.then(t=>{t instanceof IDBCursor&&C6.set(t,r)}).catch(()=>{}),xI.set(e,r),e}function NK(r){if(NT.has(r))return;const e=new Promise((t,n)=>{const i=()=>{r.removeEventListener("complete",a),r.removeEventListener("error",o),r.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{n(r.error||new DOMException("AbortError","AbortError")),i()};r.addEventListener("complete",a),r.addEventListener("error",o),r.addEventListener("abort",o)});NT.set(r,e)}let PT={get(r,e,t){if(r instanceof IDBTransaction){if(e==="done")return NT.get(r);if(e==="objectStoreNames")return r.objectStoreNames||B6.get(r);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return wu(r[e])},set(r,e,t){return r[e]=t,!0},has(r,e){return r instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in r}};function PK(r){PT=r(PT)}function UK(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=r.call(sC(this),e,...t);return B6.set(n,e.sort?e.sort():[e]),wu(n)}:RK().includes(r)?function(...e){return r.apply(sC(this),e),wu(C6.get(this))}:function(...e){return wu(r.apply(sC(this),e))}}function DK(r){return typeof r=="function"?UK(r):(r instanceof IDBTransaction&&NK(r),LK(r,OK())?new Proxy(r,PT):r)}function wu(r){if(r instanceof IDBRequest)return MK(r);if(oC.has(r))return oC.get(r);const e=DK(r);return e!==r&&(oC.set(r,e),xI.set(e,r)),e}const sC=r=>xI.get(r);function QK(r,e,{blocked:t,upgrade:n,blocking:i,terminated:a}={}){const o=indexedDB.open(r,e),s=wu(o);return n&&o.addEventListener("upgradeneeded",A=>{n(wu(o.result),A.oldVersion,A.newVersion,wu(o.transaction))}),t&&o.addEventListener("blocked",()=>t()),s.then(A=>{a&&A.addEventListener("close",()=>a()),i&&A.addEventListener("versionchange",()=>i())}).catch(()=>{}),s}const HK=["get","getKey","getAll","getAllKeys","count"],GK=["put","add","delete","clear"],AC=new Map;function RR(r,e){if(!(r instanceof IDBDatabase&&!(e in r)&&typeof e=="string"))return;if(AC.get(e))return AC.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,i=GK.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(i||HK.includes(t)))return;const a=async function(o,...s){const A=this.transaction(o,i?"readwrite":"readonly");let l=A.store;return n&&(l=l.index(s.shift())),(await Promise.all([l[t](...s),i&&A.done]))[0]};return AC.set(e,a),a}PK(r=>({...r,get:(e,t,n)=>RR(e,t)||r.get(e,t,n),has:(e,t)=>!!RR(e,t)||r.has(e,t)}));/** + */var Bn;(function(r){r[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT"})(Bn||(Bn={}));const xK={debug:Bn.DEBUG,verbose:Bn.VERBOSE,info:Bn.INFO,warn:Bn.WARN,error:Bn.ERROR,silent:Bn.SILENT},bK=Bn.INFO,IK={[Bn.DEBUG]:"log",[Bn.VERBOSE]:"log",[Bn.INFO]:"info",[Bn.WARN]:"warn",[Bn.ERROR]:"error"},FK=(r,e,...t)=>{if(ee.some(t=>r instanceof t);let LR,OR;function RK(){return LR||(LR=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function MK(){return OR||(OR=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const C6=new WeakMap,NT=new WeakMap,B6=new WeakMap,oC=new WeakMap,xI=new WeakMap;function NK(r){const e=new Promise((t,n)=>{const i=()=>{r.removeEventListener("success",a),r.removeEventListener("error",o)},a=()=>{t(wu(r.result)),i()},o=()=>{n(r.error),i()};r.addEventListener("success",a),r.addEventListener("error",o)});return e.then(t=>{t instanceof IDBCursor&&C6.set(t,r)}).catch(()=>{}),xI.set(e,r),e}function PK(r){if(NT.has(r))return;const e=new Promise((t,n)=>{const i=()=>{r.removeEventListener("complete",a),r.removeEventListener("error",o),r.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{n(r.error||new DOMException("AbortError","AbortError")),i()};r.addEventListener("complete",a),r.addEventListener("error",o),r.addEventListener("abort",o)});NT.set(r,e)}let PT={get(r,e,t){if(r instanceof IDBTransaction){if(e==="done")return NT.get(r);if(e==="objectStoreNames")return r.objectStoreNames||B6.get(r);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return wu(r[e])},set(r,e,t){return r[e]=t,!0},has(r,e){return r instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in r}};function UK(r){PT=r(PT)}function DK(r){return r===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=r.call(sC(this),e,...t);return B6.set(n,e.sort?e.sort():[e]),wu(n)}:MK().includes(r)?function(...e){return r.apply(sC(this),e),wu(C6.get(this))}:function(...e){return wu(r.apply(sC(this),e))}}function QK(r){return typeof r=="function"?DK(r):(r instanceof IDBTransaction&&PK(r),OK(r,RK())?new Proxy(r,PT):r)}function wu(r){if(r instanceof IDBRequest)return NK(r);if(oC.has(r))return oC.get(r);const e=QK(r);return e!==r&&(oC.set(r,e),xI.set(e,r)),e}const sC=r=>xI.get(r);function HK(r,e,{blocked:t,upgrade:n,blocking:i,terminated:a}={}){const o=indexedDB.open(r,e),s=wu(o);return n&&o.addEventListener("upgradeneeded",A=>{n(wu(o.result),A.oldVersion,A.newVersion,wu(o.transaction))}),t&&o.addEventListener("blocked",()=>t()),s.then(A=>{a&&A.addEventListener("close",()=>a()),i&&A.addEventListener("versionchange",()=>i())}).catch(()=>{}),s}const GK=["get","getKey","getAll","getAllKeys","count"],kK=["put","add","delete","clear"],AC=new Map;function RR(r,e){if(!(r instanceof IDBDatabase&&!(e in r)&&typeof e=="string"))return;if(AC.get(e))return AC.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,i=kK.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(i||GK.includes(t)))return;const a=async function(o,...s){const A=this.transaction(o,i?"readwrite":"readonly");let l=A.store;return n&&(l=l.index(s.shift())),(await Promise.all([l[t](...s),i&&A.done]))[0]};return AC.set(e,a),a}UK(r=>({...r,get:(e,t,n)=>RR(e,t)||r.get(e,t,n),has:(e,t)=>!!RR(e,t)||r.has(e,t)}));/** * @license * Copyright 2019 Google LLC * @@ -178,7 +178,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class kK{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if($K(t)){const n=t.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(t=>t).join(" ")}}function $K(r){const e=r.getComponent();return(e==null?void 0:e.type)==="VERSION"}const UT="@firebase/app",MR="0.9.3";/** + */class $K{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(VK(t)){const n=t.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(t=>t).join(" ")}}function VK(r){const e=r.getComponent();return(e==null?void 0:e.type)==="VERSION"}const UT="@firebase/app",MR="0.9.3";/** * @license * Copyright 2019 Google LLC * @@ -193,7 +193,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Ah=new FK("@firebase/app"),VK="@firebase/app-compat",jK="@firebase/analytics-compat",KK="@firebase/analytics",zK="@firebase/app-check-compat",YK="@firebase/app-check",XK="@firebase/auth",WK="@firebase/auth-compat",qK="@firebase/database",ZK="@firebase/database-compat",JK="@firebase/functions",tz="@firebase/functions-compat",ez="@firebase/installations",rz="@firebase/installations-compat",nz="@firebase/messaging",iz="@firebase/messaging-compat",az="@firebase/performance",oz="@firebase/performance-compat",sz="@firebase/remote-config",Az="@firebase/remote-config-compat",lz="@firebase/storage",uz="@firebase/storage-compat",cz="@firebase/firestore",hz="@firebase/firestore-compat",fz="firebase";/** + */const Ah=new LK("@firebase/app"),jK="@firebase/app-compat",KK="@firebase/analytics-compat",zK="@firebase/analytics",YK="@firebase/app-check-compat",XK="@firebase/app-check",WK="@firebase/auth",qK="@firebase/auth-compat",ZK="@firebase/database",JK="@firebase/database-compat",tz="@firebase/functions",ez="@firebase/functions-compat",rz="@firebase/installations",nz="@firebase/installations-compat",iz="@firebase/messaging",az="@firebase/messaging-compat",oz="@firebase/performance",sz="@firebase/performance-compat",Az="@firebase/remote-config",lz="@firebase/remote-config-compat",uz="@firebase/storage",cz="@firebase/storage-compat",hz="@firebase/firestore",fz="@firebase/firestore-compat",pz="firebase";/** * @license * Copyright 2019 Google LLC * @@ -208,7 +208,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const DT="[DEFAULT]",pz={[UT]:"fire-core",[VK]:"fire-core-compat",[KK]:"fire-analytics",[jK]:"fire-analytics-compat",[YK]:"fire-app-check",[zK]:"fire-app-check-compat",[XK]:"fire-auth",[WK]:"fire-auth-compat",[qK]:"fire-rtdb",[ZK]:"fire-rtdb-compat",[JK]:"fire-fn",[tz]:"fire-fn-compat",[ez]:"fire-iid",[rz]:"fire-iid-compat",[nz]:"fire-fcm",[iz]:"fire-fcm-compat",[az]:"fire-perf",[oz]:"fire-perf-compat",[sz]:"fire-rc",[Az]:"fire-rc-compat",[lz]:"fire-gcs",[uz]:"fire-gcs-compat",[cz]:"fire-fst",[hz]:"fire-fst-compat","fire-js":"fire-js",[fz]:"fire-js-all"};/** + */const DT="[DEFAULT]",dz={[UT]:"fire-core",[jK]:"fire-core-compat",[zK]:"fire-analytics",[KK]:"fire-analytics-compat",[XK]:"fire-app-check",[YK]:"fire-app-check-compat",[WK]:"fire-auth",[qK]:"fire-auth-compat",[ZK]:"fire-rtdb",[JK]:"fire-rtdb-compat",[tz]:"fire-fn",[ez]:"fire-fn-compat",[rz]:"fire-iid",[nz]:"fire-iid-compat",[iz]:"fire-fcm",[az]:"fire-fcm-compat",[oz]:"fire-perf",[sz]:"fire-perf-compat",[Az]:"fire-rc",[lz]:"fire-rc-compat",[uz]:"fire-gcs",[cz]:"fire-gcs-compat",[hz]:"fire-fst",[fz]:"fire-fst-compat","fire-js":"fire-js",[pz]:"fire-js-all"};/** * @license * Copyright 2019 Google LLC * @@ -223,7 +223,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const h_=new Map,QT=new Map;function dz(r,e){try{r.container.addComponent(e)}catch(t){Ah.debug(`Component ${e.name} failed to register with FirebaseApp ${r.name}`,t)}}function f_(r){const e=r.name;if(QT.has(e))return Ah.debug(`There were multiple attempts to register component ${e}.`),!1;QT.set(e,r);for(const t of h_.values())dz(t,r);return!0}function vz(r,e){const t=r.container.getProvider("heartbeat").getImmediate({optional:!0});return t&&t.triggerHeartbeat(),r.container.getProvider(e)}/** + */const h_=new Map,QT=new Map;function vz(r,e){try{r.container.addComponent(e)}catch(t){Ah.debug(`Component ${e.name} failed to register with FirebaseApp ${r.name}`,t)}}function f_(r){const e=r.name;if(QT.has(e))return Ah.debug(`There were multiple attempts to register component ${e}.`),!1;QT.set(e,r);for(const t of h_.values())vz(t,r);return!0}function gz(r,e){const t=r.container.getProvider("heartbeat").getImmediate({optional:!0});return t&&t.triggerHeartbeat(),r.container.getProvider(e)}/** * @license * Copyright 2019 Google LLC * @@ -238,7 +238,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const gz={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["bad-app-name"]:"Illegal App name: '{$appName}",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Eu=new E6("app","Firebase",gz);/** + */const yz={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["bad-app-name"]:"Illegal App name: '{$appName}",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},Eu=new E6("app","Firebase",yz);/** * @license * Copyright 2019 Google LLC * @@ -253,7 +253,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class yz{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new og("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Eu.create("app-deleted",{appName:this._name})}}function T6(r,e={}){let t=r;typeof e!="object"&&(e={name:e});const n=Object.assign({name:DT,automaticDataCollectionEnabled:!1},e),i=n.name;if(typeof i!="string"||!i)throw Eu.create("bad-app-name",{appName:String(i)});if(t||(t=dK()),!t)throw Eu.create("no-options");const a=h_.get(i);if(a){if(MT(t,a.options)&&MT(n,a.config))return a;throw Eu.create("duplicate-app",{appName:i})}const o=new TK(i);for(const A of QT.values())o.addComponent(A);const s=new yz(t,n,o);return h_.set(i,s),s}function mz(r=DT){const e=h_.get(r);if(!e&&r===DT)return T6();if(!e)throw Eu.create("no-app",{appName:r});return e}function op(r,e,t){var n;let i=(n=pz[r])!==null&&n!==void 0?n:r;t&&(i+=`-${t}`);const a=i.match(/\s|\//),o=e.match(/\s|\//);if(a||o){const s=[`Unable to register library "${i}" with version "${e}":`];a&&s.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&s.push("and"),o&&s.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Ah.warn(s.join(" "));return}f_(new og(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/** + */class mz{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new og("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Eu.create("app-deleted",{appName:this._name})}}function T6(r,e={}){let t=r;typeof e!="object"&&(e={name:e});const n=Object.assign({name:DT,automaticDataCollectionEnabled:!1},e),i=n.name;if(typeof i!="string"||!i)throw Eu.create("bad-app-name",{appName:String(i)});if(t||(t=vK()),!t)throw Eu.create("no-options");const a=h_.get(i);if(a){if(MT(t,a.options)&&MT(n,a.config))return a;throw Eu.create("duplicate-app",{appName:i})}const o=new SK(i);for(const A of QT.values())o.addComponent(A);const s=new mz(t,n,o);return h_.set(i,s),s}function _z(r=DT){const e=h_.get(r);if(!e&&r===DT)return T6();if(!e)throw Eu.create("no-app",{appName:r});return e}function op(r,e,t){var n;let i=(n=dz[r])!==null&&n!==void 0?n:r;t&&(i+=`-${t}`);const a=i.match(/\s|\//),o=e.match(/\s|\//);if(a||o){const s=[`Unable to register library "${i}" with version "${e}":`];a&&s.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&s.push("and"),o&&s.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Ah.warn(s.join(" "));return}f_(new og(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/** * @license * Copyright 2021 Google LLC * @@ -268,7 +268,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const _z="firebase-heartbeat-database",wz=1,sg="firebase-heartbeat-store";let lC=null;function S6(){return lC||(lC=QK(_z,wz,{upgrade:(r,e)=>{switch(e){case 0:r.createObjectStore(sg)}}}).catch(r=>{throw Eu.create("idb-open",{originalErrorMessage:r.message})})),lC}async function Ez(r){try{return(await S6()).transaction(sg).objectStore(sg).get(x6(r))}catch(e){if(e instanceof Gp)Ah.warn(e.message);else{const t=Eu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Ah.warn(t.message)}}}async function NR(r,e){try{const n=(await S6()).transaction(sg,"readwrite");return await n.objectStore(sg).put(e,x6(r)),n.done}catch(t){if(t instanceof Gp)Ah.warn(t.message);else{const n=Eu.create("idb-set",{originalErrorMessage:t==null?void 0:t.message});Ah.warn(n.message)}}}function x6(r){return`${r.name}!${r.options.appId}`}/** + */const wz="firebase-heartbeat-database",Ez=1,sg="firebase-heartbeat-store";let lC=null;function S6(){return lC||(lC=HK(wz,Ez,{upgrade:(r,e)=>{switch(e){case 0:r.createObjectStore(sg)}}}).catch(r=>{throw Eu.create("idb-open",{originalErrorMessage:r.message})})),lC}async function Cz(r){try{return(await S6()).transaction(sg).objectStore(sg).get(x6(r))}catch(e){if(e instanceof Gp)Ah.warn(e.message);else{const t=Eu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Ah.warn(t.message)}}}async function NR(r,e){try{const n=(await S6()).transaction(sg,"readwrite");return await n.objectStore(sg).put(e,x6(r)),n.done}catch(t){if(t instanceof Gp)Ah.warn(t.message);else{const n=Eu.create("idb-set",{originalErrorMessage:t==null?void 0:t.message});Ah.warn(n.message)}}}function x6(r){return`${r.name}!${r.options.appId}`}/** * @license * Copyright 2021 Google LLC * @@ -283,7 +283,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Cz=1024,Bz=30*24*60*60*1e3;class Tz{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new xz(t),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}async triggerHeartbeat(){const t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=PR();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(i=>i.date===n)))return this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{const a=new Date(i.date).valueOf();return Date.now()-a<=Bz}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=PR(),{heartbeatsToSend:t,unsentEntries:n}=Sz(this._heartbeatsCache.heartbeats),i=_6(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function PR(){return new Date().toISOString().substring(0,10)}function Sz(r,e=Cz){const t=[];let n=r.slice();for(const i of r){const a=t.find(o=>o.agent===i.agent);if(a){if(a.dates.push(i.date),UR(t)>e){a.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),UR(t)>e){t.pop();break}n=n.slice(1)}return{heartbeatsToSend:t,unsentEntries:n}}class xz{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return gK()?yK().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await Ez(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const i=await this.read();return NR(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var t;if(await this._canUseIndexedDBPromise){const i=await this.read();return NR(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function UR(r){return _6(JSON.stringify({version:2,heartbeats:r})).length}/** + */const Bz=1024,Tz=30*24*60*60*1e3;class Sz{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new bz(t),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}async triggerHeartbeat(){const t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=PR();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some(i=>i.date===n)))return this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{const a=new Date(i.date).valueOf();return Date.now()-a<=Tz}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const e=PR(),{heartbeatsToSend:t,unsentEntries:n}=xz(this._heartbeatsCache.heartbeats),i=_6(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function PR(){return new Date().toISOString().substring(0,10)}function xz(r,e=Bz){const t=[];let n=r.slice();for(const i of r){const a=t.find(o=>o.agent===i.agent);if(a){if(a.dates.push(i.date),UR(t)>e){a.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),UR(t)>e){t.pop();break}n=n.slice(1)}return{heartbeatsToSend:t,unsentEntries:n}}class bz{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return yK()?mK().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await Cz(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const i=await this.read();return NR(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var t;if(await this._canUseIndexedDBPromise){const i=await this.read();return NR(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function UR(r){return _6(JSON.stringify({version:2,heartbeats:r})).length}/** * @license * Copyright 2019 Google LLC * @@ -298,7 +298,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function bz(r){f_(new og("platform-logger",e=>new kK(e),"PRIVATE")),f_(new og("heartbeat",e=>new Tz(e),"PRIVATE")),op(UT,MR,r),op(UT,MR,"esm2017"),op("fire-js","")}bz("");var Iz="firebase",Fz="9.17.1";/** + */function Iz(r){f_(new og("platform-logger",e=>new $K(e),"PRIVATE")),f_(new og("heartbeat",e=>new Sz(e),"PRIVATE")),op(UT,MR,r),op(UT,MR,"esm2017"),op("fire-js","")}Iz("");var Fz="firebase",Lz="9.17.1";/** * @license * Copyright 2020 Google LLC * @@ -313,7 +313,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */op(Iz,Fz,"app");const Lz={},DR=T6(Lz);/** + */op(Fz,Lz,"app");const Oz={apiKey:"AIzaSyDYf5k6SzoddEey4tUkUCiA-MPBA-653ww",authDomain:"irishrailtracker.firebaseapp.com",projectId:"irishrailtracker",storageBucket:"irishrailtracker.appspot.com",messagingSenderId:"753565032771",appId:"1:753565032771:web:092121cc9d3e254084cff6"},DR=T6(Oz);/** * @license * Copyright 2017 Google LLC * @@ -328,7 +328,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Oz="type.googleapis.com/google.protobuf.Int64Value",Rz="type.googleapis.com/google.protobuf.UInt64Value";function b6(r,e){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=e(r[n]));return t}function HT(r){if(r==null)return null;if(r instanceof Number&&(r=r.valueOf()),typeof r=="number"&&isFinite(r)||r===!0||r===!1||Object.prototype.toString.call(r)==="[object String]")return r;if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return r.map(e=>HT(e));if(typeof r=="function"||typeof r=="object")return b6(r,e=>HT(e));throw new Error("Data cannot be encoded in JSON: "+r)}function p_(r){if(r==null)return r;if(r["@type"])switch(r["@type"]){case Oz:case Rz:{const e=Number(r.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+r);return e}default:throw new Error("Data cannot be decoded from JSON: "+r)}return Array.isArray(r)?r.map(e=>p_(e)):typeof r=="function"||typeof r=="object"?b6(r,e=>p_(e)):r}/** + */const Rz="type.googleapis.com/google.protobuf.Int64Value",Mz="type.googleapis.com/google.protobuf.UInt64Value";function b6(r,e){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=e(r[n]));return t}function HT(r){if(r==null)return null;if(r instanceof Number&&(r=r.valueOf()),typeof r=="number"&&isFinite(r)||r===!0||r===!1||Object.prototype.toString.call(r)==="[object String]")return r;if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return r.map(e=>HT(e));if(typeof r=="function"||typeof r=="object")return b6(r,e=>HT(e));throw new Error("Data cannot be encoded in JSON: "+r)}function p_(r){if(r==null)return r;if(r["@type"])switch(r["@type"]){case Rz:case Mz:{const e=Number(r.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+r);return e}default:throw new Error("Data cannot be decoded from JSON: "+r)}return Array.isArray(r)?r.map(e=>p_(e)):typeof r=="function"||typeof r=="object"?b6(r,e=>p_(e)):r}/** * @license * Copyright 2020 Google LLC * @@ -358,7 +358,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const QR={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class sp extends Gp{constructor(e,t,n){super(`${bI}/${e}`,t||""),this.details=n}}function Mz(r){if(r>=200&&r<300)return"ok";switch(r){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function Nz(r,e){let t=Mz(r),n=t,i;try{const a=e&&e.error;if(a){const o=a.status;if(typeof o=="string"){if(!QR[o])return new sp("internal","internal");t=QR[o],n=o}const s=a.message;typeof s=="string"&&(n=s),i=a.details,i!==void 0&&(i=p_(i))}}catch{}return t==="ok"?null:new sp(t,n,i)}/** + */const QR={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class sp extends Gp{constructor(e,t,n){super(`${bI}/${e}`,t||""),this.details=n}}function Nz(r){if(r>=200&&r<300)return"ok";switch(r){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function Pz(r,e){let t=Nz(r),n=t,i;try{const a=e&&e.error;if(a){const o=a.status;if(typeof o=="string"){if(!QR[o])return new sp("internal","internal");t=QR[o],n=o}const s=a.message;typeof s=="string"&&(n=s),i=a.details,i!==void 0&&(i=p_(i))}}catch{}return t==="ok"?null:new sp(t,n,i)}/** * @license * Copyright 2017 Google LLC * @@ -373,7 +373,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */class Pz{constructor(e,t,n){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then(i=>this.auth=i,()=>{}),this.messaging||t.get().then(i=>this.messaging=i,()=>{}),this.appCheck||n.get().then(i=>this.appCheck=i,()=>{})}async getAuthToken(){if(this.auth)try{const e=await this.auth.getToken();return e==null?void 0:e.accessToken}catch{return}}async getMessagingToken(){if(!(!this.messaging||!("Notification"in self)||Notification.permission!=="granted"))try{return await this.messaging.getToken()}catch{return}}async getAppCheckToken(){if(this.appCheck){const e=await this.appCheck.getToken();return e.error?null:e.token}return null}async getContext(){const e=await this.getAuthToken(),t=await this.getMessagingToken(),n=await this.getAppCheckToken();return{authToken:e,messagingToken:t,appCheckToken:n}}}/** + */class Uz{constructor(e,t,n){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then(i=>this.auth=i,()=>{}),this.messaging||t.get().then(i=>this.messaging=i,()=>{}),this.appCheck||n.get().then(i=>this.appCheck=i,()=>{})}async getAuthToken(){if(this.auth)try{const e=await this.auth.getToken();return e==null?void 0:e.accessToken}catch{return}}async getMessagingToken(){if(!(!this.messaging||!("Notification"in self)||Notification.permission!=="granted"))try{return await this.messaging.getToken()}catch{return}}async getAppCheckToken(){if(this.appCheck){const e=await this.appCheck.getToken();return e.error?null:e.token}return null}async getContext(){const e=await this.getAuthToken(),t=await this.getMessagingToken(),n=await this.getAppCheckToken();return{authToken:e,messagingToken:t,appCheckToken:n}}}/** * @license * Copyright 2017 Google LLC * @@ -388,7 +388,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const GT="us-central1";function Uz(r){let e=null;return{promise:new Promise((t,n)=>{e=setTimeout(()=>{n(new sp("deadline-exceeded","deadline-exceeded"))},r)}),cancel:()=>{e&&clearTimeout(e)}}}class Dz{constructor(e,t,n,i,a=GT,o){this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new Pz(t,n,i),this.cancelAllRequests=new Promise(s=>{this.deleteService=()=>Promise.resolve(s())});try{const s=new URL(a);this.customDomain=s.origin,this.region=GT}catch{this.customDomain=null,this.region=a}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${t}/${this.region}/${e}`:this.customDomain!==null?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}}function Qz(r,e,t){r.emulatorOrigin=`http://${e}:${t}`}function Hz(r,e,t){return n=>kz(r,e,n,t||{})}async function Gz(r,e,t,n){t["Content-Type"]="application/json";let i;try{i=await n(r,{method:"POST",body:JSON.stringify(e),headers:t})}catch{return{status:0,json:null}}let a=null;try{a=await i.json()}catch{}return{status:i.status,json:a}}function kz(r,e,t,n){const i=r._url(e);return $z(r,i,t,n)}async function $z(r,e,t,n){t=HT(t);const i={data:t},a={},o=await r.contextProvider.getContext();o.authToken&&(a.Authorization="Bearer "+o.authToken),o.messagingToken&&(a["Firebase-Instance-ID-Token"]=o.messagingToken),o.appCheckToken!==null&&(a["X-Firebase-AppCheck"]=o.appCheckToken);const s=n.timeout||7e4,A=Uz(s),l=await Promise.race([Gz(e,i,a,r.fetchImpl),A.promise,r.cancelAllRequests]);if(A.cancel(),!l)throw new sp("cancelled","Firebase Functions instance was deleted.");const u=Nz(l.status,l.json);if(u)throw u;if(!l.json)throw new sp("internal","Response is not valid JSON object.");let c=l.json.data;if(typeof c>"u"&&(c=l.json.result),typeof c>"u")throw new sp("internal","Response is missing data field.");return{data:p_(c)}}const HR="@firebase/functions",GR="0.9.3";/** + */const GT="us-central1";function Dz(r){let e=null;return{promise:new Promise((t,n)=>{e=setTimeout(()=>{n(new sp("deadline-exceeded","deadline-exceeded"))},r)}),cancel:()=>{e&&clearTimeout(e)}}}class Qz{constructor(e,t,n,i,a=GT,o){this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new Uz(t,n,i),this.cancelAllRequests=new Promise(s=>{this.deleteService=()=>Promise.resolve(s())});try{const s=new URL(a);this.customDomain=s.origin,this.region=GT}catch{this.customDomain=null,this.region=a}}_delete(){return this.deleteService()}_url(e){const t=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${t}/${this.region}/${e}`:this.customDomain!==null?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}}function Hz(r,e,t){r.emulatorOrigin=`http://${e}:${t}`}function Gz(r,e,t){return n=>$z(r,e,n,t||{})}async function kz(r,e,t,n){t["Content-Type"]="application/json";let i;try{i=await n(r,{method:"POST",body:JSON.stringify(e),headers:t})}catch{return{status:0,json:null}}let a=null;try{a=await i.json()}catch{}return{status:i.status,json:a}}function $z(r,e,t,n){const i=r._url(e);return Vz(r,i,t,n)}async function Vz(r,e,t,n){t=HT(t);const i={data:t},a={},o=await r.contextProvider.getContext();o.authToken&&(a.Authorization="Bearer "+o.authToken),o.messagingToken&&(a["Firebase-Instance-ID-Token"]=o.messagingToken),o.appCheckToken!==null&&(a["X-Firebase-AppCheck"]=o.appCheckToken);const s=n.timeout||7e4,A=Dz(s),l=await Promise.race([kz(e,i,a,r.fetchImpl),A.promise,r.cancelAllRequests]);if(A.cancel(),!l)throw new sp("cancelled","Firebase Functions instance was deleted.");const u=Pz(l.status,l.json);if(u)throw u;if(!l.json)throw new sp("internal","Response is not valid JSON object.");let c=l.json.data;if(typeof c>"u"&&(c=l.json.result),typeof c>"u")throw new sp("internal","Response is missing data field.");return{data:p_(c)}}const HR="@firebase/functions",GR="0.9.3";/** * @license * Copyright 2019 Google LLC * @@ -403,7 +403,7 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */const Vz="auth-internal",jz="app-check-internal",Kz="messaging-internal";function zz(r,e){const t=(n,{instanceIdentifier:i})=>{const a=n.getProvider("app").getImmediate(),o=n.getProvider(Vz),s=n.getProvider(Kz),A=n.getProvider(jz);return new Dz(a,o,s,A,i,r)};f_(new og(bI,t,"PUBLIC").setMultipleInstances(!0)),op(HR,GR,e),op(HR,GR,"esm2017")}/** + */const jz="auth-internal",Kz="app-check-internal",zz="messaging-internal";function Yz(r,e){const t=(n,{instanceIdentifier:i})=>{const a=n.getProvider("app").getImmediate(),o=n.getProvider(jz),s=n.getProvider(zz),A=n.getProvider(Kz);return new Qz(a,o,s,A,i,r)};f_(new og(bI,t,"PUBLIC").setMultipleInstances(!0)),op(HR,GR,e),op(HR,GR,"esm2017")}/** * @license * Copyright 2020 Google LLC * @@ -418,17 +418,17 @@ var I9=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var eRt=I9(Ei=>{( * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */function kR(r=mz(),e=GT){const n=vz(SI(r),bI).getImmediate({identifier:e}),i=pK("functions");return i&&kT(n,...i),n}function kT(r,e,t){Qz(SI(r),e,t)}function $R(r,e,t){return Hz(SI(r),e,t)}zz(fetch.bind(self));const Yz=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},Xz={name:"MapsOverlay",data(){const r=Gn(IR([-7.5029786,53.4494762])),e=Gn("EPSG:3857"),t=Gn(7),n=Gn(0),i=Gn(10),a=Gn(1),o=Gn("black"),s=Gn("red");return{center:r,projection:e,zoom:t,rotation:n,radius:i,strokeWidth:a,strokeColor:o,fillColor:s,coordinates:[],dbLiveTrainData:[],allDataMap:{},selectedDataMap:{},display:!1}},created(){console.log("jere"),this.getLiveTrainData()},methods:{getLiveTrainData(){const r=kR(DR);window.location.hostname==="127.0.0.1"&&kT(r,"localhost",5001);const e=$R(r,"getLiveTrainData");let t=this.$loading.show({loader:"dots",container:this.$refs.container,canCancel:!1});e().then(n=>{try{this.dbLiveTrainData=n.data;for(var i=0;i{console.log("Test")})}}},I6=r=>(aD("data-v-b6d78a5d"),r=r(),oD(),r),Wz={key:0,id:"sidebarDiv"},qz={id:"sidebarHeader"},Zz=I6(()=>Ki("img",{id:"headerImage",src:"https://cdn.discordapp.com/attachments/1017419092447207436/1063092138029625394/pixil-frame-0.png"},null,-1)),Jz={id:"sidebarDiv"},tY=["onClick"],eY=I6(()=>Ki("img",{src:"https://cdn.discordapp.com/attachments/1017419092447207436/1063092138029625394/pixil-frame-0.png",class:"trainMapIcon"},null,-1)),rY=[eY];function nY(r,e,t,n,i,a){const o=Lf("ol-view"),s=Lf("ol-source-osm"),A=Lf("ol-tile-layer"),l=Lf("ol-overlay"),u=Lf("ol-map");return cn(),Vn(Ri,null,[Ki("button",{onClick:e[0]||(e[0]=(...c)=>a.getLiveTrainData&&a.getLiveTrainData(...c))},"Fetch Data"),Ki("button",{onClick:e[1]||(e[1]=(...c)=>a.postLiveTrainData&&a.postLiveTrainData(...c))},"Populate Database"),Wr($1,{id:"sidebar",name:"slideLeft"},{default:Nc(()=>[this.display?(cn(),Vn("div",Wz,[Ki("div",qz,[Zz,Ki("div",{onClick:e[2]||(e[2]=c=>this.display=!1),id:"xButton"},"X")]),Ki("div",Jz,[Ki("h2",null,"Train Code: "+tu(i.selectedDataMap.TrainCode),1),Ki("p",null,"Date: "+tu(i.selectedDataMap.TrainDate),1),Ki("p",null,"Status: "+tu(i.selectedDataMap.TrainStatus),1),Ki("p",null,"Longitude: "+tu(i.selectedDataMap.TrainLongitude),1),Ki("p",null,"Latitude: "+tu(i.selectedDataMap.TrainLatitude),1),Ki("p",null,"Direction: "+tu(i.selectedDataMap.Direction),1),Ki("p",null,"Public Message: "+tu(i.selectedDataMap.PublicMessage),1)])])):dr("",!0)]),_:1}),Wr(u,{loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0,style:{height:"1000px"}},{default:Nc(()=>[Wr(o,{ref:"view",center:i.center,rotation:i.rotation,zoom:i.zoom,projection:i.projection},null,8,["center","rotation","zoom","projection"]),Wr(A,null,{default:Nc(()=>[Wr(s)]),_:1}),(cn(!0),Vn(Ri,null,CD(i.coordinates,(c,h)=>(cn(),$g(l,{position:c},{default:Nc(()=>[Ki("div",{class:"overlay-content",onClick:f=>a.getSelectedTrain(h)},rY,8,tY)]),_:2},1032,["position"]))),256))]),_:1})],64)}const iY=Yz(Xz,[["render",nY],["__scopeId","data-v-b6d78a5d"]]),aY={__name:"App",setup(r){return(e,t)=>(cn(),$g(iY))}};var oY=Object.defineProperty,sY=Object.defineProperties,AY=Object.getOwnPropertyDescriptors,VR=Object.getOwnPropertySymbols,lY=Object.prototype.hasOwnProperty,uY=Object.prototype.propertyIsEnumerable,jR=(r,e,t)=>e in r?oY(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Un=(r,e)=>{for(var t in e||(e={}))lY.call(e,t)&&jR(r,t,e[t]);if(VR)for(var t of VR(e))uY.call(e,t)&&jR(r,t,e[t]);return r},Os=(r,e)=>sY(r,AY(e)),cY=function(){function r(){this.disposed=!1}return r.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},r}(),V1=cY;function hY(r,e,t){for(var n,i,a=t||Nu,o=0,s=r.length,A=!1;o>1),i=+a(r[n],e),i<0?o=n+1:(s=n,A=!i);return A?o:~o}function Nu(r,e){return r>e?1:r=0}function j1(r,e,t){var n=r.length;if(r[0]<=e)return 0;if(e<=r[n-1])return n-1;var i=void 0;if(t>0){for(i=1;i0?i-1:i:r[i-1]-e0||t&&o===0)})}function iA(){return!0}function Ch(){return!1}function lh(){}function dY(r){var e=!1,t,n,i;return function(){var a=Array.prototype.slice.call(arguments);return(!e||this!==i||!yl(a,n))&&(e=!0,i=this,n=a,t=r.apply(this,arguments)),t}}function Be(){return function(){throw new Error("Unimplemented abstract method.")}()}var vY=0;function pe(r){return r.ol_uid||(r.ol_uid=String(++vY))}var F6="6.14.1",Pu=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",gY=Pu.indexOf("firefox")!==-1,yY=Pu.indexOf("safari")!==-1&&Pu.indexOf("chrom")==-1,mY=yY&&!!(Pu.indexOf("version/15.4")>=0||Pu.match(/cpu (os|iphone os) 15_4 like mac os x/)),_Y=Pu.indexOf("webkit")!==-1&&Pu.indexOf("edge")==-1,L6=Pu.indexOf("macintosh")!==-1,uh=typeof devicePixelRatio<"u"?devicePixelRatio:1,K1=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,wY=typeof Image<"u"&&Image.prototype.decode,O6=function(){var r=!1;try{var e=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return r}(),EY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),CY=function(r){EY(e,r);function e(t){var n=this,i="v"+F6.split("-")[0],a="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+t+" for details.";return n=r.call(this,a)||this,n.code=t,n.name="AssertionError",n.message=a,n}return e}(Error),R6=CY;function _e(r,e){if(!r)throw new R6(e)}var II=new Array(6);function oi(){return[1,0,0,1,0,0]}function Nv(r){return jg(r,1,0,0,1,0,0)}function kp(r,e){var t=r[0],n=r[1],i=r[2],a=r[3],o=r[4],s=r[5],A=e[0],l=e[1],u=e[2],c=e[3],h=e[4],f=e[5];return r[0]=t*A+i*l,r[1]=n*A+a*l,r[2]=t*u+i*c,r[3]=n*u+a*c,r[4]=t*h+i*f+o,r[5]=n*h+a*f+s,r}function jg(r,e,t,n,i,a,o){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a,r[5]=o,r}function BY(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function un(r,e){var t=e[0],n=e[1];return e[0]=r[0]*t+r[2]*n+r[4],e[1]=r[1]*t+r[3]*n+r[5],e}function TY(r,e){var t=Math.cos(e),n=Math.sin(e);return kp(r,jg(II,t,n,-n,t,0,0))}function Pv(r,e,t){return kp(r,jg(II,e,0,0,t,0,0))}function SY(r,e,t){return jg(r,e,0,0,t,0,0)}function xY(r,e,t){return kp(r,jg(II,1,0,0,1,e,t))}function $a(r,e,t,n,i,a,o,s){var A=Math.sin(a),l=Math.cos(a);return r[0]=n*l,r[1]=i*A,r[2]=-n*A,r[3]=i*l,r[4]=o*n*l-s*n*A+e,r[5]=o*i*A+s*i*l+t,r}function Kg(r,e){var t=bY(e);_e(t!==0,32);var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],A=e[5];return r[0]=o/t,r[1]=-i/t,r[2]=-a/t,r[3]=n/t,r[4]=(a*A-o*s)/t,r[5]=-(n*A-i*s)/t,r}function bY(r){return r[0]*r[3]-r[1]*r[2]}var KR;function FI(r){var e="matrix("+r.join(", ")+")";if(K1)return e;var t=KR||(KR=document.createElement("div"));return t.style.transform=e,t.style.transform}var cv={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},zi={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Yi(r){for(var e=_i(),t=0,n=r.length;ti&&(A=A|zi.RIGHT),sa&&(A=A|zi.ABOVE),A===zi.UNKNOWN&&(A=zi.INTERSECTING),A}function _i(){return[1/0,1/0,-1/0,-1/0]}function uo(r,e,t,n,i){return i?(i[0]=r,i[1]=e,i[2]=t,i[3]=n,i):[r,e,t,n]}function Wu(r){return uo(1/0,1/0,-1/0,-1/0,r)}function zc(r,e){var t=r[0],n=r[1];return uo(t,n,t,n,e)}function FY(r,e){var t=Wu(e);return OI(t,r)}function Y1(r,e,t,n,i){var a=Wu(i);return RI(a,r,e,t,n)}function LY(r,e){var t=Wu(e);return M6(t,r)}function AA(r,e){return r[0]==e[0]&&r[2]==e[2]&&r[1]==e[1]&&r[3]==e[3]}function OY(r,e,t){return Math.abs(r[0]-e[0])r[2]&&(r[2]=e[2]),e[1]r[3]&&(r[3]=e[3]),r}function Yc(r,e){e[0]r[2]&&(r[2]=e[0]),e[1]r[3]&&(r[3]=e[1])}function OI(r,e){for(var t=0,n=e.length;te[0]?n[0]=r[0]:n[0]=e[0],r[1]>e[1]?n[1]=r[1]:n[1]=e[1],r[2]=e[0]&&r[1]<=e[3]&&r[3]>=e[1]}function Vp(r){return r[2]=o&&v<=A),!n&&a&zi.RIGHT&&!(i&zi.RIGHT)&&(m=f-(h-A)*p,n=m>=s&&m<=l),!n&&a&zi.BELOW&&!(i&zi.BELOW)&&(v=h-(f-s)/p,n=v>=o&&v<=A),!n&&a&zi.LEFT&&!(i&zi.LEFT)&&(m=f-(h-o)*p,n=m>=s&&m<=l)}return n}function MI(r,e,t,n){var i=[];if(n>1)for(var a=r[2]-r[0],o=r[3]-r[1],s=0;s=t[2])){var i=Fr(t),a=Math.floor((n[0]-t[0])/i),o=a*i;r[0]-=o,r[2]-=o}return r}var UY=Object.freeze(Object.defineProperty({__proto__:null,boundingExtent:Yi,buffer:Va,clone:LI,closestSquaredDistanceXY:Xu,containsCoordinate:xs,containsExtent:Fo,containsXY:z1,coordinateRelationship:d_,createEmpty:_i,createOrUpdate:uo,createOrUpdateEmpty:Wu,createOrUpdateFromCoordinate:zc,createOrUpdateFromCoordinates:FY,createOrUpdateFromFlatCoordinates:Y1,createOrUpdateFromRings:LY,equals:AA,approximatelyEquals:OY,extend:Uu,extendCoordinate:Yc,extendCoordinates:OI,extendFlatCoordinates:RI,extendRings:M6,extendXY:N6,forEachCorner:X1,getArea:Ag,getBottomLeft:zg,getBottomRight:$p,getCenter:Sa,getCorner:P6,getEnlargedArea:RY,getForViewAndSize:Xc,getHeight:Ai,getIntersectionArea:MY,getIntersection:Jo,getMargin:NY,getSize:PY,getTopLeft:Rs,getTopRight:Yg,getWidth:Fr,intersects:Mn,isEmpty:Vp,returnOrUpdate:U6,scaleFromCenter:D6,intersectsSegment:Q6,applyTransform:MI,wrapX:H6},Symbol.toStringTag,{value:"Module"}));function xn(r,e,t){return Math.min(Math.max(r,e),t)}var DY=function(){var r;return"cosh"in Math?r=Math.cosh:r=function(e){var t=Math.exp(e);return(t+1/t)/2},r}(),G6=function(){var r;return"log2"in Math?r=Math.log2:r=function(e){return Math.log(e)*Math.LOG2E},r}();function QY(r,e,t,n,i,a){var o=i-t,s=a-n;if(o!==0||s!==0){var A=((r-t)*o+(e-n)*s)/(o*o+s*s);A>1?(t=i,n=a):A>0&&(t+=o*A,n+=s*A)}return Wc(r,e,t,n)}function Wc(r,e,t,n){var i=t-r,a=n-e;return i*i+a*a}function HY(r){for(var e=r.length,t=0;ti&&(i=o,n=a)}if(i===0)return null;var s=r[n];r[n]=r[t],r[t]=s;for(var A=t+1;A=0;h--){c[h]=r[h][e]/r[h][h];for(var f=h-1;f>=0;f--)r[f][e]-=r[f][h]*c[h]}return c}function zR(r){return r*180/Math.PI}function Cu(r){return r*Math.PI/180}function Bu(r,e){var t=r%e;return t*e<0?t+e:t}function YA(r,e,t){return r+t*(e-r)}function NI(r,e){var t=Math.pow(10,e);return Math.round(r*t)/t}function YR(r,e){return Math.round(NI(r,e))}function $f(r,e){return Math.floor(NI(r,e))}function lu(r,e){return Math.ceil(NI(r,e))}var k6=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,$6=/^([a-z]*)$|^hsla?\(.*\)$/i;function tl(r){return typeof r=="string"?r:K6(r)}function V6(r){var e=document.createElement("div");if(e.style.color=r,e.style.color!==""){document.body.appendChild(e);var t=getComputedStyle(e).color;return document.body.removeChild(e),t}else return""}var j6=function(){var r=1024,e={},t=0;return function(n){var i;if(e.hasOwnProperty(n))i=e[n];else{if(t>=r){var a=0;for(var o in e)a++&3||(delete e[o],--t)}i=GY(n),e[n]=i,++t}return i}}();function Du(r){return Array.isArray(r)?r:j6(r)}function GY(r){var e,t,n,i,a;if($6.exec(r)&&(r=V6(r)),k6.exec(r)){var o=r.length-1,s=void 0;o<=4?s=1:s=2;var A=o===4||o===8;e=parseInt(r.substr(1+0*s,s),16),t=parseInt(r.substr(1+1*s,s),16),n=parseInt(r.substr(1+2*s,s),16),A?i=parseInt(r.substr(1+3*s,s),16):i=255,s==1&&(e=(e<<4)+e,t=(t<<4)+t,n=(n<<4)+n,A&&(i=(i<<4)+i)),a=[e,t,n,i/255]}else r.indexOf("rgba(")==0?(a=r.slice(5,-1).split(",").map(Number),XR(a)):r.indexOf("rgb(")==0?(a=r.slice(4,-1).split(",").map(Number),a.push(1),XR(a)):_e(!1,14);return a}function XR(r){return r[0]=xn(r[0]+.5|0,0,255),r[1]=xn(r[1]+.5|0,0,255),r[2]=xn(r[2]+.5|0,0,255),r[3]=xn(r[3],0,1),r}function K6(r){var e=r[0];e!=(e|0)&&(e=e+.5|0);var t=r[1];t!=(t|0)&&(t=t+.5|0);var n=r[2];n!=(n|0)&&(n=n+.5|0);var i=r[3]===void 0?1:Math.round(r[3]*100)/100;return"rgba("+e+","+t+","+n+","+i+")"}function kY(r){return $6.test(r)&&(r=V6(r)),k6.test(r)||r.indexOf("rgba(")===0||r.indexOf("rgb(")===0}var $Y=function(){function r(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},r.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];!(e++&3)&&!n.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}},r.prototype.get=function(e,t,n){var i=WR(e,t,n);return i in this.cache_?this.cache_[i]:null},r.prototype.set=function(e,t,n,i){var a=WR(e,t,n);this.cache_[a]=i,++this.cacheSize_},r.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},r}();function WR(r,e,t){var n=t?tl(t):"null";return e+":"+r+":"+n}var v_=new $Y,VY=function(){function r(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r}();function jY(r){r.stopPropagation()}var fo=VY,ch={PROPERTYCHANGE:"propertychange"},de=typeof Object.assign=="function"?Object.assign:function(r,e){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),n=1,i=arguments.length;n0:!1},e.prototype.removeEventListener=function(t,n){var i=this.listeners_&&this.listeners_[t];if(i){var a=i.indexOf(n);a!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[a]=lh,++this.pendingRemovals_[t]):(i.splice(a,1),i.length===0&&delete this.listeners_[t]))}},e}(V1),Th=zY,ye={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Pe(r,e,t,n,i){if(n&&n!==r&&(t=t.bind(n)),i){var a=t;t=function(){r.removeEventListener(e,t),a.apply(this,arguments)}}var o={target:r,type:e,listener:t};return r.addEventListener(e,t),o}function lg(r,e,t,n){return Pe(r,e,t,n,!0)}function Rr(r){r&&r.target&&(r.target.removeEventListener(r.type,r.listener),Bh(r))}var YY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xg=function(r){YY(e,r);function e(){var t=r.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return e.prototype.changed=function(){++this.revision_,this.dispatchEvent(ye.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,n){if(Array.isArray(t)){for(var i=t.length,a=new Array(i),o=0;o=r.maxResolution)return!1;var n=e.zoom;return n>r.minZoom&&n<=r.maxZoom}var Sh=JY;function Gd(r,e,t){var n=t!==void 0?r.toFixed(t):""+r,i=n.indexOf(".");return i=i===-1?n.length:i,i>e?n:new Array(1+e-i).join("0")+n}function Y6(r,e){for(var t=(""+r).split("."),n=(""+e).split("."),i=0;io)return 1;if(o>a)return-1}return 0}function X6(r,e){return r[0]+=+e[0],r[1]+=+e[1],r}function tX(r,e){var t=e.getRadius(),n=e.getCenter(),i=n[0],a=n[1],o=r[0],s=r[1],A=o-i,l=s-a;A===0&&l===0&&(A=1);var u=Math.sqrt(A*A+l*l),c=i+t*A/u,h=a+t*l/u;return[c,h]}function DI(r,e){var t=r[0],n=r[1],i=e[0],a=e[1],o=i[0],s=i[1],A=a[0],l=a[1],u=A-o,c=l-s,h=u===0&&c===0?0:(u*(t-o)+c*(n-s))/(u*u+c*c||0),f,p;return h<=0?(f=o,p=s):h>=1?(f=A,p=l):(f=o+h*u,p=s+h*c),[f,p]}function _s(r,e){for(var t=!0,n=r.length-1;n>=0;--n)if(r[n]!=e[n]){t=!1;break}return t}function QI(r,e){var t=Math.cos(e),n=Math.sin(e),i=r[0]*t-r[1]*n,a=r[1]*t+r[0]*n;return r[0]=i,r[1]=a,r}function W6(r,e){return r[0]*=e,r[1]*=e,r}function el(r,e){var t=r[0]-e[0],n=r[1]-e[1];return t*t+n*n}function ZR(r,e){return Math.sqrt(el(r,e))}function eX(r,e){return el(r,DI(r,e))}function HI(r,e){if(e.canWrapX()){var t=Fr(e.getExtent()),n=q6(r,e,t);n&&(r[0]-=n*t)}return r}function q6(r,e,t){var n=e.getExtent(),i=0;if(e.canWrapX()&&(r[0]n[2])){var a=t||Fr(n);i=Math.floor((r[0]-n[0])/a)}return i}var rX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nX=function(r){rX(e,r);function e(t){var n=r.call(this)||this;return n.map_=t,n}return e.prototype.dispatchRenderEvent=function(t,n){Be()},e.prototype.calculateMatrices2D=function(t){var n=t.viewState,i=t.coordinateToPixelTransform,a=t.pixelToCoordinateTransform;$a(i,t.size[0]/2,t.size[1]/2,1/n.resolution,-1/n.resolution,-n.rotation,-n.center[0],-n.center[1]),Kg(a,i)},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o,s,A,l){var u,c=n.viewState;function h(X,z,tt,J){return o.call(s,z,X?tt:null,J)}var f=c.projection,p=HI(t.slice(),f),v=[[0,0]];if(f.canWrapX()&&a){var m=f.getExtent(),g=Fr(m);v.push([-g,0],[g,0])}for(var _=n.layerStatesArray,E=_.length,B=[],L=[],O=0;O=0;--b){var T=_[b],I=T.layer;if(I.hasRenderer()&&g_(T,c)&&A.call(l,I)){var M=I.getRenderer(),x=I.getSource();if(M&&x){var S=x.getWrapX()?p:t,N=h.bind(null,T.managed);L[0]=S[0]+v[O][0],L[1]=S[1]+v[O][1],u=M.forEachFeatureAtCoordinate(L,n,i,N,B)}if(u)return u}}if(B.length!==0){var P=1/B.length;return B.forEach(function(X,z){return X.distanceSq+=z*P}),B.sort(function(X,z){return X.distanceSq-z.distanceSq}),B.some(function(X){return u=X.callback(X.feature,X.layer,X.geometry)}),u}},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){return Be()},e.prototype.hasFeatureAtCoordinate=function(t,n,i,a,o,s){var A=this.forEachFeatureAtCoordinate(t,n,i,a,iA,this,o,s);return A!==void 0},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Be()},e.prototype.scheduleExpireIconCache=function(t){v_.canExpireCache()&&t.postRenderFunctions.push(iX)},e}(V1);function iX(r,e){v_.expire()}var aX=nX,oX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),sX=function(r){oX(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=a,o}return e}(fo),Uv=sX,wm="ol-hidden",AX="ol-selectable",lA="ol-unselectable",JR="ol-unsupported",xh="ol-control",y_="ol-collapsed",lX=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),tM=["style","variant","weight","size","lineHeight","family"],Z6=function(r){var e=r.match(lX);if(!e)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=tM.length;n{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},Wz={name:"MapsOverlay",data(){const r=Gn(IR([-7.5029786,53.4494762])),e=Gn("EPSG:3857"),t=Gn(7),n=Gn(0),i=Gn(10),a=Gn(1),o=Gn("black"),s=Gn("red");return{center:r,projection:e,zoom:t,rotation:n,radius:i,strokeWidth:a,strokeColor:o,fillColor:s,coordinates:[],dbLiveTrainData:[],allDataMap:{},selectedDataMap:{},display:!1}},created(){console.log("jere"),this.getLiveTrainData()},methods:{getLiveTrainData(){const r=kR(DR);window.location.hostname==="127.0.0.1"&&kT(r,"localhost",5001);const e=$R(r,"getLiveTrainData");let t=this.$loading.show({loader:"dots",container:this.$refs.container,canCancel:!1});e().then(n=>{try{this.dbLiveTrainData=n.data;for(var i=0;i{console.log("Test")})}}},F6=r=>(aD("data-v-e1bae6bd"),r=r(),oD(),r),qz={key:0,id:"sidebarDiv"},Zz={id:"sidebarHeader"},Jz=F6(()=>Ki("img",{id:"headerImage",src:I6,alt:"Train Icon"},null,-1)),tY={id:"sidebarDiv"},eY=["onClick"],rY=F6(()=>Ki("img",{src:I6,class:"trainMapIcon",alt:"Train Icon"},null,-1)),nY=[rY];function iY(r,e,t,n,i,a){const o=Lf("ol-view"),s=Lf("ol-source-osm"),A=Lf("ol-tile-layer"),l=Lf("ol-overlay"),u=Lf("ol-map");return cn(),Vn(Ri,null,[Ki("button",{onClick:e[0]||(e[0]=(...c)=>a.getLiveTrainData&&a.getLiveTrainData(...c))},"Fetch Data"),Ki("button",{onClick:e[1]||(e[1]=(...c)=>a.postLiveTrainData&&a.postLiveTrainData(...c))},"Populate Database"),Wr($1,{id:"sidebar",name:"slideLeft"},{default:Nc(()=>[this.display?(cn(),Vn("div",qz,[Ki("div",Zz,[Jz,Ki("div",{onClick:e[2]||(e[2]=c=>this.display=!1),id:"xButton"},"X")]),Ki("div",tY,[Ki("h2",null,"Train Code: "+tu(i.selectedDataMap.TrainCode),1),Ki("p",null,"Date: "+tu(i.selectedDataMap.TrainDate),1),Ki("p",null,"Status: "+tu(i.selectedDataMap.TrainStatus),1),Ki("p",null,"Longitude: "+tu(i.selectedDataMap.TrainLongitude),1),Ki("p",null,"Latitude: "+tu(i.selectedDataMap.TrainLatitude),1),Ki("p",null,"Direction: "+tu(i.selectedDataMap.Direction),1),Ki("p",null,"Public Message: "+tu(i.selectedDataMap.PublicMessage),1)])])):dr("",!0)]),_:1}),Wr(u,{loadTilesWhileAnimating:!0,loadTilesWhileInteracting:!0,style:{height:"1000px"}},{default:Nc(()=>[Wr(o,{ref:"view",center:i.center,rotation:i.rotation,zoom:i.zoom,projection:i.projection},null,8,["center","rotation","zoom","projection"]),Wr(A,null,{default:Nc(()=>[Wr(s)]),_:1}),(cn(!0),Vn(Ri,null,CD(i.coordinates,(c,h)=>(cn(),$g(l,{position:c,positioning:i.center-i.center,offset:[-16,-16]},{default:Nc(()=>[Ki("div",{class:"overlay-content",onClick:f=>a.getSelectedTrain(h)},nY,8,eY)]),_:2},1032,["position","positioning"]))),256))]),_:1})],64)}const aY=Xz(Wz,[["render",iY],["__scopeId","data-v-e1bae6bd"]]),oY={__name:"App",setup(r){return(e,t)=>(cn(),$g(aY))}};var sY=Object.defineProperty,AY=Object.defineProperties,lY=Object.getOwnPropertyDescriptors,VR=Object.getOwnPropertySymbols,uY=Object.prototype.hasOwnProperty,cY=Object.prototype.propertyIsEnumerable,jR=(r,e,t)=>e in r?sY(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Un=(r,e)=>{for(var t in e||(e={}))uY.call(e,t)&&jR(r,t,e[t]);if(VR)for(var t of VR(e))cY.call(e,t)&&jR(r,t,e[t]);return r},Os=(r,e)=>AY(r,lY(e)),hY=function(){function r(){this.disposed=!1}return r.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},r}(),V1=hY;function fY(r,e,t){for(var n,i,a=t||Nu,o=0,s=r.length,A=!1;o>1),i=+a(r[n],e),i<0?o=n+1:(s=n,A=!i);return A?o:~o}function Nu(r,e){return r>e?1:r=0}function j1(r,e,t){var n=r.length;if(r[0]<=e)return 0;if(e<=r[n-1])return n-1;var i=void 0;if(t>0){for(i=1;i0?i-1:i:r[i-1]-e0||t&&o===0)})}function iA(){return!0}function Ch(){return!1}function lh(){}function vY(r){var e=!1,t,n,i;return function(){var a=Array.prototype.slice.call(arguments);return(!e||this!==i||!yl(a,n))&&(e=!0,i=this,n=a,t=r.apply(this,arguments)),t}}function Be(){return function(){throw new Error("Unimplemented abstract method.")}()}var gY=0;function pe(r){return r.ol_uid||(r.ol_uid=String(++gY))}var L6="6.14.1",Pu=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"",yY=Pu.indexOf("firefox")!==-1,mY=Pu.indexOf("safari")!==-1&&Pu.indexOf("chrom")==-1,_Y=mY&&!!(Pu.indexOf("version/15.4")>=0||Pu.match(/cpu (os|iphone os) 15_4 like mac os x/)),wY=Pu.indexOf("webkit")!==-1&&Pu.indexOf("edge")==-1,O6=Pu.indexOf("macintosh")!==-1,uh=typeof devicePixelRatio<"u"?devicePixelRatio:1,K1=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,EY=typeof Image<"u"&&Image.prototype.decode,R6=function(){var r=!1;try{var e=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return r}(),CY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),BY=function(r){CY(e,r);function e(t){var n=this,i="v"+L6.split("-")[0],a="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+t+" for details.";return n=r.call(this,a)||this,n.code=t,n.name="AssertionError",n.message=a,n}return e}(Error),M6=BY;function _e(r,e){if(!r)throw new M6(e)}var II=new Array(6);function oi(){return[1,0,0,1,0,0]}function Nv(r){return jg(r,1,0,0,1,0,0)}function kp(r,e){var t=r[0],n=r[1],i=r[2],a=r[3],o=r[4],s=r[5],A=e[0],l=e[1],u=e[2],c=e[3],h=e[4],f=e[5];return r[0]=t*A+i*l,r[1]=n*A+a*l,r[2]=t*u+i*c,r[3]=n*u+a*c,r[4]=t*h+i*f+o,r[5]=n*h+a*f+s,r}function jg(r,e,t,n,i,a,o){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=a,r[5]=o,r}function TY(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function un(r,e){var t=e[0],n=e[1];return e[0]=r[0]*t+r[2]*n+r[4],e[1]=r[1]*t+r[3]*n+r[5],e}function SY(r,e){var t=Math.cos(e),n=Math.sin(e);return kp(r,jg(II,t,n,-n,t,0,0))}function Pv(r,e,t){return kp(r,jg(II,e,0,0,t,0,0))}function xY(r,e,t){return jg(r,e,0,0,t,0,0)}function bY(r,e,t){return kp(r,jg(II,1,0,0,1,e,t))}function $a(r,e,t,n,i,a,o,s){var A=Math.sin(a),l=Math.cos(a);return r[0]=n*l,r[1]=i*A,r[2]=-n*A,r[3]=i*l,r[4]=o*n*l-s*n*A+e,r[5]=o*i*A+s*i*l+t,r}function Kg(r,e){var t=IY(e);_e(t!==0,32);var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],A=e[5];return r[0]=o/t,r[1]=-i/t,r[2]=-a/t,r[3]=n/t,r[4]=(a*A-o*s)/t,r[5]=-(n*A-i*s)/t,r}function IY(r){return r[0]*r[3]-r[1]*r[2]}var KR;function FI(r){var e="matrix("+r.join(", ")+")";if(K1)return e;var t=KR||(KR=document.createElement("div"));return t.style.transform=e,t.style.transform}var cv={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},zi={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Yi(r){for(var e=_i(),t=0,n=r.length;ti&&(A=A|zi.RIGHT),sa&&(A=A|zi.ABOVE),A===zi.UNKNOWN&&(A=zi.INTERSECTING),A}function _i(){return[1/0,1/0,-1/0,-1/0]}function uo(r,e,t,n,i){return i?(i[0]=r,i[1]=e,i[2]=t,i[3]=n,i):[r,e,t,n]}function Wu(r){return uo(1/0,1/0,-1/0,-1/0,r)}function zc(r,e){var t=r[0],n=r[1];return uo(t,n,t,n,e)}function LY(r,e){var t=Wu(e);return OI(t,r)}function Y1(r,e,t,n,i){var a=Wu(i);return RI(a,r,e,t,n)}function OY(r,e){var t=Wu(e);return N6(t,r)}function AA(r,e){return r[0]==e[0]&&r[2]==e[2]&&r[1]==e[1]&&r[3]==e[3]}function RY(r,e,t){return Math.abs(r[0]-e[0])r[2]&&(r[2]=e[2]),e[1]r[3]&&(r[3]=e[3]),r}function Yc(r,e){e[0]r[2]&&(r[2]=e[0]),e[1]r[3]&&(r[3]=e[1])}function OI(r,e){for(var t=0,n=e.length;te[0]?n[0]=r[0]:n[0]=e[0],r[1]>e[1]?n[1]=r[1]:n[1]=e[1],r[2]=e[0]&&r[1]<=e[3]&&r[3]>=e[1]}function Vp(r){return r[2]=o&&v<=A),!n&&a&zi.RIGHT&&!(i&zi.RIGHT)&&(m=f-(h-A)*p,n=m>=s&&m<=l),!n&&a&zi.BELOW&&!(i&zi.BELOW)&&(v=h-(f-s)/p,n=v>=o&&v<=A),!n&&a&zi.LEFT&&!(i&zi.LEFT)&&(m=f-(h-o)*p,n=m>=s&&m<=l)}return n}function MI(r,e,t,n){var i=[];if(n>1)for(var a=r[2]-r[0],o=r[3]-r[1],s=0;s=t[2])){var i=Fr(t),a=Math.floor((n[0]-t[0])/i),o=a*i;r[0]-=o,r[2]-=o}return r}var DY=Object.freeze(Object.defineProperty({__proto__:null,boundingExtent:Yi,buffer:Va,clone:LI,closestSquaredDistanceXY:Xu,containsCoordinate:xs,containsExtent:Fo,containsXY:z1,coordinateRelationship:d_,createEmpty:_i,createOrUpdate:uo,createOrUpdateEmpty:Wu,createOrUpdateFromCoordinate:zc,createOrUpdateFromCoordinates:LY,createOrUpdateFromFlatCoordinates:Y1,createOrUpdateFromRings:OY,equals:AA,approximatelyEquals:RY,extend:Uu,extendCoordinate:Yc,extendCoordinates:OI,extendFlatCoordinates:RI,extendRings:N6,extendXY:P6,forEachCorner:X1,getArea:Ag,getBottomLeft:zg,getBottomRight:$p,getCenter:Sa,getCorner:U6,getEnlargedArea:MY,getForViewAndSize:Xc,getHeight:Ai,getIntersectionArea:NY,getIntersection:Jo,getMargin:PY,getSize:UY,getTopLeft:Rs,getTopRight:Yg,getWidth:Fr,intersects:Mn,isEmpty:Vp,returnOrUpdate:D6,scaleFromCenter:Q6,intersectsSegment:H6,applyTransform:MI,wrapX:G6},Symbol.toStringTag,{value:"Module"}));function xn(r,e,t){return Math.min(Math.max(r,e),t)}var QY=function(){var r;return"cosh"in Math?r=Math.cosh:r=function(e){var t=Math.exp(e);return(t+1/t)/2},r}(),k6=function(){var r;return"log2"in Math?r=Math.log2:r=function(e){return Math.log(e)*Math.LOG2E},r}();function HY(r,e,t,n,i,a){var o=i-t,s=a-n;if(o!==0||s!==0){var A=((r-t)*o+(e-n)*s)/(o*o+s*s);A>1?(t=i,n=a):A>0&&(t+=o*A,n+=s*A)}return Wc(r,e,t,n)}function Wc(r,e,t,n){var i=t-r,a=n-e;return i*i+a*a}function GY(r){for(var e=r.length,t=0;ti&&(i=o,n=a)}if(i===0)return null;var s=r[n];r[n]=r[t],r[t]=s;for(var A=t+1;A=0;h--){c[h]=r[h][e]/r[h][h];for(var f=h-1;f>=0;f--)r[f][e]-=r[f][h]*c[h]}return c}function zR(r){return r*180/Math.PI}function Cu(r){return r*Math.PI/180}function Bu(r,e){var t=r%e;return t*e<0?t+e:t}function YA(r,e,t){return r+t*(e-r)}function NI(r,e){var t=Math.pow(10,e);return Math.round(r*t)/t}function YR(r,e){return Math.round(NI(r,e))}function $f(r,e){return Math.floor(NI(r,e))}function lu(r,e){return Math.ceil(NI(r,e))}var $6=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,V6=/^([a-z]*)$|^hsla?\(.*\)$/i;function tl(r){return typeof r=="string"?r:z6(r)}function j6(r){var e=document.createElement("div");if(e.style.color=r,e.style.color!==""){document.body.appendChild(e);var t=getComputedStyle(e).color;return document.body.removeChild(e),t}else return""}var K6=function(){var r=1024,e={},t=0;return function(n){var i;if(e.hasOwnProperty(n))i=e[n];else{if(t>=r){var a=0;for(var o in e)a++&3||(delete e[o],--t)}i=kY(n),e[n]=i,++t}return i}}();function Du(r){return Array.isArray(r)?r:K6(r)}function kY(r){var e,t,n,i,a;if(V6.exec(r)&&(r=j6(r)),$6.exec(r)){var o=r.length-1,s=void 0;o<=4?s=1:s=2;var A=o===4||o===8;e=parseInt(r.substr(1+0*s,s),16),t=parseInt(r.substr(1+1*s,s),16),n=parseInt(r.substr(1+2*s,s),16),A?i=parseInt(r.substr(1+3*s,s),16):i=255,s==1&&(e=(e<<4)+e,t=(t<<4)+t,n=(n<<4)+n,A&&(i=(i<<4)+i)),a=[e,t,n,i/255]}else r.indexOf("rgba(")==0?(a=r.slice(5,-1).split(",").map(Number),XR(a)):r.indexOf("rgb(")==0?(a=r.slice(4,-1).split(",").map(Number),a.push(1),XR(a)):_e(!1,14);return a}function XR(r){return r[0]=xn(r[0]+.5|0,0,255),r[1]=xn(r[1]+.5|0,0,255),r[2]=xn(r[2]+.5|0,0,255),r[3]=xn(r[3],0,1),r}function z6(r){var e=r[0];e!=(e|0)&&(e=e+.5|0);var t=r[1];t!=(t|0)&&(t=t+.5|0);var n=r[2];n!=(n|0)&&(n=n+.5|0);var i=r[3]===void 0?1:Math.round(r[3]*100)/100;return"rgba("+e+","+t+","+n+","+i+")"}function $Y(r){return V6.test(r)&&(r=j6(r)),$6.test(r)||r.indexOf("rgba(")===0||r.indexOf("rgb(")===0}var VY=function(){function r(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return r.prototype.clear=function(){this.cache_={},this.cacheSize_=0},r.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},r.prototype.expire=function(){if(this.canExpireCache()){var e=0;for(var t in this.cache_){var n=this.cache_[t];!(e++&3)&&!n.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}},r.prototype.get=function(e,t,n){var i=WR(e,t,n);return i in this.cache_?this.cache_[i]:null},r.prototype.set=function(e,t,n,i){var a=WR(e,t,n);this.cache_[a]=i,++this.cacheSize_},r.prototype.setSize=function(e){this.maxCacheSize_=e,this.expire()},r}();function WR(r,e,t){var n=t?tl(t):"null";return e+":"+r+":"+n}var v_=new VY,jY=function(){function r(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}return r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.stopPropagation=function(){this.propagationStopped=!0},r}();function KY(r){r.stopPropagation()}var fo=jY,ch={PROPERTYCHANGE:"propertychange"},de=typeof Object.assign=="function"?Object.assign:function(r,e){if(r==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(r),n=1,i=arguments.length;n0:!1},e.prototype.removeEventListener=function(t,n){var i=this.listeners_&&this.listeners_[t];if(i){var a=i.indexOf(n);a!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[a]=lh,++this.pendingRemovals_[t]):(i.splice(a,1),i.length===0&&delete this.listeners_[t]))}},e}(V1),Th=YY,ye={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Pe(r,e,t,n,i){if(n&&n!==r&&(t=t.bind(n)),i){var a=t;t=function(){r.removeEventListener(e,t),a.apply(this,arguments)}}var o={target:r,type:e,listener:t};return r.addEventListener(e,t),o}function lg(r,e,t,n){return Pe(r,e,t,n,!0)}function Rr(r){r&&r.target&&(r.target.removeEventListener(r.type,r.listener),Bh(r))}var XY=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xg=function(r){XY(e,r);function e(){var t=r.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return e.prototype.changed=function(){++this.revision_,this.dispatchEvent(ye.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.onInternal=function(t,n){if(Array.isArray(t)){for(var i=t.length,a=new Array(i),o=0;o=r.maxResolution)return!1;var n=e.zoom;return n>r.minZoom&&n<=r.maxZoom}var Sh=tX;function Gd(r,e,t){var n=t!==void 0?r.toFixed(t):""+r,i=n.indexOf(".");return i=i===-1?n.length:i,i>e?n:new Array(1+e-i).join("0")+n}function X6(r,e){for(var t=(""+r).split("."),n=(""+e).split("."),i=0;io)return 1;if(o>a)return-1}return 0}function W6(r,e){return r[0]+=+e[0],r[1]+=+e[1],r}function eX(r,e){var t=e.getRadius(),n=e.getCenter(),i=n[0],a=n[1],o=r[0],s=r[1],A=o-i,l=s-a;A===0&&l===0&&(A=1);var u=Math.sqrt(A*A+l*l),c=i+t*A/u,h=a+t*l/u;return[c,h]}function DI(r,e){var t=r[0],n=r[1],i=e[0],a=e[1],o=i[0],s=i[1],A=a[0],l=a[1],u=A-o,c=l-s,h=u===0&&c===0?0:(u*(t-o)+c*(n-s))/(u*u+c*c||0),f,p;return h<=0?(f=o,p=s):h>=1?(f=A,p=l):(f=o+h*u,p=s+h*c),[f,p]}function _s(r,e){for(var t=!0,n=r.length-1;n>=0;--n)if(r[n]!=e[n]){t=!1;break}return t}function QI(r,e){var t=Math.cos(e),n=Math.sin(e),i=r[0]*t-r[1]*n,a=r[1]*t+r[0]*n;return r[0]=i,r[1]=a,r}function q6(r,e){return r[0]*=e,r[1]*=e,r}function el(r,e){var t=r[0]-e[0],n=r[1]-e[1];return t*t+n*n}function ZR(r,e){return Math.sqrt(el(r,e))}function rX(r,e){return el(r,DI(r,e))}function HI(r,e){if(e.canWrapX()){var t=Fr(e.getExtent()),n=Z6(r,e,t);n&&(r[0]-=n*t)}return r}function Z6(r,e,t){var n=e.getExtent(),i=0;if(e.canWrapX()&&(r[0]n[2])){var a=t||Fr(n);i=Math.floor((r[0]-n[0])/a)}return i}var nX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),iX=function(r){nX(e,r);function e(t){var n=r.call(this)||this;return n.map_=t,n}return e.prototype.dispatchRenderEvent=function(t,n){Be()},e.prototype.calculateMatrices2D=function(t){var n=t.viewState,i=t.coordinateToPixelTransform,a=t.pixelToCoordinateTransform;$a(i,t.size[0]/2,t.size[1]/2,1/n.resolution,-1/n.resolution,-n.rotation,-n.center[0],-n.center[1]),Kg(a,i)},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o,s,A,l){var u,c=n.viewState;function h(X,z,tt,J){return o.call(s,z,X?tt:null,J)}var f=c.projection,p=HI(t.slice(),f),v=[[0,0]];if(f.canWrapX()&&a){var m=f.getExtent(),g=Fr(m);v.push([-g,0],[g,0])}for(var _=n.layerStatesArray,E=_.length,B=[],L=[],O=0;O=0;--b){var T=_[b],I=T.layer;if(I.hasRenderer()&&g_(T,c)&&A.call(l,I)){var M=I.getRenderer(),x=I.getSource();if(M&&x){var S=x.getWrapX()?p:t,N=h.bind(null,T.managed);L[0]=S[0]+v[O][0],L[1]=S[1]+v[O][1],u=M.forEachFeatureAtCoordinate(L,n,i,N,B)}if(u)return u}}if(B.length!==0){var P=1/B.length;return B.forEach(function(X,z){return X.distanceSq+=z*P}),B.sort(function(X,z){return X.distanceSq-z.distanceSq}),B.some(function(X){return u=X.callback(X.feature,X.layer,X.geometry)}),u}},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){return Be()},e.prototype.hasFeatureAtCoordinate=function(t,n,i,a,o,s){var A=this.forEachFeatureAtCoordinate(t,n,i,a,iA,this,o,s);return A!==void 0},e.prototype.getMap=function(){return this.map_},e.prototype.renderFrame=function(t){Be()},e.prototype.scheduleExpireIconCache=function(t){v_.canExpireCache()&&t.postRenderFunctions.push(aX)},e}(V1);function aX(r,e){v_.expire()}var oX=iX,sX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),AX=function(r){sX(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.inversePixelTransform=n,o.frameState=i,o.context=a,o}return e}(fo),Uv=AX,wm="ol-hidden",lX="ol-selectable",lA="ol-unselectable",JR="ol-unsupported",xh="ol-control",y_="ol-collapsed",uX=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),tM=["style","variant","weight","size","lineHeight","family"],J6=function(r){var e=r.match(uX);if(!e)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},n=0,i=tM.length;n=0;--s)a[s].renderDeclutter(t);hX(this.element_,this.children_),this.dispatchRenderEvent(ao.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){for(var s=n.viewState,A=n.layerStatesArray,l=A.length,u=l-1;u>=0;--u){var c=A[u],h=c.layer;if(h.hasRenderer()&&g_(c,s)&&o(h)){var f=h.getRenderer(),p=f.getDataAtPixel(t,n,i);if(p){var v=a(h,p);if(v)return v}}}},e}(aX),nQ=_X,kn={ADD:"add",REMOVE:"remove"},iQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),rM={LENGTH:"length"},Em=function(r){iQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.element=n,a.index=i,a}return e}(fo),wX=function(r){iQ(e,r);function e(t,n){var i=r.call(this)||this;i.on,i.once,i.un;var a=n||{};if(i.unique_=!!a.unique,i.array_=t||[],i.unique_)for(var o=0,s=i.array_.length;o0;)this.pop()},e.prototype.extend=function(t){for(var n=0,i=t.length;nthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Rr(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ye.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Rr(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Rr),this.dragListenerKeys_.length=0,this.element_=null,r.prototype.disposeInternal.call(this)},e}(Th),IX=bX,Ks={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Jn={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},C_=1/0,FX=function(){function r(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return r.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Bh(this.queuedElements_)},r.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];e.length==1?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},r.prototype.enqueue=function(e){_e(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=C_?(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1},r.prototype.getCount=function(){return this.elements_.length},r.prototype.getLeftChildIndex_=function(e){return e*2+1},r.prototype.getRightChildIndex_=function(e){return e*2+2},r.prototype.getParentIndex_=function(e){return e-1>>1},r.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},r.prototype.isEmpty=function(){return this.elements_.length===0},r.prototype.isKeyQueued=function(e){return e in this.queuedElements_},r.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},r.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,i=t.length,a=t[e],o=n[e],s=e;e>1;){var A=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=le;){var s=this.getParentIndex_(t);if(i[s]>o)n[t]=n[s],i[t]=i[s],t=s;else break}n[t]=a,i[t]=o},r.prototype.reprioritize=function(){var e=this.priorityFunction_,t=this.elements_,n=this.priorities_,i=0,a=t.length,o,s,A;for(s=0;s0;)o=this.dequeue()[0],s=o.getKey(),a=o.getState(),a===ge.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++i,o.load())},e}(LX),MX=RX;function NX(r,e,t,n,i){if(!r||!(t in r.wantedTiles)||!r.wantedTiles[t][e.getKey()])return C_;var a=r.viewState.center,o=n[0]-a[0],s=n[1]-a[1];return 65536*Math.log(i)+Math.sqrt(o*o+s*s)/i}var st={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},jp={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},bs={};bs[jp.RADIANS]=6370997/(2*Math.PI);bs[jp.DEGREES]=2*Math.PI*6370997/360;bs[jp.FEET]=.3048;bs[jp.METERS]=1;bs[jp.USFEET]=1200/3937;var Qa=jp,gn={ANIMATING:0,INTERACTING:1},So={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},PX=42,GI=256,UX=function(){function r(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return r.prototype.canWrapX=function(){return this.canWrapX_},r.prototype.getCode=function(){return this.code_},r.prototype.getExtent=function(){return this.extent_},r.prototype.getUnits=function(){return this.units_},r.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||bs[this.units_]},r.prototype.getWorldExtent=function(){return this.worldExtent_},r.prototype.getAxisOrientation=function(){return this.axisOrientation_},r.prototype.isGlobal=function(){return this.global_},r.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)},r.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},r.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},r.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)},r.prototype.setWorldExtent=function(e){this.worldExtent_=e},r.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},r.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},r}(),ml=UX,DX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qg=6378137,Vf=Math.PI*qg,QX=[-Vf,-Vf,Vf,Vf],HX=[-180,-85,180,85],Cm=qg*Math.log(Math.tan(Math.PI/2)),cf=function(r){DX(e,r);function e(t){return r.call(this,{code:t,units:Qa.METERS,extent:QX,global:!0,worldExtent:HX,getPointResolution:function(n,i){return n/DY(i[1]/qg)}})||this}return e}(ml),nM=[new cf("EPSG:3857"),new cf("EPSG:102100"),new cf("EPSG:102113"),new cf("EPSG:900913"),new cf("http://www.opengis.net/def/crs/EPSG/0/3857"),new cf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function GX(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;oCm?s=Cm:s<-Cm&&(s=-Cm),a[o+1]=s}return a}function kX(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;o=2;--l)o[s+l]=e[s+l]}return o}}function ZX(r,e,t,n){var i=Oe(r),a=Oe(e);Sp(i,a,oM(t)),Sp(a,i,oM(n))}function Ws(r,e){if(r===e)return!0;var t=r.getUnits()===e.getUnits();if(r.getCode()===e.getCode())return t;var n=fh(r,e);return n===kI&&t}function fh(r,e){var t=r.getCode(),n=e.getCode(),i=oQ(t,n);return i||(i=W1),i}function vg(r,e){var t=Oe(r),n=Oe(e);return fh(t,n)}function Qu(r,e,t){var n=vg(e,t);return n(r,void 0,r.length)}function S_(r,e,t,n){var i=vg(e,t);return MI(r,i,void 0,n)}var JX=null;function ph(){return JX}function xp(r,e){return r}function Tn(r,e){return KT&&!_s(r,[0,0])&&r[0]>=-180&&r[0]<=180&&r[1]>=-90&&r[1]<=90&&(KT=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),r}function q1(r,e){return r}function Lo(r,e){return r}function tW(r,e){return r}function sM(r,e,t){return function(n){var i=n[0],a=n[1],o,s;if(r.canWrapX()){var A=r.getExtent(),l=Fr(A);s=q6(n,r,l),s&&(i=i-s*l),i=xn(i,A[0],A[2]),a=xn(a,A[1],A[3]),o=t([i,a])}else o=t(n);return s&&e.canWrapX()&&(o[0]+=s*Fr(e.getExtent())),o}}function eW(){zT(nM),zT(aM),qX(aM,nM,GX,kX)}eW();function AM(r,e,t){return function(n,i,a,o,s){if(n){if(!i&&!e)return n;var A=e?0:a[0]*i,l=e?0:a[1]*i,u=s?s[0]:0,c=s?s[1]:0,h=r[0]+A/2+u,f=r[2]-A/2+u,p=r[1]+l/2+c,v=r[3]-l/2+c;h>f&&(h=(f+h)/2,f=h),p>v&&(p=(v+p)/2,v=p);var m=xn(n[0],h,f),g=xn(n[1],p,v);if(o&&t&&i){var _=30*i;m+=-_*Math.log(1+Math.max(0,h-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-f)/_),g+=-_*Math.log(1+Math.max(0,p-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-v)/_)}return[m,g]}}}function rW(r){return r}function VI(r,e,t,n){var i=Fr(e)/t[0],a=Ai(e)/t[1];return n?Math.min(r,Math.max(i,a)):Math.min(r,Math.min(i,a))}function jI(r,e,t){var n=Math.min(r,e),i=50;return n*=Math.log(1+i*Math.max(0,r/e-1))/i+1,t&&(n=Math.max(n,t),n/=Math.log(1+i*Math.max(0,t/r-1))/i+1),xn(n,t/2,e*2)}function nW(r,e,t,n){return function(i,a,o,s){if(i!==void 0){var A=r[0],l=r[r.length-1],u=t?VI(A,t,o,n):A;if(s){var c=e!==void 0?e:!0;return c?jI(i,u,l):xn(i,l,u)}var h=Math.min(u,i),f=Math.floor(j1(r,h,a));return r[f]>u&&f1)c=t;else if(h>0){for(var f=0;fi&&(i=l),a=s,o=A}return i}function qI(r,e,t,n,i){for(var a=0,o=t.length;a0;){for(var c=l.pop(),h=l.pop(),f=0,p=r[h],v=r[h+1],m=r[c],g=r[c+1],_=h+n;_f&&(u=_,f=L)}f>i&&(A[(u-e)/n]=1,h+n0&&v>f)&&(p<0&&m0&&m>p)){l=c,u=h;continue}a[o++]=l,a[o++]=u,s=l,A=u,l=c,u=h}}return a[o++]=l,a[o++]=u,o}function cQ(r,e,t,n,i,a,o,s){for(var A=0,l=t.length;Aa&&(l-s)*(a-A)-(i-s)*(u-A)>0&&o++:u<=a&&(l-s)*(a-A)-(i-s)*(u-A)<0&&o--,s=l,A=u}return o!==0}function rF(r,e,t,n,i,a){if(t.length===0||!Dc(r,e,t[0],n,i,a))return!1;for(var o=1,s=t.length;oB&&(l=(u+c)/2,rF(r,e,t,n,l,p)&&(E=l,B=L)),u=c}return isNaN(E)&&(E=i[a]),o?(o.push(E,p,B),o):[E,p,B]}function pQ(r,e,t,n,i){for(var a=[],o=0,s=t.length;o=i[0]&&a[2]<=i[2]||a[1]>=i[1]&&a[3]<=i[3]?!0:dQ(r,e,t,n,function(o,s){return Q6(i,o,s)}):!1}function IW(r,e,t,n,i){for(var a=0,o=t.length;a0}function gQ(r,e,t,n,i){for(var a=i!==void 0?i:!1,o=0,s=t.length;o1&&typeof arguments[n-1]=="function"&&(i=arguments[n-1],--n);for(var a=0;a0},e.prototype.getInteracting=function(){return this.hints_[gn.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(gn.ANIMATING,-this.hints_[gn.ANIMATING]);for(var t,n=0,i=this.animations_.length;n=0;--i){for(var a=this.animations_[i],o=!0,s=0,A=a.length;s0?u/l.duration:1;c>=1?(l.complete=!0,c=1):o=!1;var h=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],p=l.sourceCenter[1],v=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;var g=f+h*(v-f),_=p+h*(m-p);this.targetCenter_=[g,_]}if(l.sourceResolution&&l.targetResolution){var E=h===1?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var B=this.getViewportSize_(this.getRotation()),L=this.constraints_.resolution(E,0,B,!0);this.targetCenter_=this.calculateCenterZoom(L,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=E,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){var O=h===1?Bu(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var b=this.constraints_.rotation(O,!0);this.targetCenter_=this.calculateCenterRotate(b,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=O}if(this.applyTargetState_(!0),n=!0,!l.complete)break}}if(o){this.animations_[i]=null,this.setHint(gn.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var T=a[0].callback;T&&Bm(T,!0)}}this.animations_=this.animations_.filter(Boolean),n&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,n){var i,a=this.getCenterInternal();return a!==void 0&&(i=[a[0]-n[0],a[1]-n[1]],QI(i,t-this.getRotation()),X6(i,n)),i},e.prototype.calculateCenterZoom=function(t,n){var i,a=this.getCenterInternal(),o=this.getResolution();if(a!==void 0&&o!==void 0){var s=n[0]-t*(n[0]-a[0])/o,A=n[1]-t*(n[1]-a[1])/o;i=[s,A]}return i},e.prototype.getViewportSize_=function(t){var n=this.viewportSize_;if(t){var i=n[0],a=n[1];return[Math.abs(i*Math.cos(t))+Math.abs(a*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(a*Math.cos(t))]}else return n},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&xp(t,this.getProjection())},e.prototype.getCenterInternal=function(){return this.get(So.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var n=this.calculateExtentInternal(t);return q1(n,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var n=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();_e(i,1);var a=this.getResolution();_e(a!==void 0,2);var o=this.getRotation();return _e(o!==void 0,3),Xc(i,a,o,n)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(So.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,n){return this.getResolutionForExtentInternal(Lo(t,this.getProjection()),n)},e.prototype.getResolutionForExtentInternal=function(t,n){var i=n||this.getViewportSizeMinusPadding_(),a=Fr(t)/i[0],o=Ai(t)/i[1];return Math.max(a,o)},e.prototype.getResolutionForValueFunction=function(t){var n=t||2,i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/Math.log(n);return function(s){var A=i/Math.pow(n,s*o);return A}},e.prototype.getRotation=function(){return this.get(So.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var n=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/n;return function(s){var A=Math.log(i/s)/n/o;return A}},e.prototype.getViewportSizeMinusPadding_=function(t){var n=this.getViewportSize_(t),i=this.padding_;return i&&(n=[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]),n},e.prototype.getState=function(){var t=this.getProjection(),n=this.getResolution(),i=this.getRotation(),a=this.getCenterInternal(),o=this.padding_;if(o){var s=this.getViewportSizeMinusPadding_();a=hC(a,this.getViewportSize_(),[s[0]/2+o[3],s[1]/2+o[0]],n,i)}return{center:a.slice(0),projection:t!==void 0?t:null,resolution:n,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,n=this.getResolution();return n!==void 0&&(t=this.getZoomForResolution(n)),t},e.prototype.getZoomForResolution=function(t){var n=this.minZoom_||0,i,a;if(this.resolutions_){var o=j1(this.resolutions_,t,1);n=o,i=this.resolutions_[o],o==this.resolutions_.length-1?a=2:a=i/this.resolutions_[o+1]}else i=this.maxResolution_,a=this.zoomFactor_;return n+Math.log(i/t)/Math.log(a)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var n=xn(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(i,xn(t-n,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,n){var i;if(_e(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){_e(!Vp(t),25);var a=Lo(t,this.getProjection());i=Hu(a)}else if(t.getType()===st.CIRCLE){var a=Lo(t.getExtent(),this.getProjection());i=Hu(a),i.rotate(this.getRotation(),Sa(a))}else{var o=ph();o?i=t.clone().transform(o,this.getProjection()):i=t}this.fitInternal(i,n)},e.prototype.rotatedExtentForGeometry=function(t){for(var n=this.getRotation(),i=Math.cos(n),a=Math.sin(-n),o=t.getFlatCoordinates(),s=t.getStride(),A=1/0,l=1/0,u=-1/0,c=-1/0,h=0,f=o.length;h0&&r[1]>0}function mQ(r,e,t){return t===void 0&&(t=[0,0]),t[0]=r[0]*e+.5|0,t[1]=r[1]*e+.5|0,t}function Pi(r,e){return Array.isArray(r)?r:(e===void 0?e=[r,r]:(e[0]=r,e[1]=r),e)}var VW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function _Q(r){if(r instanceof Sh){r.setMapInternal(null);return}r instanceof Wg&&r.getLayers().forEach(_Q)}function wQ(r,e){if(r instanceof Sh){r.setMapInternal(e);return}if(r instanceof Wg)for(var t=r.getLayers().getArray(),n=0,i=t.length;n=0;l--){var u=A[l];if(!(u.getMap()!==this||!u.getActive()||!this.getTargetElement())){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,n=this.tileQueue_;if(!n.isEmpty()){var i=this.maxTilesLoading_,a=i;if(t){var o=t.viewHints;if(o[gn.ANIMATING]||o[gn.INTERACTING]){var s=Date.now()-t.time>8;i=s?0:8,a=s?0:2}}n.getTilesLoading()0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!yl(n,this.renderedAttributions_)){tQ(this.ulElement_);for(var a=0,o=n.length;a0&&i%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:ts}):n.setRotation(0))}},e.prototype.render=function(t){var n=t.frameState;if(n){var i=n.viewState.rotation;if(i!=this.rotation_){var a="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(wm);!o&&i===0?this.element.classList.add(wm):o&&i!==0&&this.element.classList.remove(wm)}this.label_.style.transform=a}this.rotation_=i}},e}(_r),BQ=JW,tq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),eq=function(r){tq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this;var a=i.className!==void 0?i.className:"ol-zoom",o=i.delta!==void 0?i.delta:1,s=i.zoomInClassName!==void 0?i.zoomInClassName:a+"-in",A=i.zoomOutClassName!==void 0?i.zoomOutClassName:a+"-out",l=i.zoomInLabel!==void 0?i.zoomInLabel:"+",u=i.zoomOutLabel!==void 0?i.zoomOutLabel:"–",c=i.zoomInTipLabel!==void 0?i.zoomInTipLabel:"Zoom in",h=i.zoomOutTipLabel!==void 0?i.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=c,f.appendChild(typeof l=="string"?document.createTextNode(l):l),f.addEventListener(ye.CLICK,n.handleClick_.bind(n,o),!1);var p=document.createElement("button");p.className=A,p.setAttribute("type","button"),p.title=h,p.appendChild(typeof u=="string"?document.createTextNode(u):u),p.addEventListener(ye.CLICK,n.handleClick_.bind(n,-o),!1);var v=a+" "+lA+" "+xh,m=n.element;return m.className=v,m.appendChild(f),m.appendChild(p),n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleClick_=function(t,n){n.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var n=this.getMap(),i=n.getView();if(i){var a=i.getZoom();if(a!==void 0){var o=i.getConstrainedZoom(a+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:o,duration:this.duration_,easing:ts})):i.setZoom(o)}}},e}(_r),TQ=eq,rq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),vM=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],gM={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},nq=function(r){rq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.on,n.once,n.un,n.keys_=i.keys!==void 0?i.keys:!1,n.source_=i.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=i.className!==void 0?i.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=i.activeClassName!==void 0?i.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=i.inactiveClassName!==void 0?i.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var a=i.label!==void 0?i.label:"⤢";n.labelNode_=typeof a=="string"?document.createTextNode(a):a;var o=i.labelActive!==void 0?i.labelActive:"×";n.labelActiveNode_=typeof o=="string"?document.createTextNode(o):o;var s=i.tipLabel?i.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=s,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(ye.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(lA," ").concat(xh),n.element.appendChild(n.button_),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var n=t.getOwnerDocument();if(yM(n))if(mM(n))aq(n);else{var i=void 0;this.source_?i=typeof this.source_=="string"?n.getElementById(this.source_):this.source_:i=t.getTargetElement(),this.keys_?iq(i):SQ(i)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var n=this.isInFullscreen_;this.isInFullscreen_=mM(t.getOwnerDocument()),n!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Bp(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(gM.ENTERFULLSCREEN)):(Bp(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(gM.LEAVEFULLSCREEN)),t.updateSize())}},e.prototype.setClassName_=function(t,n){var i,a,o,s;n?((i=t.classList).remove.apply(i,this.inactiveClassName_),(a=t.classList).add.apply(a,this.activeClassName_)):((o=t.classList).remove.apply(o,this.activeClassName_),(s=t.classList).add.apply(s,this.inactiveClassName_))},e.prototype.setMap=function(t){var n=this.getMap();n&&n.removeChangeListener(Jn.TARGET,this.boundHandleMapTargetChange_),r.prototype.setMap.call(this,t),this.handleMapTargetChange_(),t&&t.addChangeListener(Jn.TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,n=0,i=t.length;np*pC||f>v*pC?this.resetExtent_():Fo(l,o)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getSize(),a=t.getView(),o=a.calculateExtentInternal(i),s=n.getView(),A=Math.log(pC/Tm)/Math.LN2,l=1/(Math.pow(2,A/2)*Tm);D6(o,l),s.fitInternal(Hu(o))},e.prototype.recenter_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getView(),a=n.getView();a.setCenterInternal(i.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),n=this.ovmap_;if(!(!t.isRendered()||!n.isRendered())){var i=t.getSize(),a=t.getView(),o=n.getView(),s=this.rotateWithView_?0:-a.getRotation(),A=this.boxOverlay_,l=this.boxOverlay_.getElement(),u=a.getCenterInternal(),c=a.getResolution(),h=o.getResolution(),f=i[0]*c/h,p=i[1]*c/h;if(A.setPosition(u),l){l.style.width=f+"px",l.style.height=p+"px";var v="rotate("+s+"rad)";l.style.transform=v}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=lg(this.ovmap_,Ks.POSTRENDER,function(t){delete this.ovmapPostrenderKey_,this.updateBox_()},this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(y_),this.collapsed_?Bp(this.collapseLabel_,this.label_):Bp(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered()){this.viewExtent_=void 0,t.render();return}t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(_r),pq=fq,dq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dC="units",vc={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},vq=[1,2,5],vC=25.4/.28,gq=function(r){dq(e,r);function e(t){var n=this,i=t||{},a=i.className!==void 0?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return n=r.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=a+"-inner",n.element.className=a+" "+lA,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=i.minWidth!==void 0?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(dC,n.handleUnitsChanged_),n.setUnits(i.units||vc.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n.dpi_=i.dpi||void 0,n}return e.prototype.getUnits=function(){return this.get(dC)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(dC,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}var n=t.center,i=t.projection,a=this.getUnits(),o=a==vc.DEGREES?Qa.DEGREES:Qa.METERS,s=T_(i,t.resolution,n,o),A=this.minWidth_*(this.dpi_||vC)/vC,l=A*s,u="";if(a==vc.DEGREES){var c=bs[Qa.DEGREES];l*=c,l=A)break;++h}var g;this.scaleBar_?g=this.createScaleBar(p,f,u):g=f.toFixed(v<0?-v:0)+" "+u,this.renderedHTML_!=g&&(this.innerElement_.innerHTML=g,this.renderedHTML_=g),this.renderedWidth_!=p&&(this.innerElement_.style.width=p+"px",this.renderedWidth_=p),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)},e.prototype.createScaleBar=function(t,n,i){for(var a="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],s=t/this.scaleBarSteps_,A="#ffffff",l=0;l
'+this.createMarker("relative",l)+(l%2===0||this.scaleBarSteps_===2?this.createStepText(l,t,!1,n,i):"")+""),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,n,i)),A==="#ffffff"?A="#000000":A="#ffffff";var u;this.scaleBarText_?u='
'+a+"
":u="";var c='
'+u+o.join("")+"
";return c},e.prototype.createMarker=function(t,n){var i=t==="absolute"?3:-10;return'
'},e.prototype.createStepText=function(t,n,i,a,o){var s=t===0?0:Math.round(a/this.scaleBarSteps_*t*100)/100,A=s+(t===0?"":" "+o),l=t===0?-3:n/this.scaleBarSteps_*-1,u=t===0?0:n/this.scaleBarSteps_*2;return'
'+A+"
"},e.prototype.getScaleForResolution=function(){var t=T_(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,Qa.METERS),n=this.dpi_||vC,i=1e3/25.4;return parseFloat(t.toString())*i*n},e.prototype.render=function(t){var n=t.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()},e}(_r),yq=gq,mq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kd={VERTICAL:0,HORIZONTAL:1},_q=function(r){mq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),render:i.render})||this,n.dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=kd.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=i.duration!==void 0?i.duration:200;var a=i.className!==void 0?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=a+"-thumb "+lA;var s=n.element;return s.className=a+" "+lA+" "+xh,s.appendChild(o),s.addEventListener(Xs.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),s.addEventListener(Xs.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),s.addEventListener(Xs.POINTERUP,n.handleDraggerEnd_.bind(n),!1),s.addEventListener(ye.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(ye.CLICK,jY,!1),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),t&&t.render()},e.prototype.initSlider_=function(){var t=this.element,n=t.offsetWidth,i=t.offsetHeight;if(n===0&&i===0)return this.sliderInitialized_=!1;var a=getComputedStyle(t);n-=parseFloat(a.paddingRight)+parseFloat(a.paddingLeft),i-=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom);var o=t.firstElementChild,s=getComputedStyle(o),A=o.offsetWidth+parseFloat(s.marginRight)+parseFloat(s.marginLeft),l=o.offsetHeight+parseFloat(s.marginTop)+parseFloat(s.marginBottom);return this.thumbSize_=[A,l],n>i?(this.direction_=kd.HORIZONTAL,this.widthLimit_=n-A):(this.direction_=kd.VERTICAL,this.heightLimit_=i-l),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var n=this.getMap().getView(),i=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),a=this.getResolutionForPosition_(i),o=n.getConstrainedZoom(n.getZoomForResolution(a));n.animateInternal({zoom:o,duration:this.duration_,easing:ts})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var n=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(n.style.left),this.startY_=t.clientY-parseFloat(n.style.top),this.dragging_=!0,this.dragListenerKeys_.length===0){var i=this.handleDraggerDrag_,a=this.handleDraggerEnd_,o=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(Pe(o,Xs.POINTERMOVE,i,this),Pe(o,Xs.POINTERUP,a,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var n=t.clientX-this.startX_,i=t.clientY-this.startY_,a=this.getRelativePosition_(n,i);this.currentResolution_=this.getResolutionForPosition_(a),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){if(this.dragging_){var n=this.getMap().getView();n.endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(Rr),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var n=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==kd.HORIZONTAL?i.style.left=this.widthLimit_*n+"px":i.style.top=this.heightLimit_*n+"px"},e.prototype.getRelativePosition_=function(t,n){var i;return this.direction_===kd.HORIZONTAL?i=t/this.widthLimit_:i=n/this.heightLimit_,xn(i,0,1)},e.prototype.getResolutionForPosition_=function(t){var n=this.getMap().getView().getResolutionForValueFunction();return n(1-t)},e.prototype.getPositionForResolution_=function(t){var n=this.getMap().getView().getValueForResolutionFunction();return xn(1-n(t),0,1)},e.prototype.render=function(t){if(t.frameState&&!(!this.sliderInitialized_&&!this.initSlider_())){var n=t.frameState.viewState.resolution;this.currentResolution_=n,this.setThumbPosition_(n)}},e}(_r),wq=_q,Eq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cq=function(r){Eq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.extent=i.extent?i.extent:null;var a=i.className!==void 0?i.className:"ol-zoom-extent",o=i.label!==void 0?i.label:"E",s=i.tipLabel!==void 0?i.tipLabel:"Fit to extent",A=document.createElement("button");A.setAttribute("type","button"),A.title=s,A.appendChild(typeof o=="string"?document.createTextNode(o):o),A.addEventListener(ye.CLICK,n.handleClick_.bind(n),!1);var l=a+" "+lA+" "+xh,u=n.element;return u.className=l,u.appendChild(A),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap(),n=t.getView(),i=this.extent?this.extent:n.getProjection().getExtent();n.fitInternal(Hu(i))},e}(_r),Bq=Cq;function Tq(r){var e=r||{},t=new si,n=e.zoom!==void 0?e.zoom:!0;n&&t.push(new TQ(e.zoomOptions));var i=e.rotate!==void 0?e.rotate:!0;i&&t.push(new BQ(e.rotateOptions));var a=e.attribution!==void 0?e.attribution:!0;return a&&t.push(new CQ(e.attributionOptions)),t}var qT={ACTIVE:"active"},Sq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xq=function(r){Sq(e,r);function e(t){var n=r.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return e.prototype.getActive=function(){return this.get(qT.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(qT.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(li);function bq(r,e,t){var n=r.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];r.animateInternal({duration:t!==void 0?t:250,easing:YI,center:r.getConstrainedCenter(i)})}}function iF(r,e,t,n){var i=r.getZoom();if(i!==void 0){var a=r.getConstrainedZoom(i+e),o=r.getResolutionForZoom(a);r.getAnimating()&&r.cancelAnimations(),r.animate({resolution:o,anchor:t,duration:n!==void 0?n:250,easing:ts})}}var Kp=xq,Iq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Fq=function(r){Iq(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ar.DBLCLICK){var i=t.originalEvent,a=t.map,o=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,A=a.getView();iF(A,s,o,this.duration_),i.preventDefault(),n=!0}return!n},e}(Kp),Lq=Fq,Oq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Rq=function(r){Oq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var n=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==ar.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==ar.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==ar.POINTERDOWN){var a=this.handleDownEvent(t);this.handlingDownUpSequence=a,n=this.stopDown(a)}else t.type==ar.POINTERMOVE&&this.handleMoveEvent(t);return!n},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(Mq(t)){var n=t.originalEvent,i=n.pointerId.toString();t.type==ar.POINTERUP?delete this.trackedPointers_[i]:t.type==ar.POINTERDOWN?this.trackedPointers_[i]=n:i in this.trackedPointers_&&(this.trackedPointers_[i]=n),this.targetPointers=PI(this.trackedPointers_)}},e}(Kp);function aF(r){for(var e=r.length,t=0,n=0,i=0;i0&&this.condition_(t)){var n=t.map,i=n.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}else return!1},e}(Po),Vq=$q,jq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kq=function(r){jq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,{stopDown:Ch})||this,n.condition_=i.condition?i.condition:FQ,n.lastAngle_=void 0,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){if(qc(t)){var n=t.map,i=n.getView();if(i.getConstraints().rotation!==KI){var a=n.getSize(),o=t.pixel,s=Math.atan2(a[1]/2-o[1],o[0]-a[0]/2);if(this.lastAngle_!==void 0){var A=s-this.lastAngle_;i.adjustRotationInternal(-A)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!qc(t))return!0;var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!qc(t))return!1;if(sF(t)&&this.condition_(t)){var n=t.map;return n.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},e}(Po),zq=Kq,Yq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xq=function(r){Yq(e,r);function e(t){var n=r.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,n=this.endPixel_,i="px",a=this.element_.style;a.left=Math.min(t[0],n[0])+i,a.top=Math.min(t[1],n[1])+i,a.width=Math.abs(n[0]-t[0])+i,a.height=Math.abs(n[1]-t[1])+i},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var n=this.element_.style;n.left="inherit",n.top="inherit",n.width="inherit",n.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,n){this.startPixel_=t,this.endPixel_=n,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,n=this.endPixel_,i=[t,[t[0],n[1]],n,[n[0],t[1]]],a=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);a[4]=a[0].slice(),this.geometry_?this.geometry_.setCoordinates([a]):this.geometry_=new bn([a])},e.prototype.getGeometry=function(){return this.geometry_},e}(V1),Wq=Xq,OQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Sm={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},gC=function(r){OQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.coordinate=n,a.mapBrowserEvent=i,a}return e}(fo),qq=function(r){OQ(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.box_=new Wq(i.className||"ol-dragbox"),n.minArea_=i.minArea!==void 0?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:sF,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return e.prototype.defaultBoxEndCondition=function(t,n,i){var a=i[0]-n[0],o=i[1]-n[1];return a*a+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new gC(Sm.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var n=this.boxEndCondition_(t,this.startPixel_,t.pixel);return n&&this.onBoxEnd(t),this.dispatchEvent(new gC(n?Sm.BOXEND:Sm.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new gC(Sm.BOXSTART,t.coordinate,t)),!0):!1},e.prototype.onBoxEnd=function(t){},e}(Po),Zq=qq,Jq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),t3=function(r){Jq(e,r);function e(t){var n=this,i=t||{},a=i.condition?i.condition:Jg;return n=r.call(this,{condition:a,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,n.duration_=i.duration!==void 0?i.duration:200,n.out_=i.out!==void 0?i.out:!1,n}return e.prototype.onBoxEnd=function(t){var n=this.getMap(),i=n.getView(),a=this.getGeometry();if(this.out_){var o=i.rotatedExtentForGeometry(a),s=i.getResolutionForExtentInternal(o),A=i.getResolution()/s;a=a.clone(),a.scale(A*A)}i.fitInternal(a,{duration:this.duration_,easing:ts})},e}(Zq),e3=t3,gc={LEFT:37,UP:38,RIGHT:39,DOWN:40},r3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),n3=function(r){r3(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.defaultCondition_=function(a){return iw(a)&&AF(a)},n.condition_=i.condition!==void 0?i.condition:n.defaultCondition_,n.duration_=i.duration!==void 0?i.duration:100,n.pixelDelta_=i.pixelDelta!==void 0?i.pixelDelta:128,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ye.KEYDOWN){var i=t.originalEvent,a=i.keyCode;if(this.condition_(t)&&(a==gc.DOWN||a==gc.LEFT||a==gc.RIGHT||a==gc.UP)){var o=t.map,s=o.getView(),A=s.getResolution()*this.pixelDelta_,l=0,u=0;a==gc.DOWN?u=-A:a==gc.LEFT?l=-A:a==gc.RIGHT?l=A:u=A;var c=[l,u];QI(c,s.getRotation()),bq(s,c,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Kp),i3=n3,a3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),o3=function(r){a3(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.condition_=i.condition?i.condition:AF,n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:100,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ye.KEYDOWN||t.type==ye.KEYPRESS){var i=t.originalEvent,a=i.charCode;if(this.condition_(t)&&(a=="+".charCodeAt(0)||a=="-".charCodeAt(0))){var o=t.map,s=a=="+".charCodeAt(0)?this.delta_:-this.delta_,A=o.getView();iF(A,s,void 0,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Kp),s3=o3,A3=function(){function r(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return r.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},r.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},r.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[n+2]>e;)n-=3;var i=this.points_[t+2]-this.points_[n+2];if(i<1e3/60)return!1;var a=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,a),this.initialVelocity_=Math.sqrt(a*a+o*o)/i,this.initialVelocity_>this.minVelocity_},r.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},r.prototype.getAngle=function(){return this.angle_},r}(),l3=A3,u3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yC={TRACKPAD:"trackpad",WHEEL:"wheel"},c3=function(r){u3(e,r);function e(t){var n=this,i=t||{};n=r.call(this,i)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=i.maxDelta!==void 0?i.maxDelta:1,n.duration_=i.duration!==void 0?i.duration:250,n.timeout_=i.timeout!==void 0?i.timeout:80,n.useAnchor_=i.useAnchor!==void 0?i.useAnchor:!0,n.constrainResolution_=i.constrainResolution!==void 0?i.constrainResolution:!1;var a=i.condition?i.condition:rw;return n.condition_=i.onFocusOnly?b_(oF,a):a,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=t.type;if(n!==ye.WHEEL)return!0;var i=t.map,a=t.originalEvent;a.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var o;if(t.type==ye.WHEEL&&(o=a.deltaY,gY&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=uh),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),o===0)return!1;this.lastDelta_=o;var s=Date.now();this.startTime_===void 0&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?yC.TRACKPAD:yC.WHEEL);var A=i.getView();if(this.mode_===yC.TRACKPAD&&!(A.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(A.getAnimating()&&A.cancelAnimations(),A.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),A.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=o;var l=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1},e.prototype.handleWheelZoom_=function(t){var n=t.getView();n.getAnimating()&&n.cancelAnimations();var i=-xn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),iF(n,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(Kp),h3=c3,f3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),p3=function(r){f3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=i.threshold!==void 0?i.threshold:.3,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){var n=0,i=this.targetPointers[0],a=this.targetPointers[1],o=Math.atan2(a.clientY-i.clientY,a.clientX-i.clientX);if(this.lastAngle_!==void 0){var s=o-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),n=s}this.lastAngle_=o;var A=t.map,l=A.getView();if(l.getConstraints().rotation!==KI){var u=A.getViewport().getBoundingClientRect(),c=aF(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=A.getCoordinateFromPixelInternal(c),this.rotating_&&(A.render(),l.adjustRotationInternal(n,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(Po),d3=p3,v3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),g3=function(r){v3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.anchor_=null,n.duration_=i.duration!==void 0?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return e.prototype.handleDragEvent=function(t){var n=1,i=this.targetPointers[0],a=this.targetPointers[1],o=i.clientX-a.clientX,s=i.clientY-a.clientY,A=Math.sqrt(o*o+s*s);this.lastDistance_!==void 0&&(n=this.lastDistance_/A),this.lastDistance_=A;var l=t.map,u=l.getView();n!=1&&(this.lastScaleDelta_=n);var c=l.getViewport().getBoundingClientRect(),h=aF(this.targetPointers);h[0]-=c.left,h[1]-=c.top,this.anchor_=l.getCoordinateFromPixelInternal(h),l.render(),u.adjustResolutionInternal(n,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(Po),y3=g3,Cs={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},m3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),_3=function(r){m3(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.condition_=i.condition?i.condition:Jg,n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=i.duration!==void 0?i.duration:400,n}return e.prototype.handleDragEvent=function(t){if(qc(t)){var n=t.map,i=n.getSize(),a=t.pixel,o=a[0]-i[0]/2,s=i[1]/2-a[1],A=Math.atan2(s,o),l=Math.sqrt(o*o+s*s),u=n.getView();if(this.lastAngle_!==void 0){var c=this.lastAngle_-A;u.adjustRotationInternal(c)}this.lastAngle_=A,this.lastMagnitude_!==void 0&&u.adjustResolutionInternal(this.lastMagnitude_/l),this.lastMagnitude_!==void 0&&(this.lastScaleDelta_=this.lastMagnitude_/l),this.lastMagnitude_=l}},e.prototype.handleUpEvent=function(t){if(!qc(t))return!0;var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return qc(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0):!1},e}(Po),w3=_3,E3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),RQ=function(r){E3(e,r);function e(t,n,i){var a=r.call(this)||this;if(i!==void 0&&n===void 0)a.setFlatCoordinates(i,t);else{var o=n||0;a.setCenterAndRadius(t,o,i)}return a}return e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){var o=this.flatCoordinates,s=t-o[0],A=n-o[1],l=s*s+A*A;if(l=i[0]||t[1]<=i[1]&&t[3]>=i[1]?!0:X1(t,this.intersectsCoordinate.bind(this))}return!1},e.prototype.setCenter=function(t){var n=this.stride,i=this.flatCoordinates[n]-this.flatCoordinates[0],a=t.slice();a[n]=a[0]+i;for(var o=1;o1?o:2,B=a||new Array(E),p=0;p>1;it;){if(n-t>600){var a=n-t+1,o=e-t+1,s=Math.log(a),A=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*A*(a-A)/a)*(o-a/2<0?-1:1),u=Math.max(t,Math.floor(e-o*A/a+l)),c=Math.min(n,Math.floor(e+(a-o)*A/a+l));PQ(r,e,u,c,i)}var h=r[e],f=t,p=n;for($d(r,t,e),i(r[n],h)>0&&$d(r,t,n);f0;)p--}i(r[t],h)===0?$d(r,t,p):(p++,$d(r,p,n)),p<=e&&(t=p+1),e<=p&&(n=p-1)}}function $d(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function P3(r,e){return re?1:0}class UQ{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const n=[];if(!bm(e,t))return n;const i=this.toBBox,a=[];for(;t;){for(let o=0;o=0&&a[t].children.length>this._maxEntries;)this._split(a,t),t--;this._adjustParentBBoxes(i,a,t)}_split(e,t){const n=e[t],i=n.children.length,a=this._minEntries;this._chooseSplitAxis(n,a,i);const o=this._chooseSplitIndex(n,a,i),s=Mf(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,hf(n,this.toBBox),hf(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)}_splitRoot(e,t){this.data=Mf([e,t]),this.data.height=e.height+1,this.data.leaf=!1,hf(this.data,this.toBBox)}_chooseSplitIndex(e,t,n){let i,a=1/0,o=1/0;for(let s=t;s<=n-t;s++){const A=hv(e,0,s,this.toBBox),l=hv(e,s,n,this.toBBox),u=G3(A,l),c=mC(A)+mC(l);u=t;l--){const u=e.children[l];fv(s,e.leaf?a(u):u),A+=xm(s)}return A}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)fv(t[i],e)}_condense(e){for(let t=e.length-1,n;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():hf(e[t],this.toBBox)}}function U3(r,e,t){if(!t)return e.indexOf(r);for(let n=0;n=r.minX&&e.maxY>=r.minY}function Mf(r){return{children:r,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function wM(r,e,t,n,i){const a=[e,t];for(;a.length;){if(t=a.pop(),e=a.pop(),t-e<=n)continue;const o=e+Math.ceil((t-e)/n/2)*n;N3(r,o,e,t,i),a.push(e,o,o,t)}}var $e={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},k3=function(){function r(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Pi(e.scale),this.displacement_=e.displacement}return r.prototype.clone=function(){var e=this.getScale();return new r({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},r.prototype.getOpacity=function(){return this.opacity_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getDisplacement=function(){return this.displacement_},r.prototype.getAnchor=function(){return Be()},r.prototype.getImage=function(e){return Be()},r.prototype.getHitDetectionImage=function(){return Be()},r.prototype.getPixelRatio=function(e){return 1},r.prototype.getImageState=function(){return Be()},r.prototype.getImageSize=function(){return Be()},r.prototype.getOrigin=function(){return Be()},r.prototype.getSize=function(){return Be()},r.prototype.setDisplacement=function(e){this.displacement_=e},r.prototype.setOpacity=function(e){this.opacity_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Pi(e)},r.prototype.listenImageChange=function(e){Be()},r.prototype.load=function(){Be()},r.prototype.unlistenImageChange=function(e){Be()},r}(),DQ=k3;function Js(r){return Array.isArray(r)?K6(r):r}var $3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),V3=function(r){$3(e,r);function e(t){var n=this,i=t.rotateWithView!==void 0?t.rotateWithView:!1;return n=r.call(this,{opacity:1,rotateWithView:i,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0]})||this,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=t.fill!==void 0?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=t.radius!==void 0?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=t.angle!==void 0?t.angle:0,n.stroke_=t.stroke!==void 0?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var n=this.getDisplacement();return[t[0]/2-n[0],t[1]/2+n[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var n=this.canvas_[t];if(!n){var i=this.renderOptions_,a=ja(i.size*t,i.size*t);this.draw_(i,a,t),n=a.canvas,this.canvas_[t]=n}return n},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return $e.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,n,i){if(n===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return n;var a=this.radius_,o=this.radius2_===void 0?a:this.radius2_;if(aA&&(this.instructions.push([Qe.CUSTOM,A,u,t,i,qA]),this.hitDetectionInstructions.push([Qe.CUSTOM,A,u,t,a||i,qA]));break;case st.POINT:l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([Qe.CUSTOM,A,u,t,i]),this.hitDetectionInstructions.push([Qe.CUSTOM,A,u,t,a||i]);break}this.endGeometry(n)},e.prototype.beginGeometry=function(t,n){this.beginGeometryInstruction1_=[Qe.BEGIN_GEOMETRY,n,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Qe.BEGIN_GEOMETRY,n,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var n,i=t.length,a,o,s=-1;for(n=0;nthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var n=t.fillStyle,i=[Qe.SET_FILL_STYLE,n];return typeof n!="string"&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[Qe.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,n){var i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(n.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,n){var i=t.strokeStyle,a=t.lineCap,o=t.lineDash,s=t.lineDashOffset,A=t.lineJoin,l=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=a||o!=t.currentLineDash&&!yl(t.currentLineDash,o)||t.currentLineDashOffset!=s||t.currentLineJoin!=A||t.currentLineWidth!=l||t.currentMiterLimit!=u)&&(i!==void 0&&n.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=a,t.currentLineDash=o,t.currentLineDashOffset=s,t.currentLineJoin=A,t.currentLineWidth=l,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[Qe.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=LI(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Va(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(QQ),ry=eZ,rZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nZ=function(r){rZ(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return e.prototype.drawPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([Qe.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qe.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.drawMultiPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([Qe.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qe.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,r.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,n){var i=t.getAnchor(),a=t.getSize(),o=t.getHitDetectionImage(),s=t.getImage(this.pixelRatio),A=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=o,this.image_=s,this.height_=a[1],this.opacity_=t.getOpacity(),this.originX_=A[0]*this.imagePixelRatio_,this.originY_=A[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=a[0],this.declutterImageWithText_=n},e}(ry),iZ=nZ,aZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),oZ=function(r){aZ(e,r);function e(t,n,i,a){return r.call(this,t,n,i,a)||this}return e.prototype.drawFlatCoordinates_=function(t,n,i,a){var o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,n,i,a,!1,!1),A=[Qe.MOVE_TO_LINE_TO,o,s];return this.instructions.push(A),this.hitDetectionInstructions.push(A),i},e.prototype.drawLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([Qe.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,ug,cg],Qc);var s=t.getFlatCoordinates(),A=t.getStride();this.drawFlatCoordinates_(s,0,s.length,A),this.hitDetectionInstructions.push(uu),this.endGeometry(n)}},e.prototype.drawMultiLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([Qe.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],Qc);for(var s=t.getEnds(),A=t.getFlatCoordinates(),l=t.getStride(),u=0,c=0,h=s.length;cr&&(A>s&&(s=A,a=l,o=c),A=0,l=c-i)),h=f,m=_,g=E),p=B,v=L}return A+=f,A>s?[l,c]:[a,o]}var cZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),F_={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},hZ=function(r){cZ(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return e.prototype.finish=function(){var t=r.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},e.prototype.drawText=function(t,n){var i=this.textFillState_,a=this.textStrokeState_,o=this.textState_;if(!(this.text_===""||!o||!i&&!a)){var s=this.coordinates,A=s.length,l=t.getType(),u=null,c=t.getStride();if(o.placement===HQ.LINE&&(l==st.LINE_STRING||l==st.MULTI_LINE_STRING||l==st.POLYGON||l==st.MULTI_POLYGON)){if(!Mn(this.getBufferedMaxExtent(),t.getExtent()))return;var h=void 0;if(u=t.getFlatCoordinates(),l==st.LINE_STRING)h=[u.length];else if(l==st.MULTI_LINE_STRING)h=t.getEnds();else if(l==st.POLYGON)h=t.getEnds().slice(0,1);else if(l==st.MULTI_POLYGON){var f=t.getEndss();h=[];for(var p=0,v=f.length;pS[2]}else x=B>I;var N=Math.PI,P=[],X=O+n===e;e=O,m=0,g=b,h=r[e],f=r[e+1];var z;if(X){_(),z=Math.atan2(f-v,h-p),x&&(z+=z>0?-N:N);var tt=(I+B)/2,J=(M+L)/2;return P[0]=[tt,J,(T-a)/2,z,i],P}for(var nt=0,it=i.length;nt0?-N:N),z!==void 0){var R=_t-z;if(R+=R>N?-2*N:R<-N?2*N:0,Math.abs(R)>o)return null}z=_t;for(var $=nt,K=0;nt0&&r.push(` -`,""),r.push(e,""),r}var BZ=function(){function r(e,t,n,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=oi(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return r.prototype.createLabel=function(e,t,n,i){var a=e+t+n+i;if(this.labels_[a])return this.labels_[a];var o=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,A=this.textStates[t],l=this.pixelRatio,u=[A.scale[0]*l,A.scale[1]*l],c=Array.isArray(e),h=xM(c?e[0]:e,A.textAlign||pg),f=i&&o.lineWidth?o.lineWidth:0,p=c?e:e.split(` -`).reduce(CZ,[]),v=vX(A,p),m=v.width,g=v.height,_=v.widths,E=v.heights,B=v.lineWidths,L=m+f,O=[],b=(L+2)*u[0],T=(g+f)*u[1],I={width:b<0?Math.floor(b):Math.ceil(b),height:T<0?Math.floor(T):Math.ceil(T),contextInstructions:O};if((u[0]!=1||u[1]!=1)&&O.push("scale",u),i){O.push("strokeStyle",o.strokeStyle),O.push("lineWidth",f),O.push("lineCap",o.lineCap),O.push("lineJoin",o.lineJoin),O.push("miterLimit",o.miterLimit);var M=K1?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;M.prototype.setLineDash&&(O.push("setLineDash",[o.lineDash]),O.push("lineDashOffset",o.lineDashOffset))}n&&O.push("fillStyle",s.fillStyle),O.push("textBaseline","middle"),O.push("textAlign","center");for(var x=.5-h,S=h*L+x*f,N=[],P=[],X=0,z=0,tt=0,J=0,nt,it=0,_t=p.length;it<_t;it+=2){var R=p[it];if(R===` -`){z+=X,X=0,S=h*L+x*f,++J;continue}var $=p[it+1]||A.font;$!==nt&&(i&&N.push("font",$),n&&P.push("font",$),nt=$),X=Math.max(X,E[tt]);var K=[R,S+x*_[tt]+h*(_[tt]-B[J]),.5*(f+X)+z];S+=_[tt],i&&N.push("strokeText",K),n&&P.push("fillText",K),++tt}return Array.prototype.push.apply(O,N),Array.prototype.push.apply(O,P),this.labels_[a]=I,I},r.prototype.replayTextBackground_=function(e,t,n,i,a,o,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,i),e.lineTo.apply(e,a),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())},r.prototype.calculateImageOrLabelDimensions_=function(e,t,n,i,a,o,s,A,l,u,c,h,f,p,v,m){s*=h[0],A*=h[1];var g=n-s,_=i-A,E=a+l>e?e-l:a,B=o+u>t?t-u:o,L=p[3]+E*h[0]+p[1],O=p[0]+B*h[1]+p[2],b=g-p[3],T=_-p[0];(v||c!==0)&&(Kl[0]=b,zl[0]=b,Kl[1]=T,RA[1]=T,RA[0]=b+L,MA[0]=RA[0],MA[1]=T+O,zl[1]=MA[1]);var I;return c!==0?(I=$a(oi(),n,i,1,1,c,-n,-i),un(I,Kl),un(I,RA),un(I,MA),un(I,zl),uo(Math.min(Kl[0],RA[0],MA[0],zl[0]),Math.min(Kl[1],RA[1],MA[1],zl[1]),Math.max(Kl[0],RA[0],MA[0],zl[0]),Math.max(Kl[1],RA[1],MA[1],zl[1]),ff)):uo(Math.min(b,b+L),Math.min(T,T+O),Math.max(b,b+L),Math.max(T,T+O),ff),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:E,drawImageH:B,originX:l,originY:u,declutterBox:{minX:ff[0],minY:ff[1],maxX:ff[2],maxY:ff[3],value:m},canvasTransform:I,scale:h}},r.prototype.replayImageOrLabel_=function(e,t,n,i,a,o,s){var A=!!(o||s),l=i.declutterBox,u=e.canvas,c=s?s[2]*i.scale[0]/2:0,h=l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0;return h&&(A&&this.replayTextBackground_(e,Kl,RA,MA,zl,o,s),gX(e,i.canvasTransform,a,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},r.prototype.fill_=function(e){if(this.alignFill_){var t=un(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},r.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},r.prototype.drawLabelWithPointPlacement_=function(e,t,n,i){var a=this.textStates[t],o=this.createLabel(e,t,i,n),s=this.strokeStates[n],A=this.pixelRatio,l=xM(Array.isArray(e)?e[0]:e,a.textAlign||pg),u=F_[a.textBaseline||w_],c=s&&s.lineWidth?s.lineWidth:0,h=o.width/A-2*a.scale[0],f=l*h+2*(.5-l)*c,p=u*o.height/A+2*(.5-u)*c;return{label:o,anchorX:f,anchorY:p}},r.prototype.execute_=function(e,t,n,i,a,o,s,A){var l;this.pixelCoordinates_&&yl(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Tu(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),BY(this.renderedTransform_,n));for(var u=0,c=i.length,h=0,f,p,v,m,g,_,E,B,L,O,b,T,I=0,M=0,x=null,S=null,N=this.coordinateCache_,P=this.viewRotation_,X=Math.round(Math.atan2(-n[1],n[0])*1e12)/1e12,z={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:P},tt=this.instructions!=i||this.overlaps?0:200,J,nt,it,_t;utt&&(this.fill_(e),I=0),M>tt&&(e.stroke(),M=0),!I&&!M&&(e.beginPath(),m=NaN,g=NaN),++u;break;case Qe.CIRCLE:h=R[1];var K=l[h],q=l[h+1],at=l[h+2],vt=l[h+3],wt=at-K,W=vt-q,It=Math.sqrt(wt*wt+W*W);e.moveTo(K+It,q),e.arc(K,q,It,0,2*Math.PI,!0),++u;break;case Qe.CLOSE_PATH:e.closePath(),++u;break;case Qe.CUSTOM:h=R[1],f=R[2];var Ot=R[3],j=R[4],Z=R.length==6?R[5]:void 0;z.geometry=Ot,z.feature=J,u in N||(N[u]=[]);var ut=N[u];Z?Z(l,h,f,2,ut):(ut[0]=l[h],ut[1]=l[h+1],ut.length=2),j(ut,z),++u;break;case Qe.DRAW_IMAGE:h=R[1],f=R[2],B=R[3],p=R[4],v=R[5];var rt=R[6],G=R[7],xt=R[8],bt=R[9],dt=R[10],Et=R[11],yt=R[12],St=R[13],Ft=R[14];if(!B&&R.length>=19){L=R[18],O=R[19],b=R[20],T=R[21];var Mt=this.drawLabelWithPointPlacement_(L,O,b,T);B=Mt.label,R[3]=B;var Vt=R[22];p=(Mt.anchorX-Vt)*this.pixelRatio,R[4]=p;var Yt=R[23];v=(Mt.anchorY-Yt)*this.pixelRatio,R[5]=v,rt=B.height,R[6]=rt,St=B.width,R[13]=St}var ie=void 0;R.length>24&&(ie=R[24]);var ee=void 0,Xt=void 0,oe=void 0;R.length>16?(ee=R[15],Xt=R[16],oe=R[17]):(ee=Uc,Xt=!1,oe=!1),dt&&X?Et+=P:!dt&&!X&&(Et-=P);for(var Kt=0;h0){if(!o||f!==Ar.IMAGE&&f!==Ar.TEXT||o.indexOf(O)!==-1){var x=(h[I]-3)/4,S=i-x%s,N=i-(x/s|0),P=a(O,b,S*S+N*N);if(P)return P}u.clearRect(0,0,s,s);break}}var v=Object.keys(this.executorsByZIndex_).map(Number);v.sort(Nu);var m,g,_,E,B;for(m=v.length-1;m>=0;--m){var L=v[m].toString();for(_=this.executorsByZIndex_[L],g=EC.length-1;g>=0;--g)if(f=EC[g],E=_[f],E!==void 0&&(B=E.executeHitDetection(u,A,n,p,c),B))return B}},r.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],i=t[1],a=t[2],o=t[3],s=[n,i,n,o,a,o,a,i];return Tu(s,0,8,2,e,s),s},r.prototype.isEmpty=function(){return hh(this.executorsByZIndex_)},r.prototype.execute=function(e,t,n,i,a,o,s){var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(Nu),this.maxExtent_&&(e.save(),this.clip(e,n));var l=o||EC,u,c,h,f,p,v;for(s&&A.reverse(),u=0,c=A.length;ut)break;var s=n[o];s||(s=[],n[o]=s),s.push(((r+i)*e+(r+a))*4+3),i>0&&s.push(((r-i)*e+(r+a))*4+3),a>0&&(s.push(((r+i)*e+(r-a))*4+3),i>0&&s.push(((r-i)*e+(r-a))*4+3))}for(var A=[],i=0,l=n.length;i0,6);var c=i.src!==void 0?$e.IDLE:$e.LOADED;return n.color_=i.color!==void 0?Du(i.color):null,n.iconImage_=PZ(l,u,n.imgSize_!==void 0?n.imgSize_:null,n.crossOrigin_,c,n.color_),n.offset_=i.offset!==void 0?i.offset:[0,0],n.offsetOrigin_=i.offsetOrigin!==void 0?i.offsetOrigin:Li.TOP_LEFT,n.origin_=null,n.size_=i.size!==void 0?i.size:null,n}return e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var n=this.getSize();if(this.anchorXUnits_==Ua.FRACTION||this.anchorYUnits_==Ua.FRACTION){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_==Ua.FRACTION&&(t[0]*=n[0]),this.anchorYUnits_==Ua.FRACTION&&(t[1]*=n[1])}if(this.anchorOrigin_!=Li.TOP_LEFT){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_==Li.TOP_RIGHT||this.anchorOrigin_==Li.BOTTOM_RIGHT)&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_==Li.BOTTOM_LEFT||this.anchorOrigin_==Li.BOTTOM_RIGHT)&&(t[1]=-t[1]+n[1])}this.normalizedAnchor_=t}var i=this.getDisplacement();return[t[0]-i[0],t[1]+i[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=Li.TOP_LEFT){var n=this.getSize(),i=this.iconImage_.getSize();if(!n||!i)return null;t=t.slice(),(this.offsetOrigin_==Li.TOP_RIGHT||this.offsetOrigin_==Li.BOTTOM_RIGHT)&&(t[0]=i[0]-n[0]-t[0]),(this.offsetOrigin_==Li.BOTTOM_LEFT||this.offsetOrigin_==Li.BOTTOM_RIGHT)&&(t[1]=i[1]-n[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(ye.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(ye.CHANGE,t)},e}(DQ),ny=DZ,QZ="#333",HZ=function(){function r(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Pi(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new Aa({color:QZ}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:HQ.POINT,this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}return r.prototype.clone=function(){var e=this.getScale();return new r({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},r.prototype.getOverflow=function(){return this.overflow_},r.prototype.getFont=function(){return this.font_},r.prototype.getMaxAngle=function(){return this.maxAngle_},r.prototype.getPlacement=function(){return this.placement_},r.prototype.getOffsetX=function(){return this.offsetX_},r.prototype.getOffsetY=function(){return this.offsetY_},r.prototype.getFill=function(){return this.fill_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getStroke=function(){return this.stroke_},r.prototype.getText=function(){return this.text_},r.prototype.getTextAlign=function(){return this.textAlign_},r.prototype.getTextBaseline=function(){return this.textBaseline_},r.prototype.getBackgroundFill=function(){return this.backgroundFill_},r.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},r.prototype.getPadding=function(){return this.padding_},r.prototype.setOverflow=function(e){this.overflow_=e},r.prototype.setFont=function(e){this.font_=e},r.prototype.setMaxAngle=function(e){this.maxAngle_=e},r.prototype.setOffsetX=function(e){this.offsetX_=e},r.prototype.setOffsetY=function(e){this.offsetY_=e},r.prototype.setPlacement=function(e){this.placement_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setFill=function(e){this.fill_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Pi(e!==void 0?e:1)},r.prototype.setStroke=function(e){this.stroke_=e},r.prototype.setText=function(e){this.text_=e},r.prototype.setTextAlign=function(e){this.textAlign_=e},r.prototype.setTextBaseline=function(e){this.textBaseline_=e},r.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},r.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},r.prototype.setPadding=function(e){this.padding_=e},r}(),bh=HZ,Io=.5;function VQ(r,e,t,n,i,a,o){var s=r[0]*Io,A=r[1]*Io,l=ja(s,A);l.imageSmoothingEnabled=!1;for(var u=l.canvas,c=new fF(l,Io,i,null,o),h=t.length,f=Math.floor((256*256*256-1)/h),p={},v=1;v<=h;++v){var m=t[v-1],g=m.getStyleFunction()||n;if(n){var _=g(m,a);if(_){Array.isArray(_)||(_=[_]);for(var E=v*f,B="#"+("000000"+E.toString(16)).slice(-6),L=0,O=_.length;Lv[2];)++_,E=g*_,c.push(this.getRenderTransform(a,o,s,Io,h,f,E).slice()),m-=g}this.hitDetectionImageData_=VQ(i,c,this.renderedFeatures_,u.getStyleFunction(),l,o,s)}n(jQ(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o){var s=this;if(this.replayGroup_){var A=n.viewState.resolution,l=n.viewState.rotation,u=this.getLayer(),c={},h=function(v,m,g){var _=pe(v),E=c[_];if(E){if(E!==!0&&gL[0]&&T[2]>L[2]&&B.push([T[0]-O,T[1],T[2]-O,T[3]])}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==p&&this.renderedRenderOrder_==m&&Fo(this.wrappedRenderedExtent_,_))return yl(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var I=new L_(tS(h,f),_,h,f),M;this.getLayer().getDeclutter()&&(M=new L_(tS(h,f),_,h,f));for(var x,S,N,S=0,N=B.length;S=200&&s.status<300){var l=e.getType(),u=void 0;l==Cs.JSON||l==Cs.TEXT?u=s.responseText:l==Cs.XML?(u=s.responseXML,u||(u=new DOMParser().parseFromString(s.responseText,"application/xml"))):l==Cs.ARRAY_BUFFER&&(u=s.response),u?a(e.readFeatures(u,{extent:t,featureProjection:i}),e.readProjection(u)):o()}else o()},s.onerror=o,s.send()}function IM(r,e){return function(t,n,i,a,o){var s=this;uJ(r,e,t,n,i,function(A,l){s.addFeatures(A),a!==void 0&&a(A)},o||lh)}}var WQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yl=function(r){WQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.feature=n,a.features=i,a}return e}(fo),cJ=function(r){WQ(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:Da.READY,wrapX:i.wrapX!==void 0?i.wrapX:!0})||this,n.on,n.once,n.un,n.loader_=lh,n.format_=i.format,n.overlaps_=i.overlaps===void 0?!0:i.overlaps,n.url_=i.url,i.loader!==void 0?n.loader_=i.loader:n.url_!==void 0&&(_e(n.format_,7),n.loader_=IM(n.url_,n.format_)),n.strategy_=i.strategy!==void 0?i.strategy:XQ;var a=i.useSpatialIndex!==void 0?i.useSpatialIndex:!0;n.featuresRtree_=a?new M_:null,n.loadedExtentsRtree_=new M_,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null;var o,s;return Array.isArray(i.features)?s=i.features:i.features&&(o=i.features,s=o.getArray()),!a&&o===void 0&&(o=new si(s)),s!==void 0&&n.addFeaturesInternal(s),o!==void 0&&n.bindFeaturesCollection_(o),n}return e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var n=pe(t);if(!this.addToIndex_(n,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(n,t);var i=t.getGeometry();if(i){var a=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(a,t)}else this.nullGeometryFeatures_[n]=t;this.dispatchEvent(new Yl(Oi.ADDFEATURE,t))},e.prototype.setupChangeEvents_=function(t,n){this.featureChangeKeys_[t]=[Pe(n,ye.CHANGE,this.handleFeatureChange_,this),Pe(n,ch.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,n){var i=!0,a=n.getId();return a!==void 0&&(a.toString()in this.idIndex_?i=!1:this.idIndex_[a.toString()]=n),i&&(_e(!(t in this.uidIndex_),30),this.uidIndex_[t]=n),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var n=[],i=[],a=[],o=0,s=t.length;o0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),r.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var n=this.loadedExtentsRtree_,i;n.forEachInExtent(t,function(a){if(AA(a.extent,t))return i=a,!0}),i&&n.remove(i)},e.prototype.removeFeature=function(t){if(t){var n=pe(t);n in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[n]:this.featuresRtree_&&this.featuresRtree_.remove(t);var i=this.removeFeatureInternal(t);i&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var n=pe(t),i=this.featureChangeKeys_[n];if(i){i.forEach(Rr),delete this.featureChangeKeys_[n];var a=t.getId();return a!==void 0&&delete this.idIndex_[a.toString()],delete this.uidIndex_[n],this.dispatchEvent(new Yl(Oi.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var n=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],n=!0;break}return n},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){_e(this.format_,7),this.url_=t,this.setLoader(IM(t,this.format_))},e}(ow),_l=cJ,qQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xr={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},Fm={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},Lm=function(r){qQ(e,r);function e(t,n){var i=r.call(this,t)||this;return i.feature=n,i}return e}(fo),hJ=function(r){qQ(e,r);function e(t){var n=this,i=t;i.stopDown||(i.stopDown=Ch),n=r.call(this,i)||this,n.on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=pJ(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===xr.POLYGON?3:2,n.maxPoints_=n.mode_===xr.CIRCLE?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:iA;var a=t.geometryFunction;if(!a){var o=n.mode_;if(o===xr.CIRCLE)a=function(A,l,u){var c=l||new uF([NaN,NaN]),h=Tn(A[0]),f=el(h,Tn(A[A.length-1]));return c.setCenterAndRadius(h,Math.sqrt(f)),c};else{var s;o===xr.POINT?s=fr:o===xr.LINE_STRING?s=Hr:o===xr.POLYGON&&(s=bn),a=function(A,l,u){return l?o===xr.POLYGON?A[0].length?l.setCoordinates([A[0].concat([A[0][0]])]):l.setCoordinates([]):l.setCoordinates(A):l=new s(A),l}}}return n.geometryFunction_=a,n.dragVertexDelay_=t.dragVertexDelay!==void 0?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new hA({source:new _l({useSpatialIndex:!1,wrapX:t.wrapX?t.wrapX:!1}),style:t.style?t.style:fJ(),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:iw,n.freehandCondition_,t.freehand?n.freehandCondition_=rw:n.freehandCondition_=t.freehandCondition?t.freehandCondition:Jg,n.addChangeListener(qT.ACTIVE,n.updateState_),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(t){t.originalEvent.type===ye.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==xr.POINT&&this.freehandCondition_(t);var n=t.type===ar.POINTERMOVE,i=!0;if(!this.freehand_&&this.lastDragTime_&&t.type===ar.POINTERDRAG){var a=Date.now();a-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===ar.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(t.coordinate),i=!1):this.freehand_&&t.type===ar.POINTERDOWN?i=!1:n&&this.getPointerCount()<2?(i=t.type===ar.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):(t.originalEvent.pointerType==="mouse"||t.type===ar.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(t)):t.type===ar.DBLCLICK&&(i=!1),r.prototype.handleEvent.call(this,t)&&i},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new KA(ar.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var n=!0;if(this.getPointerCount()===0)if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(t.coordinate),!i&&this.freehand_?this.finishDrawing():!this.freehand_&&(!i||this.mode_===xr.POINT)&&(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),n=!1}else this.freehand_&&this.abortDrawing();return!n&&this.stopClick_&&t.preventDefault(),n},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var n=this.downPx_,i=t.pixel,a=n[0]-i[0],o=n[1]-i[1],s=a*a+o*o;if(this.shouldHandle_=this.freehand_?s>this.squaredClickTolerance_:s<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var n=!1;if(this.sketchFeature_){var i=!1,a=[this.finishCoordinate_],o=this.mode_;if(o===xr.POINT)n=!0;else if(o===xr.CIRCLE)n=this.sketchCoords_.length===2;else if(o===xr.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(o===xr.POLYGON){var s=this.sketchCoords_;i=s[0].length>this.minPoints_,a=[s[0][0],s[0][s[0].length-2]]}if(i)for(var A=this.getMap(),l=0,u=a.length;l=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),this.geometryFunction_(o,n,i)):s===xr.POLYGON&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),a&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),a&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i,a=this.mode_;if(a===xr.LINE_STRING||a===xr.CIRCLE){if(i=this.sketchCoords_,i.splice(-2,1),i.length>=2){this.finishCoordinate_=i[i.length-2].slice();var o=this.finishCoordinate_.slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(i,t,n),t.getType()===st.POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(a===xr.POLYGON){i=this.sketchCoords_[0],i.splice(-2,1);var s=this.sketchLine_.getGeometry();if(i.length>=2){var o=i[i.length-2].slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}s.setCoordinates(i),this.geometryFunction_(this.sketchCoords_,t,n)}i.length===1&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var n=this.sketchCoords_,i=t.getGeometry(),a=this.getMap().getView().getProjection();this.mode_===xr.LINE_STRING?(n.pop(),this.geometryFunction_(n,i,a)):this.mode_===xr.POLYGON&&(n[0].pop(),this.geometryFunction_(n,i,a),n=i.getCoordinates()),this.type_===st.MULTI_POINT?t.setGeometry(new es([n])):this.type_===st.MULTI_LINE_STRING?t.setGeometry(new xa([n])):this.type_===st.MULTI_POLYGON&&t.setGeometry(new ba([n])),this.dispatchEvent(new Lm(Fm.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new Lm(Fm.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var n=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(t[0]);var a;if(n===xr.LINE_STRING||n===xr.CIRCLE)a=this.sketchCoords_;else if(n===xr.POLYGON)a=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&a.shift(),a.pop();for(var o=0;o=0;--a){for(var o=i[a],s=this.dragSegments_.length-1;s>=0;--s)this.dragSegments_[s][0]===o&&this.dragSegments_.splice(s,1);n.remove(o)}},e.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),r.prototype.setActive.call(this,t)},e.prototype.setMap=function(t){this.overlay_.setMap(t),r.prototype.setMap.call(this,t)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var n=t.target;this.removeFeature_(n),this.addFeature_(n)}},e.prototype.handleFeatureRemove_=function(t){var n=t.element;this.removeFeature_(n)},e.prototype.writePointGeometry_=function(t,n){var i=n.getCoordinates(),a={feature:t,geometry:n,segment:[i,i]};this.rBush_.insert(n.getExtent(),a)},e.prototype.writeMultiPointGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a=0;--_)this.insertVertex_(o[_],s)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var n=this.dragSegments_.length-1;n>=0;--n){var i=this.dragSegments_[n][0],a=i.geometry;if(a.getType()===st.CIRCLE){var o=a.getCenter(),s=i.featureSegments[0],A=i.featureSegments[1];s.segment[0]=o,s.segment[1]=o,A.segment[0]=o,A.segment[1]=o,this.rBush_.update(zc(o),s);var l=a,u=ph();if(u){var c=t.map.getView().getProjection();l=l.clone().transform(u,c),l=yQ(l).transform(c,u)}this.rBush_.update(l.getExtent(),A)}else this.rBush_.update(Yi(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new TC(BC.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,n,i){var a=this,o=i||n.getCoordinateFromPixel(t),s=n.getView().getProjection(),A=function(P,X){return OM(o,P,s)-OM(o,X,s)},l,u;if(this.hitDetection_){var c=typeof this.hitDetection_=="object"?function(P){return P===a.hitDetection_}:void 0;n.forEachFeatureAtPixel(t,function(P,X,z){if(z=z||P.getGeometry(),z.getType()===st.POINT&&yi(a.features_.getArray(),P)){u=z;var tt=z.getFlatCoordinates().slice(0,2);l=[{feature:P,geometry:z,segment:[tt,tt]}]}return!0},{layerFilter:c})}if(!l){var h=Lo(zc(o,LM)),f=n.getView().getResolution()*this.pixelTolerance_,p=q1(Va(h,f,LM));l=this.rBush_.getInExtent(p)}if(l&&l.length>0){var v=l.sort(A)[0],m=v.segment,g=RM(o,v,s),_=n.getPixelFromCoordinate(g),E=ZR(t,_);if(u||E<=this.pixelTolerance_){var B={};if(B[pe(m)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-o[0],this.delta_[1]=g[1]-o[1]),v.geometry.getType()===st.CIRCLE&&v.index===Dv)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);else{var L=n.getPixelFromCoordinate(m[0]),O=n.getPixelFromCoordinate(m[1]),b=el(_,L),T=el(_,O);E=Math.sqrt(Math.min(b,T)),this.snappedToVertex_=E<=this.pixelTolerance_,this.snappedToVertex_&&(g=b>T?m[1]:m[0]),this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);var I={};I[pe(v.geometry)]=!0;for(var M=1,x=l.length;M=0;--l)s=t[l],p=s[0],v=pe(p.feature),p.depth&&(v+="-"+p.depth.join("-")),v in n||(n[v]={}),s[1]===0?(n[v].right=p,n[v].index=p.index):s[1]==1&&(n[v].left=p,n[v].index=p.index+1);for(v in n){switch(f=n[v].right,c=n[v].left,u=n[v].index,h=u-1,c!==void 0?p=c:p=f,h<0&&(h=0),A=p.geometry,o=A.getCoordinates(),a=o,i=!1,A.getType()){case st.MULTI_LINE_STRING:o[p.depth[0]].length>2&&(o[p.depth[0]].splice(u,1),i=!0);break;case st.LINE_STRING:o.length>2&&(o.splice(u,1),i=!0);break;case st.MULTI_POLYGON:a=a[p.depth[1]];case st.POLYGON:a=a[p.depth[0]],a.length>4&&(u==a.length-1&&(u=0),a.splice(u,1),i=!0,u===0&&(a.pop(),a.push(a[0]),h=a.length-1));break}if(i){this.setGeometryCoordinates_(A,o);var m=[];if(c!==void 0&&(this.rBush_.remove(c),m.push(c.segment[0])),f!==void 0&&(this.rBush_.remove(f),m.push(f.segment[1])),c!==void 0&&f!==void 0){var g={depth:p.depth,feature:p.feature,geometry:p.geometry,index:h,segment:m};this.rBush_.insert(Yi(g.segment),g)}this.updateSegmentIndices_(A,u,p.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.length=0}}return i},e.prototype.setGeometryCoordinates_=function(t,n){this.changingFeature_=!0,t.setCoordinates(n),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,n,i,a){this.rBush_.forEachInExtent(t.getExtent(),function(o){o.geometry===t&&(i===void 0||o.depth===void 0||yl(o.depth,i))&&o.index>n&&(o.index+=a)})},e}(Po);function vJ(r,e){return r.index-e.index}function OM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE){var i=n;if(e.index===Dv){var a=ph();a&&(i=i.clone().transform(a,t));var o=el(i.getCenter(),Tn(r)),s=Math.sqrt(o)-i.getRadius();return s*s}}var A=Tn(r);return lp[0]=Tn(e.segment[0]),lp[1]=Tn(e.segment[1]),eX(A,lp)}function RM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE&&e.index===Dv){var i=n,a=ph();return a&&(i=i.clone().transform(a,t)),xp(i.getClosestPoint(Tn(r)))}var o=Tn(r);return lp[0]=Tn(e.segment[0]),lp[1]=Tn(e.segment[1]),xp(DI(o,lp))}function gJ(){var r=cF();return function(e,t){return r[st.POINT]}}var vF=dJ,JQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yJ={SELECT:"select"},mJ=function(r){JQ(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.selected=n,o.deselected=i,o.mapBrowserEvent=a,o}return e}(fo),Om={},_J=function(r){JQ(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=i.condition?i.condition:nw,n.addCondition_=i.addCondition?i.addCondition:ZT,n.removeCondition_=i.removeCondition?i.removeCondition:ZT,n.toggleCondition_=i.toggleCondition?i.toggleCondition:Jg,n.multi_=i.multi?i.multi:!1,n.filter_=i.filter?i.filter:iA,n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.style_=i.style!==void 0?i.style:wJ(),n.features_=i.features||new si;var a;if(i.layers)if(typeof i.layers=="function")a=i.layers;else{var o=i.layers;a=function(s){return yi(o,s)}}else a=iA;return n.layerFilter_=a,n.featureLayerAssociation_={},n}return e.prototype.addFeatureLayerAssociation_=function(t,n){this.featureLayerAssociation_[pe(t)]=n},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[pe(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(t){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),r.prototype.setMap.call(this,t),t?(this.features_.addEventListener(kn.ADD,this.boundAddFeature_),this.features_.addEventListener(kn.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(kn.ADD,this.boundAddFeature_),this.features_.removeEventListener(kn.REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var n=t.element;if(this.style_&&this.applySelectedStyle_(n),!this.getLayer(n)){var i=this.getMap().getAllLayers().find(function(a){if(a instanceof hA&&a.getSource()&&a.getSource().hasFeature(n))return a});i&&this.addFeatureLayerAssociation_(n,i)}},e.prototype.removeFeature_=function(t){var n=t.element;this.style_&&this.restorePreviousStyle_(n)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var n=pe(t);n in Om||(Om[n]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),i=n.length-1;i>=0;--i){var a=n[i];if(a!==this&&a instanceof e&&a.getStyle()&&a.getFeatures().getArray().lastIndexOf(t)!==-1){t.setStyle(a.getStyle());return}}var o=pe(t);t.setStyle(Om[o]),delete Om[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[pe(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=this.addCondition_(t),i=this.removeCondition_(t),a=this.toggleCondition_(t),o=!n&&!i&&!a,s=t.map,A=this.getFeatures(),l=[],u=[];if(o){Bh(this.featureLayerAssociation_),s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return this.addFeatureLayerAssociation_(v,m),u.push(v),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=A.getLength()-1;c>=0;--c){var h=A.item(c),f=u.indexOf(h);f>-1?u.splice(f,1):(A.remove(h),l.push(h))}u.length!==0&&A.extend(u)}else{s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return(n||a)&&!yi(A.getArray(),v)?(this.addFeatureLayerAssociation_(v,m),u.push(v)):(i||a)&&yi(A.getArray(),v)&&(l.push(v),this.removeFeatureLayerAssociation_(v)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=l.length-1;p>=0;--p)A.remove(l[p]);A.extend(u)}return(u.length>0||l.length>0)&&this.dispatchEvent(new mJ(yJ.SELECT,u,l,t)),!0},e}(Kp);function wJ(){var r=cF();return Qr(r[st.POLYGON],r[st.LINE_STRING]),Qr(r[st.GEOMETRY_COLLECTION],r[st.LINE_STRING]),function(e){return e.getGeometry()?r[e.getGeometry().getType()]:null}}var sw=_J,EJ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function MM(r){if(r.feature)return r.feature;if(r.element)return r.element}var SC=[],CJ=function(r){EJ(e,r);function e(t){var n=this,i=t||{},a=i;return a.handleDownEvent||(a.handleDownEvent=iA),a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.source_=i.source?i.source:null,n.vertex_=i.vertex!==void 0?i.vertex:!0,n.edge_=i.edge!==void 0?i.edge:!0,n.features_=i.features?i.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=i.pixelTolerance!==void 0?i.pixelTolerance:10,n.rBush_=new M_,n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGemetry_.bind(n),LineString:n.segmentLineStringGemetry_.bind(n),LinearRing:n.segmentLineStringGemetry_.bind(n),Polygon:n.segmentPolygonGemetry_.bind(n),MultiPoint:n.segmentMultiPointGemetry_.bind(n),MultiLineString:n.segmentMultiLineStringGemetry_.bind(n),MultiPolygon:n.segmentMultiPolygonGemetry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGemetry_.bind(n),Circle:n.segmentCircleGemetry_.bind(n)},n}return e.prototype.addFeature=function(t,n){var i=n!==void 0?n:!0,a=pe(t),o=t.getGeometry();if(o){var s=this.GEOMETRY_SEGMENTERS_[o.getType()];if(s){this.indexedFeaturesExtents_[a]=o.getExtent(_i());var A=[];if(s(A,o),A.length===1)this.rBush_.insert(Yi(A[0]),{feature:t,segment:A[0]});else if(A.length>1){var l=A.map(function(c){return Yi(c)}),u=A.map(function(c){return{feature:t,segment:c}});this.rBush_.load(l,u)}}}i&&(this.featureChangeListenerKeys_[a]=Pe(t,ye.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(t){var n=this.snapTo(t.pixel,t.coordinate,t.map);return n&&(t.coordinate=n.vertex.slice(0,2),t.pixel=n.vertexPixel),r.prototype.handleEvent.call(this,t)},e.prototype.handleFeatureAdd_=function(t){var n=MM(t);this.addFeature(n)},e.prototype.handleFeatureRemove_=function(t){var n=MM(t);this.removeFeature(n)},e.prototype.handleFeatureChange_=function(t){var n=t.target;if(this.handlingDownUpSequence){var i=pe(n);i in this.pendingFeatures_||(this.pendingFeatures_[i]=n)}else this.updateFeature_(n)},e.prototype.handleUpEvent=function(t){var n=PI(this.pendingFeatures_);return n.length&&(n.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,n){var i=n!==void 0?n:!0,a=pe(t),o=this.indexedFeaturesExtents_[a];if(o){var s=this.rBush_,A=[];s.forEachInExtent(o,function(u){t===u.feature&&A.push(u)});for(var l=A.length-1;l>=0;--l)s.remove(A[l])}i&&(Rr(this.featureChangeListenerKeys_[a]),delete this.featureChangeListenerKeys_[a])},e.prototype.setMap=function(t){var n=this.getMap(),i=this.featuresListenerKeys_,a=this.getFeatures_();n&&(i.forEach(Rr),i.length=0,a.forEach(this.forEachFeatureRemove_.bind(this))),r.prototype.setMap.call(this,t),t&&(this.features_?i.push(Pe(this.features_,kn.ADD,this.handleFeatureAdd_,this),Pe(this.features_,kn.REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push(Pe(this.source_,Oi.ADDFEATURE,this.handleFeatureAdd_,this),Pe(this.source_,Oi.REMOVEFEATURE,this.handleFeatureRemove_,this)),a.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,n,i){var a=i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),o=i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),s=Yi([a,o]),A=this.rBush_.getInExtent(s),l=A.length;if(l===0)return null;var u=i.getView().getProjection(),c=Tn(n),h,f=1/0,p=this.pixelTolerance_*this.pixelTolerance_,v=function(){if(h){var M=i.getPixelFromCoordinate(h),x=el(t,M);if(x<=p)return{vertex:h,vertexPixel:[Math.round(M[0]),Math.round(M[1])]}}return null};if(this.vertex_){for(var m=0;m{t[i]=t[i].value});const n=Hg(Un({},t));return he(r,()=>{t=Lu(r),Object.keys(t).forEach(i=>{n[i]!=t[i].value&&!e.includes(i)&&(n[i]=t[i].value)})}),{properties:n}}var le=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};const bJ={name:"ol-map",setup(r,{emit:e}){const{properties:t}=vr(r),n=Gn(null);let i=new Aw(t);he(t,()=>{i.setProperties(t)}),Ze(()=>{i.setTarget(n.value)}),ir(()=>{i.setTarget(null),i=null}),Mr("map",i);const a=()=>i.focus(),o=(h,f,p={})=>i.forEachFeatureAtPixel(h,f,p),s=(h,f,p)=>i.forEachLayerAtPixel(h,f,p),A=h=>i.getCoordinateFromPixel(h),l=()=>i.refresh(),u=()=>i.render(),c=()=>i.updateSize();return i.on("click",h=>e("click",h)),i.on("dblclick",h=>e("dblclick",h)),i.on("singleclick",h=>e("singleclick",h)),i.on("pointerdrag",h=>e("pointerdrag",h)),i.on("pointermove",h=>e("pointermove",h)),i.on("movestart",h=>e("movestart",h)),i.on("moveend",h=>e("moveend",h)),i.on("postrender",h=>e("postrender",h)),i.on("precompose",h=>e("precompose",h)),i.on("postcompose",h=>e("postcompose",h)),{map:i,mapRef:n,focus:a,forEachFeatureAtPixel:o,forEachLayerAtPixel:s,getCoordinateFromPixel:A,refresh:l,render:u,updateSize:c}},props:{loadTilesWhileAnimating:{type:Boolean,default:!1},loadTilesWhileInteracting:{type:Boolean,default:!1},moveTolerance:{type:Number,default:1},pixelRatio:{type:Number,default:1},controls:{type:Array,default:()=>[]}}};function IJ(r,e,t,n,i,a){return cn(),Vn("div",{ref:o=>n.mapRef=o},[mr(r.$slots,"default")],512)}var eS=le(bJ,[["render",IJ]]);function FJ(r,e){const t=Ce("map"),{properties:n}=vr(r),i=()=>Os(Un({},n),{projection:typeof n.projection=="string"?n.projection:new ml(Un({},n.projection))});let a=new qs(i());Ze(()=>{t.setView(a)}),a.on("change:center",()=>{e("centerChanged",L()),e("zoomChanged",it())}),a.on("change:resolution",()=>e("resolutionChanged",P())),a.on("change:rotation",()=>e("rotationChanged",nt())),he(n,()=>{let W=i();a.setProperties(W),a.applyOptions_(W)});const o=W=>a.adjustCenter(W),s=(W,It)=>a.adjustResolution(W,It),A=(W,It)=>a.adjustRotation(W,It),l=(W,It)=>a.adjustZoom(W,It),u=W=>a.animate(W),c=()=>a.beginInteraction(),h=W=>a.calculateExtent(W),f=()=>a.cancelAnimations(),p=(W,It,Ot)=>a.centerOn(W,It,Ot),v=()=>a.changed(),m=W=>a.dispatchEvent(W),g=(W,It,Ot)=>a.endInteraction(W,It,Ot),_=(W,It)=>a.fit(W,It),E=W=>a.get(W),B=()=>a.getAnimating(),L=()=>a.getCenter(),O=()=>a.getInteracting(),b=()=>a.getKeys(),T=()=>a.getMaxResolution(),I=()=>a.getMaxZoom(),M=()=>a.getMinResolution(),x=()=>a.getMinZoom(),S=()=>a.getProjection(),N=()=>a.getProperties(),P=()=>a.getResolution(),X=(W,It)=>a.getResolutionForExtent(W,It),z=W=>a.getResolutionForZoom(W),tt=()=>a.getResolutions(),J=()=>a.getRevision(),nt=()=>a.getRotation(),it=()=>a.getZoom();return{view:a,adjustCenter:o,adjustResolution:s,adjustRotation:A,adjustZoom:l,animate:u,beginInteraction:c,calculateExtent:h,cancelAnimations:f,centerOn:p,changed:v,dispatchEvent:m,endInteraction:g,fit:_,get:E,getAnimating:B,getCenter:L,getInteracting:O,getKeys:b,getMaxResolution:T,getMaxZoom:I,getMinResolution:M,getMinZoom:x,getProjection:S,getProperties:N,getResolution:P,getResolutionForExtent:X,getResolutionForZoom:z,getResolutions:tt,getRevision:J,getRotation:nt,getZoom:it,getZoomForResolution:W=>a.getZoomForResolution(W),setCenter:W=>a.setCenter(W),setConstrainResolution:W=>a.setConstrainResolution(W),setMaxZoom:W=>a.setMaxZoom(W),setMinZoom:W=>a.setMinZoom(W),setResolution:W=>a.setResolution(W),setRotation:W=>a.setRotation(W),setZoom:W=>a.setZoom(W)}}const LJ={name:"ol-view",setup(r,{emit:e}){const t=FJ(r,e);return Un({},t)},props:{center:{type:Array,default:()=>[0,0]},constrainRotation:{type:Boolean,default:!0},enableRotation:{type:Boolean,default:!0},extent:{type:Array},constrainOnlyCenter:{type:Boolean,default:!1},smoothExtentConstraint:{type:Boolean,default:!0},maxResolution:{type:Number},minResolution:{type:Number},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},multiWorld:{type:Boolean,default:!1},constrainResolution:{type:Boolean,default:!1},smoothResolutionConstraint:{type:Boolean,default:!0},showFullExtent:{type:Boolean,default:!1},projection:{type:[String,Object],default:"EPSG:3857"},resolution:{type:Number},resolutions:{type:Array},rotation:{type:Number},zoom:{type:Number,default:0},zoomFactor:{type:Number,default:2},padding:{type:Array,default:()=>[0,0,0,0]}}};function OJ(r,e,t,n,i,a){return dr("",!0)}var rS=le(LJ,[["render",OJ]]);const RJ={name:"ol-feature",setup(r){const e=Ce("vectorSource"),t=Ce("vectorLayer"),n=Ce("animation",null),{properties:i}=vr(r);let a=hr(()=>new or(Un({},i.properties)));return he(a,(o,s)=>{e.value.removeFeature(s),e.value.addFeature(o),e.value.changed()}),he(e,(o,s)=>{s.removeFeature(a.value),o.addFeature(a.value),o.changed()}),Ze(()=>{e.value.addFeature(a.value),n!=null&&t.value.animateFeature(a.value,n.value)}),ir(()=>{e.value.removeFeature(a.value)}),Mr("feature",a),Mr("stylable",a),{feature:a}},props:{properties:{type:[Z1,Object,Array]}}};function MJ(r,e,t,n,i,a){return mr(r.$slots,"default")}var nS=le(RJ,[["render",MJ]]);function NJ(r,e){const t=Ce("map"),n=Gn(null),{properties:i}=vr(r);let a=hr(()=>new xQ(i));Ze(()=>{t.addOverlay(a.value)}),ir(()=>{t.removeOverlay(a.value)}),he(a,(v,m)=>{t.removeOverlay(m),t.addOverlay(v)}),lD(()=>{c(n.value)},{flush:"post"}),a.value.on("change:element",()=>e("elementChanged",o())),a.value.on("change:offset",()=>e("offsetChanged",s())),a.value.on("change:position",()=>e("positionChanged",A())),a.value.on("change:positioning",()=>e("positioningChanged",l()));const o=()=>a.value.getElement(),s=()=>a.value.getOffset(),A=()=>a.value.getPosition(),l=()=>a.value.getPositioning(),u=v=>a.value.panIntoView(v),c=v=>a.value.setElement(v);return{overlay:a,htmlContent:n,getOffset:s,getPosition:A,getPositioning:l,panIntoView:u,setElement:c,setOffset:v=>a.value.setOffset(v),setPosition:v=>a.value.setPosition(v),setPositioning:v=>a.value.setPositioning(v)}}const PJ={name:"ol-overlay",setup(r,{emit:e}){const t=new NJ(r,e);return Un({},t)},props:{position:{type:Array},offset:{type:Array},positioning:{type:String},stopEvent:{type:Boolean,default:!0},insertFirst:{type:Boolean,default:!0},autoPan:{type:Boolean,default:!1},autoPanMargin:{type:Number,default:20},autoPanAnimation:{type:Object,default:void 0}}},UJ={ref:"htmlContent"};function DJ(r,e,t,n,i,a){return cn(),Vn("div",UJ,[mr(r.$slots,"default",{position:t.position})],512)}var iS=le(PJ,[["render",DJ]]),t4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),On={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},QJ=function(r){t4(e,r);function e(t){var n=r.call(this,ye.ERROR)||this;return n.code=t.code,n.message=t.message,n}return e}(fo),HJ=function(r){t4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.position_=null,n.transform_=W1,n.watchId_=void 0,n.addChangeListener(On.PROJECTION,n.handleProjectionChanged_),n.addChangeListener(On.TRACKING,n.handleTrackingChanged_),i.projection!==void 0&&n.setProjection(i.projection),i.trackingOptions!==void 0&&n.setTrackingOptions(i.trackingOptions),n.setTracking(i.tracking!==void 0?i.tracking:!1),n}return e.prototype.disposeInternal=function(){this.setTracking(!1),r.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=fh(Oe("EPSG:4326"),t),this.position_&&this.set(On.POSITION,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if("geolocation"in navigator){var t=this.getTracking();t&&this.watchId_===void 0?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):!t&&this.watchId_!==void 0&&(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var n=t.coords;this.set(On.ACCURACY,n.accuracy),this.set(On.ALTITUDE,n.altitude===null?void 0:n.altitude),this.set(On.ALTITUDE_ACCURACY,n.altitudeAccuracy===null?void 0:n.altitudeAccuracy),this.set(On.HEADING,n.heading===null?void 0:Cu(n.heading)),this.position_?(this.position_[0]=n.longitude,this.position_[1]=n.latitude):this.position_=[n.longitude,n.latitude];var i=this.transform_(this.position_);this.set(On.POSITION,i),this.set(On.SPEED,n.speed===null?void 0:n.speed);var a=PW(this.position_,n.accuracy);a.applyTransform(this.transform_),this.set(On.ACCURACY_GEOMETRY,a),this.changed()},e.prototype.positionError_=function(t){this.dispatchEvent(new QJ(t))},e.prototype.getAccuracy=function(){return this.get(On.ACCURACY)},e.prototype.getAccuracyGeometry=function(){return this.get(On.ACCURACY_GEOMETRY)||null},e.prototype.getAltitude=function(){return this.get(On.ALTITUDE)},e.prototype.getAltitudeAccuracy=function(){return this.get(On.ALTITUDE_ACCURACY)},e.prototype.getHeading=function(){return this.get(On.HEADING)},e.prototype.getPosition=function(){return this.get(On.POSITION)},e.prototype.getProjection=function(){return this.get(On.PROJECTION)},e.prototype.getSpeed=function(){return this.get(On.SPEED)},e.prototype.getTracking=function(){return this.get(On.TRACKING)},e.prototype.getTrackingOptions=function(){return this.get(On.TRACKING_OPTIONS)},e.prototype.setProjection=function(t){this.set(On.PROJECTION,Oe(t))},e.prototype.setTracking=function(t){this.set(On.TRACKING,t)},e.prototype.setTrackingOptions=function(t){this.set(On.TRACKING_OPTIONS,t)},e}(li),GJ=HJ;const kJ={name:"ol-geolocation",emits:["positionChanged","speedChanged","headingChanged","altitudeChanged","altitudeAccuracyChanged","accuracyGeometryChanged"],setup(r,{emit:e}){const{properties:t}=vr(r);let n=hr(()=>{let h=new GJ(t);return h.on("change",c),h});const i=Gn([]),a=Gn(0),o=Gn(0),s=Gn(0),A=Gn(0),l=Gn(0),u=Gn({});he(i,()=>{e("positionChanged",i.value)}),he(A,()=>{e("speedChanged",A.value)}),he(l,()=>{e("headingChanged",l.value)}),he(o,()=>{e("altitudeChanged",o.value)}),he(s,()=>{e("altitudeAccuracyChanged",s.value)}),he(u,()=>{e("accuracyGeometryChanged",u.value)});const c=()=>{i.value=n.value.getPosition(),A.value=n.value.getSpeed(),l.value=n.value.getHeading(),a.value=n.value.getAccuracy(),o.value=n.value.getAltitude(),s.value=n.value.getAltitudeAccuracy(),u.value=n.value.getAccuracyGeometry()};return he(n,(h,f)=>{f.un("change",c),h.on("change",c)}),{geoLoc:n,position:i,accuracy:a,altitude:o,altitudeAccuracy:s,speed:A,heading:l,accuracyGeometry:u}},props:{projection:{type:[String,Object],default:"EPSG:3857"},tracking:{type:Boolean,default:!0},trackingOptions:{type:Object,default:()=>({enableHighAccuracy:!0})}}};function $J(r,e,t,n,i,a){return mr(r.$slots,"default",{position:n.position,speed:n.speed,heading:n.heading,accuracy:n.accuracy,altitude:n.altitude,altitudeAccuracy:n.altitudeAccuracy,accuracyGeometry:n.accuracyGeometry})}var aS=le(kJ,[["render",$J]]);function VJ(r){r("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),r("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),r("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),r.WGS84=r["EPSG:4326"],r["EPSG:3785"]=r["EPSG:3857"],r.GOOGLE=r["EPSG:3857"],r["EPSG:900913"]=r["EPSG:3857"],r["EPSG:102113"]=r["EPSG:3857"]}var dh=1,vh=2,M0=3,jJ=4,oS=5,NM=6378137,KJ=6356752314e-3,PM=.0066943799901413165,Qv=484813681109536e-20,zt=Math.PI/2,zJ=.16666666666666666,YJ=.04722222222222222,XJ=.022156084656084655,ne=1e-10,ra=.017453292519943295,tA=57.29577951308232,zr=Math.PI/4,yg=Math.PI*2,ei=3.14159265359,po={};po.greenwich=0;po.lisbon=-9.131906111111;po.paris=2.337229166667;po.bogota=-74.080916666667;po.madrid=-3.687938888889;po.rome=12.452333333333;po.bern=7.439583333333;po.jakarta=106.807719444444;po.ferro=-17.666666666667;po.brussels=4.367975;po.stockholm=18.058277777778;po.athens=23.7163375;po.oslo=10.722916666667;var WJ={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},UM=/[\s_\-\/\(\)]/g;function Gu(r,e){if(r[e])return r[e];for(var t=Object.keys(r),n=e.toLowerCase().replace(UM,""),i=-1,a,o;++i=this.text.length)return;r=this.text[this.place++]}switch(this.state){case mg:return this.neutral(r);case e4:return this.keyword(r);case N_:return this.quoted(r);case n4:return this.afterquote(r);case r4:return this.number(r);case gF:return}};wl.prototype.afterquote=function(r){if(r==='"'){this.word+='"',this.state=N_;return}if(lw.test(r)){this.word=this.word.trim(),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in afterquote yet, index '+this.place)};wl.prototype.afterItem=function(r){if(r===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=mg;return}if(r==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=mg,this.currentObject=this.stack.pop(),this.currentObject||(this.state=gF);return}};wl.prototype.number=function(r){if(i4.test(r)){this.word+=r;return}if(lw.test(r)){this.word=parseFloat(this.word),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in number yet, index '+this.place)};wl.prototype.quoted=function(r){if(r==='"'){this.state=n4;return}this.word+=r};wl.prototype.keyword=function(r){if(JJ.test(r)){this.word+=r;return}if(r==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=mg;return}if(lw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in keyword yet, index '+this.place)};wl.prototype.neutral=function(r){if(ZJ.test(r)){this.word=r,this.state=e4;return}if(r==='"'){this.word="",this.state=N_;return}if(i4.test(r)){this.word=r,this.state=r4;return}if(lw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in neutral yet, index '+this.place)};wl.prototype.output=function(){for(;this.place0?90:-90),r.lat_ts=r.lat1)}function a4(r){var e=ttt(r),t=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",t]);var i={};return Kf(e,i),ntt(i),i}function Na(r){var e=this;if(arguments.length===2){var t=arguments[1];typeof t=="string"?t.charAt(0)==="+"?Na[r]=sS(arguments[1]):Na[r]=a4(arguments[1]):Na[r]=t}else if(arguments.length===1){if(Array.isArray(r))return r.map(function(n){Array.isArray(n)?Na.apply(e,n):Na(n)});if(typeof r=="string"){if(r in Na)return Na[r]}else"EPSG"in r?Na["EPSG:"+r.EPSG]=r:"ESRI"in r?Na["ESRI:"+r.ESRI]=r:"IAU2000"in r?Na["IAU2000:"+r.IAU2000]=r:console.log(r);return}}VJ(Na);function itt(r){return typeof r=="string"}function att(r){return r in Na}var ott=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function stt(r){return ott.some(function(e){return r.indexOf(e)>-1})}var Att=["3857","900913","3785","102113"];function ltt(r){var e=Gu(r,"authority");if(e){var t=Gu(e,"epsg");return t&&Att.indexOf(t)>-1}}function utt(r){var e=Gu(r,"extension");if(e)return Gu(e,"proj4")}function ctt(r){return r[0]==="+"}function htt(r){if(itt(r)){if(att(r))return Na[r];if(stt(r)){var e=a4(r);if(ltt(e))return Na["EPSG:3857"];var t=utt(e);return t?sS(t):e}if(ctt(r))return sS(r)}else return r}function QM(r,e){r=r||{};var t,n;if(!e)return r;for(n in e)t=e[n],t!==void 0&&(r[n]=t);return r}function uA(r,e,t){var n=r*e;return t/Math.sqrt(1-n*n)}function iy(r){return r<0?-1:1}function fe(r){return Math.abs(r)<=ei?r:r-iy(r)*yg}function Ss(r,e,t){var n=r*t,i=.5*r;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(zt-e))/n}function _g(r,e){for(var t=.5*r,n,i,a=zt-2*Math.atan(e),o=0;o<=15;o++)if(n=r*Math.sin(a),i=zt-2*Math.atan(e*Math.pow((1-n)/(1+n),t))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function ftt(){var r=this.b/this.a;this.es=1-r*r,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function ptt(r){var e=r.x,t=r.y;if(t*tA>90&&t*tA<-90&&e*tA>180&&e*tA<-180)return null;var n,i;if(Math.abs(Math.abs(t)-zt)<=ne)return null;if(this.sphere)n=this.x0+this.a*this.k0*fe(e-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(zr+.5*t));else{var a=Math.sin(t),o=Ss(this.e,t,a);n=this.x0+this.a*this.k0*fe(e-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return r.x=n,r.y=i,r}function dtt(r){var e=r.x-this.x0,t=r.y-this.y0,n,i;if(this.sphere)i=zt-2*Math.atan(Math.exp(-t/(this.a*this.k0)));else{var a=Math.exp(-t/(this.a*this.k0));if(i=_g(this.e,a),i===-9999)return null}return n=fe(this.long0+e/(this.a*this.k0)),r.x=n,r.y=i,r}var vtt=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],gtt={init:ftt,forward:ptt,inverse:dtt,names:vtt};function ytt(){}function HM(r){return r}var mtt=["longlat","identity"],_tt={init:ytt,forward:HM,inverse:HM,names:mtt},wtt=[gtt,_tt],N0={},P_=[];function o4(r,e){var t=P_.length;return r.names?(P_[t]=r,r.names.forEach(function(n){N0[n.toLowerCase()]=t}),this):(console.log(e),!0)}function Ett(r){if(!r)return!1;var e=r.toLowerCase();if(typeof N0[e]<"u"&&P_[N0[e]])return P_[N0[e]]}function Ctt(){wtt.forEach(o4)}var Btt={start:Ctt,add:o4,get:Ett},Ye={};Ye.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Ye.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Ye.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Ye.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Ye.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Ye.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Ye.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Ye.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Ye.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Ye.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Ye.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Ye.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Ye.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Ye.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Ye.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Ye.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Ye.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Ye.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Ye.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Ye.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Ye.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Ye.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Ye.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Ye.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Ye.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Ye.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Ye.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Ye.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Ye.hough={a:6378270,rf:297,ellipseName:"Hough"};Ye.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Ye.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Ye.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Ye.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Ye.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Ye.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Ye.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Ye.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Ye.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Ye.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Ye.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Ye.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var Ttt=Ye.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ye.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function Stt(r,e,t,n){var i=r*r,a=e*e,o=(i-a)/i,s=0;n?(r*=1-o*(zJ+o*(YJ+o*XJ)),i=r*r,o=0):s=Math.sqrt(o);var A=(i-a)/a;return{es:o,e:s,ep2:A}}function xtt(r,e,t,n,i){if(!r){var a=Gu(Ye,n);a||(a=Ttt),r=a.a,e=a.b,t=a.rf}return t&&!e&&(e=(1-1/t)*r),(t===0||Math.abs(r-e)3&&(s.datum_params[3]!==0||s.datum_params[4]!==0||s.datum_params[5]!==0||s.datum_params[6]!==0)&&(s.datum_type=vh,s.datum_params[3]*=Qv,s.datum_params[4]*=Qv,s.datum_params[5]*=Qv,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=M0,s.grids=o),s.a=t,s.b=n,s.es=i,s.ep2=a,s}var s4={};function Itt(r,e){var t=new DataView(e),n=Ott(t),i=Rtt(t,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a=Mtt(t,i,n),o={header:i,subgrids:a};return s4[r]=o,o}function Ftt(r){if(r===void 0)return null;var e=r.split(",");return e.map(Ltt)}function Ltt(r){if(r.length===0)return null;var e=r[0]==="@";return e&&(r=r.slice(1)),r==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:r,mandatory:!e,grid:s4[r]||null,isNull:!1}}function zf(r){return r/3600*Math.PI/180}function Ott(r){var e=r.getInt32(8,!1);return e===11?!1:(e=r.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Rtt(r,e){return{nFields:r.getInt32(8,e),nSubgridFields:r.getInt32(24,e),nSubgrids:r.getInt32(40,e),shiftType:AS(r,56,56+8).trim(),fromSemiMajorAxis:r.getFloat64(120,e),fromSemiMinorAxis:r.getFloat64(136,e),toSemiMajorAxis:r.getFloat64(152,e),toSemiMinorAxis:r.getFloat64(168,e)}}function AS(r,e,t){return String.fromCharCode.apply(null,new Uint8Array(r.buffer.slice(e,t)))}function Mtt(r,e,t){for(var n=176,i=[],a=0;a5e-11?!1:r.datum_type===dh?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]:r.datum_type===vh?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]&&r.datum_params[3]===e.datum_params[3]&&r.datum_params[4]===e.datum_params[4]&&r.datum_params[5]===e.datum_params[5]&&r.datum_params[6]===e.datum_params[6]:!0}function A4(r,e,t){var n=r.x,i=r.y,a=r.z?r.z:0,o,s,A,l;if(i<-zt&&i>-1.001*zt)i=-zt;else if(i>zt&&i<1.001*zt)i=zt;else{if(i<-zt)return{x:-1/0,y:-1/0,z:r.z};if(i>zt)return{x:1/0,y:1/0,z:r.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(i),l=Math.cos(i),A=s*s,o=t/Math.sqrt(1-e*A),{x:(o+a)*l*Math.cos(n),y:(o+a)*l*Math.sin(n),z:(o*(1-e)+a)*s}}function l4(r,e,t,n){var i=1e-12,a=i*i,o=30,s,A,l,u,c,h,f,p,v,m,g,_,E,B=r.x,L=r.y,O=r.z?r.z:0,b,T,I;if(s=Math.sqrt(B*B+L*L),A=Math.sqrt(B*B+L*L+O*O),s/ta&&En.y||u>n.x||fs&&Math.abs(A.y)>s);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=fe(a.x+t.ll[0]),n.y=a.y+t.ll[1]}else isNaN(a.x)||(n.x=r.x+a.x,n.y=r.y+a.y);return n}function kM(r,e){var t={x:r.x/e.del[0],y:r.y/e.del[1]},n={x:Math.floor(t.x),y:Math.floor(t.y)},i={x:t.x-1*n.x,y:t.y-1*n.y},a={x:Number.NaN,y:Number.NaN},o;if(n.x<0||n.x>=e.lim[0]||n.y<0||n.y>=e.lim[1])return a;o=n.y*e.lim[0]+n.x;var s={x:e.cvs[o][0],y:e.cvs[o][1]};o++;var A={x:e.cvs[o][0],y:e.cvs[o][1]};o+=e.lim[0];var l={x:e.cvs[o][0],y:e.cvs[o][1]};o--;var u={x:e.cvs[o][0],y:e.cvs[o][1]},c=i.x*i.y,h=i.x*(1-i.y),f=(1-i.x)*(1-i.y),p=(1-i.x)*i.y;return a.x=f*s.x+h*A.x+p*u.x+c*l.x,a.y=f*s.y+h*A.y+p*u.y+c*l.y,a}function $M(r,e,t){var n=t.x,i=t.y,a=t.z||0,o,s,A,l={};for(A=0;A<3;A++)if(!(e&&A===2&&t.z===void 0))switch(A===0?(o=n,"ew".indexOf(r.axis[A])!==-1?s="x":s="y"):A===1?(o=i,"ns".indexOf(r.axis[A])!==-1?s="y":s="x"):(o=a,s="z"),r.axis[A]){case"e":l[s]=o;break;case"w":l[s]=-o;break;case"n":l[s]=o;break;case"s":l[s]=-o;break;case"u":t[s]!==void 0&&(l.z=o);break;case"d":t[s]!==void 0&&(l.z=-o);break;default:return null}return l}function u4(r){var e={x:r[0],y:r[1]};return r.length>2&&(e.z=r[2]),r.length>3&&(e.m=r[3]),e}function $tt(r){VM(r.x),VM(r.y)}function VM(r){if(typeof Number.isFinite=="function"){if(Number.isFinite(r))return;throw new TypeError("coordinates must be finite numbers")}if(typeof r!="number"||r!==r||!isFinite(r))throw new TypeError("coordinates must be finite numbers")}function Vtt(r,e){return(r.datum.datum_type===dh||r.datum.datum_type===vh)&&e.datumCode!=="WGS84"||(e.datum.datum_type===dh||e.datum.datum_type===vh)&&r.datumCode!=="WGS84"}function U_(r,e,t,n){var i;if(Array.isArray(t)&&(t=u4(t)),$tt(t),r.datum&&e.datum&&Vtt(r,e)&&(i=new aA("WGS84"),t=U_(r,i,t,n),r=i),n&&r.axis!=="enu"&&(t=$M(r,!1,t)),r.projName==="longlat")t={x:t.x*ra,y:t.y*ra,z:t.z||0};else if(r.to_meter&&(t={x:t.x*r.to_meter,y:t.y*r.to_meter,z:t.z||0}),t=r.inverse(t),!t)return;if(r.from_greenwich&&(t.x+=r.from_greenwich),t=Gtt(r.datum,e.datum,t),!!t)return e.from_greenwich&&(t={x:t.x-e.from_greenwich,y:t.y,z:t.z||0}),e.projName==="longlat"?t={x:t.x*tA,y:t.y*tA,z:t.z||0}:(t=e.forward(t),e.to_meter&&(t={x:t.x/e.to_meter,y:t.y/e.to_meter,z:t.z||0})),n&&e.axis!=="enu"?$M(e,!0,t):t}var jM=aA("WGS84");function xC(r,e,t,n){var i,a,o;return Array.isArray(t)?(i=U_(r,e,t,n)||{x:NaN,y:NaN},t.length>2?typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(t.splice(3)):[i.x,i.y,t[2]].concat(t.splice(3)):[i.x,i.y].concat(t.splice(2)):[i.x,i.y]):(a=U_(r,e,t,n),o=Object.keys(t),o.length===2||o.forEach(function(s){if(typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(s==="x"||s==="y"||s==="z")return}else if(s==="x"||s==="y")return;a[s]=t[s]}),a)}function KM(r){return r instanceof aA?r:r.oProj?r.oProj:aA(r)}function co(r,e,t){r=KM(r);var n=!1,i;return typeof e>"u"?(e=r,r=jM,n=!0):(typeof e.x<"u"||Array.isArray(e))&&(t=e,e=r,r=jM,n=!0),e=KM(e),t?xC(r,e,t):(i={forward:function(a,o){return xC(r,e,a,o)},inverse:function(a,o){return xC(e,r,a,o)}},n&&(i.oProj=e),i)}var zM=6,c4="AJSAJS",h4="AFAFAF",Yf=65,eo=73,Ko=79,dv=86,vv=90,jtt={forward:f4,inverse:Ktt,toPoint:p4};function f4(r,e){return e=e||5,Xtt(ztt({lat:r[1],lon:r[0]}),e)}function Ktt(r){var e=yF(v4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function p4(r){var e=yF(v4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function bC(r){return r*(Math.PI/180)}function YM(r){return 180*(r/Math.PI)}function ztt(r){var e=r.lat,t=r.lon,n=6378137,i=.00669438,a=.9996,o,s,A,l,u,c,h,f=bC(e),p=bC(t),v,m;m=Math.floor((t+180)/6)+1,t===180&&(m=60),e>=56&&e<64&&t>=3&&t<12&&(m=32),e>=72&&e<84&&(t>=0&&t<9?m=31:t>=9&&t<21?m=33:t>=21&&t<33?m=35:t>=33&&t<42&&(m=37)),o=(m-1)*6-180+3,v=bC(o),s=i/(1-i),A=n/Math.sqrt(1-i*Math.sin(f)*Math.sin(f)),l=Math.tan(f)*Math.tan(f),u=s*Math.cos(f)*Math.cos(f),c=Math.cos(f)*(p-v),h=n*((1-i/4-3*i*i/64-5*i*i*i/256)*f-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*f)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*f)-35*i*i*i/3072*Math.sin(6*f));var g=a*A*(c+(1-l+u)*c*c*c/6+(5-18*l+l*l+72*u-58*s)*c*c*c*c*c/120)+5e5,_=a*(h+A*Math.tan(f)*(c*c/2+(5-l+9*u+4*u*u)*c*c*c*c/24+(61-58*l+l*l+600*u-330*s)*c*c*c*c*c*c/720));return e<0&&(_+=1e7),{northing:Math.round(_),easting:Math.round(g),zoneNumber:m,zoneLetter:Ytt(e)}}function yF(r){var e=r.northing,t=r.easting,n=r.zoneLetter,i=r.zoneNumber;if(i<0||i>60)return null;var a=.9996,o=6378137,s=.00669438,A,l=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s)),u,c,h,f,p,v,m,g,_,E=t-5e5,B=e;n<"N"&&(B-=1e7),m=(i-1)*6-180+3,A=s/(1-s),v=B/a,g=v/(o*(1-s/4-3*s*s/64-5*s*s*s/256)),_=g+(3*l/2-27*l*l*l/32)*Math.sin(2*g)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*g)+151*l*l*l/96*Math.sin(6*g),u=o/Math.sqrt(1-s*Math.sin(_)*Math.sin(_)),c=Math.tan(_)*Math.tan(_),h=A*Math.cos(_)*Math.cos(_),f=o*(1-s)/Math.pow(1-s*Math.sin(_)*Math.sin(_),1.5),p=E/(u*a);var L=_-u*Math.tan(_)/f*(p*p/2-(5+3*c+10*h-4*h*h-9*A)*p*p*p*p/24+(61+90*c+298*h+45*c*c-252*A-3*h*h)*p*p*p*p*p*p/720);L=YM(L);var O=(p-(1+2*c+h)*p*p*p/6+(5-2*h+28*c-3*h*h+8*A+24*c*c)*p*p*p*p*p/120)/Math.cos(_);O=m+YM(O);var b;if(r.accuracy){var T=yF({northing:r.northing+r.accuracy,easting:r.easting+r.accuracy,zoneLetter:r.zoneLetter,zoneNumber:r.zoneNumber});b={top:T.lat,right:T.lon,bottom:L,left:O}}else b={lat:L,lon:O};return b}function Ytt(r){var e="Z";return 84>=r&&r>=72?e="X":72>r&&r>=64?e="W":64>r&&r>=56?e="V":56>r&&r>=48?e="U":48>r&&r>=40?e="T":40>r&&r>=32?e="S":32>r&&r>=24?e="R":24>r&&r>=16?e="Q":16>r&&r>=8?e="P":8>r&&r>=0?e="N":0>r&&r>=-8?e="M":-8>r&&r>=-16?e="L":-16>r&&r>=-24?e="K":-24>r&&r>=-32?e="J":-32>r&&r>=-40?e="H":-40>r&&r>=-48?e="G":-48>r&&r>=-56?e="F":-56>r&&r>=-64?e="E":-64>r&&r>=-72?e="D":-72>r&&r>=-80&&(e="C"),e}function Xtt(r,e){var t="00000"+r.easting,n="00000"+r.northing;return r.zoneNumber+r.zoneLetter+Wtt(r.easting,r.northing,r.zoneNumber)+t.substr(t.length-5,e)+n.substr(n.length-5,e)}function Wtt(r,e,t){var n=d4(t),i=Math.floor(r/1e5),a=Math.floor(e/1e5)%20;return qtt(i,a,n)}function d4(r){var e=r%zM;return e===0&&(e=zM),e}function qtt(r,e,t){var n=t-1,i=c4.charCodeAt(n),a=h4.charCodeAt(n),o=i+r-1,s=a+e,A=!1;o>vv&&(o=o-vv+Yf-1,A=!0),(o===eo||ieo||(o>eo||iKo||(o>Ko||ivv&&(o=o-vv+Yf-1),s>dv?(s=s-dv+Yf-1,A=!0):A=!1,(s===eo||aeo||(s>eo||aKo||(s>Ko||adv&&(s=s-dv+Yf-1);var l=String.fromCharCode(o)+String.fromCharCode(s);return l}function v4(r){if(r&&r.length===0)throw"MGRSPoint coverting from nothing";for(var e=r.length,t=null,n="",i,a=0;!/[A-Z]/.test(i=r.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+r;n+=i,a++}var o=parseInt(n,10);if(a===0||a+3>e)throw"MGRSPoint bad conversion from: "+r;var s=r.charAt(a++);if(s<="A"||s==="B"||s==="Y"||s>="Z"||s==="I"||s==="O")throw"MGRSPoint zone letter "+s+" not handled: "+r;t=r.substring(a,a+=2);for(var A=d4(o),l=Ztt(t.charAt(0),A),u=Jtt(t.charAt(1),A);u=0;--s)a[s].renderDeclutter(t);fX(this.element_,this.children_),this.dispatchRenderEvent(ao.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,n,i,a,o){for(var s=n.viewState,A=n.layerStatesArray,l=A.length,u=l-1;u>=0;--u){var c=A[u],h=c.layer;if(h.hasRenderer()&&g_(c,s)&&o(h)){var f=h.getRenderer(),p=f.getDataAtPixel(t,n,i);if(p){var v=a(h,p);if(v)return v}}}},e}(oX),iQ=wX,kn={ADD:"add",REMOVE:"remove"},aQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),rM={LENGTH:"length"},Em=function(r){aQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.element=n,a.index=i,a}return e}(fo),EX=function(r){aQ(e,r);function e(t,n){var i=r.call(this)||this;i.on,i.once,i.un;var a=n||{};if(i.unique_=!!a.unique,i.array_=t||[],i.unique_)for(var o=0,s=i.array_.length;o0;)this.pop()},e.prototype.extend=function(t){for(var n=0,i=t.length;nthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Rr(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ye.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Rr(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Rr),this.dragListenerKeys_.length=0,this.element_=null,r.prototype.disposeInternal.call(this)},e}(Th),FX=IX,Ks={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Jn={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},C_=1/0,LX=function(){function r(e,t){this.priorityFunction_=e,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return r.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Bh(this.queuedElements_)},r.prototype.dequeue=function(){var e=this.elements_,t=this.priorities_,n=e[0];e.length==1?(e.length=0,t.length=0):(e[0]=e.pop(),t[0]=t.pop(),this.siftUp_(0));var i=this.keyFunction_(n);return delete this.queuedElements_[i],n},r.prototype.enqueue=function(e){_e(!(this.keyFunction_(e)in this.queuedElements_),31);var t=this.priorityFunction_(e);return t!=C_?(this.elements_.push(e),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(e)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1},r.prototype.getCount=function(){return this.elements_.length},r.prototype.getLeftChildIndex_=function(e){return e*2+1},r.prototype.getRightChildIndex_=function(e){return e*2+2},r.prototype.getParentIndex_=function(e){return e-1>>1},r.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},r.prototype.isEmpty=function(){return this.elements_.length===0},r.prototype.isKeyQueued=function(e){return e in this.queuedElements_},r.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},r.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,i=t.length,a=t[e],o=n[e],s=e;e>1;){var A=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=le;){var s=this.getParentIndex_(t);if(i[s]>o)n[t]=n[s],i[t]=i[s],t=s;else break}n[t]=a,i[t]=o},r.prototype.reprioritize=function(){var e=this.priorityFunction_,t=this.elements_,n=this.priorities_,i=0,a=t.length,o,s,A;for(s=0;s0;)o=this.dequeue()[0],s=o.getKey(),a=o.getState(),a===ge.IDLE&&!(s in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[s]=!0,++this.tilesLoading_,++i,o.load())},e}(OX),NX=MX;function PX(r,e,t,n,i){if(!r||!(t in r.wantedTiles)||!r.wantedTiles[t][e.getKey()])return C_;var a=r.viewState.center,o=n[0]-a[0],s=n[1]-a[1];return 65536*Math.log(i)+Math.sqrt(o*o+s*s)/i}var st={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},jp={RADIANS:"radians",DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},bs={};bs[jp.RADIANS]=6370997/(2*Math.PI);bs[jp.DEGREES]=2*Math.PI*6370997/360;bs[jp.FEET]=.3048;bs[jp.METERS]=1;bs[jp.USFEET]=1200/3937;var Qa=jp,gn={ANIMATING:0,INTERACTING:1},So={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"},UX=42,GI=256,DX=function(){function r(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}return r.prototype.canWrapX=function(){return this.canWrapX_},r.prototype.getCode=function(){return this.code_},r.prototype.getExtent=function(){return this.extent_},r.prototype.getUnits=function(){return this.units_},r.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||bs[this.units_]},r.prototype.getWorldExtent=function(){return this.worldExtent_},r.prototype.getAxisOrientation=function(){return this.axisOrientation_},r.prototype.isGlobal=function(){return this.global_},r.prototype.setGlobal=function(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)},r.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},r.prototype.setDefaultTileGrid=function(e){this.defaultTileGrid_=e},r.prototype.setExtent=function(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)},r.prototype.setWorldExtent=function(e){this.worldExtent_=e},r.prototype.setGetPointResolution=function(e){this.getPointResolutionFunc_=e},r.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},r}(),ml=DX,QX=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qg=6378137,Vf=Math.PI*qg,HX=[-Vf,-Vf,Vf,Vf],GX=[-180,-85,180,85],Cm=qg*Math.log(Math.tan(Math.PI/2)),cf=function(r){QX(e,r);function e(t){return r.call(this,{code:t,units:Qa.METERS,extent:HX,global:!0,worldExtent:GX,getPointResolution:function(n,i){return n/QY(i[1]/qg)}})||this}return e}(ml),nM=[new cf("EPSG:3857"),new cf("EPSG:102100"),new cf("EPSG:102113"),new cf("EPSG:900913"),new cf("http://www.opengis.net/def/crs/EPSG/0/3857"),new cf("http://www.opengis.net/gml/srs/epsg.xml#3857")];function kX(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;oCm?s=Cm:s<-Cm&&(s=-Cm),a[o+1]=s}return a}function $X(r,e,t){var n=r.length,i=t>1?t:2,a=e;a===void 0&&(i>2?a=r.slice():a=new Array(n));for(var o=0;o=2;--l)o[s+l]=e[s+l]}return o}}function JX(r,e,t,n){var i=Oe(r),a=Oe(e);Sp(i,a,oM(t)),Sp(a,i,oM(n))}function Ws(r,e){if(r===e)return!0;var t=r.getUnits()===e.getUnits();if(r.getCode()===e.getCode())return t;var n=fh(r,e);return n===kI&&t}function fh(r,e){var t=r.getCode(),n=e.getCode(),i=sQ(t,n);return i||(i=W1),i}function vg(r,e){var t=Oe(r),n=Oe(e);return fh(t,n)}function Qu(r,e,t){var n=vg(e,t);return n(r,void 0,r.length)}function S_(r,e,t,n){var i=vg(e,t);return MI(r,i,void 0,n)}var tW=null;function ph(){return tW}function xp(r,e){return r}function Tn(r,e){return KT&&!_s(r,[0,0])&&r[0]>=-180&&r[0]<=180&&r[1]>=-90&&r[1]<=90&&(KT=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),r}function q1(r,e){return r}function Lo(r,e){return r}function eW(r,e){return r}function sM(r,e,t){return function(n){var i=n[0],a=n[1],o,s;if(r.canWrapX()){var A=r.getExtent(),l=Fr(A);s=Z6(n,r,l),s&&(i=i-s*l),i=xn(i,A[0],A[2]),a=xn(a,A[1],A[3]),o=t([i,a])}else o=t(n);return s&&e.canWrapX()&&(o[0]+=s*Fr(e.getExtent())),o}}function rW(){zT(nM),zT(aM),ZX(aM,nM,kX,$X)}rW();function AM(r,e,t){return function(n,i,a,o,s){if(n){if(!i&&!e)return n;var A=e?0:a[0]*i,l=e?0:a[1]*i,u=s?s[0]:0,c=s?s[1]:0,h=r[0]+A/2+u,f=r[2]-A/2+u,p=r[1]+l/2+c,v=r[3]-l/2+c;h>f&&(h=(f+h)/2,f=h),p>v&&(p=(v+p)/2,v=p);var m=xn(n[0],h,f),g=xn(n[1],p,v);if(o&&t&&i){var _=30*i;m+=-_*Math.log(1+Math.max(0,h-n[0])/_)+_*Math.log(1+Math.max(0,n[0]-f)/_),g+=-_*Math.log(1+Math.max(0,p-n[1])/_)+_*Math.log(1+Math.max(0,n[1]-v)/_)}return[m,g]}}}function nW(r){return r}function VI(r,e,t,n){var i=Fr(e)/t[0],a=Ai(e)/t[1];return n?Math.min(r,Math.max(i,a)):Math.min(r,Math.min(i,a))}function jI(r,e,t){var n=Math.min(r,e),i=50;return n*=Math.log(1+i*Math.max(0,r/e-1))/i+1,t&&(n=Math.max(n,t),n/=Math.log(1+i*Math.max(0,t/r-1))/i+1),xn(n,t/2,e*2)}function iW(r,e,t,n){return function(i,a,o,s){if(i!==void 0){var A=r[0],l=r[r.length-1],u=t?VI(A,t,o,n):A;if(s){var c=e!==void 0?e:!0;return c?jI(i,u,l):xn(i,l,u)}var h=Math.min(u,i),f=Math.floor(j1(r,h,a));return r[f]>u&&f1)c=t;else if(h>0){for(var f=0;fi&&(i=l),a=s,o=A}return i}function qI(r,e,t,n,i){for(var a=0,o=t.length;a0;){for(var c=l.pop(),h=l.pop(),f=0,p=r[h],v=r[h+1],m=r[c],g=r[c+1],_=h+n;_f&&(u=_,f=L)}f>i&&(A[(u-e)/n]=1,h+n0&&v>f)&&(p<0&&m0&&m>p)){l=c,u=h;continue}a[o++]=l,a[o++]=u,s=l,A=u,l=c,u=h}}return a[o++]=l,a[o++]=u,o}function hQ(r,e,t,n,i,a,o,s){for(var A=0,l=t.length;Aa&&(l-s)*(a-A)-(i-s)*(u-A)>0&&o++:u<=a&&(l-s)*(a-A)-(i-s)*(u-A)<0&&o--,s=l,A=u}return o!==0}function rF(r,e,t,n,i,a){if(t.length===0||!Dc(r,e,t[0],n,i,a))return!1;for(var o=1,s=t.length;oB&&(l=(u+c)/2,rF(r,e,t,n,l,p)&&(E=l,B=L)),u=c}return isNaN(E)&&(E=i[a]),o?(o.push(E,p,B),o):[E,p,B]}function dQ(r,e,t,n,i){for(var a=[],o=0,s=t.length;o=i[0]&&a[2]<=i[2]||a[1]>=i[1]&&a[3]<=i[3]?!0:vQ(r,e,t,n,function(o,s){return H6(i,o,s)}):!1}function FW(r,e,t,n,i){for(var a=0,o=t.length;a0}function yQ(r,e,t,n,i){for(var a=i!==void 0?i:!1,o=0,s=t.length;o1&&typeof arguments[n-1]=="function"&&(i=arguments[n-1],--n);for(var a=0;a0},e.prototype.getInteracting=function(){return this.hints_[gn.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(gn.ANIMATING,-this.hints_[gn.ANIMATING]);for(var t,n=0,i=this.animations_.length;n=0;--i){for(var a=this.animations_[i],o=!0,s=0,A=a.length;s0?u/l.duration:1;c>=1?(l.complete=!0,c=1):o=!1;var h=l.easing(c);if(l.sourceCenter){var f=l.sourceCenter[0],p=l.sourceCenter[1],v=l.targetCenter[0],m=l.targetCenter[1];this.nextCenter_=l.targetCenter;var g=f+h*(v-f),_=p+h*(m-p);this.targetCenter_=[g,_]}if(l.sourceResolution&&l.targetResolution){var E=h===1?l.targetResolution:l.sourceResolution+h*(l.targetResolution-l.sourceResolution);if(l.anchor){var B=this.getViewportSize_(this.getRotation()),L=this.constraints_.resolution(E,0,B,!0);this.targetCenter_=this.calculateCenterZoom(L,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=E,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){var O=h===1?Bu(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+h*(l.targetRotation-l.sourceRotation);if(l.anchor){var b=this.constraints_.rotation(O,!0);this.targetCenter_=this.calculateCenterRotate(b,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=O}if(this.applyTargetState_(!0),n=!0,!l.complete)break}}if(o){this.animations_[i]=null,this.setHint(gn.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var T=a[0].callback;T&&Bm(T,!0)}}this.animations_=this.animations_.filter(Boolean),n&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},e.prototype.calculateCenterRotate=function(t,n){var i,a=this.getCenterInternal();return a!==void 0&&(i=[a[0]-n[0],a[1]-n[1]],QI(i,t-this.getRotation()),W6(i,n)),i},e.prototype.calculateCenterZoom=function(t,n){var i,a=this.getCenterInternal(),o=this.getResolution();if(a!==void 0&&o!==void 0){var s=n[0]-t*(n[0]-a[0])/o,A=n[1]-t*(n[1]-a[1])/o;i=[s,A]}return i},e.prototype.getViewportSize_=function(t){var n=this.viewportSize_;if(t){var i=n[0],a=n[1];return[Math.abs(i*Math.cos(t))+Math.abs(a*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(a*Math.cos(t))]}else return n},e.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},e.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&xp(t,this.getProjection())},e.prototype.getCenterInternal=function(){return this.get(So.CENTER)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},e.prototype.getHints=function(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var n=this.calculateExtentInternal(t);return q1(n,this.getProjection())},e.prototype.calculateExtentInternal=function(t){var n=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();_e(i,1);var a=this.getResolution();_e(a!==void 0,2);var o=this.getRotation();return _e(o!==void 0,3),Xc(i,a,o,n)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(So.RESOLUTION)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,n){return this.getResolutionForExtentInternal(Lo(t,this.getProjection()),n)},e.prototype.getResolutionForExtentInternal=function(t,n){var i=n||this.getViewportSizeMinusPadding_(),a=Fr(t)/i[0],o=Ai(t)/i[1];return Math.max(a,o)},e.prototype.getResolutionForValueFunction=function(t){var n=t||2,i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/Math.log(n);return function(s){var A=i/Math.pow(n,s*o);return A}},e.prototype.getRotation=function(){return this.get(So.ROTATION)},e.prototype.getValueForResolutionFunction=function(t){var n=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),a=this.minResolution_,o=Math.log(i/a)/n;return function(s){var A=Math.log(i/s)/n/o;return A}},e.prototype.getViewportSizeMinusPadding_=function(t){var n=this.getViewportSize_(t),i=this.padding_;return i&&(n=[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]),n},e.prototype.getState=function(){var t=this.getProjection(),n=this.getResolution(),i=this.getRotation(),a=this.getCenterInternal(),o=this.padding_;if(o){var s=this.getViewportSizeMinusPadding_();a=hC(a,this.getViewportSize_(),[s[0]/2+o[3],s[1]/2+o[0]],n,i)}return{center:a.slice(0),projection:t!==void 0?t:null,resolution:n,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,n=this.getResolution();return n!==void 0&&(t=this.getZoomForResolution(n)),t},e.prototype.getZoomForResolution=function(t){var n=this.minZoom_||0,i,a;if(this.resolutions_){var o=j1(this.resolutions_,t,1);n=o,i=this.resolutions_[o],o==this.resolutions_.length-1?a=2:a=i/this.resolutions_[o+1]}else i=this.maxResolution_,a=this.zoomFactor_;return n+Math.log(i/t)/Math.log(a)},e.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var n=xn(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[n]/this.resolutions_[n+1];return this.resolutions_[n]/Math.pow(i,xn(t-n,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},e.prototype.fit=function(t,n){var i;if(_e(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){_e(!Vp(t),25);var a=Lo(t,this.getProjection());i=Hu(a)}else if(t.getType()===st.CIRCLE){var a=Lo(t.getExtent(),this.getProjection());i=Hu(a),i.rotate(this.getRotation(),Sa(a))}else{var o=ph();o?i=t.clone().transform(o,this.getProjection()):i=t}this.fitInternal(i,n)},e.prototype.rotatedExtentForGeometry=function(t){for(var n=this.getRotation(),i=Math.cos(n),a=Math.sin(-n),o=t.getFlatCoordinates(),s=t.getStride(),A=1/0,l=1/0,u=-1/0,c=-1/0,h=0,f=o.length;h0&&r[1]>0}function _Q(r,e,t){return t===void 0&&(t=[0,0]),t[0]=r[0]*e+.5|0,t[1]=r[1]*e+.5|0,t}function Pi(r,e){return Array.isArray(r)?r:(e===void 0?e=[r,r]:(e[0]=r,e[1]=r),e)}var jW=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function wQ(r){if(r instanceof Sh){r.setMapInternal(null);return}r instanceof Wg&&r.getLayers().forEach(wQ)}function EQ(r,e){if(r instanceof Sh){r.setMapInternal(e);return}if(r instanceof Wg)for(var t=r.getLayers().getArray(),n=0,i=t.length;n=0;l--){var u=A[l];if(!(u.getMap()!==this||!u.getActive()||!this.getTargetElement())){var c=u.handleEvent(t);if(!c||t.propagationStopped)break}}}},e.prototype.handlePostRender=function(){var t=this.frameState_,n=this.tileQueue_;if(!n.isEmpty()){var i=this.maxTilesLoading_,a=i;if(t){var o=t.viewHints;if(o[gn.ANIMATING]||o[gn.INTERACTING]){var s=Date.now()-t.time>8;i=s?0:8,a=s?0:2}}n.getTilesLoading()0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!yl(n,this.renderedAttributions_)){eQ(this.ulElement_);for(var a=0,o=n.length;a0&&i%(2*Math.PI)!==0?n.animate({rotation:0,duration:this.duration_,easing:ts}):n.setRotation(0))}},e.prototype.render=function(t){var n=t.frameState;if(n){var i=n.viewState.rotation;if(i!=this.rotation_){var a="rotate("+i+"rad)";if(this.autoHide_){var o=this.element.classList.contains(wm);!o&&i===0?this.element.classList.add(wm):o&&i!==0&&this.element.classList.remove(wm)}this.label_.style.transform=a}this.rotation_=i}},e}(_r),TQ=tq,eq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),rq=function(r){eq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this;var a=i.className!==void 0?i.className:"ol-zoom",o=i.delta!==void 0?i.delta:1,s=i.zoomInClassName!==void 0?i.zoomInClassName:a+"-in",A=i.zoomOutClassName!==void 0?i.zoomOutClassName:a+"-out",l=i.zoomInLabel!==void 0?i.zoomInLabel:"+",u=i.zoomOutLabel!==void 0?i.zoomOutLabel:"–",c=i.zoomInTipLabel!==void 0?i.zoomInTipLabel:"Zoom in",h=i.zoomOutTipLabel!==void 0?i.zoomOutTipLabel:"Zoom out",f=document.createElement("button");f.className=s,f.setAttribute("type","button"),f.title=c,f.appendChild(typeof l=="string"?document.createTextNode(l):l),f.addEventListener(ye.CLICK,n.handleClick_.bind(n,o),!1);var p=document.createElement("button");p.className=A,p.setAttribute("type","button"),p.title=h,p.appendChild(typeof u=="string"?document.createTextNode(u):u),p.addEventListener(ye.CLICK,n.handleClick_.bind(n,-o),!1);var v=a+" "+lA+" "+xh,m=n.element;return m.className=v,m.appendChild(f),m.appendChild(p),n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleClick_=function(t,n){n.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var n=this.getMap(),i=n.getView();if(i){var a=i.getZoom();if(a!==void 0){var o=i.getConstrainedZoom(a+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:o,duration:this.duration_,easing:ts})):i.setZoom(o)}}},e}(_r),SQ=rq,nq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),vM=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],gM={ENTERFULLSCREEN:"enterfullscreen",LEAVEFULLSCREEN:"leavefullscreen"},iq=function(r){nq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.on,n.once,n.un,n.keys_=i.keys!==void 0?i.keys:!1,n.source_=i.source,n.isInFullscreen_=!1,n.boundHandleMapTargetChange_=n.handleMapTargetChange_.bind(n),n.cssClassName_=i.className!==void 0?i.className:"ol-full-screen",n.documentListeners_=[],n.activeClassName_=i.activeClassName!==void 0?i.activeClassName.split(" "):[n.cssClassName_+"-true"],n.inactiveClassName_=i.inactiveClassName!==void 0?i.inactiveClassName.split(" "):[n.cssClassName_+"-false"];var a=i.label!==void 0?i.label:"⤢";n.labelNode_=typeof a=="string"?document.createTextNode(a):a;var o=i.labelActive!==void 0?i.labelActive:"×";n.labelActiveNode_=typeof o=="string"?document.createTextNode(o):o;var s=i.tipLabel?i.tipLabel:"Toggle full-screen";return n.button_=document.createElement("button"),n.button_.title=s,n.button_.setAttribute("type","button"),n.button_.appendChild(n.labelNode_),n.button_.addEventListener(ye.CLICK,n.handleClick_.bind(n),!1),n.setClassName_(n.button_,n.isInFullscreen_),n.element.className="".concat(n.cssClassName_," ").concat(lA," ").concat(xh),n.element.appendChild(n.button_),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleFullScreen_()},e.prototype.handleFullScreen_=function(){var t=this.getMap();if(t){var n=t.getOwnerDocument();if(yM(n))if(mM(n))oq(n);else{var i=void 0;this.source_?i=typeof this.source_=="string"?n.getElementById(this.source_):this.source_:i=t.getTargetElement(),this.keys_?aq(i):xQ(i)}}},e.prototype.handleFullScreenChange_=function(){var t=this.getMap();if(t){var n=this.isInFullscreen_;this.isInFullscreen_=mM(t.getOwnerDocument()),n!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Bp(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(gM.ENTERFULLSCREEN)):(Bp(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(gM.LEAVEFULLSCREEN)),t.updateSize())}},e.prototype.setClassName_=function(t,n){var i,a,o,s;n?((i=t.classList).remove.apply(i,this.inactiveClassName_),(a=t.classList).add.apply(a,this.activeClassName_)):((o=t.classList).remove.apply(o,this.activeClassName_),(s=t.classList).add.apply(s,this.inactiveClassName_))},e.prototype.setMap=function(t){var n=this.getMap();n&&n.removeChangeListener(Jn.TARGET,this.boundHandleMapTargetChange_),r.prototype.setMap.call(this,t),this.handleMapTargetChange_(),t&&t.addChangeListener(Jn.TARGET,this.boundHandleMapTargetChange_)},e.prototype.handleMapTargetChange_=function(){for(var t=this.documentListeners_,n=0,i=t.length;np*pC||f>v*pC?this.resetExtent_():Fo(l,o)||this.recenter_()}}},e.prototype.resetExtent_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getSize(),a=t.getView(),o=a.calculateExtentInternal(i),s=n.getView(),A=Math.log(pC/Tm)/Math.LN2,l=1/(Math.pow(2,A/2)*Tm);Q6(o,l),s.fitInternal(Hu(o))},e.prototype.recenter_=function(){var t=this.getMap(),n=this.ovmap_,i=t.getView(),a=n.getView();a.setCenterInternal(i.getCenterInternal())},e.prototype.updateBox_=function(){var t=this.getMap(),n=this.ovmap_;if(!(!t.isRendered()||!n.isRendered())){var i=t.getSize(),a=t.getView(),o=n.getView(),s=this.rotateWithView_?0:-a.getRotation(),A=this.boxOverlay_,l=this.boxOverlay_.getElement(),u=a.getCenterInternal(),c=a.getResolution(),h=o.getResolution(),f=i[0]*c/h,p=i[1]*c/h;if(A.setPosition(u),l){l.style.width=f+"px",l.style.height=p+"px";var v="rotate("+s+"rad)";l.style.transform=v}}},e.prototype.updateBoxAfterOvmapIsRendered_=function(){this.ovmapPostrenderKey_||(this.ovmapPostrenderKey_=lg(this.ovmap_,Ks.POSTRENDER,function(t){delete this.ovmapPostrenderKey_,this.updateBox_()},this))},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(y_),this.collapsed_?Bp(this.collapseLabel_,this.label_):Bp(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var t=this.ovmap_;if(!this.collapsed_){if(t.isRendered()){this.viewExtent_=void 0,t.render();return}t.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){!this.collapsible_||this.collapsed_===t||this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.setRotateWithView=function(t){this.rotateWithView_!==t&&(this.rotateWithView_=t,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))},e.prototype.getOverviewMap=function(){return this.ovmap_},e.prototype.render=function(t){this.validateExtent_(),this.updateBox_()},e}(_r),dq=pq,vq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),dC="units",vc={DEGREES:"degrees",IMPERIAL:"imperial",NAUTICAL:"nautical",METRIC:"metric",US:"us"},gq=[1,2,5],vC=25.4/.28,yq=function(r){vq(e,r);function e(t){var n=this,i=t||{},a=i.className!==void 0?i.className:i.bar?"ol-scale-bar":"ol-scale-line";return n=r.call(this,{element:document.createElement("div"),render:i.render,target:i.target})||this,n.on,n.once,n.un,n.innerElement_=document.createElement("div"),n.innerElement_.className=a+"-inner",n.element.className=a+" "+lA,n.element.appendChild(n.innerElement_),n.viewState_=null,n.minWidth_=i.minWidth!==void 0?i.minWidth:64,n.renderedVisible_=!1,n.renderedWidth_=void 0,n.renderedHTML_="",n.addChangeListener(dC,n.handleUnitsChanged_),n.setUnits(i.units||vc.METRIC),n.scaleBar_=i.bar||!1,n.scaleBarSteps_=i.steps||4,n.scaleBarText_=i.text||!1,n.dpi_=i.dpi||void 0,n}return e.prototype.getUnits=function(){return this.get(dC)},e.prototype.handleUnitsChanged_=function(){this.updateElement_()},e.prototype.setUnits=function(t){this.set(dC,t)},e.prototype.setDpi=function(t){this.dpi_=t},e.prototype.updateElement_=function(){var t=this.viewState_;if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}var n=t.center,i=t.projection,a=this.getUnits(),o=a==vc.DEGREES?Qa.DEGREES:Qa.METERS,s=T_(i,t.resolution,n,o),A=this.minWidth_*(this.dpi_||vC)/vC,l=A*s,u="";if(a==vc.DEGREES){var c=bs[Qa.DEGREES];l*=c,l=A)break;++h}var g;this.scaleBar_?g=this.createScaleBar(p,f,u):g=f.toFixed(v<0?-v:0)+" "+u,this.renderedHTML_!=g&&(this.innerElement_.innerHTML=g,this.renderedHTML_=g),this.renderedWidth_!=p&&(this.innerElement_.style.width=p+"px",this.renderedWidth_=p),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)},e.prototype.createScaleBar=function(t,n,i){for(var a="1 : "+Math.round(this.getScaleForResolution()).toLocaleString(),o=[],s=t/this.scaleBarSteps_,A="#ffffff",l=0;l
'+this.createMarker("relative",l)+(l%2===0||this.scaleBarSteps_===2?this.createStepText(l,t,!1,n,i):"")+""),l===this.scaleBarSteps_-1&&o.push(this.createStepText(l+1,t,!0,n,i)),A==="#ffffff"?A="#000000":A="#ffffff";var u;this.scaleBarText_?u='
'+a+"
":u="";var c='
'+u+o.join("")+"
";return c},e.prototype.createMarker=function(t,n){var i=t==="absolute"?3:-10;return'
'},e.prototype.createStepText=function(t,n,i,a,o){var s=t===0?0:Math.round(a/this.scaleBarSteps_*t*100)/100,A=s+(t===0?"":" "+o),l=t===0?-3:n/this.scaleBarSteps_*-1,u=t===0?0:n/this.scaleBarSteps_*2;return'
'+A+"
"},e.prototype.getScaleForResolution=function(){var t=T_(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,Qa.METERS),n=this.dpi_||vC,i=1e3/25.4;return parseFloat(t.toString())*i*n},e.prototype.render=function(t){var n=t.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()},e}(_r),mq=yq,_q=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kd={VERTICAL:0,HORIZONTAL:1},wq=function(r){_q(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),render:i.render})||this,n.dragListenerKeys_=[],n.currentResolution_=void 0,n.direction_=kd.VERTICAL,n.dragging_,n.heightLimit_=0,n.widthLimit_=0,n.startX_,n.startY_,n.thumbSize_=null,n.sliderInitialized_=!1,n.duration_=i.duration!==void 0?i.duration:200;var a=i.className!==void 0?i.className:"ol-zoomslider",o=document.createElement("button");o.setAttribute("type","button"),o.className=a+"-thumb "+lA;var s=n.element;return s.className=a+" "+lA+" "+xh,s.appendChild(o),s.addEventListener(Xs.POINTERDOWN,n.handleDraggerStart_.bind(n),!1),s.addEventListener(Xs.POINTERMOVE,n.handleDraggerDrag_.bind(n),!1),s.addEventListener(Xs.POINTERUP,n.handleDraggerEnd_.bind(n),!1),s.addEventListener(ye.CLICK,n.handleContainerClick_.bind(n),!1),o.addEventListener(ye.CLICK,KY,!1),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),t&&t.render()},e.prototype.initSlider_=function(){var t=this.element,n=t.offsetWidth,i=t.offsetHeight;if(n===0&&i===0)return this.sliderInitialized_=!1;var a=getComputedStyle(t);n-=parseFloat(a.paddingRight)+parseFloat(a.paddingLeft),i-=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom);var o=t.firstElementChild,s=getComputedStyle(o),A=o.offsetWidth+parseFloat(s.marginRight)+parseFloat(s.marginLeft),l=o.offsetHeight+parseFloat(s.marginTop)+parseFloat(s.marginBottom);return this.thumbSize_=[A,l],n>i?(this.direction_=kd.HORIZONTAL,this.widthLimit_=n-A):(this.direction_=kd.VERTICAL,this.heightLimit_=i-l),this.sliderInitialized_=!0},e.prototype.handleContainerClick_=function(t){var n=this.getMap().getView(),i=this.getRelativePosition_(t.offsetX-this.thumbSize_[0]/2,t.offsetY-this.thumbSize_[1]/2),a=this.getResolutionForPosition_(i),o=n.getConstrainedZoom(n.getZoomForResolution(a));n.animateInternal({zoom:o,duration:this.duration_,easing:ts})},e.prototype.handleDraggerStart_=function(t){if(!this.dragging_&&t.target===this.element.firstElementChild){var n=this.element.firstElementChild;if(this.getMap().getView().beginInteraction(),this.startX_=t.clientX-parseFloat(n.style.left),this.startY_=t.clientY-parseFloat(n.style.top),this.dragging_=!0,this.dragListenerKeys_.length===0){var i=this.handleDraggerDrag_,a=this.handleDraggerEnd_,o=this.getMap().getOwnerDocument();this.dragListenerKeys_.push(Pe(o,Xs.POINTERMOVE,i,this),Pe(o,Xs.POINTERUP,a,this))}}},e.prototype.handleDraggerDrag_=function(t){if(this.dragging_){var n=t.clientX-this.startX_,i=t.clientY-this.startY_,a=this.getRelativePosition_(n,i);this.currentResolution_=this.getResolutionForPosition_(a),this.getMap().getView().setResolution(this.currentResolution_)}},e.prototype.handleDraggerEnd_=function(t){if(this.dragging_){var n=this.getMap().getView();n.endInteraction(),this.dragging_=!1,this.startX_=void 0,this.startY_=void 0,this.dragListenerKeys_.forEach(Rr),this.dragListenerKeys_.length=0}},e.prototype.setThumbPosition_=function(t){var n=this.getPositionForResolution_(t),i=this.element.firstElementChild;this.direction_==kd.HORIZONTAL?i.style.left=this.widthLimit_*n+"px":i.style.top=this.heightLimit_*n+"px"},e.prototype.getRelativePosition_=function(t,n){var i;return this.direction_===kd.HORIZONTAL?i=t/this.widthLimit_:i=n/this.heightLimit_,xn(i,0,1)},e.prototype.getResolutionForPosition_=function(t){var n=this.getMap().getView().getResolutionForValueFunction();return n(1-t)},e.prototype.getPositionForResolution_=function(t){var n=this.getMap().getView().getValueForResolutionFunction();return xn(1-n(t),0,1)},e.prototype.render=function(t){if(t.frameState&&!(!this.sliderInitialized_&&!this.initSlider_())){var n=t.frameState.viewState.resolution;this.currentResolution_=n,this.setThumbPosition_(n)}},e}(_r),Eq=wq,Cq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Bq=function(r){Cq(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{element:document.createElement("div"),target:i.target})||this,n.extent=i.extent?i.extent:null;var a=i.className!==void 0?i.className:"ol-zoom-extent",o=i.label!==void 0?i.label:"E",s=i.tipLabel!==void 0?i.tipLabel:"Fit to extent",A=document.createElement("button");A.setAttribute("type","button"),A.title=s,A.appendChild(typeof o=="string"?document.createTextNode(o):o),A.addEventListener(ye.CLICK,n.handleClick_.bind(n),!1);var l=a+" "+lA+" "+xh,u=n.element;return u.className=l,u.appendChild(A),n}return e.prototype.handleClick_=function(t){t.preventDefault(),this.handleZoomToExtent()},e.prototype.handleZoomToExtent=function(){var t=this.getMap(),n=t.getView(),i=this.extent?this.extent:n.getProjection().getExtent();n.fitInternal(Hu(i))},e}(_r),Tq=Bq;function Sq(r){var e=r||{},t=new si,n=e.zoom!==void 0?e.zoom:!0;n&&t.push(new SQ(e.zoomOptions));var i=e.rotate!==void 0?e.rotate:!0;i&&t.push(new TQ(e.rotateOptions));var a=e.attribution!==void 0?e.attribution:!0;return a&&t.push(new BQ(e.attributionOptions)),t}var qT={ACTIVE:"active"},xq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bq=function(r){xq(e,r);function e(t){var n=r.call(this)||this;return n.on,n.once,n.un,t&&t.handleEvent&&(n.handleEvent=t.handleEvent),n.map_=null,n.setActive(!0),n}return e.prototype.getActive=function(){return this.get(qT.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(qT.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(li);function Iq(r,e,t){var n=r.getCenterInternal();if(n){var i=[n[0]+e[0],n[1]+e[1]];r.animateInternal({duration:t!==void 0?t:250,easing:YI,center:r.getConstrainedCenter(i)})}}function iF(r,e,t,n){var i=r.getZoom();if(i!==void 0){var a=r.getConstrainedZoom(i+e),o=r.getResolutionForZoom(a);r.getAnimating()&&r.cancelAnimations(),r.animate({resolution:o,anchor:t,duration:n!==void 0?n:250,easing:ts})}}var Kp=bq,Fq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lq=function(r){Fq(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ar.DBLCLICK){var i=t.originalEvent,a=t.map,o=t.coordinate,s=i.shiftKey?-this.delta_:this.delta_,A=a.getView();iF(A,s,o,this.duration_),i.preventDefault(),n=!0}return!n},e}(Kp),Oq=Lq,Rq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Mq=function(r){Rq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,i.handleDownEvent&&(n.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(n.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(n.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(n.handleUpEvent=i.handleUpEvent),i.stopDown&&(n.stopDown=i.stopDown),n.handlingDownUpSequence=!1,n.trackedPointers_={},n.targetPointers=[],n}return e.prototype.getPointerCount=function(){return this.targetPointers.length},e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var n=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==ar.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==ar.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==ar.POINTERDOWN){var a=this.handleDownEvent(t);this.handlingDownUpSequence=a,n=this.stopDown(a)}else t.type==ar.POINTERMOVE&&this.handleMoveEvent(t);return!n},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(Nq(t)){var n=t.originalEvent,i=n.pointerId.toString();t.type==ar.POINTERUP?delete this.trackedPointers_[i]:t.type==ar.POINTERDOWN?this.trackedPointers_[i]=n:i in this.trackedPointers_&&(this.trackedPointers_[i]=n),this.targetPointers=PI(this.trackedPointers_)}},e}(Kp);function aF(r){for(var e=r.length,t=0,n=0,i=0;i0&&this.condition_(t)){var n=t.map,i=n.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}else return!1},e}(Po),jq=Vq,Kq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zq=function(r){Kq(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,{stopDown:Ch})||this,n.condition_=i.condition?i.condition:LQ,n.lastAngle_=void 0,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){if(qc(t)){var n=t.map,i=n.getView();if(i.getConstraints().rotation!==KI){var a=n.getSize(),o=t.pixel,s=Math.atan2(a[1]/2-o[1],o[0]-a[0]/2);if(this.lastAngle_!==void 0){var A=s-this.lastAngle_;i.adjustRotationInternal(-A)}this.lastAngle_=s}}},e.prototype.handleUpEvent=function(t){if(!qc(t))return!0;var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1},e.prototype.handleDownEvent=function(t){if(!qc(t))return!1;if(sF(t)&&this.condition_(t)){var n=t.map;return n.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},e}(Po),Yq=zq,Xq=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wq=function(r){Xq(e,r);function e(t){var n=r.call(this)||this;return n.geometry_=null,n.element_=document.createElement("div"),n.element_.style.position="absolute",n.element_.style.pointerEvents="auto",n.element_.className="ol-box "+t,n.map_=null,n.startPixel_=null,n.endPixel_=null,n}return e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,n=this.endPixel_,i="px",a=this.element_.style;a.left=Math.min(t[0],n[0])+i,a.top=Math.min(t[1],n[1])+i,a.width=Math.abs(n[0]-t[0])+i,a.height=Math.abs(n[1]-t[1])+i},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var n=this.element_.style;n.left="inherit",n.top="inherit",n.width="inherit",n.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,n){this.startPixel_=t,this.endPixel_=n,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,n=this.endPixel_,i=[t,[t[0],n[1]],n,[n[0],t[1]]],a=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);a[4]=a[0].slice(),this.geometry_?this.geometry_.setCoordinates([a]):this.geometry_=new bn([a])},e.prototype.getGeometry=function(){return this.geometry_},e}(V1),qq=Wq,RQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Sm={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},gC=function(r){RQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.coordinate=n,a.mapBrowserEvent=i,a}return e}(fo),Zq=function(r){RQ(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.box_=new qq(i.className||"ol-dragbox"),n.minArea_=i.minArea!==void 0?i.minArea:64,i.onBoxEnd&&(n.onBoxEnd=i.onBoxEnd),n.startPixel_=null,n.condition_=i.condition?i.condition:sF,n.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:n.defaultBoxEndCondition,n}return e.prototype.defaultBoxEndCondition=function(t,n,i){var a=i[0]-n[0],o=i[1]-n[1];return a*a+o*o>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new gC(Sm.BOXDRAG,t.coordinate,t))},e.prototype.handleUpEvent=function(t){this.box_.setMap(null);var n=this.boxEndCondition_(t,this.startPixel_,t.pixel);return n&&this.onBoxEnd(t),this.dispatchEvent(new gC(n?Sm.BOXEND:Sm.BOXCANCEL,t.coordinate,t)),!1},e.prototype.handleDownEvent=function(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new gC(Sm.BOXSTART,t.coordinate,t)),!0):!1},e.prototype.onBoxEnd=function(t){},e}(Po),Jq=Zq,t3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),e3=function(r){t3(e,r);function e(t){var n=this,i=t||{},a=i.condition?i.condition:Jg;return n=r.call(this,{condition:a,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,n.duration_=i.duration!==void 0?i.duration:200,n.out_=i.out!==void 0?i.out:!1,n}return e.prototype.onBoxEnd=function(t){var n=this.getMap(),i=n.getView(),a=this.getGeometry();if(this.out_){var o=i.rotatedExtentForGeometry(a),s=i.getResolutionForExtentInternal(o),A=i.getResolution()/s;a=a.clone(),a.scale(A*A)}i.fitInternal(a,{duration:this.duration_,easing:ts})},e}(Jq),r3=e3,gc={LEFT:37,UP:38,RIGHT:39,DOWN:40},n3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),i3=function(r){n3(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.defaultCondition_=function(a){return iw(a)&&AF(a)},n.condition_=i.condition!==void 0?i.condition:n.defaultCondition_,n.duration_=i.duration!==void 0?i.duration:100,n.pixelDelta_=i.pixelDelta!==void 0?i.pixelDelta:128,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ye.KEYDOWN){var i=t.originalEvent,a=i.keyCode;if(this.condition_(t)&&(a==gc.DOWN||a==gc.LEFT||a==gc.RIGHT||a==gc.UP)){var o=t.map,s=o.getView(),A=s.getResolution()*this.pixelDelta_,l=0,u=0;a==gc.DOWN?u=-A:a==gc.LEFT?l=-A:a==gc.RIGHT?l=A:u=A;var c=[l,u];QI(c,s.getRotation()),Iq(s,c,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Kp),a3=i3,o3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),s3=function(r){o3(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.condition_=i.condition?i.condition:AF,n.delta_=i.delta?i.delta:1,n.duration_=i.duration!==void 0?i.duration:100,n}return e.prototype.handleEvent=function(t){var n=!1;if(t.type==ye.KEYDOWN||t.type==ye.KEYPRESS){var i=t.originalEvent,a=i.charCode;if(this.condition_(t)&&(a=="+".charCodeAt(0)||a=="-".charCodeAt(0))){var o=t.map,s=a=="+".charCodeAt(0)?this.delta_:-this.delta_,A=o.getView();iF(A,s,void 0,this.duration_),i.preventDefault(),n=!0}}return!n},e}(Kp),A3=s3,l3=function(){function r(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}return r.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},r.prototype.update=function(e,t){this.points_.push(e,t,Date.now())},r.prototype.end=function(){if(this.points_.length<6)return!1;var e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[n+2]>e;)n-=3;var i=this.points_[t+2]-this.points_[n+2];if(i<1e3/60)return!1;var a=this.points_[t]-this.points_[n],o=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(o,a),this.initialVelocity_=Math.sqrt(a*a+o*o)/i,this.initialVelocity_>this.minVelocity_},r.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},r.prototype.getAngle=function(){return this.angle_},r}(),u3=l3,c3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yC={TRACKPAD:"trackpad",WHEEL:"wheel"},h3=function(r){c3(e,r);function e(t){var n=this,i=t||{};n=r.call(this,i)||this,n.totalDelta_=0,n.lastDelta_=0,n.maxDelta_=i.maxDelta!==void 0?i.maxDelta:1,n.duration_=i.duration!==void 0?i.duration:250,n.timeout_=i.timeout!==void 0?i.timeout:80,n.useAnchor_=i.useAnchor!==void 0?i.useAnchor:!0,n.constrainResolution_=i.constrainResolution!==void 0?i.constrainResolution:!1;var a=i.condition?i.condition:rw;return n.condition_=i.onFocusOnly?b_(oF,a):a,n.lastAnchor_=null,n.startTime_=void 0,n.timeoutId_,n.mode_=void 0,n.trackpadEventGap_=400,n.trackpadTimeoutId_,n.deltaPerZoom_=300,n}return e.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap().getView();t.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=t.type;if(n!==ye.WHEEL)return!0;var i=t.map,a=t.originalEvent;a.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var o;if(t.type==ye.WHEEL&&(o=a.deltaY,yY&&a.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(o/=uh),a.deltaMode===WheelEvent.DOM_DELTA_LINE&&(o*=40)),o===0)return!1;this.lastDelta_=o;var s=Date.now();this.startTime_===void 0&&(this.startTime_=s),(!this.mode_||s-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(o)<4?yC.TRACKPAD:yC.WHEEL);var A=i.getView();if(this.mode_===yC.TRACKPAD&&!(A.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(A.getAnimating()&&A.cancelAnimations(),A.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),A.adjustZoom(-o/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=s,!1;this.totalDelta_+=o;var l=Math.max(this.timeout_-(s-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1},e.prototype.handleWheelZoom_=function(t){var n=t.getView();n.getAnimating()&&n.cancelAnimations();var i=-xn(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(n.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),iF(n,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(Kp),f3=h3,p3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),d3=function(r){p3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.anchor_=null,n.lastAngle_=void 0,n.rotating_=!1,n.rotationDelta_=0,n.threshold_=i.threshold!==void 0?i.threshold:.3,n.duration_=i.duration!==void 0?i.duration:250,n}return e.prototype.handleDragEvent=function(t){var n=0,i=this.targetPointers[0],a=this.targetPointers[1],o=Math.atan2(a.clientY-i.clientY,a.clientX-i.clientX);if(this.lastAngle_!==void 0){var s=o-this.lastAngle_;this.rotationDelta_+=s,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),n=s}this.lastAngle_=o;var A=t.map,l=A.getView();if(l.getConstraints().rotation!==KI){var u=A.getViewport().getBoundingClientRect(),c=aF(this.targetPointers);c[0]-=u.left,c[1]-=u.top,this.anchor_=A.getCoordinateFromPixelInternal(c),this.rotating_&&(A.render(),l.adjustRotationInternal(n,this.anchor_))}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView();return i.endInteraction(this.duration_),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(Po),v3=d3,g3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),y3=function(r){g3(e,r);function e(t){var n=this,i=t||{},a=i;return a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.anchor_=null,n.duration_=i.duration!==void 0?i.duration:400,n.lastDistance_=void 0,n.lastScaleDelta_=1,n}return e.prototype.handleDragEvent=function(t){var n=1,i=this.targetPointers[0],a=this.targetPointers[1],o=i.clientX-a.clientX,s=i.clientY-a.clientY,A=Math.sqrt(o*o+s*s);this.lastDistance_!==void 0&&(n=this.lastDistance_/A),this.lastDistance_=A;var l=t.map,u=l.getView();n!=1&&(this.lastScaleDelta_=n);var c=l.getViewport().getBoundingClientRect(),h=aF(this.targetPointers);h[0]-=c.left,h[1]-=c.top,this.anchor_=l.getCoordinateFromPixelInternal(h),l.render(),u.adjustResolutionInternal(n,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),!1}else return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var n=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||n.getView().beginInteraction(),!0}else return!1},e}(Po),m3=y3,Cs={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"},_3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),w3=function(r){_3(e,r);function e(t){var n=this,i=t||{};return n=r.call(this,i)||this,n.condition_=i.condition?i.condition:Jg,n.lastAngle_=void 0,n.lastMagnitude_=void 0,n.lastScaleDelta_=0,n.duration_=i.duration!==void 0?i.duration:400,n}return e.prototype.handleDragEvent=function(t){if(qc(t)){var n=t.map,i=n.getSize(),a=t.pixel,o=a[0]-i[0]/2,s=i[1]/2-a[1],A=Math.atan2(s,o),l=Math.sqrt(o*o+s*s),u=n.getView();if(this.lastAngle_!==void 0){var c=this.lastAngle_-A;u.adjustRotationInternal(c)}this.lastAngle_=A,this.lastMagnitude_!==void 0&&u.adjustResolutionInternal(this.lastMagnitude_/l),this.lastMagnitude_!==void 0&&(this.lastScaleDelta_=this.lastMagnitude_/l),this.lastMagnitude_=l}},e.prototype.handleUpEvent=function(t){if(!qc(t))return!0;var n=t.map,i=n.getView(),a=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,a),this.lastScaleDelta_=0,!1},e.prototype.handleDownEvent=function(t){return qc(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0):!1},e}(Po),E3=w3,C3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),MQ=function(r){C3(e,r);function e(t,n,i){var a=r.call(this)||this;if(i!==void 0&&n===void 0)a.setFlatCoordinates(i,t);else{var o=n||0;a.setCenterAndRadius(t,o,i)}return a}return e.prototype.clone=function(){var t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t},e.prototype.closestPointXY=function(t,n,i,a){var o=this.flatCoordinates,s=t-o[0],A=n-o[1],l=s*s+A*A;if(l=i[0]||t[1]<=i[1]&&t[3]>=i[1]?!0:X1(t,this.intersectsCoordinate.bind(this))}return!1},e.prototype.setCenter=function(t){var n=this.stride,i=this.flatCoordinates[n]-this.flatCoordinates[0],a=t.slice();a[n]=a[0]+i;for(var o=1;o1?o:2,B=a||new Array(E),p=0;p>1;it;){if(n-t>600){var a=n-t+1,o=e-t+1,s=Math.log(a),A=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*A*(a-A)/a)*(o-a/2<0?-1:1),u=Math.max(t,Math.floor(e-o*A/a+l)),c=Math.min(n,Math.floor(e+(a-o)*A/a+l));UQ(r,e,u,c,i)}var h=r[e],f=t,p=n;for($d(r,t,e),i(r[n],h)>0&&$d(r,t,n);f0;)p--}i(r[t],h)===0?$d(r,t,p):(p++,$d(r,p,n)),p<=e&&(t=p+1),e<=p&&(n=p-1)}}function $d(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}function U3(r,e){return re?1:0}class DQ{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const n=[];if(!bm(e,t))return n;const i=this.toBBox,a=[];for(;t;){for(let o=0;o=0&&a[t].children.length>this._maxEntries;)this._split(a,t),t--;this._adjustParentBBoxes(i,a,t)}_split(e,t){const n=e[t],i=n.children.length,a=this._minEntries;this._chooseSplitAxis(n,a,i);const o=this._chooseSplitIndex(n,a,i),s=Mf(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,hf(n,this.toBBox),hf(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)}_splitRoot(e,t){this.data=Mf([e,t]),this.data.height=e.height+1,this.data.leaf=!1,hf(this.data,this.toBBox)}_chooseSplitIndex(e,t,n){let i,a=1/0,o=1/0;for(let s=t;s<=n-t;s++){const A=hv(e,0,s,this.toBBox),l=hv(e,s,n,this.toBBox),u=k3(A,l),c=mC(A)+mC(l);u=t;l--){const u=e.children[l];fv(s,e.leaf?a(u):u),A+=xm(s)}return A}_adjustParentBBoxes(e,t,n){for(let i=n;i>=0;i--)fv(t[i],e)}_condense(e){for(let t=e.length-1,n;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():hf(e[t],this.toBBox)}}function D3(r,e,t){if(!t)return e.indexOf(r);for(let n=0;n=r.minX&&e.maxY>=r.minY}function Mf(r){return{children:r,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function wM(r,e,t,n,i){const a=[e,t];for(;a.length;){if(t=a.pop(),e=a.pop(),t-e<=n)continue;const o=e+Math.ceil((t-e)/n/2)*n;P3(r,o,e,t,i),a.push(e,o,o,t)}}var $e={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4},$3=function(){function r(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Pi(e.scale),this.displacement_=e.displacement}return r.prototype.clone=function(){var e=this.getScale();return new r({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice()})},r.prototype.getOpacity=function(){return this.opacity_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getDisplacement=function(){return this.displacement_},r.prototype.getAnchor=function(){return Be()},r.prototype.getImage=function(e){return Be()},r.prototype.getHitDetectionImage=function(){return Be()},r.prototype.getPixelRatio=function(e){return 1},r.prototype.getImageState=function(){return Be()},r.prototype.getImageSize=function(){return Be()},r.prototype.getOrigin=function(){return Be()},r.prototype.getSize=function(){return Be()},r.prototype.setDisplacement=function(e){this.displacement_=e},r.prototype.setOpacity=function(e){this.opacity_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Pi(e)},r.prototype.listenImageChange=function(e){Be()},r.prototype.load=function(){Be()},r.prototype.unlistenImageChange=function(e){Be()},r}(),QQ=$3;function Js(r){return Array.isArray(r)?z6(r):r}var V3=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),j3=function(r){V3(e,r);function e(t){var n=this,i=t.rotateWithView!==void 0?t.rotateWithView:!1;return n=r.call(this,{opacity:1,rotateWithView:i,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0]})||this,n.canvas_=void 0,n.hitDetectionCanvas_=null,n.fill_=t.fill!==void 0?t.fill:null,n.origin_=[0,0],n.points_=t.points,n.radius_=t.radius!==void 0?t.radius:t.radius1,n.radius2_=t.radius2,n.angle_=t.angle!==void 0?t.angle:0,n.stroke_=t.stroke!==void 0?t.stroke:null,n.size_=null,n.renderOptions_=null,n.render(),n}return e.prototype.clone=function(){var t=this.getScale(),n=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice()});return n.setOpacity(this.getOpacity()),n},e.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var n=this.getDisplacement();return[t[0]/2-n[0],t[1]/2+n[1]]},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},e.prototype.getImage=function(t){var n=this.canvas_[t];if(!n){var i=this.renderOptions_,a=ja(i.size*t,i.size*t);this.draw_(i,a,t),n=a.canvas,this.canvas_[t]=n}return n},e.prototype.getPixelRatio=function(t){return t},e.prototype.getImageSize=function(){return this.size_},e.prototype.getImageState=function(){return $e.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t){},e.prototype.calculateLineJoinSize_=function(t,n,i){if(n===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return n;var a=this.radius_,o=this.radius2_===void 0?a:this.radius2_;if(aA&&(this.instructions.push([Qe.CUSTOM,A,u,t,i,qA]),this.hitDetectionInstructions.push([Qe.CUSTOM,A,u,t,a||i,qA]));break;case st.POINT:l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),u=this.coordinates.length,this.instructions.push([Qe.CUSTOM,A,u,t,i]),this.hitDetectionInstructions.push([Qe.CUSTOM,A,u,t,a||i]);break}this.endGeometry(n)},e.prototype.beginGeometry=function(t,n){this.beginGeometryInstruction1_=[Qe.BEGIN_GEOMETRY,n,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Qe.BEGIN_GEOMETRY,n,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},e.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var n,i=t.length,a,o,s=-1;for(n=0;nthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t){var n=t.fillStyle,i=[Qe.SET_FILL_STYLE,n];return typeof n!="string"&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[Qe.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,n){var i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(n.call(this,t)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,n){var i=t.strokeStyle,a=t.lineCap,o=t.lineDash,s=t.lineDashOffset,A=t.lineJoin,l=t.lineWidth,u=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=a||o!=t.currentLineDash&&!yl(t.currentLineDash,o)||t.currentLineDashOffset!=s||t.currentLineJoin!=A||t.currentLineWidth!=l||t.currentMiterLimit!=u)&&(i!==void 0&&n.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=a,t.currentLineDash=o,t.currentLineDashOffset=s,t.currentLineJoin=A,t.currentLineWidth=l,t.currentMiterLimit=u)},e.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[Qe.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=LI(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Va(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(HQ),ry=rZ,nZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),iZ=function(r){nZ(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.hitDetectionImage_=null,o.image_=null,o.imagePixelRatio_=void 0,o.anchorX_=void 0,o.anchorY_=void 0,o.height_=void 0,o.opacity_=void 0,o.originX_=void 0,o.originY_=void 0,o.rotateWithView_=void 0,o.rotation_=void 0,o.scale_=void 0,o.width_=void 0,o.declutterImageWithText_=void 0,o}return e.prototype.drawPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([Qe.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qe.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.drawMultiPoint=function(t,n){if(this.image_){this.beginGeometry(t,n);var i=t.getFlatCoordinates(),a=t.getStride(),o=this.coordinates.length,s=this.appendFlatPointCoordinates(i,a);this.instructions.push([Qe.DRAW_IMAGE,o,s,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterImageWithText_]),this.hitDetectionInstructions.push([Qe.DRAW_IMAGE,o,s,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterImageWithText_]),this.endGeometry(n)}},e.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,r.prototype.finish.call(this)},e.prototype.setImageStyle=function(t,n){var i=t.getAnchor(),a=t.getSize(),o=t.getHitDetectionImage(),s=t.getImage(this.pixelRatio),A=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=o,this.image_=s,this.height_=a[1],this.opacity_=t.getOpacity(),this.originX_=A[0]*this.imagePixelRatio_,this.originY_=A[1]*this.imagePixelRatio_,this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=a[0],this.declutterImageWithText_=n},e}(ry),aZ=iZ,oZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),sZ=function(r){oZ(e,r);function e(t,n,i,a){return r.call(this,t,n,i,a)||this}return e.prototype.drawFlatCoordinates_=function(t,n,i,a){var o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,n,i,a,!1,!1),A=[Qe.MOVE_TO_LINE_TO,o,s];return this.instructions.push(A),this.hitDetectionInstructions.push(A),i},e.prototype.drawLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([Qe.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,ug,cg],Qc);var s=t.getFlatCoordinates(),A=t.getStride();this.drawFlatCoordinates_(s,0,s.length,A),this.hitDetectionInstructions.push(uu),this.endGeometry(n)}},e.prototype.drawMultiLineString=function(t,n){var i=this.state,a=i.strokeStyle,o=i.lineWidth;if(!(a===void 0||o===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,n),this.hitDetectionInstructions.push([Qe.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],Qc);for(var s=t.getEnds(),A=t.getFlatCoordinates(),l=t.getStride(),u=0,c=0,h=s.length;cr&&(A>s&&(s=A,a=l,o=c),A=0,l=c-i)),h=f,m=_,g=E),p=B,v=L}return A+=f,A>s?[l,c]:[a,o]}var hZ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),F_={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},fZ=function(r){hZ(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i,a)||this;return o.labels_=null,o.text_="",o.textOffsetX_=0,o.textOffsetY_=0,o.textRotateWithView_=void 0,o.textRotation_=0,o.textFillState_=null,o.fillStates={},o.textStrokeState_=null,o.strokeStates={},o.textState_={},o.textStates={},o.textKey_="",o.fillKey_="",o.strokeKey_="",o.declutterImageWithText_=void 0,o}return e.prototype.finish=function(){var t=r.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},e.prototype.drawText=function(t,n){var i=this.textFillState_,a=this.textStrokeState_,o=this.textState_;if(!(this.text_===""||!o||!i&&!a)){var s=this.coordinates,A=s.length,l=t.getType(),u=null,c=t.getStride();if(o.placement===GQ.LINE&&(l==st.LINE_STRING||l==st.MULTI_LINE_STRING||l==st.POLYGON||l==st.MULTI_POLYGON)){if(!Mn(this.getBufferedMaxExtent(),t.getExtent()))return;var h=void 0;if(u=t.getFlatCoordinates(),l==st.LINE_STRING)h=[u.length];else if(l==st.MULTI_LINE_STRING)h=t.getEnds();else if(l==st.POLYGON)h=t.getEnds().slice(0,1);else if(l==st.MULTI_POLYGON){var f=t.getEndss();h=[];for(var p=0,v=f.length;pS[2]}else x=B>I;var N=Math.PI,P=[],X=O+n===e;e=O,m=0,g=b,h=r[e],f=r[e+1];var z;if(X){_(),z=Math.atan2(f-v,h-p),x&&(z+=z>0?-N:N);var tt=(I+B)/2,J=(M+L)/2;return P[0]=[tt,J,(T-a)/2,z,i],P}for(var nt=0,it=i.length;nt0?-N:N),z!==void 0){var R=_t-z;if(R+=R>N?-2*N:R<-N?2*N:0,Math.abs(R)>o)return null}z=_t;for(var $=nt,K=0;nt0&&r.push(` +`,""),r.push(e,""),r}var TZ=function(){function r(e,t,n,i){this.overlaps=n,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=oi(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return r.prototype.createLabel=function(e,t,n,i){var a=e+t+n+i;if(this.labels_[a])return this.labels_[a];var o=i?this.strokeStates[i]:null,s=n?this.fillStates[n]:null,A=this.textStates[t],l=this.pixelRatio,u=[A.scale[0]*l,A.scale[1]*l],c=Array.isArray(e),h=xM(c?e[0]:e,A.textAlign||pg),f=i&&o.lineWidth?o.lineWidth:0,p=c?e:e.split(` +`).reduce(BZ,[]),v=gX(A,p),m=v.width,g=v.height,_=v.widths,E=v.heights,B=v.lineWidths,L=m+f,O=[],b=(L+2)*u[0],T=(g+f)*u[1],I={width:b<0?Math.floor(b):Math.ceil(b),height:T<0?Math.floor(T):Math.ceil(T),contextInstructions:O};if((u[0]!=1||u[1]!=1)&&O.push("scale",u),i){O.push("strokeStyle",o.strokeStyle),O.push("lineWidth",f),O.push("lineCap",o.lineCap),O.push("lineJoin",o.lineJoin),O.push("miterLimit",o.miterLimit);var M=K1?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;M.prototype.setLineDash&&(O.push("setLineDash",[o.lineDash]),O.push("lineDashOffset",o.lineDashOffset))}n&&O.push("fillStyle",s.fillStyle),O.push("textBaseline","middle"),O.push("textAlign","center");for(var x=.5-h,S=h*L+x*f,N=[],P=[],X=0,z=0,tt=0,J=0,nt,it=0,_t=p.length;it<_t;it+=2){var R=p[it];if(R===` +`){z+=X,X=0,S=h*L+x*f,++J;continue}var $=p[it+1]||A.font;$!==nt&&(i&&N.push("font",$),n&&P.push("font",$),nt=$),X=Math.max(X,E[tt]);var K=[R,S+x*_[tt]+h*(_[tt]-B[J]),.5*(f+X)+z];S+=_[tt],i&&N.push("strokeText",K),n&&P.push("fillText",K),++tt}return Array.prototype.push.apply(O,N),Array.prototype.push.apply(O,P),this.labels_[a]=I,I},r.prototype.replayTextBackground_=function(e,t,n,i,a,o,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,n),e.lineTo.apply(e,i),e.lineTo.apply(e,a),e.lineTo.apply(e,t),o&&(this.alignFill_=o[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())},r.prototype.calculateImageOrLabelDimensions_=function(e,t,n,i,a,o,s,A,l,u,c,h,f,p,v,m){s*=h[0],A*=h[1];var g=n-s,_=i-A,E=a+l>e?e-l:a,B=o+u>t?t-u:o,L=p[3]+E*h[0]+p[1],O=p[0]+B*h[1]+p[2],b=g-p[3],T=_-p[0];(v||c!==0)&&(Kl[0]=b,zl[0]=b,Kl[1]=T,RA[1]=T,RA[0]=b+L,MA[0]=RA[0],MA[1]=T+O,zl[1]=MA[1]);var I;return c!==0?(I=$a(oi(),n,i,1,1,c,-n,-i),un(I,Kl),un(I,RA),un(I,MA),un(I,zl),uo(Math.min(Kl[0],RA[0],MA[0],zl[0]),Math.min(Kl[1],RA[1],MA[1],zl[1]),Math.max(Kl[0],RA[0],MA[0],zl[0]),Math.max(Kl[1],RA[1],MA[1],zl[1]),ff)):uo(Math.min(b,b+L),Math.min(T,T+O),Math.max(b,b+L),Math.max(T,T+O),ff),f&&(g=Math.round(g),_=Math.round(_)),{drawImageX:g,drawImageY:_,drawImageW:E,drawImageH:B,originX:l,originY:u,declutterBox:{minX:ff[0],minY:ff[1],maxX:ff[2],maxY:ff[3],value:m},canvasTransform:I,scale:h}},r.prototype.replayImageOrLabel_=function(e,t,n,i,a,o,s){var A=!!(o||s),l=i.declutterBox,u=e.canvas,c=s?s[2]*i.scale[0]/2:0,h=l.minX-c<=u.width/t&&l.maxX+c>=0&&l.minY-c<=u.height/t&&l.maxY+c>=0;return h&&(A&&this.replayTextBackground_(e,Kl,RA,MA,zl,o,s),yX(e,i.canvasTransform,a,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},r.prototype.fill_=function(e){if(this.alignFill_){var t=un(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;e.save(),e.translate(t[0]%n,t[1]%n),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},r.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},r.prototype.drawLabelWithPointPlacement_=function(e,t,n,i){var a=this.textStates[t],o=this.createLabel(e,t,i,n),s=this.strokeStates[n],A=this.pixelRatio,l=xM(Array.isArray(e)?e[0]:e,a.textAlign||pg),u=F_[a.textBaseline||w_],c=s&&s.lineWidth?s.lineWidth:0,h=o.width/A-2*a.scale[0],f=l*h+2*(.5-l)*c,p=u*o.height/A+2*(.5-u)*c;return{label:o,anchorX:f,anchorY:p}},r.prototype.execute_=function(e,t,n,i,a,o,s,A){var l;this.pixelCoordinates_&&yl(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=Tu(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),TY(this.renderedTransform_,n));for(var u=0,c=i.length,h=0,f,p,v,m,g,_,E,B,L,O,b,T,I=0,M=0,x=null,S=null,N=this.coordinateCache_,P=this.viewRotation_,X=Math.round(Math.atan2(-n[1],n[0])*1e12)/1e12,z={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:P},tt=this.instructions!=i||this.overlaps?0:200,J,nt,it,_t;utt&&(this.fill_(e),I=0),M>tt&&(e.stroke(),M=0),!I&&!M&&(e.beginPath(),m=NaN,g=NaN),++u;break;case Qe.CIRCLE:h=R[1];var K=l[h],q=l[h+1],at=l[h+2],vt=l[h+3],wt=at-K,W=vt-q,It=Math.sqrt(wt*wt+W*W);e.moveTo(K+It,q),e.arc(K,q,It,0,2*Math.PI,!0),++u;break;case Qe.CLOSE_PATH:e.closePath(),++u;break;case Qe.CUSTOM:h=R[1],f=R[2];var Ot=R[3],j=R[4],Z=R.length==6?R[5]:void 0;z.geometry=Ot,z.feature=J,u in N||(N[u]=[]);var ut=N[u];Z?Z(l,h,f,2,ut):(ut[0]=l[h],ut[1]=l[h+1],ut.length=2),j(ut,z),++u;break;case Qe.DRAW_IMAGE:h=R[1],f=R[2],B=R[3],p=R[4],v=R[5];var rt=R[6],G=R[7],xt=R[8],bt=R[9],dt=R[10],Et=R[11],yt=R[12],St=R[13],Ft=R[14];if(!B&&R.length>=19){L=R[18],O=R[19],b=R[20],T=R[21];var Mt=this.drawLabelWithPointPlacement_(L,O,b,T);B=Mt.label,R[3]=B;var Vt=R[22];p=(Mt.anchorX-Vt)*this.pixelRatio,R[4]=p;var Yt=R[23];v=(Mt.anchorY-Yt)*this.pixelRatio,R[5]=v,rt=B.height,R[6]=rt,St=B.width,R[13]=St}var ie=void 0;R.length>24&&(ie=R[24]);var ee=void 0,Xt=void 0,oe=void 0;R.length>16?(ee=R[15],Xt=R[16],oe=R[17]):(ee=Uc,Xt=!1,oe=!1),dt&&X?Et+=P:!dt&&!X&&(Et-=P);for(var Kt=0;h0){if(!o||f!==Ar.IMAGE&&f!==Ar.TEXT||o.indexOf(O)!==-1){var x=(h[I]-3)/4,S=i-x%s,N=i-(x/s|0),P=a(O,b,S*S+N*N);if(P)return P}u.clearRect(0,0,s,s);break}}var v=Object.keys(this.executorsByZIndex_).map(Number);v.sort(Nu);var m,g,_,E,B;for(m=v.length-1;m>=0;--m){var L=v[m].toString();for(_=this.executorsByZIndex_[L],g=EC.length-1;g>=0;--g)if(f=EC[g],E=_[f],E!==void 0&&(B=E.executeHitDetection(u,A,n,p,c),B))return B}},r.prototype.getClipCoords=function(e){var t=this.maxExtent_;if(!t)return null;var n=t[0],i=t[1],a=t[2],o=t[3],s=[n,i,n,o,a,o,a,i];return Tu(s,0,8,2,e,s),s},r.prototype.isEmpty=function(){return hh(this.executorsByZIndex_)},r.prototype.execute=function(e,t,n,i,a,o,s){var A=Object.keys(this.executorsByZIndex_).map(Number);A.sort(Nu),this.maxExtent_&&(e.save(),this.clip(e,n));var l=o||EC,u,c,h,f,p,v;for(s&&A.reverse(),u=0,c=A.length;ut)break;var s=n[o];s||(s=[],n[o]=s),s.push(((r+i)*e+(r+a))*4+3),i>0&&s.push(((r-i)*e+(r+a))*4+3),a>0&&(s.push(((r+i)*e+(r-a))*4+3),i>0&&s.push(((r-i)*e+(r-a))*4+3))}for(var A=[],i=0,l=n.length;i0,6);var c=i.src!==void 0?$e.IDLE:$e.LOADED;return n.color_=i.color!==void 0?Du(i.color):null,n.iconImage_=UZ(l,u,n.imgSize_!==void 0?n.imgSize_:null,n.crossOrigin_,c,n.color_),n.offset_=i.offset!==void 0?i.offset:[0,0],n.offsetOrigin_=i.offsetOrigin!==void 0?i.offsetOrigin:Li.TOP_LEFT,n.origin_=null,n.size_=i.size!==void 0?i.size:null,n}return e.prototype.clone=function(){var t=this.getScale();return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc()})},e.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var n=this.getSize();if(this.anchorXUnits_==Ua.FRACTION||this.anchorYUnits_==Ua.FRACTION){if(!n)return null;t=this.anchor_.slice(),this.anchorXUnits_==Ua.FRACTION&&(t[0]*=n[0]),this.anchorYUnits_==Ua.FRACTION&&(t[1]*=n[1])}if(this.anchorOrigin_!=Li.TOP_LEFT){if(!n)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_==Li.TOP_RIGHT||this.anchorOrigin_==Li.BOTTOM_RIGHT)&&(t[0]=-t[0]+n[0]),(this.anchorOrigin_==Li.BOTTOM_LEFT||this.anchorOrigin_==Li.BOTTOM_RIGHT)&&(t[1]=-t[1]+n[1])}this.normalizedAnchor_=t}var i=this.getDisplacement();return[t[0]-i[0],t[1]+i[1]]},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=Li.TOP_LEFT){var n=this.getSize(),i=this.iconImage_.getSize();if(!n||!i)return null;t=t.slice(),(this.offsetOrigin_==Li.TOP_RIGHT||this.offsetOrigin_==Li.BOTTOM_RIGHT)&&(t[0]=i[0]-n[0]-t[0]),(this.offsetOrigin_==Li.BOTTOM_LEFT||this.offsetOrigin_==Li.BOTTOM_RIGHT)&&(t[1]=i[1]-n[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(ye.CHANGE,t)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(ye.CHANGE,t)},e}(QQ),ny=QZ,HZ="#333",GZ=function(){function r(e){var t=e||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=Pi(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new Aa({color:HZ}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:GQ.POINT,this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}return r.prototype.clone=function(){var e=this.getScale();return new r({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},r.prototype.getOverflow=function(){return this.overflow_},r.prototype.getFont=function(){return this.font_},r.prototype.getMaxAngle=function(){return this.maxAngle_},r.prototype.getPlacement=function(){return this.placement_},r.prototype.getOffsetX=function(){return this.offsetX_},r.prototype.getOffsetY=function(){return this.offsetY_},r.prototype.getFill=function(){return this.fill_},r.prototype.getRotateWithView=function(){return this.rotateWithView_},r.prototype.getRotation=function(){return this.rotation_},r.prototype.getScale=function(){return this.scale_},r.prototype.getScaleArray=function(){return this.scaleArray_},r.prototype.getStroke=function(){return this.stroke_},r.prototype.getText=function(){return this.text_},r.prototype.getTextAlign=function(){return this.textAlign_},r.prototype.getTextBaseline=function(){return this.textBaseline_},r.prototype.getBackgroundFill=function(){return this.backgroundFill_},r.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},r.prototype.getPadding=function(){return this.padding_},r.prototype.setOverflow=function(e){this.overflow_=e},r.prototype.setFont=function(e){this.font_=e},r.prototype.setMaxAngle=function(e){this.maxAngle_=e},r.prototype.setOffsetX=function(e){this.offsetX_=e},r.prototype.setOffsetY=function(e){this.offsetY_=e},r.prototype.setPlacement=function(e){this.placement_=e},r.prototype.setRotateWithView=function(e){this.rotateWithView_=e},r.prototype.setFill=function(e){this.fill_=e},r.prototype.setRotation=function(e){this.rotation_=e},r.prototype.setScale=function(e){this.scale_=e,this.scaleArray_=Pi(e!==void 0?e:1)},r.prototype.setStroke=function(e){this.stroke_=e},r.prototype.setText=function(e){this.text_=e},r.prototype.setTextAlign=function(e){this.textAlign_=e},r.prototype.setTextBaseline=function(e){this.textBaseline_=e},r.prototype.setBackgroundFill=function(e){this.backgroundFill_=e},r.prototype.setBackgroundStroke=function(e){this.backgroundStroke_=e},r.prototype.setPadding=function(e){this.padding_=e},r}(),bh=GZ,Io=.5;function jQ(r,e,t,n,i,a,o){var s=r[0]*Io,A=r[1]*Io,l=ja(s,A);l.imageSmoothingEnabled=!1;for(var u=l.canvas,c=new fF(l,Io,i,null,o),h=t.length,f=Math.floor((256*256*256-1)/h),p={},v=1;v<=h;++v){var m=t[v-1],g=m.getStyleFunction()||n;if(n){var _=g(m,a);if(_){Array.isArray(_)||(_=[_]);for(var E=v*f,B="#"+("000000"+E.toString(16)).slice(-6),L=0,O=_.length;Lv[2];)++_,E=g*_,c.push(this.getRenderTransform(a,o,s,Io,h,f,E).slice()),m-=g}this.hitDetectionImageData_=jQ(i,c,this.renderedFeatures_,u.getStyleFunction(),l,o,s)}n(KQ(t,this.renderedFeatures_,this.hitDetectionImageData_))}.bind(this))},e.prototype.forEachFeatureAtCoordinate=function(t,n,i,a,o){var s=this;if(this.replayGroup_){var A=n.viewState.resolution,l=n.viewState.rotation,u=this.getLayer(),c={},h=function(v,m,g){var _=pe(v),E=c[_];if(E){if(E!==!0&&gL[0]&&T[2]>L[2]&&B.push([T[0]-O,T[1],T[2]-O,T[3]])}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==p&&this.renderedRenderOrder_==m&&Fo(this.wrappedRenderedExtent_,_))return yl(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var I=new L_(tS(h,f),_,h,f),M;this.getLayer().getDeclutter()&&(M=new L_(tS(h,f),_,h,f));for(var x,S,N,S=0,N=B.length;S=200&&s.status<300){var l=e.getType(),u=void 0;l==Cs.JSON||l==Cs.TEXT?u=s.responseText:l==Cs.XML?(u=s.responseXML,u||(u=new DOMParser().parseFromString(s.responseText,"application/xml"))):l==Cs.ARRAY_BUFFER&&(u=s.response),u?a(e.readFeatures(u,{extent:t,featureProjection:i}),e.readProjection(u)):o()}else o()},s.onerror=o,s.send()}function IM(r,e){return function(t,n,i,a,o){var s=this;cJ(r,e,t,n,i,function(A,l){s.addFeatures(A),a!==void 0&&a(A)},o||lh)}}var qQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yl=function(r){qQ(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.feature=n,a.features=i,a}return e}(fo),hJ=function(r){qQ(e,r);function e(t){var n=this,i=t||{};n=r.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:Da.READY,wrapX:i.wrapX!==void 0?i.wrapX:!0})||this,n.on,n.once,n.un,n.loader_=lh,n.format_=i.format,n.overlaps_=i.overlaps===void 0?!0:i.overlaps,n.url_=i.url,i.loader!==void 0?n.loader_=i.loader:n.url_!==void 0&&(_e(n.format_,7),n.loader_=IM(n.url_,n.format_)),n.strategy_=i.strategy!==void 0?i.strategy:WQ;var a=i.useSpatialIndex!==void 0?i.useSpatialIndex:!0;n.featuresRtree_=a?new M_:null,n.loadedExtentsRtree_=new M_,n.loadingExtentsCount_=0,n.nullGeometryFeatures_={},n.idIndex_={},n.uidIndex_={},n.featureChangeKeys_={},n.featuresCollection_=null;var o,s;return Array.isArray(i.features)?s=i.features:i.features&&(o=i.features,s=o.getArray()),!a&&o===void 0&&(o=new si(s)),s!==void 0&&n.addFeaturesInternal(s),o!==void 0&&n.bindFeaturesCollection_(o),n}return e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var n=pe(t);if(!this.addToIndex_(n,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(n,t);var i=t.getGeometry();if(i){var a=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(a,t)}else this.nullGeometryFeatures_[n]=t;this.dispatchEvent(new Yl(Oi.ADDFEATURE,t))},e.prototype.setupChangeEvents_=function(t,n){this.featureChangeKeys_[t]=[Pe(n,ye.CHANGE,this.handleFeatureChange_,this),Pe(n,ch.PROPERTYCHANGE,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,n){var i=!0,a=n.getId();return a!==void 0&&(a.toString()in this.idIndex_?i=!1:this.idIndex_[a.toString()]=n),i&&(_e(!(t in this.uidIndex_),30),this.uidIndex_[t]=n),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var n=[],i=[],a=[],o=0,s=t.length;o0},e.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),r.prototype.refresh.call(this)},e.prototype.removeLoadedExtent=function(t){var n=this.loadedExtentsRtree_,i;n.forEachInExtent(t,function(a){if(AA(a.extent,t))return i=a,!0}),i&&n.remove(i)},e.prototype.removeFeature=function(t){if(t){var n=pe(t);n in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[n]:this.featuresRtree_&&this.featuresRtree_.remove(t);var i=this.removeFeatureInternal(t);i&&this.changed()}},e.prototype.removeFeatureInternal=function(t){var n=pe(t),i=this.featureChangeKeys_[n];if(i){i.forEach(Rr),delete this.featureChangeKeys_[n];var a=t.getId();return a!==void 0&&delete this.idIndex_[a.toString()],delete this.uidIndex_[n],this.dispatchEvent(new Yl(Oi.REMOVEFEATURE,t)),t}},e.prototype.removeFromIdIndex_=function(t){var n=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],n=!0;break}return n},e.prototype.setLoader=function(t){this.loader_=t},e.prototype.setUrl=function(t){_e(this.format_,7),this.url_=t,this.setLoader(IM(t,this.format_))},e}(ow),_l=hJ,ZQ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xr={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},Fm={DRAWSTART:"drawstart",DRAWEND:"drawend",DRAWABORT:"drawabort"},Lm=function(r){ZQ(e,r);function e(t,n){var i=r.call(this,t)||this;return i.feature=n,i}return e}(fo),fJ=function(r){ZQ(e,r);function e(t){var n=this,i=t;i.stopDown||(i.stopDown=Ch),n=r.call(this,i)||this,n.on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=t.source?t.source:null,n.features_=t.features?t.features:null,n.snapTolerance_=t.snapTolerance?t.snapTolerance:12,n.type_=t.type,n.mode_=dJ(n.type_),n.stopClick_=!!t.stopClick,n.minPoints_=t.minPoints?t.minPoints:n.mode_===xr.POLYGON?3:2,n.maxPoints_=n.mode_===xr.CIRCLE?2:t.maxPoints?t.maxPoints:1/0,n.finishCondition_=t.finishCondition?t.finishCondition:iA;var a=t.geometryFunction;if(!a){var o=n.mode_;if(o===xr.CIRCLE)a=function(A,l,u){var c=l||new uF([NaN,NaN]),h=Tn(A[0]),f=el(h,Tn(A[A.length-1]));return c.setCenterAndRadius(h,Math.sqrt(f)),c};else{var s;o===xr.POINT?s=fr:o===xr.LINE_STRING?s=Hr:o===xr.POLYGON&&(s=bn),a=function(A,l,u){return l?o===xr.POLYGON?A[0].length?l.setCoordinates([A[0].concat([A[0][0]])]):l.setCoordinates([]):l.setCoordinates(A):l=new s(A),l}}}return n.geometryFunction_=a,n.dragVertexDelay_=t.dragVertexDelay!==void 0?t.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=t.clickTolerance?t.clickTolerance*t.clickTolerance:36,n.overlay_=new hA({source:new _l({useSpatialIndex:!1,wrapX:t.wrapX?t.wrapX:!1}),style:t.style?t.style:pJ(),updateWhileInteracting:!0}),n.geometryName_=t.geometryName,n.condition_=t.condition?t.condition:iw,n.freehandCondition_,t.freehand?n.freehandCondition_=rw:n.freehandCondition_=t.freehandCondition?t.freehandCondition:Jg,n.addChangeListener(qT.ACTIVE,n.updateState_),n}return e.prototype.setMap=function(t){r.prototype.setMap.call(this,t),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(t){t.originalEvent.type===ye.CONTEXTMENU&&t.originalEvent.preventDefault(),this.freehand_=this.mode_!==xr.POINT&&this.freehandCondition_(t);var n=t.type===ar.POINTERMOVE,i=!0;if(!this.freehand_&&this.lastDragTime_&&t.type===ar.POINTERDRAG){var a=Date.now();a-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,n=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)}return this.freehand_&&t.type===ar.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(t.coordinate),i=!1):this.freehand_&&t.type===ar.POINTERDOWN?i=!1:n&&this.getPointerCount()<2?(i=t.type===ar.POINTERMOVE,i&&this.freehand_?(this.handlePointerMove_(t),this.shouldHandle_&&t.originalEvent.preventDefault()):(t.originalEvent.pointerType==="mouse"||t.type===ar.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(t)):t.type===ar.DBLCLICK&&(i=!1),r.prototype.handleEvent.call(this,t)&&i},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t.coordinate),!0):this.condition_(t)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new KA(ar.POINTERMOVE,t.map,t.originalEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0):(this.lastDragTime_=void 0,!1)},e.prototype.handleUpEvent=function(t){var n=!0;if(this.getPointerCount()===0)if(this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t),this.shouldHandle_){var i=!this.finishCoordinate_;i&&this.startDrawing_(t.coordinate),!i&&this.freehand_?this.finishDrawing():!this.freehand_&&(!i||this.mode_===xr.POINT)&&(this.atFinish_(t.pixel)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t.coordinate)),n=!1}else this.freehand_&&this.abortDrawing();return!n&&this.stopClick_&&t.preventDefault(),n},e.prototype.handlePointerMove_=function(t){if(this.pointerType_=t.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var n=this.downPx_,i=t.pixel,a=n[0]-i[0],o=n[1]-i[1],s=a*a+o*o;if(this.shouldHandle_=this.freehand_?s>this.squaredClickTolerance_:s<=this.squaredClickTolerance_,!this.shouldHandle_)return}this.finishCoordinate_?this.modifyDrawing_(t.coordinate):this.createOrUpdateSketchPoint_(t.coordinate.slice())},e.prototype.atFinish_=function(t){var n=!1;if(this.sketchFeature_){var i=!1,a=[this.finishCoordinate_],o=this.mode_;if(o===xr.POINT)n=!0;else if(o===xr.CIRCLE)n=this.sketchCoords_.length===2;else if(o===xr.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(o===xr.POLYGON){var s=this.sketchCoords_;i=s[0].length>this.minPoints_,a=[s[0][0],s[0][s[0].length-2]]}if(i)for(var A=this.getMap(),l=0,u=a.length;l=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),this.geometryFunction_(o,n,i)):s===xr.POLYGON&&(o=this.sketchCoords_[0],o.length>=this.maxPoints_&&(this.freehand_?o.pop():a=!0),o.push(t.slice()),a&&(this.finishCoordinate_=o[0]),this.geometryFunction_(this.sketchCoords_,n,i)),this.createOrUpdateSketchPoint_(t.slice()),this.updateSketchFeatures_(),a&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),i,a=this.mode_;if(a===xr.LINE_STRING||a===xr.CIRCLE){if(i=this.sketchCoords_,i.splice(-2,1),i.length>=2){this.finishCoordinate_=i[i.length-2].slice();var o=this.finishCoordinate_.slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}this.geometryFunction_(i,t,n),t.getType()===st.POLYGON&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(a===xr.POLYGON){i=this.sketchCoords_[0],i.splice(-2,1);var s=this.sketchLine_.getGeometry();if(i.length>=2){var o=i[i.length-2].slice();i[i.length-1]=o,this.createOrUpdateSketchPoint_(o)}s.setCoordinates(i),this.geometryFunction_(this.sketchCoords_,t,n)}i.length===1&&this.abortDrawing(),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var n=this.sketchCoords_,i=t.getGeometry(),a=this.getMap().getView().getProjection();this.mode_===xr.LINE_STRING?(n.pop(),this.geometryFunction_(n,i,a)):this.mode_===xr.POLYGON&&(n[0].pop(),this.geometryFunction_(n,i,a),n=i.getCoordinates()),this.type_===st.MULTI_POINT?t.setGeometry(new es([n])):this.type_===st.MULTI_LINE_STRING?t.setGeometry(new xa([n])):this.type_===st.MULTI_POLYGON&&t.setGeometry(new ba([n])),this.dispatchEvent(new Lm(Fm.DRAWEND,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),t},e.prototype.abortDrawing=function(){var t=this.abortDrawing_();t&&this.dispatchEvent(new Lm(Fm.DRAWABORT,t))},e.prototype.appendCoordinates=function(t){var n=this.mode_,i=!this.sketchFeature_;i&&this.startDrawing_(t[0]);var a;if(n===xr.LINE_STRING||n===xr.CIRCLE)a=this.sketchCoords_;else if(n===xr.POLYGON)a=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;i&&a.shift(),a.pop();for(var o=0;o=0;--a){for(var o=i[a],s=this.dragSegments_.length-1;s>=0;--s)this.dragSegments_[s][0]===o&&this.dragSegments_.splice(s,1);n.remove(o)}},e.prototype.setActive=function(t){this.vertexFeature_&&!t&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),r.prototype.setActive.call(this,t)},e.prototype.setMap=function(t){this.overlay_.setMap(t),r.prototype.setMap.call(this,t)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var n=t.target;this.removeFeature_(n),this.addFeature_(n)}},e.prototype.handleFeatureRemove_=function(t){var n=t.element;this.removeFeature_(n)},e.prototype.writePointGeometry_=function(t,n){var i=n.getCoordinates(),a={feature:t,geometry:n,segment:[i,i]};this.rBush_.insert(n.getExtent(),a)},e.prototype.writeMultiPointGeometry_=function(t,n){for(var i=n.getCoordinates(),a=0,o=i.length;a=0;--_)this.insertVertex_(o[_],s)}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var n=this.dragSegments_.length-1;n>=0;--n){var i=this.dragSegments_[n][0],a=i.geometry;if(a.getType()===st.CIRCLE){var o=a.getCenter(),s=i.featureSegments[0],A=i.featureSegments[1];s.segment[0]=o,s.segment[1]=o,A.segment[0]=o,A.segment[1]=o,this.rBush_.update(zc(o),s);var l=a,u=ph();if(u){var c=t.map.getView().getProjection();l=l.clone().transform(u,c),l=mQ(l).transform(c,u)}this.rBush_.update(l.getExtent(),A)}else this.rBush_.update(Yi(i.segment),i)}return this.featuresBeingModified_&&(this.dispatchEvent(new TC(BC.MODIFYEND,this.featuresBeingModified_,t)),this.featuresBeingModified_=null),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map,t.coordinate)},e.prototype.handlePointerAtPixel_=function(t,n,i){var a=this,o=i||n.getCoordinateFromPixel(t),s=n.getView().getProjection(),A=function(P,X){return OM(o,P,s)-OM(o,X,s)},l,u;if(this.hitDetection_){var c=typeof this.hitDetection_=="object"?function(P){return P===a.hitDetection_}:void 0;n.forEachFeatureAtPixel(t,function(P,X,z){if(z=z||P.getGeometry(),z.getType()===st.POINT&&yi(a.features_.getArray(),P)){u=z;var tt=z.getFlatCoordinates().slice(0,2);l=[{feature:P,geometry:z,segment:[tt,tt]}]}return!0},{layerFilter:c})}if(!l){var h=Lo(zc(o,LM)),f=n.getView().getResolution()*this.pixelTolerance_,p=q1(Va(h,f,LM));l=this.rBush_.getInExtent(p)}if(l&&l.length>0){var v=l.sort(A)[0],m=v.segment,g=RM(o,v,s),_=n.getPixelFromCoordinate(g),E=ZR(t,_);if(u||E<=this.pixelTolerance_){var B={};if(B[pe(m)]=!0,this.snapToPointer_||(this.delta_[0]=g[0]-o[0],this.delta_[1]=g[1]-o[1]),v.geometry.getType()===st.CIRCLE&&v.index===Dv)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);else{var L=n.getPixelFromCoordinate(m[0]),O=n.getPixelFromCoordinate(m[1]),b=el(_,L),T=el(_,O);E=Math.sqrt(Math.min(b,T)),this.snappedToVertex_=E<=this.pixelTolerance_,this.snappedToVertex_&&(g=b>T?m[1]:m[0]),this.createOrUpdateVertexFeature_(g,[v.feature],[v.geometry]);var I={};I[pe(v.geometry)]=!0;for(var M=1,x=l.length;M=0;--l)s=t[l],p=s[0],v=pe(p.feature),p.depth&&(v+="-"+p.depth.join("-")),v in n||(n[v]={}),s[1]===0?(n[v].right=p,n[v].index=p.index):s[1]==1&&(n[v].left=p,n[v].index=p.index+1);for(v in n){switch(f=n[v].right,c=n[v].left,u=n[v].index,h=u-1,c!==void 0?p=c:p=f,h<0&&(h=0),A=p.geometry,o=A.getCoordinates(),a=o,i=!1,A.getType()){case st.MULTI_LINE_STRING:o[p.depth[0]].length>2&&(o[p.depth[0]].splice(u,1),i=!0);break;case st.LINE_STRING:o.length>2&&(o.splice(u,1),i=!0);break;case st.MULTI_POLYGON:a=a[p.depth[1]];case st.POLYGON:a=a[p.depth[0]],a.length>4&&(u==a.length-1&&(u=0),a.splice(u,1),i=!0,u===0&&(a.pop(),a.push(a[0]),h=a.length-1));break}if(i){this.setGeometryCoordinates_(A,o);var m=[];if(c!==void 0&&(this.rBush_.remove(c),m.push(c.segment[0])),f!==void 0&&(this.rBush_.remove(f),m.push(f.segment[1])),c!==void 0&&f!==void 0){var g={depth:p.depth,feature:p.feature,geometry:p.geometry,index:h,segment:m};this.rBush_.insert(Yi(g.segment),g)}this.updateSegmentIndices_(A,u,p.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.length=0}}return i},e.prototype.setGeometryCoordinates_=function(t,n){this.changingFeature_=!0,t.setCoordinates(n),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,n,i,a){this.rBush_.forEachInExtent(t.getExtent(),function(o){o.geometry===t&&(i===void 0||o.depth===void 0||yl(o.depth,i))&&o.index>n&&(o.index+=a)})},e}(Po);function gJ(r,e){return r.index-e.index}function OM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE){var i=n;if(e.index===Dv){var a=ph();a&&(i=i.clone().transform(a,t));var o=el(i.getCenter(),Tn(r)),s=Math.sqrt(o)-i.getRadius();return s*s}}var A=Tn(r);return lp[0]=Tn(e.segment[0]),lp[1]=Tn(e.segment[1]),rX(A,lp)}function RM(r,e,t){var n=e.geometry;if(n.getType()===st.CIRCLE&&e.index===Dv){var i=n,a=ph();return a&&(i=i.clone().transform(a,t)),xp(i.getClosestPoint(Tn(r)))}var o=Tn(r);return lp[0]=Tn(e.segment[0]),lp[1]=Tn(e.segment[1]),xp(DI(o,lp))}function yJ(){var r=cF();return function(e,t){return r[st.POINT]}}var vF=vJ,t4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mJ={SELECT:"select"},_J=function(r){t4(e,r);function e(t,n,i,a){var o=r.call(this,t)||this;return o.selected=n,o.deselected=i,o.mapBrowserEvent=a,o}return e}(fo),Om={},wJ=function(r){t4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};n.boundAddFeature_=n.addFeature_.bind(n),n.boundRemoveFeature_=n.removeFeature_.bind(n),n.condition_=i.condition?i.condition:nw,n.addCondition_=i.addCondition?i.addCondition:ZT,n.removeCondition_=i.removeCondition?i.removeCondition:ZT,n.toggleCondition_=i.toggleCondition?i.toggleCondition:Jg,n.multi_=i.multi?i.multi:!1,n.filter_=i.filter?i.filter:iA,n.hitTolerance_=i.hitTolerance?i.hitTolerance:0,n.style_=i.style!==void 0?i.style:EJ(),n.features_=i.features||new si;var a;if(i.layers)if(typeof i.layers=="function")a=i.layers;else{var o=i.layers;a=function(s){return yi(o,s)}}else a=iA;return n.layerFilter_=a,n.featureLayerAssociation_={},n}return e.prototype.addFeatureLayerAssociation_=function(t,n){this.featureLayerAssociation_[pe(t)]=n},e.prototype.getFeatures=function(){return this.features_},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[pe(t)]},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(t){var n=this.getMap();n&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),r.prototype.setMap.call(this,t),t?(this.features_.addEventListener(kn.ADD,this.boundAddFeature_),this.features_.addEventListener(kn.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(kn.ADD,this.boundAddFeature_),this.features_.removeEventListener(kn.REMOVE,this.boundRemoveFeature_))},e.prototype.addFeature_=function(t){var n=t.element;if(this.style_&&this.applySelectedStyle_(n),!this.getLayer(n)){var i=this.getMap().getAllLayers().find(function(a){if(a instanceof hA&&a.getSource()&&a.getSource().hasFeature(n))return a});i&&this.addFeatureLayerAssociation_(n,i)}},e.prototype.removeFeature_=function(t){var n=t.element;this.style_&&this.restorePreviousStyle_(n)},e.prototype.getStyle=function(){return this.style_},e.prototype.applySelectedStyle_=function(t){var n=pe(t);n in Om||(Om[n]=t.getStyle()),t.setStyle(this.style_)},e.prototype.restorePreviousStyle_=function(t){for(var n=this.getMap().getInteractions().getArray(),i=n.length-1;i>=0;--i){var a=n[i];if(a!==this&&a instanceof e&&a.getStyle()&&a.getFeatures().getArray().lastIndexOf(t)!==-1){t.setStyle(a.getStyle());return}}var o=pe(t);t.setStyle(Om[o]),delete Om[o]},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[pe(t)]},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var n=this.addCondition_(t),i=this.removeCondition_(t),a=this.toggleCondition_(t),o=!n&&!i&&!a,s=t.map,A=this.getFeatures(),l=[],u=[];if(o){Bh(this.featureLayerAssociation_),s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return this.addFeatureLayerAssociation_(v,m),u.push(v),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var c=A.getLength()-1;c>=0;--c){var h=A.item(c),f=u.indexOf(h);f>-1?u.splice(f,1):(A.remove(h),l.push(h))}u.length!==0&&A.extend(u)}else{s.forEachFeatureAtPixel(t.pixel,function(v,m){if(this.filter_(v,m))return(n||a)&&!yi(A.getArray(),v)?(this.addFeatureLayerAssociation_(v,m),u.push(v)):(i||a)&&yi(A.getArray(),v)&&(l.push(v),this.removeFeatureLayerAssociation_(v)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var p=l.length-1;p>=0;--p)A.remove(l[p]);A.extend(u)}return(u.length>0||l.length>0)&&this.dispatchEvent(new _J(mJ.SELECT,u,l,t)),!0},e}(Kp);function EJ(){var r=cF();return Qr(r[st.POLYGON],r[st.LINE_STRING]),Qr(r[st.GEOMETRY_COLLECTION],r[st.LINE_STRING]),function(e){return e.getGeometry()?r[e.getGeometry().getType()]:null}}var sw=wJ,CJ=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function MM(r){if(r.feature)return r.feature;if(r.element)return r.element}var SC=[],BJ=function(r){CJ(e,r);function e(t){var n=this,i=t||{},a=i;return a.handleDownEvent||(a.handleDownEvent=iA),a.stopDown||(a.stopDown=Ch),n=r.call(this,a)||this,n.source_=i.source?i.source:null,n.vertex_=i.vertex!==void 0?i.vertex:!0,n.edge_=i.edge!==void 0?i.edge:!0,n.features_=i.features?i.features:null,n.featuresListenerKeys_=[],n.featureChangeListenerKeys_={},n.indexedFeaturesExtents_={},n.pendingFeatures_={},n.pixelTolerance_=i.pixelTolerance!==void 0?i.pixelTolerance:10,n.rBush_=new M_,n.GEOMETRY_SEGMENTERS_={Point:n.segmentPointGemetry_.bind(n),LineString:n.segmentLineStringGemetry_.bind(n),LinearRing:n.segmentLineStringGemetry_.bind(n),Polygon:n.segmentPolygonGemetry_.bind(n),MultiPoint:n.segmentMultiPointGemetry_.bind(n),MultiLineString:n.segmentMultiLineStringGemetry_.bind(n),MultiPolygon:n.segmentMultiPolygonGemetry_.bind(n),GeometryCollection:n.segmentGeometryCollectionGemetry_.bind(n),Circle:n.segmentCircleGemetry_.bind(n)},n}return e.prototype.addFeature=function(t,n){var i=n!==void 0?n:!0,a=pe(t),o=t.getGeometry();if(o){var s=this.GEOMETRY_SEGMENTERS_[o.getType()];if(s){this.indexedFeaturesExtents_[a]=o.getExtent(_i());var A=[];if(s(A,o),A.length===1)this.rBush_.insert(Yi(A[0]),{feature:t,segment:A[0]});else if(A.length>1){var l=A.map(function(c){return Yi(c)}),u=A.map(function(c){return{feature:t,segment:c}});this.rBush_.load(l,u)}}}i&&(this.featureChangeListenerKeys_[a]=Pe(t,ye.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(t){var n=this.snapTo(t.pixel,t.coordinate,t.map);return n&&(t.coordinate=n.vertex.slice(0,2),t.pixel=n.vertexPixel),r.prototype.handleEvent.call(this,t)},e.prototype.handleFeatureAdd_=function(t){var n=MM(t);this.addFeature(n)},e.prototype.handleFeatureRemove_=function(t){var n=MM(t);this.removeFeature(n)},e.prototype.handleFeatureChange_=function(t){var n=t.target;if(this.handlingDownUpSequence){var i=pe(n);i in this.pendingFeatures_||(this.pendingFeatures_[i]=n)}else this.updateFeature_(n)},e.prototype.handleUpEvent=function(t){var n=PI(this.pendingFeatures_);return n.length&&(n.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,n){var i=n!==void 0?n:!0,a=pe(t),o=this.indexedFeaturesExtents_[a];if(o){var s=this.rBush_,A=[];s.forEachInExtent(o,function(u){t===u.feature&&A.push(u)});for(var l=A.length-1;l>=0;--l)s.remove(A[l])}i&&(Rr(this.featureChangeListenerKeys_[a]),delete this.featureChangeListenerKeys_[a])},e.prototype.setMap=function(t){var n=this.getMap(),i=this.featuresListenerKeys_,a=this.getFeatures_();n&&(i.forEach(Rr),i.length=0,a.forEach(this.forEachFeatureRemove_.bind(this))),r.prototype.setMap.call(this,t),t&&(this.features_?i.push(Pe(this.features_,kn.ADD,this.handleFeatureAdd_,this),Pe(this.features_,kn.REMOVE,this.handleFeatureRemove_,this)):this.source_&&i.push(Pe(this.source_,Oi.ADDFEATURE,this.handleFeatureAdd_,this),Pe(this.source_,Oi.REMOVEFEATURE,this.handleFeatureRemove_,this)),a.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,n,i){var a=i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),o=i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_]),s=Yi([a,o]),A=this.rBush_.getInExtent(s),l=A.length;if(l===0)return null;var u=i.getView().getProjection(),c=Tn(n),h,f=1/0,p=this.pixelTolerance_*this.pixelTolerance_,v=function(){if(h){var M=i.getPixelFromCoordinate(h),x=el(t,M);if(x<=p)return{vertex:h,vertexPixel:[Math.round(M[0]),Math.round(M[1])]}}return null};if(this.vertex_){for(var m=0;m{t[i]=t[i].value});const n=Hg(Un({},t));return he(r,()=>{t=Lu(r),Object.keys(t).forEach(i=>{n[i]!=t[i].value&&!e.includes(i)&&(n[i]=t[i].value)})}),{properties:n}}var le=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};const IJ={name:"ol-map",setup(r,{emit:e}){const{properties:t}=vr(r),n=Gn(null);let i=new Aw(t);he(t,()=>{i.setProperties(t)}),Ze(()=>{i.setTarget(n.value)}),ir(()=>{i.setTarget(null),i=null}),Mr("map",i);const a=()=>i.focus(),o=(h,f,p={})=>i.forEachFeatureAtPixel(h,f,p),s=(h,f,p)=>i.forEachLayerAtPixel(h,f,p),A=h=>i.getCoordinateFromPixel(h),l=()=>i.refresh(),u=()=>i.render(),c=()=>i.updateSize();return i.on("click",h=>e("click",h)),i.on("dblclick",h=>e("dblclick",h)),i.on("singleclick",h=>e("singleclick",h)),i.on("pointerdrag",h=>e("pointerdrag",h)),i.on("pointermove",h=>e("pointermove",h)),i.on("movestart",h=>e("movestart",h)),i.on("moveend",h=>e("moveend",h)),i.on("postrender",h=>e("postrender",h)),i.on("precompose",h=>e("precompose",h)),i.on("postcompose",h=>e("postcompose",h)),{map:i,mapRef:n,focus:a,forEachFeatureAtPixel:o,forEachLayerAtPixel:s,getCoordinateFromPixel:A,refresh:l,render:u,updateSize:c}},props:{loadTilesWhileAnimating:{type:Boolean,default:!1},loadTilesWhileInteracting:{type:Boolean,default:!1},moveTolerance:{type:Number,default:1},pixelRatio:{type:Number,default:1},controls:{type:Array,default:()=>[]}}};function FJ(r,e,t,n,i,a){return cn(),Vn("div",{ref:o=>n.mapRef=o},[mr(r.$slots,"default")],512)}var eS=le(IJ,[["render",FJ]]);function LJ(r,e){const t=Ce("map"),{properties:n}=vr(r),i=()=>Os(Un({},n),{projection:typeof n.projection=="string"?n.projection:new ml(Un({},n.projection))});let a=new qs(i());Ze(()=>{t.setView(a)}),a.on("change:center",()=>{e("centerChanged",L()),e("zoomChanged",it())}),a.on("change:resolution",()=>e("resolutionChanged",P())),a.on("change:rotation",()=>e("rotationChanged",nt())),he(n,()=>{let W=i();a.setProperties(W),a.applyOptions_(W)});const o=W=>a.adjustCenter(W),s=(W,It)=>a.adjustResolution(W,It),A=(W,It)=>a.adjustRotation(W,It),l=(W,It)=>a.adjustZoom(W,It),u=W=>a.animate(W),c=()=>a.beginInteraction(),h=W=>a.calculateExtent(W),f=()=>a.cancelAnimations(),p=(W,It,Ot)=>a.centerOn(W,It,Ot),v=()=>a.changed(),m=W=>a.dispatchEvent(W),g=(W,It,Ot)=>a.endInteraction(W,It,Ot),_=(W,It)=>a.fit(W,It),E=W=>a.get(W),B=()=>a.getAnimating(),L=()=>a.getCenter(),O=()=>a.getInteracting(),b=()=>a.getKeys(),T=()=>a.getMaxResolution(),I=()=>a.getMaxZoom(),M=()=>a.getMinResolution(),x=()=>a.getMinZoom(),S=()=>a.getProjection(),N=()=>a.getProperties(),P=()=>a.getResolution(),X=(W,It)=>a.getResolutionForExtent(W,It),z=W=>a.getResolutionForZoom(W),tt=()=>a.getResolutions(),J=()=>a.getRevision(),nt=()=>a.getRotation(),it=()=>a.getZoom();return{view:a,adjustCenter:o,adjustResolution:s,adjustRotation:A,adjustZoom:l,animate:u,beginInteraction:c,calculateExtent:h,cancelAnimations:f,centerOn:p,changed:v,dispatchEvent:m,endInteraction:g,fit:_,get:E,getAnimating:B,getCenter:L,getInteracting:O,getKeys:b,getMaxResolution:T,getMaxZoom:I,getMinResolution:M,getMinZoom:x,getProjection:S,getProperties:N,getResolution:P,getResolutionForExtent:X,getResolutionForZoom:z,getResolutions:tt,getRevision:J,getRotation:nt,getZoom:it,getZoomForResolution:W=>a.getZoomForResolution(W),setCenter:W=>a.setCenter(W),setConstrainResolution:W=>a.setConstrainResolution(W),setMaxZoom:W=>a.setMaxZoom(W),setMinZoom:W=>a.setMinZoom(W),setResolution:W=>a.setResolution(W),setRotation:W=>a.setRotation(W),setZoom:W=>a.setZoom(W)}}const OJ={name:"ol-view",setup(r,{emit:e}){const t=LJ(r,e);return Un({},t)},props:{center:{type:Array,default:()=>[0,0]},constrainRotation:{type:Boolean,default:!0},enableRotation:{type:Boolean,default:!0},extent:{type:Array},constrainOnlyCenter:{type:Boolean,default:!1},smoothExtentConstraint:{type:Boolean,default:!0},maxResolution:{type:Number},minResolution:{type:Number},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},multiWorld:{type:Boolean,default:!1},constrainResolution:{type:Boolean,default:!1},smoothResolutionConstraint:{type:Boolean,default:!0},showFullExtent:{type:Boolean,default:!1},projection:{type:[String,Object],default:"EPSG:3857"},resolution:{type:Number},resolutions:{type:Array},rotation:{type:Number},zoom:{type:Number,default:0},zoomFactor:{type:Number,default:2},padding:{type:Array,default:()=>[0,0,0,0]}}};function RJ(r,e,t,n,i,a){return dr("",!0)}var rS=le(OJ,[["render",RJ]]);const MJ={name:"ol-feature",setup(r){const e=Ce("vectorSource"),t=Ce("vectorLayer"),n=Ce("animation",null),{properties:i}=vr(r);let a=hr(()=>new or(Un({},i.properties)));return he(a,(o,s)=>{e.value.removeFeature(s),e.value.addFeature(o),e.value.changed()}),he(e,(o,s)=>{s.removeFeature(a.value),o.addFeature(a.value),o.changed()}),Ze(()=>{e.value.addFeature(a.value),n!=null&&t.value.animateFeature(a.value,n.value)}),ir(()=>{e.value.removeFeature(a.value)}),Mr("feature",a),Mr("stylable",a),{feature:a}},props:{properties:{type:[Z1,Object,Array]}}};function NJ(r,e,t,n,i,a){return mr(r.$slots,"default")}var nS=le(MJ,[["render",NJ]]);function PJ(r,e){const t=Ce("map"),n=Gn(null),{properties:i}=vr(r);let a=hr(()=>new bQ(i));Ze(()=>{t.addOverlay(a.value)}),ir(()=>{t.removeOverlay(a.value)}),he(a,(v,m)=>{t.removeOverlay(m),t.addOverlay(v)}),lD(()=>{c(n.value)},{flush:"post"}),a.value.on("change:element",()=>e("elementChanged",o())),a.value.on("change:offset",()=>e("offsetChanged",s())),a.value.on("change:position",()=>e("positionChanged",A())),a.value.on("change:positioning",()=>e("positioningChanged",l()));const o=()=>a.value.getElement(),s=()=>a.value.getOffset(),A=()=>a.value.getPosition(),l=()=>a.value.getPositioning(),u=v=>a.value.panIntoView(v),c=v=>a.value.setElement(v);return{overlay:a,htmlContent:n,getOffset:s,getPosition:A,getPositioning:l,panIntoView:u,setElement:c,setOffset:v=>a.value.setOffset(v),setPosition:v=>a.value.setPosition(v),setPositioning:v=>a.value.setPositioning(v)}}const UJ={name:"ol-overlay",setup(r,{emit:e}){const t=new PJ(r,e);return Un({},t)},props:{position:{type:Array},offset:{type:Array},positioning:{type:String},stopEvent:{type:Boolean,default:!0},insertFirst:{type:Boolean,default:!0},autoPan:{type:Boolean,default:!1},autoPanMargin:{type:Number,default:20},autoPanAnimation:{type:Object,default:void 0}}},DJ={ref:"htmlContent"};function QJ(r,e,t,n,i,a){return cn(),Vn("div",DJ,[mr(r.$slots,"default",{position:t.position})],512)}var iS=le(UJ,[["render",QJ]]),e4=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),On={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},HJ=function(r){e4(e,r);function e(t){var n=r.call(this,ye.ERROR)||this;return n.code=t.code,n.message=t.message,n}return e}(fo),GJ=function(r){e4(e,r);function e(t){var n=r.call(this)||this;n.on,n.once,n.un;var i=t||{};return n.position_=null,n.transform_=W1,n.watchId_=void 0,n.addChangeListener(On.PROJECTION,n.handleProjectionChanged_),n.addChangeListener(On.TRACKING,n.handleTrackingChanged_),i.projection!==void 0&&n.setProjection(i.projection),i.trackingOptions!==void 0&&n.setTrackingOptions(i.trackingOptions),n.setTracking(i.tracking!==void 0?i.tracking:!1),n}return e.prototype.disposeInternal=function(){this.setTracking(!1),r.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=fh(Oe("EPSG:4326"),t),this.position_&&this.set(On.POSITION,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if("geolocation"in navigator){var t=this.getTracking();t&&this.watchId_===void 0?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):!t&&this.watchId_!==void 0&&(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var n=t.coords;this.set(On.ACCURACY,n.accuracy),this.set(On.ALTITUDE,n.altitude===null?void 0:n.altitude),this.set(On.ALTITUDE_ACCURACY,n.altitudeAccuracy===null?void 0:n.altitudeAccuracy),this.set(On.HEADING,n.heading===null?void 0:Cu(n.heading)),this.position_?(this.position_[0]=n.longitude,this.position_[1]=n.latitude):this.position_=[n.longitude,n.latitude];var i=this.transform_(this.position_);this.set(On.POSITION,i),this.set(On.SPEED,n.speed===null?void 0:n.speed);var a=UW(this.position_,n.accuracy);a.applyTransform(this.transform_),this.set(On.ACCURACY_GEOMETRY,a),this.changed()},e.prototype.positionError_=function(t){this.dispatchEvent(new HJ(t))},e.prototype.getAccuracy=function(){return this.get(On.ACCURACY)},e.prototype.getAccuracyGeometry=function(){return this.get(On.ACCURACY_GEOMETRY)||null},e.prototype.getAltitude=function(){return this.get(On.ALTITUDE)},e.prototype.getAltitudeAccuracy=function(){return this.get(On.ALTITUDE_ACCURACY)},e.prototype.getHeading=function(){return this.get(On.HEADING)},e.prototype.getPosition=function(){return this.get(On.POSITION)},e.prototype.getProjection=function(){return this.get(On.PROJECTION)},e.prototype.getSpeed=function(){return this.get(On.SPEED)},e.prototype.getTracking=function(){return this.get(On.TRACKING)},e.prototype.getTrackingOptions=function(){return this.get(On.TRACKING_OPTIONS)},e.prototype.setProjection=function(t){this.set(On.PROJECTION,Oe(t))},e.prototype.setTracking=function(t){this.set(On.TRACKING,t)},e.prototype.setTrackingOptions=function(t){this.set(On.TRACKING_OPTIONS,t)},e}(li),kJ=GJ;const $J={name:"ol-geolocation",emits:["positionChanged","speedChanged","headingChanged","altitudeChanged","altitudeAccuracyChanged","accuracyGeometryChanged"],setup(r,{emit:e}){const{properties:t}=vr(r);let n=hr(()=>{let h=new kJ(t);return h.on("change",c),h});const i=Gn([]),a=Gn(0),o=Gn(0),s=Gn(0),A=Gn(0),l=Gn(0),u=Gn({});he(i,()=>{e("positionChanged",i.value)}),he(A,()=>{e("speedChanged",A.value)}),he(l,()=>{e("headingChanged",l.value)}),he(o,()=>{e("altitudeChanged",o.value)}),he(s,()=>{e("altitudeAccuracyChanged",s.value)}),he(u,()=>{e("accuracyGeometryChanged",u.value)});const c=()=>{i.value=n.value.getPosition(),A.value=n.value.getSpeed(),l.value=n.value.getHeading(),a.value=n.value.getAccuracy(),o.value=n.value.getAltitude(),s.value=n.value.getAltitudeAccuracy(),u.value=n.value.getAccuracyGeometry()};return he(n,(h,f)=>{f.un("change",c),h.on("change",c)}),{geoLoc:n,position:i,accuracy:a,altitude:o,altitudeAccuracy:s,speed:A,heading:l,accuracyGeometry:u}},props:{projection:{type:[String,Object],default:"EPSG:3857"},tracking:{type:Boolean,default:!0},trackingOptions:{type:Object,default:()=>({enableHighAccuracy:!0})}}};function VJ(r,e,t,n,i,a){return mr(r.$slots,"default",{position:n.position,speed:n.speed,heading:n.heading,accuracy:n.accuracy,altitude:n.altitude,altitudeAccuracy:n.altitudeAccuracy,accuracyGeometry:n.accuracyGeometry})}var aS=le($J,[["render",VJ]]);function jJ(r){r("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),r("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),r("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),r.WGS84=r["EPSG:4326"],r["EPSG:3785"]=r["EPSG:3857"],r.GOOGLE=r["EPSG:3857"],r["EPSG:900913"]=r["EPSG:3857"],r["EPSG:102113"]=r["EPSG:3857"]}var dh=1,vh=2,M0=3,KJ=4,oS=5,NM=6378137,zJ=6356752314e-3,PM=.0066943799901413165,Qv=484813681109536e-20,zt=Math.PI/2,YJ=.16666666666666666,XJ=.04722222222222222,WJ=.022156084656084655,ne=1e-10,ra=.017453292519943295,tA=57.29577951308232,zr=Math.PI/4,yg=Math.PI*2,ei=3.14159265359,po={};po.greenwich=0;po.lisbon=-9.131906111111;po.paris=2.337229166667;po.bogota=-74.080916666667;po.madrid=-3.687938888889;po.rome=12.452333333333;po.bern=7.439583333333;po.jakarta=106.807719444444;po.ferro=-17.666666666667;po.brussels=4.367975;po.stockholm=18.058277777778;po.athens=23.7163375;po.oslo=10.722916666667;var qJ={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}},UM=/[\s_\-\/\(\)]/g;function Gu(r,e){if(r[e])return r[e];for(var t=Object.keys(r),n=e.toLowerCase().replace(UM,""),i=-1,a,o;++i=this.text.length)return;r=this.text[this.place++]}switch(this.state){case mg:return this.neutral(r);case r4:return this.keyword(r);case N_:return this.quoted(r);case i4:return this.afterquote(r);case n4:return this.number(r);case gF:return}};wl.prototype.afterquote=function(r){if(r==='"'){this.word+='"',this.state=N_;return}if(lw.test(r)){this.word=this.word.trim(),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in afterquote yet, index '+this.place)};wl.prototype.afterItem=function(r){if(r===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=mg;return}if(r==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=mg,this.currentObject=this.stack.pop(),this.currentObject||(this.state=gF);return}};wl.prototype.number=function(r){if(a4.test(r)){this.word+=r;return}if(lw.test(r)){this.word=parseFloat(this.word),this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in number yet, index '+this.place)};wl.prototype.quoted=function(r){if(r==='"'){this.state=i4;return}this.word+=r};wl.prototype.keyword=function(r){if(ttt.test(r)){this.word+=r;return}if(r==="["){var e=[];e.push(this.word),this.level++,this.root===null?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=mg;return}if(lw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in keyword yet, index '+this.place)};wl.prototype.neutral=function(r){if(JJ.test(r)){this.word=r,this.state=r4;return}if(r==='"'){this.word="",this.state=N_;return}if(a4.test(r)){this.word=r,this.state=n4;return}if(lw.test(r)){this.afterItem(r);return}throw new Error(`havn't handled "`+r+'" in neutral yet, index '+this.place)};wl.prototype.output=function(){for(;this.place0?90:-90),r.lat_ts=r.lat1)}function o4(r){var e=ett(r),t=e.shift(),n=e.shift();e.unshift(["name",n]),e.unshift(["type",t]);var i={};return Kf(e,i),itt(i),i}function Na(r){var e=this;if(arguments.length===2){var t=arguments[1];typeof t=="string"?t.charAt(0)==="+"?Na[r]=sS(arguments[1]):Na[r]=o4(arguments[1]):Na[r]=t}else if(arguments.length===1){if(Array.isArray(r))return r.map(function(n){Array.isArray(n)?Na.apply(e,n):Na(n)});if(typeof r=="string"){if(r in Na)return Na[r]}else"EPSG"in r?Na["EPSG:"+r.EPSG]=r:"ESRI"in r?Na["ESRI:"+r.ESRI]=r:"IAU2000"in r?Na["IAU2000:"+r.IAU2000]=r:console.log(r);return}}jJ(Na);function att(r){return typeof r=="string"}function ott(r){return r in Na}var stt=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function Att(r){return stt.some(function(e){return r.indexOf(e)>-1})}var ltt=["3857","900913","3785","102113"];function utt(r){var e=Gu(r,"authority");if(e){var t=Gu(e,"epsg");return t&<t.indexOf(t)>-1}}function ctt(r){var e=Gu(r,"extension");if(e)return Gu(e,"proj4")}function htt(r){return r[0]==="+"}function ftt(r){if(att(r)){if(ott(r))return Na[r];if(Att(r)){var e=o4(r);if(utt(e))return Na["EPSG:3857"];var t=ctt(e);return t?sS(t):e}if(htt(r))return sS(r)}else return r}function QM(r,e){r=r||{};var t,n;if(!e)return r;for(n in e)t=e[n],t!==void 0&&(r[n]=t);return r}function uA(r,e,t){var n=r*e;return t/Math.sqrt(1-n*n)}function iy(r){return r<0?-1:1}function fe(r){return Math.abs(r)<=ei?r:r-iy(r)*yg}function Ss(r,e,t){var n=r*t,i=.5*r;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(zt-e))/n}function _g(r,e){for(var t=.5*r,n,i,a=zt-2*Math.atan(e),o=0;o<=15;o++)if(n=r*Math.sin(a),i=zt-2*Math.atan(e*Math.pow((1-n)/(1+n),t))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function ptt(){var r=this.b/this.a;this.es=1-r*r,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function dtt(r){var e=r.x,t=r.y;if(t*tA>90&&t*tA<-90&&e*tA>180&&e*tA<-180)return null;var n,i;if(Math.abs(Math.abs(t)-zt)<=ne)return null;if(this.sphere)n=this.x0+this.a*this.k0*fe(e-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(zr+.5*t));else{var a=Math.sin(t),o=Ss(this.e,t,a);n=this.x0+this.a*this.k0*fe(e-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return r.x=n,r.y=i,r}function vtt(r){var e=r.x-this.x0,t=r.y-this.y0,n,i;if(this.sphere)i=zt-2*Math.atan(Math.exp(-t/(this.a*this.k0)));else{var a=Math.exp(-t/(this.a*this.k0));if(i=_g(this.e,a),i===-9999)return null}return n=fe(this.long0+e/(this.a*this.k0)),r.x=n,r.y=i,r}var gtt=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"],ytt={init:ptt,forward:dtt,inverse:vtt,names:gtt};function mtt(){}function HM(r){return r}var _tt=["longlat","identity"],wtt={init:mtt,forward:HM,inverse:HM,names:_tt},Ett=[ytt,wtt],N0={},P_=[];function s4(r,e){var t=P_.length;return r.names?(P_[t]=r,r.names.forEach(function(n){N0[n.toLowerCase()]=t}),this):(console.log(e),!0)}function Ctt(r){if(!r)return!1;var e=r.toLowerCase();if(typeof N0[e]<"u"&&P_[N0[e]])return P_[N0[e]]}function Btt(){Ett.forEach(s4)}var Ttt={start:Btt,add:s4,get:Ctt},Ye={};Ye.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Ye.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Ye.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Ye.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Ye.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Ye.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Ye.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Ye.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Ye.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Ye.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Ye.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Ye.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Ye.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Ye.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Ye.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Ye.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Ye.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Ye.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Ye.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Ye.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Ye.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Ye.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Ye.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Ye.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Ye.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Ye.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Ye.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Ye.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Ye.hough={a:6378270,rf:297,ellipseName:"Hough"};Ye.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Ye.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Ye.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Ye.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Ye.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Ye.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Ye.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Ye.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Ye.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Ye.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Ye.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Ye.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var Stt=Ye.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ye.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function xtt(r,e,t,n){var i=r*r,a=e*e,o=(i-a)/i,s=0;n?(r*=1-o*(YJ+o*(XJ+o*WJ)),i=r*r,o=0):s=Math.sqrt(o);var A=(i-a)/a;return{es:o,e:s,ep2:A}}function btt(r,e,t,n,i){if(!r){var a=Gu(Ye,n);a||(a=Stt),r=a.a,e=a.b,t=a.rf}return t&&!e&&(e=(1-1/t)*r),(t===0||Math.abs(r-e)3&&(s.datum_params[3]!==0||s.datum_params[4]!==0||s.datum_params[5]!==0||s.datum_params[6]!==0)&&(s.datum_type=vh,s.datum_params[3]*=Qv,s.datum_params[4]*=Qv,s.datum_params[5]*=Qv,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=M0,s.grids=o),s.a=t,s.b=n,s.es=i,s.ep2=a,s}var A4={};function Ftt(r,e){var t=new DataView(e),n=Rtt(t),i=Mtt(t,n);i.nSubgrids>1&&console.log("Only single NTv2 subgrids are currently supported, subsequent sub grids are ignored");var a=Ntt(t,i,n),o={header:i,subgrids:a};return A4[r]=o,o}function Ltt(r){if(r===void 0)return null;var e=r.split(",");return e.map(Ott)}function Ott(r){if(r.length===0)return null;var e=r[0]==="@";return e&&(r=r.slice(1)),r==="null"?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:r,mandatory:!e,grid:A4[r]||null,isNull:!1}}function zf(r){return r/3600*Math.PI/180}function Rtt(r){var e=r.getInt32(8,!1);return e===11?!1:(e=r.getInt32(8,!0),e!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function Mtt(r,e){return{nFields:r.getInt32(8,e),nSubgridFields:r.getInt32(24,e),nSubgrids:r.getInt32(40,e),shiftType:AS(r,56,56+8).trim(),fromSemiMajorAxis:r.getFloat64(120,e),fromSemiMinorAxis:r.getFloat64(136,e),toSemiMajorAxis:r.getFloat64(152,e),toSemiMinorAxis:r.getFloat64(168,e)}}function AS(r,e,t){return String.fromCharCode.apply(null,new Uint8Array(r.buffer.slice(e,t)))}function Ntt(r,e,t){for(var n=176,i=[],a=0;a5e-11?!1:r.datum_type===dh?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]:r.datum_type===vh?r.datum_params[0]===e.datum_params[0]&&r.datum_params[1]===e.datum_params[1]&&r.datum_params[2]===e.datum_params[2]&&r.datum_params[3]===e.datum_params[3]&&r.datum_params[4]===e.datum_params[4]&&r.datum_params[5]===e.datum_params[5]&&r.datum_params[6]===e.datum_params[6]:!0}function l4(r,e,t){var n=r.x,i=r.y,a=r.z?r.z:0,o,s,A,l;if(i<-zt&&i>-1.001*zt)i=-zt;else if(i>zt&&i<1.001*zt)i=zt;else{if(i<-zt)return{x:-1/0,y:-1/0,z:r.z};if(i>zt)return{x:1/0,y:1/0,z:r.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(i),l=Math.cos(i),A=s*s,o=t/Math.sqrt(1-e*A),{x:(o+a)*l*Math.cos(n),y:(o+a)*l*Math.sin(n),z:(o*(1-e)+a)*s}}function u4(r,e,t,n){var i=1e-12,a=i*i,o=30,s,A,l,u,c,h,f,p,v,m,g,_,E,B=r.x,L=r.y,O=r.z?r.z:0,b,T,I;if(s=Math.sqrt(B*B+L*L),A=Math.sqrt(B*B+L*L+O*O),s/ta&&En.y||u>n.x||fs&&Math.abs(A.y)>s);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=fe(a.x+t.ll[0]),n.y=a.y+t.ll[1]}else isNaN(a.x)||(n.x=r.x+a.x,n.y=r.y+a.y);return n}function kM(r,e){var t={x:r.x/e.del[0],y:r.y/e.del[1]},n={x:Math.floor(t.x),y:Math.floor(t.y)},i={x:t.x-1*n.x,y:t.y-1*n.y},a={x:Number.NaN,y:Number.NaN},o;if(n.x<0||n.x>=e.lim[0]||n.y<0||n.y>=e.lim[1])return a;o=n.y*e.lim[0]+n.x;var s={x:e.cvs[o][0],y:e.cvs[o][1]};o++;var A={x:e.cvs[o][0],y:e.cvs[o][1]};o+=e.lim[0];var l={x:e.cvs[o][0],y:e.cvs[o][1]};o--;var u={x:e.cvs[o][0],y:e.cvs[o][1]},c=i.x*i.y,h=i.x*(1-i.y),f=(1-i.x)*(1-i.y),p=(1-i.x)*i.y;return a.x=f*s.x+h*A.x+p*u.x+c*l.x,a.y=f*s.y+h*A.y+p*u.y+c*l.y,a}function $M(r,e,t){var n=t.x,i=t.y,a=t.z||0,o,s,A,l={};for(A=0;A<3;A++)if(!(e&&A===2&&t.z===void 0))switch(A===0?(o=n,"ew".indexOf(r.axis[A])!==-1?s="x":s="y"):A===1?(o=i,"ns".indexOf(r.axis[A])!==-1?s="y":s="x"):(o=a,s="z"),r.axis[A]){case"e":l[s]=o;break;case"w":l[s]=-o;break;case"n":l[s]=o;break;case"s":l[s]=-o;break;case"u":t[s]!==void 0&&(l.z=o);break;case"d":t[s]!==void 0&&(l.z=-o);break;default:return null}return l}function c4(r){var e={x:r[0],y:r[1]};return r.length>2&&(e.z=r[2]),r.length>3&&(e.m=r[3]),e}function Vtt(r){VM(r.x),VM(r.y)}function VM(r){if(typeof Number.isFinite=="function"){if(Number.isFinite(r))return;throw new TypeError("coordinates must be finite numbers")}if(typeof r!="number"||r!==r||!isFinite(r))throw new TypeError("coordinates must be finite numbers")}function jtt(r,e){return(r.datum.datum_type===dh||r.datum.datum_type===vh)&&e.datumCode!=="WGS84"||(e.datum.datum_type===dh||e.datum.datum_type===vh)&&r.datumCode!=="WGS84"}function U_(r,e,t,n){var i;if(Array.isArray(t)&&(t=c4(t)),Vtt(t),r.datum&&e.datum&&jtt(r,e)&&(i=new aA("WGS84"),t=U_(r,i,t,n),r=i),n&&r.axis!=="enu"&&(t=$M(r,!1,t)),r.projName==="longlat")t={x:t.x*ra,y:t.y*ra,z:t.z||0};else if(r.to_meter&&(t={x:t.x*r.to_meter,y:t.y*r.to_meter,z:t.z||0}),t=r.inverse(t),!t)return;if(r.from_greenwich&&(t.x+=r.from_greenwich),t=ktt(r.datum,e.datum,t),!!t)return e.from_greenwich&&(t={x:t.x-e.from_greenwich,y:t.y,z:t.z||0}),e.projName==="longlat"?t={x:t.x*tA,y:t.y*tA,z:t.z||0}:(t=e.forward(t),e.to_meter&&(t={x:t.x/e.to_meter,y:t.y/e.to_meter,z:t.z||0})),n&&e.axis!=="enu"?$M(e,!0,t):t}var jM=aA("WGS84");function xC(r,e,t,n){var i,a,o;return Array.isArray(t)?(i=U_(r,e,t,n)||{x:NaN,y:NaN},t.length>2?typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(t.splice(3)):[i.x,i.y,t[2]].concat(t.splice(3)):[i.x,i.y].concat(t.splice(2)):[i.x,i.y]):(a=U_(r,e,t,n),o=Object.keys(t),o.length===2||o.forEach(function(s){if(typeof r.name<"u"&&r.name==="geocent"||typeof e.name<"u"&&e.name==="geocent"){if(s==="x"||s==="y"||s==="z")return}else if(s==="x"||s==="y")return;a[s]=t[s]}),a)}function KM(r){return r instanceof aA?r:r.oProj?r.oProj:aA(r)}function co(r,e,t){r=KM(r);var n=!1,i;return typeof e>"u"?(e=r,r=jM,n=!0):(typeof e.x<"u"||Array.isArray(e))&&(t=e,e=r,r=jM,n=!0),e=KM(e),t?xC(r,e,t):(i={forward:function(a,o){return xC(r,e,a,o)},inverse:function(a,o){return xC(e,r,a,o)}},n&&(i.oProj=e),i)}var zM=6,h4="AJSAJS",f4="AFAFAF",Yf=65,eo=73,Ko=79,dv=86,vv=90,Ktt={forward:p4,inverse:ztt,toPoint:d4};function p4(r,e){return e=e||5,Wtt(Ytt({lat:r[1],lon:r[0]}),e)}function ztt(r){var e=yF(g4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]}function d4(r){var e=yF(g4(r.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function bC(r){return r*(Math.PI/180)}function YM(r){return 180*(r/Math.PI)}function Ytt(r){var e=r.lat,t=r.lon,n=6378137,i=.00669438,a=.9996,o,s,A,l,u,c,h,f=bC(e),p=bC(t),v,m;m=Math.floor((t+180)/6)+1,t===180&&(m=60),e>=56&&e<64&&t>=3&&t<12&&(m=32),e>=72&&e<84&&(t>=0&&t<9?m=31:t>=9&&t<21?m=33:t>=21&&t<33?m=35:t>=33&&t<42&&(m=37)),o=(m-1)*6-180+3,v=bC(o),s=i/(1-i),A=n/Math.sqrt(1-i*Math.sin(f)*Math.sin(f)),l=Math.tan(f)*Math.tan(f),u=s*Math.cos(f)*Math.cos(f),c=Math.cos(f)*(p-v),h=n*((1-i/4-3*i*i/64-5*i*i*i/256)*f-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*f)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*f)-35*i*i*i/3072*Math.sin(6*f));var g=a*A*(c+(1-l+u)*c*c*c/6+(5-18*l+l*l+72*u-58*s)*c*c*c*c*c/120)+5e5,_=a*(h+A*Math.tan(f)*(c*c/2+(5-l+9*u+4*u*u)*c*c*c*c/24+(61-58*l+l*l+600*u-330*s)*c*c*c*c*c*c/720));return e<0&&(_+=1e7),{northing:Math.round(_),easting:Math.round(g),zoneNumber:m,zoneLetter:Xtt(e)}}function yF(r){var e=r.northing,t=r.easting,n=r.zoneLetter,i=r.zoneNumber;if(i<0||i>60)return null;var a=.9996,o=6378137,s=.00669438,A,l=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s)),u,c,h,f,p,v,m,g,_,E=t-5e5,B=e;n<"N"&&(B-=1e7),m=(i-1)*6-180+3,A=s/(1-s),v=B/a,g=v/(o*(1-s/4-3*s*s/64-5*s*s*s/256)),_=g+(3*l/2-27*l*l*l/32)*Math.sin(2*g)+(21*l*l/16-55*l*l*l*l/32)*Math.sin(4*g)+151*l*l*l/96*Math.sin(6*g),u=o/Math.sqrt(1-s*Math.sin(_)*Math.sin(_)),c=Math.tan(_)*Math.tan(_),h=A*Math.cos(_)*Math.cos(_),f=o*(1-s)/Math.pow(1-s*Math.sin(_)*Math.sin(_),1.5),p=E/(u*a);var L=_-u*Math.tan(_)/f*(p*p/2-(5+3*c+10*h-4*h*h-9*A)*p*p*p*p/24+(61+90*c+298*h+45*c*c-252*A-3*h*h)*p*p*p*p*p*p/720);L=YM(L);var O=(p-(1+2*c+h)*p*p*p/6+(5-2*h+28*c-3*h*h+8*A+24*c*c)*p*p*p*p*p/120)/Math.cos(_);O=m+YM(O);var b;if(r.accuracy){var T=yF({northing:r.northing+r.accuracy,easting:r.easting+r.accuracy,zoneLetter:r.zoneLetter,zoneNumber:r.zoneNumber});b={top:T.lat,right:T.lon,bottom:L,left:O}}else b={lat:L,lon:O};return b}function Xtt(r){var e="Z";return 84>=r&&r>=72?e="X":72>r&&r>=64?e="W":64>r&&r>=56?e="V":56>r&&r>=48?e="U":48>r&&r>=40?e="T":40>r&&r>=32?e="S":32>r&&r>=24?e="R":24>r&&r>=16?e="Q":16>r&&r>=8?e="P":8>r&&r>=0?e="N":0>r&&r>=-8?e="M":-8>r&&r>=-16?e="L":-16>r&&r>=-24?e="K":-24>r&&r>=-32?e="J":-32>r&&r>=-40?e="H":-40>r&&r>=-48?e="G":-48>r&&r>=-56?e="F":-56>r&&r>=-64?e="E":-64>r&&r>=-72?e="D":-72>r&&r>=-80&&(e="C"),e}function Wtt(r,e){var t="00000"+r.easting,n="00000"+r.northing;return r.zoneNumber+r.zoneLetter+qtt(r.easting,r.northing,r.zoneNumber)+t.substr(t.length-5,e)+n.substr(n.length-5,e)}function qtt(r,e,t){var n=v4(t),i=Math.floor(r/1e5),a=Math.floor(e/1e5)%20;return Ztt(i,a,n)}function v4(r){var e=r%zM;return e===0&&(e=zM),e}function Ztt(r,e,t){var n=t-1,i=h4.charCodeAt(n),a=f4.charCodeAt(n),o=i+r-1,s=a+e,A=!1;o>vv&&(o=o-vv+Yf-1,A=!0),(o===eo||ieo||(o>eo||iKo||(o>Ko||ivv&&(o=o-vv+Yf-1),s>dv?(s=s-dv+Yf-1,A=!0):A=!1,(s===eo||aeo||(s>eo||aKo||(s>Ko||adv&&(s=s-dv+Yf-1);var l=String.fromCharCode(o)+String.fromCharCode(s);return l}function g4(r){if(r&&r.length===0)throw"MGRSPoint coverting from nothing";for(var e=r.length,t=null,n="",i,a=0;!/[A-Z]/.test(i=r.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+r;n+=i,a++}var o=parseInt(n,10);if(a===0||a+3>e)throw"MGRSPoint bad conversion from: "+r;var s=r.charAt(a++);if(s<="A"||s==="B"||s==="Y"||s>="Z"||s==="I"||s==="O")throw"MGRSPoint zone letter "+s+" not handled: "+r;t=r.substring(a,a+=2);for(var A=v4(o),l=Jtt(t.charAt(0),A),u=tet(t.charAt(1),A);u0&&(v=1e5/Math.pow(10,h),m=r.substring(a,a+h),f=parseFloat(m)*v,g=r.substring(a+h),p=parseFloat(g)*v),_=f+l,E=p+u,{easting:_,northing:E,zoneLetter:s,zoneNumber:o,accuracy:v}}function Ztt(r,e){for(var t=c4.charCodeAt(e-1),n=1e5,i=!1;t!==r.charCodeAt(0);){if(t++,t===eo&&t++,t===Ko&&t++,t>vv){if(i)throw"Bad character: "+r;t=Yf,i=!0}n+=1e5}return n}function Jtt(r,e){if(r>"V")throw"MGRSPoint given invalid Northing "+r;for(var t=h4.charCodeAt(e-1),n=0,i=!1;t!==r.charCodeAt(0);){if(t++,t===eo&&t++,t===Ko&&t++,t>dv){if(i)throw"Bad character: "+r;t=Yf,i=!0}n+=1e5}return n}function tet(r){var e;switch(r){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+r}function Ip(r,e,t){if(!(this instanceof Ip))return new Ip(r,e,t);if(Array.isArray(r))this.x=r[0],this.y=r[1],this.z=r[2]||0;else if(typeof r=="object")this.x=r.x,this.y=r.y,this.z=r.z||0;else if(typeof r=="string"&&typeof e>"u"){var n=r.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=r,this.y=e,this.z=t||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ip.fromMGRS=function(r){return new Ip(p4(r))};Ip.prototype.toMGRS=function(r){return f4([this.x,this.y],r)};var eet=1,ret=.25,XM=.046875,WM=.01953125,qM=.01068115234375,net=.75,iet=.46875,aet=.013020833333333334,oet=.007120768229166667,set=.3645833333333333,Aet=.005696614583333333,uet=.3076171875;function g4(r){var e=[];e[0]=eet-r*(ret+r*(XM+r*(WM+r*qM))),e[1]=r*(net-r*(XM+r*(WM+r*qM)));var t=r*r;return e[2]=t*(iet-r*(aet+r*oet)),t*=r,e[3]=t*(set-r*Aet),e[4]=t*r*uet,e}function uw(r,e,t,n){return t*=e,e*=e,n[0]*r-t*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}var cet=20;function y4(r,e,t){for(var n=1/(1-e),i=r,a=cet;a;--a){var o=Math.sin(i),s=1-e*o*o;if(s=(uw(i,o,Math.cos(i),t)-r)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)ne?Math.tan(t):0,v=Math.pow(p,2),m=Math.pow(v,2);i=1-this.es*Math.pow(s,2),u=u/Math.sqrt(i);var g=uw(t,s,A,this.en);a=this.a*(this.k0*u*(1+c/6*(1-v+h+c/20*(5-18*v+m+14*h-58*v*h+c/42*(61+179*m-m*v-479*v)))))+this.x0,o=this.a*(this.k0*(g-this.ml0+s*n*u/2*(1+c/12*(5-v+9*h+4*f+c/30*(61+m-58*v+270*h-330*v*h+c/56*(1385+543*m-m*v-3111*v))))))+this.y0}else{var l=A*Math.sin(n);if(Math.abs(Math.abs(l)-1)=1){if(l-1>ne)return 93;o=0}else o=Math.acos(o);t<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return r.x=a,r.y=o,r}function pet(r){var e,t,n,i,a=(r.x-this.x0)*(1/this.a),o=(r.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+o/this.k0,t=y4(e,this.es,this.en),Math.abs(t)ne?Math.tan(t):0,p=this.ep2*Math.pow(h,2),v=Math.pow(p,2),m=Math.pow(f,2),g=Math.pow(m,2);e=1-this.es*Math.pow(c,2);var _=a*Math.sqrt(e)/this.k0,E=Math.pow(_,2);e=e*f,n=t-e*E/(1-this.es)*.5*(1-E/12*(5+3*m-9*p*m+p-4*v-E/30*(61+90*m-252*p*m+45*g+46*p-E/56*(1385+3633*m+4095*g+1574*g*m)))),i=fe(this.long0+_*(1-E/6*(1+2*m+p-E/20*(5+28*m+24*g+8*p*m+6*p-E/42*(61+662*m+1320*g+720*g*m))))/h)}else n=zt*iy(o),i=0;else{var s=Math.exp(a/this.k0),A=.5*(s-1/s),l=this.lat0+o/this.k0,u=Math.cos(l);e=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(A,2))),n=Math.asin(e),o<0&&(n=-n),A===0&&u===0?i=0:i=fe(Math.atan2(A,u)+this.long0)}return r.x=i,r.y=n,r}var det=["Fast_Transverse_Mercator","Fast Transverse Mercator"],P0={init:het,forward:fet,inverse:pet,names:det};function m4(r){var e=Math.exp(r);return e=(e-1/e)/2,e}function cw(r,e){r=Math.abs(r),e=Math.abs(e);var t=Math.max(r,e),n=Math.min(r,e)/(t||1);return t*Math.sqrt(1+Math.pow(n,2))}function vet(r){var e=1+r,t=e-1;return t===0?r:r*Math.log(e)/t}function get(r){var e=Math.abs(r);return e=vet(e*(1+e/(cw(1,e)+1))),r<0?-e:e}function mF(r,e){for(var t=2*Math.cos(2*e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return e+o*Math.sin(2*e)}function yet(r,e){for(var t=2*Math.cos(e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return Math.sin(e)*o}function met(r){var e=Math.exp(r);return e=(e+1/e)/2,e}function _4(r,e,t){for(var n=Math.sin(e),i=Math.cos(e),a=m4(t),o=met(t),s=2*i*o,A=-2*n*a,l=r.length-1,u=r[l],c=0,h=0,f=0,p,v;--l>=0;)p=h,v=c,h=u,c=f,u=-p+s*h-A*c+r[l],f=-v+A*h+s*c;return s=n*o,A=i*a,[s*u-A*f,s*f+A*u]}function _et(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(P0.init.apply(this),this.forward=P0.forward,this.inverse=P0.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var r=this.es/(1+Math.sqrt(1-this.es)),e=r/(2-r),t=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),t=t*e,this.cgb[1]=t*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=t*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),t=t*e,this.cgb[2]=t*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=t*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),t=t*e,this.cgb[3]=t*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=t*(1237/630+e*(-12/5+e*(-24832/14175))),t=t*e,this.cgb[4]=t*(4174/315+e*(-144838/6237)),this.cbg[4]=t*(-734/315+e*(109598/31185)),t=t*e,this.cgb[5]=t*(601676/22275),this.cbg[5]=t*(444337/155925),t=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+t*(1/4+t*(1/64+t/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=t*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=t*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),t=t*e,this.utg[2]=t*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=t*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),t=t*e,this.utg[3]=t*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=t*(49561/161280+e*(-179/168+e*(6601661/7257600))),t=t*e,this.utg[4]=t*(-4583/161280+e*(108847/3991680)),this.gtu[4]=t*(34729/80640+e*(-3418889/1995840)),t=t*e,this.utg[5]=t*(-20648693/638668800),this.gtu[5]=t*(212378941/319334400);var n=mF(this.cbg,this.lat0);this.Zb=-this.Qn*(n+yet(this.gtu,2*n))}function wet(r){var e=fe(r.x-this.long0),t=r.y;t=mF(this.cbg,t);var n=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e);t=Math.atan2(n,o*i),e=Math.atan2(a*i,cw(n,i*o)),e=get(Math.tan(e));var s=_4(this.gtu,2*t,2*e);t=t+s[0],e=e+s[1];var A,l;return Math.abs(e)<=2.623395162778?(A=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*t+this.Zb)+this.y0):(A=1/0,l=1/0),r.x=A,r.y=l,r}function Eet(r){var e=(r.x-this.x0)*(1/this.a),t=(r.y-this.y0)*(1/this.a);t=(t-this.Zb)/this.Qn,e=e/this.Qn;var n,i;if(Math.abs(e)<=2.623395162778){var a=_4(this.utg,2*t,2*e);t=t+a[0],e=e+a[1],e=Math.atan(m4(e));var o=Math.sin(t),s=Math.cos(t),A=Math.sin(e),l=Math.cos(e);t=Math.atan2(o*l,cw(A,l*s)),e=Math.atan2(A,l*s),n=fe(e+this.long0),i=mF(this.cgb,t)}else n=1/0,i=1/0;return r.x=n,r.y=i,r}var Cet=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],U0={init:_et,forward:wet,inverse:Eet,names:Cet};function Bet(r,e){if(r===void 0){if(r=Math.floor((fe(e)+Math.PI)*30/Math.PI)+1,r<0)return 0;if(r>60)return 60}return r}var Tet="etmerc";function xet(){var r=Bet(this.zone,this.long0);if(r===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(r)-183)*ra,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,U0.init.apply(this),this.forward=U0.forward,this.inverse=U0.inverse}var bet=["Universal Transverse Mercator System","utm"],Iet={init:xet,names:bet,dependsOn:Tet};function _F(r,e){return Math.pow((1-r)/(1+r),e)}var Fet=20;function Let(){var r=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*r*r),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(r/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+zr)/(Math.pow(Math.tan(.5*this.lat0+zr),this.C)*_F(this.e*r,this.ratexp))}function Oet(r){var e=r.x,t=r.y;return r.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*t+zr),this.C)*_F(this.e*Math.sin(t),this.ratexp))-zt,r.x=this.C*e,r}function Ret(r){for(var e=1e-14,t=r.x/this.C,n=r.y,i=Math.pow(Math.tan(.5*n+zr)/this.K,1/this.C),a=Fet;a>0&&(n=2*Math.atan(i*_F(this.e*Math.sin(r.y),-.5*this.e))-zt,!(Math.abs(n-r.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=ne&&(this.k0=.5*this.cons*uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Ss(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=uA(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-zt,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function ket(r){var e=r.x,t=r.y,n=Math.sin(t),i=Math.cos(t),a,o,s,A,l,u,c=fe(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=ne&&Math.abs(t+this.lat0)<=ne?(r.x=NaN,r.y=NaN,r):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(c)),r.x=this.a*a*i*Math.sin(c)+this.x0,r.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(c))+this.y0,r):(o=2*Math.atan(this.ssfn_(t,n,this.e))-zt,A=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=ne?(l=Ss(this.e,t*this.con,this.con*n),u=2*this.a*this.k0*l/this.cons,r.x=this.x0+u*Math.sin(e-this.long0),r.y=this.y0-this.con*u*Math.cos(e-this.long0),r):(Math.abs(this.sinlat0)0?e=fe(this.long0+Math.atan2(r.x,-1*r.y)):e=fe(this.long0+Math.atan2(r.x,r.y)):e=fe(this.long0+Math.atan2(r.x*Math.sin(s),o*this.coslat0*Math.cos(s)-r.y*this.sinlat0*Math.sin(s))),r.x=e,r.y=t,r)}else if(Math.abs(this.coslat0)<=ne){if(o<=ne)return t=this.lat0,e=this.long0,r.x=e,r.y=t,r;r.x*=this.con,r.y*=this.con,n=o*this.cons/(2*this.a*this.k0),t=this.con*_g(this.e,n),e=this.con*fe(this.con*this.long0+Math.atan2(r.x,-1*r.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=ne?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+r.y*Math.sin(i)*this.cosX0/o),e=fe(this.long0+Math.atan2(r.x*Math.sin(i),o*this.cosX0*Math.cos(i)-r.y*this.sinX0*Math.sin(i)))),t=-1*_g(this.e,Math.tan(.5*(zt+a)));return r.x=e,r.y=t,r}var Vet=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],jet={init:Get,forward:ket,inverse:$et,names:Vet,ssfn_:Het};function Ket(){var r=this.lat0;this.lambda0=this.long0;var e=Math.sin(r),t=this.a,n=this.rf,i=1/n,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*t*Math.sqrt(1-a)/(1-a*Math.pow(e,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(r),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),A=Math.log(Math.tan(Math.PI/4+r/2)),l=Math.log((1+o*e)/(1-o*e));this.K=s-this.alpha*A+this.alpha*o/2*l}function zet(r){var e=Math.log(Math.tan(Math.PI/4-r.y/2)),t=this.e/2*Math.log((1+this.e*Math.sin(r.y))/(1-this.e*Math.sin(r.y))),n=-this.alpha*(e+t)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(r.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return r.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,r.x=this.R*o+this.x0,r}function Yet(r){for(var e=r.x-this.x0,t=r.y-this.y0,n=e/this.R,i=2*(Math.atan(Math.exp(t/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+o/this.alpha,A=0,l=a,u=-1e3,c=0;Math.abs(l-u)>1e-7;){if(++c>20)return;A=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(A))-Math.PI/2}return r.x=s,r.y=l,r}var Xet=["somerc"],Wet={init:Ket,forward:zet,inverse:Yet,names:Xet},Nf=1e-7;function qet(r){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],t=typeof r.PROJECTION=="object"?Object.keys(r.PROJECTION)[0]:r.PROJECTION;return"no_uoff"in r||"no_off"in r||e.indexOf(t)!==-1}function Zet(){var r,e,t,n,i,a,o,s,A,l,u=0,c,h=0,f=0,p=0,v=0,m=0,g=0;this.no_off=qet(this),this.no_rot="no_rot"in this;var _=!1;"alpha"in this&&(_=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),_&&(g=this.alpha),E&&(u=this.rectified_grid_angle*ra),_||E)h=this.longc;else if(f=this.long1,v=this.lat1,p=this.long2,m=this.lat2,Math.abs(v-m)<=Nf||(r=Math.abs(v))<=Nf||Math.abs(r-zt)<=Nf||Math.abs(Math.abs(this.lat0)-zt)<=Nf||Math.abs(Math.abs(m)-zt)<=Nf)throw new Error;var B=1-this.es;e=Math.sqrt(B),Math.abs(this.lat0)>ne?(s=Math.sin(this.lat0),t=Math.cos(this.lat0),r=1-this.es*s*s,this.B=t*t,this.B=Math.sqrt(1+this.es*this.B*this.B/B),this.A=this.B*this.k0*e/r,n=this.B*e/(t*Math.sqrt(r)),i=n*n-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(Ss(this.e,this.lat0,s),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=i=1),_||E?(_?(c=Math.asin(Math.sin(g)/n),E||(u=g)):(c=u,g=Math.asin(n*Math.sin(c))),this.lam0=h-Math.asin(.5*(i-1/i)*Math.tan(c))/this.B):(a=Math.pow(Ss(this.e,v,Math.sin(v)),this.B),o=Math.pow(Ss(this.e,m,Math.sin(m)),this.B),i=this.E/a,A=(o-a)/(o+a),l=this.E*this.E,l=(l-o*a)/(l+o*a),r=f-p,r<-Math.pi?p-=yg:r>Math.pi&&(p+=yg),this.lam0=fe(.5*(f+p)-Math.atan(l*Math.tan(.5*this.B*(f-p))/A)/this.B),c=Math.atan(2*Math.sin(this.B*fe(f-this.lam0))/(i-1/i)),u=g=Math.asin(n*Math.sin(c))),this.singam=Math.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(u),this.cosrot=Math.cos(u),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(g))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(zr-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(zr+i))}function Jet(r){var e={},t,n,i,a,o,s,A,l;if(r.x=r.x-this.lam0,Math.abs(Math.abs(r.y)-zt)>ne){if(o=this.E/Math.pow(Ss(this.e,r.y,Math.sin(r.y)),this.B),s=1/o,t=.5*(o-s),n=.5*(o+s),a=Math.sin(this.B*r.x),i=(t*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)0?this.v_pole_n:this.v_pole_s,A=this.ArB*r.y;return this.no_rot?(e.x=A,e.y=l):(A-=this.u_0,e.x=l*this.cosrot+A*this.sinrot,e.y=A*this.cosrot-l*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function trt(r){var e,t,n,i,a,o,s,A={};if(r.x=(r.x-this.x0)*(1/this.a),r.y=(r.y-this.y0)*(1/this.a),this.no_rot?(t=r.y,e=r.x):(t=r.x*this.cosrot-r.y*this.sinrot,e=r.y*this.cosrot+r.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*t),i=.5*(n-1/n),a=.5*(n+1/n),o=Math.sin(this.BrA*e),s=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(s)-1)ne?this.ns=Math.log(n/s)/Math.log(i/A):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function irt(r){var e=r.x,t=r.y;Math.abs(2*Math.abs(t)-Math.PI)<=ne&&(t=iy(t)*(zt-2*ne));var n=Math.abs(Math.abs(t)-zt),i,a;if(n>ne)i=Ss(this.e,t,Math.sin(t)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(n=t*this.ns,n<=0)return null;a=0}var o=this.ns*fe(e-this.long0);return r.x=this.k0*(a*Math.sin(o))+this.x0,r.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,r}function art(r){var e,t,n,i,a,o=(r.x-this.x0)/this.k0,s=this.rh-(r.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+s*s),t=1):(e=-Math.sqrt(o*o+s*s),t=-1);var A=0;if(e!==0&&(A=Math.atan2(t*o,t*s)),e!==0||this.ns>0){if(t=1/this.ns,n=Math.pow(e/(this.a*this.f0),t),i=_g(this.e,n),i===-9999)return null}else i=-zt;return a=fe(A/this.ns+this.long0),r.x=a,r.y=i,r}var ort=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"],srt={init:nrt,forward:irt,inverse:art,names:ort};function Art(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function lrt(r){var e,t,n,i,a,o,s,A=r.x,l=r.y,u=fe(A-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),t=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),n=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(t)+Math.sin(this.ad)*Math.cos(t)*Math.cos(n)),a=Math.asin(Math.cos(t)*Math.sin(n)/Math.cos(i)),o=this.n*a,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),r.y=s*Math.cos(o)/1,r.x=s*Math.sin(o)/1,this.czech||(r.y*=-1,r.x*=-1),r}function urt(r){var e,t,n,i,a,o,s,A,l=r.x;r.x=r.y,r.y=l,this.czech||(r.y*=-1,r.x*=-1),o=Math.sqrt(r.x*r.x+r.y*r.y),a=Math.atan2(r.y,r.x),i=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),t=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(e)),r.x=this.long0-t/this.alfa,s=e,A=0;var u=0;do r.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-r.y)<1e-10&&(A=1),s=r.y,u+=1;while(A===0&&u<15);return u>=15?null:r}var crt=["Krovak","krovak"],hrt={init:Art,forward:lrt,inverse:urt,names:crt};function Ha(r,e,t,n,i){return r*i-e*Math.sin(2*i)+t*Math.sin(4*i)-n*Math.sin(6*i)}function ay(r){return 1-.25*r*(1+r/16*(3+1.25*r))}function oy(r){return .375*r*(1+.25*r*(1+.46875*r))}function sy(r){return .05859375*r*r*(1+.75*r)}function Ay(r){return r*r*r*(35/3072)}function Fp(r,e,t){var n=e*t;return r/Math.sqrt(1-n*n)}function zp(r){return Math.abs(r)1e-7?(t=r*e,(1-r*r)*(e/(1-t*t)-.5/r*Math.log((1-t)/(1+t)))):2*e}var yrt=1,mrt=2,_rt=3,wrt=4;function Ert(){var r=Math.abs(this.lat0);if(Math.abs(r-zt)0){var e;switch(this.qp=Su(this.e,1),this.mmf=.5/(1-this.es),this.apa=Lrt(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Su(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Crt(r){var e,t,n,i,a,o,s,A,l,u,c=r.x,h=r.y;if(c=fe(c-this.long0),this.sphere){if(a=Math.sin(h),u=Math.cos(h),n=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t=this.mode===this.EQUIT?1+u*n:1+this.sinph0*a+this.cosph0*u*n,t<=ne)return null;t=Math.sqrt(2/t),e=t*u*Math.sin(c),t*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*u*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(h+this.lat0)=0?(e=(l=Math.sqrt(o))*i,t=n*(this.mode===this.S_POLE?l:-l)):e=t=0;break}}return r.x=this.a*e+this.x0,r.y=this.a*t+this.y0,r}function Brt(r){r.x-=this.x0,r.y-=this.y0;var e=r.x/this.a,t=r.y/this.a,n,i,a,o,s,A,l;if(this.sphere){var u=0,c,h=0;if(c=Math.sqrt(e*e+t*t),i=c*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(h=Math.sin(i),u=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(c)<=ne?0:Math.asin(t*h/c),e*=h,t=u*c;break;case this.OBLIQ:i=Math.abs(c)<=ne?this.lat0:Math.asin(u*this.sinph0+t*h*this.cosph0/c),e*=h*this.cosph0,t=(u-Math.sin(i)*this.sinph0)*c;break;case this.N_POLE:t=-t,i=zt-i;break;case this.S_POLE:i-=zt;break}n=t===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,t)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,t*=this.dd,A=Math.sqrt(e*e+t*t),A1&&(r=r>1?1:-1),Math.asin(r)}function Nrt(){Math.abs(this.lat1+this.lat2)ne?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Prt(r){var e=r.x,t=r.y;this.sin_phi=Math.sin(t),this.cos_phi=Math.cos(t);var n=Su(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*fe(e-this.long0),o=i*Math.sin(a)+this.x0,s=this.rh-i*Math.cos(a)+this.y0;return r.x=o,r.y=s,r}function Urt(r){var e,t,n,i,a,o;return r.x-=this.x0,r.y=this.rh-r.y+this.y0,this.ns0>=0?(e=Math.sqrt(r.x*r.x+r.y*r.y),n=1):(e=-Math.sqrt(r.x*r.x+r.y*r.y),n=-1),i=0,e!==0&&(i=Math.atan2(n*r.x,n*r.y)),n=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(t=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,t)),a=fe(i/this.ns0+this.long0),r.x=a,r.y=o,r}function Drt(r,e){var t,n,i,a,o,s=ku(.5*e);if(r0||Math.abs(o)<=ne?(s=this.x0+this.a*a*t*Math.sin(n)/o,A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)/o):(s=this.x0+this.infinity_dist*t*Math.sin(n),A=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function $rt(r){var e,t,n,i,a,o;return r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,r.x/=this.k0,r.y/=this.k0,(e=Math.sqrt(r.x*r.x+r.y*r.y))?(i=Math.atan2(e,this.rc),t=Math.sin(i),n=Math.cos(i),o=ku(n*this.sin_p14+r.y*t*this.cos_p14/e),a=Math.atan2(r.x*t,e*this.cos_p14*n-r.y*this.sin_p14*t),a=fe(this.long0+a)):(o=this.phic0,a=0),r.x=a,r.y=o,r}var Vrt=["gnom"],jrt={init:Grt,forward:krt,inverse:$rt,names:Vrt};function Krt(r,e){var t=1-(1-r*r)/(2*r)*Math.log((1-r)/(1+r));if(Math.abs(Math.abs(e)-t)<1e-6)return e<0?-1*zt:zt;for(var n=Math.asin(.5*e),i,a,o,s,A=0;A<30;A++)if(a=Math.sin(n),o=Math.cos(n),s=r*a,i=Math.pow(1-s*s,2)/(2*o)*(e/(1-r*r)-a/(1-s*s)+.5/r*Math.log((1-s)/(1+s))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function zrt(){this.sphere||(this.k0=uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Yrt(r){var e=r.x,t=r.y,n,i,a=fe(e-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(t)/Math.cos(this.lat_ts);else{var o=Su(this.e,Math.sin(t));n=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return r.x=n,r.y=i,r}function Xrt(r){r.x-=this.x0,r.y-=this.y0;var e,t;return this.sphere?(e=fe(this.long0+r.x/this.a/Math.cos(this.lat_ts)),t=Math.asin(r.y/this.a*Math.cos(this.lat_ts))):(t=Krt(this.e,2*r.y*this.k0/this.a),e=fe(this.long0+r.x/(this.a*this.k0))),r.x=e,r.y=t,r}var Wrt=["cea"],qrt={init:zrt,forward:Yrt,inverse:Xrt,names:Wrt};function Zrt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function Jrt(r){var e=r.x,t=r.y,n=fe(e-this.long0),i=zp(t-this.lat0);return r.x=this.x0+this.a*n*this.rc,r.y=this.y0+this.a*i,r}function tnt(r){var e=r.x,t=r.y;return r.x=fe(this.long0+(e-this.x0)/(this.a*this.rc)),r.y=zp(this.lat0+(t-this.y0)/this.a),r}var ent=["Equirectangular","Equidistant_Cylindrical","eqc"],rnt={init:Zrt,forward:Jrt,inverse:tnt,names:ent},ZM=20;function nnt(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ay(this.es),this.e1=oy(this.es),this.e2=sy(this.es),this.e3=Ay(this.es),this.ml0=this.a*Ha(this.e0,this.e1,this.e2,this.e3,this.lat0)}function int(r){var e=r.x,t=r.y,n,i,a,o=fe(e-this.long0);if(a=o*Math.sin(t),this.sphere)Math.abs(t)<=ne?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(t),i=this.a*(zp(t-this.lat0)+(1-Math.cos(a))/Math.tan(t)));else if(Math.abs(t)<=ne)n=this.a*o,i=-1*this.ml0;else{var s=Fp(this.a,this.e,Math.sin(t))/Math.tan(t);n=s*Math.sin(a),i=this.a*Ha(this.e0,this.e1,this.e2,this.e3,t)-this.ml0+s*(1-Math.cos(a))}return r.x=n+this.x0,r.y=i+this.y0,r}function ant(r){var e,t,n,i,a,o,s,A,l;if(n=r.x-this.x0,i=r.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=ne)e=fe(n/this.a+this.long0),t=0;else{o=this.lat0+i/this.a,s=n*n/this.a/this.a+o*o,A=o;var u;for(a=ZM;a;--a)if(u=Math.tan(A),l=-1*(o*(A*u+1)-A-.5*(A*A+s)*u)/((A-o)/u-1),A+=l,Math.abs(l)<=ne){t=A;break}e=fe(this.long0+Math.asin(n*Math.tan(A)/this.a)/Math.sin(t))}else if(Math.abs(i+this.ml0)<=ne)t=0,e=fe(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,s=n*n/this.a/this.a+o*o,A=o;var c,h,f,p,v;for(a=ZM;a;--a)if(v=this.e*Math.sin(A),c=Math.sqrt(1-v*v)*Math.tan(A),h=this.a*Ha(this.e0,this.e1,this.e2,this.e3,A),f=this.e0-2*this.e1*Math.cos(2*A)+4*this.e2*Math.cos(4*A)-6*this.e3*Math.cos(6*A),p=h/this.a,l=(o*(c*p+1)-p-.5*c*(p*p+s))/(this.es*Math.sin(2*A)*(p*p+s-2*o*p)/(4*c)+(o-p)*(c*f-2/Math.sin(2*A))-f),A-=l,Math.abs(l)<=ne){t=A;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(t),2))*Math.tan(t),e=fe(this.long0+Math.asin(n*c/this.a)/Math.sin(t))}return r.x=e,r.y=t,r}var ont=["Polyconic","poly"],snt={init:nnt,forward:int,inverse:ant,names:ont};function Ant(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function lnt(r){var e,t=r.x,n=r.y,i=n-this.lat0,a=t-this.long0,o=i/Qv*1e-5,s=a,A=1,l=0;for(e=1;e<=10;e++)A=A*o,l=l+this.A[e]*A;var u=l,c=s,h=1,f=0,p,v,m=0,g=0;for(e=1;e<=6;e++)p=h*u-f*c,v=f*u+h*c,h=p,f=v,m=m+this.B_re[e]*h-this.B_im[e]*f,g=g+this.B_im[e]*h+this.B_re[e]*f;return r.x=g*this.a+this.x0,r.y=m*this.a+this.y0,r}function unt(r){var e,t=r.x,n=r.y,i=t-this.x0,a=n-this.y0,o=a/this.a,s=i/this.a,A=1,l=0,u,c,h=0,f=0;for(e=1;e<=6;e++)u=A*o-l*s,c=l*o+A*s,A=u,l=c,h=h+this.C_re[e]*A-this.C_im[e]*l,f=f+this.C_im[e]*A+this.C_re[e]*l;for(var p=0;p.999999999999&&(t=.999999999999),e=Math.asin(t);var n=fe(this.long0+r.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),t=(2*e+Math.sin(2*e))/Math.PI,Math.abs(t)>1&&(t=1);var i=Math.asin(t);return r.x=n,r.y=i,r}var xnt=["Mollweide","moll"],bnt={init:Bnt,forward:Tnt,inverse:Snt,names:xnt};function Int(){Math.abs(this.lat1+this.lat2)=0?(t=Math.sqrt(r.x*r.x+r.y*r.y),e=1):(t=-Math.sqrt(r.x*r.x+r.y*r.y),e=-1);var a=0;if(t!==0&&(a=Math.atan2(e*r.x,e*r.y)),this.sphere)return i=fe(this.long0+a/this.ns),n=zp(this.g-t/this.a),r.x=i,r.y=n,r;var o=this.g-t/this.a;return n=D_(o,this.e0,this.e1,this.e2,this.e3),i=fe(this.long0+a/this.ns),r.x=i,r.y=n,r}var Ont=["Equidistant_Conic","eqdc"],Rnt={init:Int,forward:Fnt,inverse:Lnt,names:Ont};function Mnt(){this.R=this.a}function Nnt(r){var e=r.x,t=r.y,n=fe(e-this.long0),i,a;Math.abs(t)<=ne&&(i=this.x0+this.R*n,a=this.y0);var o=ku(2*Math.abs(t/Math.PI));(Math.abs(n)<=ne||Math.abs(Math.abs(t)-zt)<=ne)&&(i=this.x0,t>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var s=.5*Math.abs(Math.PI/n-n/Math.PI),A=s*s,l=Math.sin(o),u=Math.cos(o),c=u/(l+u-1),h=c*c,f=c*(2/l-1),p=f*f,v=Math.PI*this.R*(s*(c-p)+Math.sqrt(A*(c-p)*(c-p)-(p+A)*(h-p)))/(p+A);n<0&&(v=-v),i=this.x0+v;var m=A+c;return v=Math.PI*this.R*(f*m-s*Math.sqrt((p+A)*(A+1)-m*m))/(p+A),t>=0?a=this.y0+v:a=this.y0-v,r.x=i,r.y=a,r}function Pnt(r){var e,t,n,i,a,o,s,A,l,u,c,h,f;return r.x-=this.x0,r.y-=this.y0,c=Math.PI*this.R,n=r.x/c,i=r.y/c,a=n*n+i*i,o=-Math.abs(i)*(1+a),s=o-2*i*i+n*n,A=-2*o+1+2*i*i+a*a,f=i*i/A+(2*s*s*s/A/A/A-9*o*s/A/A)/27,l=(o-s*s/3/A)/A,u=2*Math.sqrt(-l/3),c=3*f/l/u,Math.abs(c)>1&&(c>=0?c=1:c=-1),h=Math.acos(c)/3,r.y>=0?t=(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI:t=-(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI,Math.abs(n)2*zt*this.a?void 0:(t=e/this.a,n=Math.sin(t),i=Math.cos(t),a=this.long0,Math.abs(e)<=ne?o=this.lat0:(o=ku(i*this.sin_p12+r.y*n*this.cos_p12/e),s=Math.abs(this.lat0)-zt,Math.abs(s)<=ne?this.lat0>=0?a=fe(this.long0+Math.atan2(r.x,-r.y)):a=fe(this.long0-Math.atan2(-r.x,r.y)):a=fe(this.long0+Math.atan2(r.x*n,e*this.cos_p12*i-r.y*this.sin_p12*n))),r.x=a,r.y=o,r)):(A=ay(this.es),l=oy(this.es),u=sy(this.es),c=Ay(this.es),Math.abs(this.sin_p12-1)<=ne?(h=this.a*Ha(A,l,u,c,zt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=h-e,o=D_(f/this.a,A,l,u,c),a=fe(this.long0+Math.atan2(r.x,-1*r.y)),r.x=a,r.y=o,r):Math.abs(this.sin_p12+1)<=ne?(h=this.a*Ha(A,l,u,c,zt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=e-h,o=D_(f/this.a,A,l,u,c),a=fe(this.long0+Math.atan2(r.x,r.y)),r.x=a,r.y=o,r):(e=Math.sqrt(r.x*r.x+r.y*r.y),m=Math.atan2(r.x,r.y),p=Fp(this.a,this.e,this.sin_p12),g=Math.cos(m),_=this.e*this.cos_p12*g,E=-_*_/(1-this.es),B=3*this.es*(1-E)*this.sin_p12*this.cos_p12*g/(1-this.es),L=e/p,O=L-E*(1+E)*Math.pow(L,3)/6-B*(1+3*E)*Math.pow(L,4)/24,b=1-E*O*O/2-L*O*O*O/6,v=Math.asin(this.sin_p12*Math.cos(O)+this.cos_p12*Math.sin(O)*g),a=fe(this.long0+Math.asin(Math.sin(m)*Math.sin(O)/Math.cos(v))),T=Math.sin(v),o=Math.atan2((T-this.es*b*this.sin_p12)*Math.tan(v),T*(1-this.es)),r.x=a,r.y=o,r))}var knt=["Azimuthal_Equidistant","aeqd"],$nt={init:Qnt,forward:Hnt,inverse:Gnt,names:knt};function Vnt(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function jnt(r){var e,t,n,i,a,o,s,A,l=r.x,u=r.y;return n=fe(l-this.long0),e=Math.sin(u),t=Math.cos(u),i=Math.cos(n),o=this.sin_p14*e+this.cos_p14*t*i,a=1,(o>0||Math.abs(o)<=ne)&&(s=this.a*a*t*Math.sin(n),A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function Knt(r){var e,t,n,i,a,o,s;return r.x-=this.x0,r.y-=this.y0,e=Math.sqrt(r.x*r.x+r.y*r.y),t=ku(e/this.a),n=Math.sin(t),i=Math.cos(t),o=this.long0,Math.abs(e)<=ne?(s=this.lat0,r.x=o,r.y=s,r):(s=ku(i*this.sin_p14+r.y*n*this.cos_p14/e),a=Math.abs(this.lat0)-zt,Math.abs(a)<=ne?(this.lat0>=0?o=fe(this.long0+Math.atan2(r.x,-r.y)):o=fe(this.long0-Math.atan2(-r.x,r.y)),r.x=o,r.y=s,r):(o=fe(this.long0+Math.atan2(r.x*n,e*this.cos_p14*i-r.y*this.sin_p14*n)),r.x=o,r.y=s,r))}var znt=["ortho"],Ynt={init:Vnt,forward:jnt,inverse:Knt,names:znt},Rn={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Yr={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Xnt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=zt-zr/2?this.face=Rn.TOP:this.lat0<=-(zt-zr/2)?this.face=Rn.BOTTOM:Math.abs(this.long0)<=zr?this.face=Rn.FRONT:Math.abs(this.long0)<=zt+zr?this.face=this.long0>0?Rn.RIGHT:Rn.LEFT:this.face=Rn.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function Wnt(r){var e={x:0,y:0},t,n,i,a,o,s,A={value:0};if(r.x-=this.long0,this.es!==0?t=Math.atan(this.one_minus_f_squared*Math.tan(r.y)):t=r.y,n=r.x,this.face===Rn.TOP)a=zt-t,n>=zr&&n<=zt+zr?(A.value=Yr.AREA_0,i=n-zt):n>zt+zr||n<=-(zt+zr)?(A.value=Yr.AREA_1,i=n>0?n-ei:n+ei):n>-(zt+zr)&&n<=-zr?(A.value=Yr.AREA_2,i=n+zt):(A.value=Yr.AREA_3,i=n);else if(this.face===Rn.BOTTOM)a=zt+t,n>=zr&&n<=zt+zr?(A.value=Yr.AREA_0,i=-n+zt):n=-zr?(A.value=Yr.AREA_1,i=-n):n<-zr&&n>=-(zt+zr)?(A.value=Yr.AREA_2,i=-n-zt):(A.value=Yr.AREA_3,i=n>0?-n+ei:-n-ei);else{var l,u,c,h,f,p,v;this.face===Rn.RIGHT?n=up(n,+zt):this.face===Rn.BACK?n=up(n,+ei):this.face===Rn.LEFT&&(n=up(n,-zt)),h=Math.sin(t),f=Math.cos(t),p=Math.sin(n),v=Math.cos(n),l=f*v,u=f*p,c=h,this.face===Rn.FRONT?(a=Math.acos(l),i=Mm(a,c,u,A)):this.face===Rn.RIGHT?(a=Math.acos(u),i=Mm(a,c,-l,A)):this.face===Rn.BACK?(a=Math.acos(-l),i=Mm(a,c,-u,A)):this.face===Rn.LEFT?(a=Math.acos(-u),i=Mm(a,c,l,A)):(a=i=0,A.value=Yr.AREA_0)}return s=Math.atan(12/ei*(i+Math.acos(Math.sin(i)*Math.cos(zr))-zt)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),A.value===Yr.AREA_1?s+=zt:A.value===Yr.AREA_2?s+=ei:A.value===Yr.AREA_3&&(s+=1.5*ei),e.x=o*Math.cos(s),e.y=o*Math.sin(s),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,r.x=e.x,r.y=e.y,r}function qnt(r){var e={lam:0,phi:0},t,n,i,a,o,s,A,l,u,c={value:0};if(r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,n=Math.atan(Math.sqrt(r.x*r.x+r.y*r.y)),t=Math.atan2(r.y,r.x),r.x>=0&&r.x>=Math.abs(r.y)?c.value=Yr.AREA_0:r.y>=0&&r.y>=Math.abs(r.x)?(c.value=Yr.AREA_1,t-=zt):r.x<0&&-r.x>=Math.abs(r.y)?(c.value=Yr.AREA_2,t=t<0?t+ei:t-ei):(c.value=Yr.AREA_3,t+=zt),u=ei/12*Math.tan(t),o=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(t),a=Math.tan(n),A=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(s)))),A<-1?A=-1:A>1&&(A=1),this.face===Rn.TOP)l=Math.acos(A),e.phi=zt-l,c.value===Yr.AREA_0?e.lam=s+zt:c.value===Yr.AREA_1?e.lam=s<0?s+ei:s-ei:c.value===Yr.AREA_2?e.lam=s-zt:e.lam=s;else if(this.face===Rn.BOTTOM)l=Math.acos(A),e.phi=l-zt,c.value===Yr.AREA_0?e.lam=-s+zt:c.value===Yr.AREA_1?e.lam=-s:c.value===Yr.AREA_2?e.lam=-s-zt:e.lam=s<0?-s-ei:-s+ei;else{var h,f,p;h=A,u=h*h,u>=1?p=0:p=Math.sqrt(1-u)*Math.sin(s),u+=p*p,u>=1?f=0:f=Math.sqrt(1-u),c.value===Yr.AREA_1?(u=f,f=-p,p=u):c.value===Yr.AREA_2?(f=-f,p=-p):c.value===Yr.AREA_3&&(u=f,f=p,p=-u),this.face===Rn.RIGHT?(u=h,h=-f,f=u):this.face===Rn.BACK?(h=-h,f=-f):this.face===Rn.LEFT&&(u=h,h=f,f=-u),e.phi=Math.acos(-p)-zt,e.lam=Math.atan2(f,h),this.face===Rn.RIGHT?e.lam=up(e.lam,-zt):this.face===Rn.BACK?e.lam=up(e.lam,-ei):this.face===Rn.LEFT&&(e.lam=up(e.lam,+zt))}if(this.es!==0){var v,m,g;v=e.phi<0?1:0,m=Math.tan(e.phi),g=this.b/Math.sqrt(m*m+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),v&&(e.phi=-e.phi)}return e.lam+=this.long0,r.x=e.lam,r.y=e.phi,r}function Mm(r,e,t,n){var i;return rzr&&i<=zt+zr?(n.value=Yr.AREA_1,i-=zt):i>zt+zr||i<=-(zt+zr)?(n.value=Yr.AREA_2,i=i>=0?i-ei:i+ei):(n.value=Yr.AREA_3,i+=zt)),i}function up(r,e){var t=r+e;return t<-ei?t+=yg:t>+ei&&(t-=yg),t}var Znt=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],Jnt={init:Xnt,forward:Wnt,inverse:qnt,names:Znt},lS=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],gv=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],w4=.8487,E4=1.3523,C4=tA/5,tit=1/C4,Xf=18,Q_=function(r,e){return r[0]+e*(r[1]+e*(r[2]+e*r[3]))},eit=function(r,e){return r[1]+e*(2*r[2]+e*3*r[3])};function rit(r,e,t,n){for(var i=e;n;--n){var a=r(i);if(i-=a,Math.abs(a)=Xf&&(n=Xf-1),t=tA*(t-tit*n);var i={x:Q_(lS[n],t)*e,y:Q_(gv[n],t)};return r.y<0&&(i.y=-i.y),i.x=i.x*this.a*w4+this.x0,i.y=i.y*this.a*E4+this.y0,i}function ait(r){var e={x:(r.x-this.x0)/(this.a*w4),y:Math.abs(r.y-this.y0)/(this.a*E4)};if(e.y>=1)e.x/=lS[Xf][0],e.y=r.y<0?-zt:zt;else{var t=Math.floor(e.y*Xf);for(t<0?t=0:t>=Xf&&(t=Xf-1);;)if(gv[t][0]>e.y)--t;else if(gv[t+1][0]<=e.y)++t;else break;var n=gv[t],i=5*(e.y-n[0])/(gv[t+1][0]-n[0]);i=rit(function(a){return(Q_(n,a)-e.y)/eit(n,a)},i,ne,100),e.x/=Q_(lS[t],i),e.y=(5*t+i)*ra,r.y<0&&(e.y=-e.y)}return e.x=fe(e.x+this.long0),e}var oit=["Robinson","robin"],sit={init:nit,forward:iit,inverse:ait,names:oit};function Ait(){this.name="geocent"}function lit(r){var e=A4(r,this.es,this.a);return e}function uit(r){var e=l4(r,this.es,this.a,this.b);return e}var cit=["Geocentric","geocentric","geocent","Geocent"],hit={init:Ait,forward:lit,inverse:uit,names:cit},ma={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},jd={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function fit(){if(Object.keys(jd).forEach(function(t){if(typeof this[t]>"u")this[t]=jd[t].def;else{if(jd[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);jd[t].num&&(this[t]=parseFloat(this[t]))}jd[t].degrees&&(this[t]=this[t]*ra)}.bind(this)),Math.abs(Math.abs(this.lat0)-zt)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var r=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(r),this.sw=Math.sin(r)}function pit(r){r.x-=this.long0;var e=Math.sin(r.y),t=Math.cos(r.y),n=Math.cos(r.x),i,a;switch(this.mode){case ma.OBLIQ:a=this.sinph0*e+this.cosph0*t*n;break;case ma.EQUIT:a=t*n;break;case ma.S_POLE:a=-e;break;case ma.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),i=a*t*Math.sin(r.x),this.mode){case ma.OBLIQ:a*=this.cosph0*e-this.sinph0*t*n;break;case ma.EQUIT:a*=e;break;case ma.N_POLE:a*=-(t*n);break;case ma.S_POLE:a*=t*n;break}var o,s;return o=a*this.cg+i*this.sg,s=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*s,a=o*s,r.x=i*this.a,r.y=a*this.a,r}function dit(r){r.x/=this.a,r.y/=this.a;var e={x:r.x,y:r.y},t,n,i;i=1/(this.pn1-r.y*this.sw),t=this.pn1*r.x*i,n=this.pn1*r.y*this.cw*i,r.x=t*this.cg+n*this.sg,r.y=n*this.cg-t*this.sg;var a=cw(r.x,r.y);if(Math.abs(a)t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Be()},e.prototype.getAlpha=function(t,n){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(!i)i=n,this.transitionStarts_[t]=i;else if(i===-1)return 1;var a=n-i+1e3/60;return a>=this.transition_?1:zI(a/this.transition_)},e.prototype.inTransition=function(t){return this.transition_?this.transitionStarts_[t]!==-1:!1},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Th),EF=Sit,xit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bit=function(r){xit(e,r);function e(t,n,i,a,o,s){var A=r.call(this,t,n,s)||this;return A.crossOrigin_=a,A.src_=i,A.key=i,A.image_=new Image,a!==null&&(A.image_.crossOrigin=a),A.unlisten_=null,A.tileLoadFunction_=o,A}return e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=ge.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=ge.ERROR,this.unlistenImage_(),this.image_=Iit(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=ge.LOADED:this.state=ge.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==ge.ERROR&&(this.state=ge.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==ge.IDLE&&(this.state=ge.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=pF(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(EF);function Iit(){var r=ja(1,1);return r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1),r.canvas}var G_=bit,T4=.5,Fit=10,JM=.25,Lit=function(){function r(e,t,n,i,a,o){this.sourceProj_=e,this.targetProj_=t;var s={},A=vg(this.targetProj_,this.sourceProj_);this.transformInv_=function(E){var B=E[0]+"/"+E[1];return s[B]||(s[B]=A(E)),s[B]},this.maxSourceExtent_=i,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Fr(i)==Fr(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Fr(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Fr(this.targetProj_.getExtent()):null;var l=Rs(n),u=Yg(n),c=$p(n),h=zg(n),f=this.transformInv_(l),p=this.transformInv_(u),v=this.transformInv_(c),m=this.transformInv_(h),g=Fit+(o?Math.max(0,Math.ceil(G6(Ag(n)/(o*o*256*256)))):0);if(this.addQuad_(l,u,c,h,f,p,v,m,g),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach(function(E,B,L){_=Math.min(_,E.source[0][0],E.source[1][0],E.source[2][0])}),this.triangles_.forEach(function(E){if(Math.max(E.source[0][0],E.source[1][0],E.source[2][0])-_>this.sourceWorldWidth_/2){var B=[[E.source[0][0],E.source[0][1]],[E.source[1][0],E.source[1][1]],[E.source[2][0],E.source[2][1]]];B[0][0]-_>this.sourceWorldWidth_/2&&(B[0][0]-=this.sourceWorldWidth_),B[1][0]-_>this.sourceWorldWidth_/2&&(B[1][0]-=this.sourceWorldWidth_),B[2][0]-_>this.sourceWorldWidth_/2&&(B[2][0]-=this.sourceWorldWidth_);var L=Math.min(B[0][0],B[1][0],B[2][0]),O=Math.max(B[0][0],B[1][0],B[2][0]);O-L.5&&c<1,p=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=Yi([e,t,n,i]),m=Fr(v)/this.targetWorldWidth_;p=m>JM||p}!f&&this.sourceProj_.isGlobal()&&c&&(p=c>JM||p)}if(!(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Mn(u,this.maxSourceExtent_))){var g=0;if(!p&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(A[0])||!isFinite(A[1]))){if(l>0)p=!0;else if(g=(!isFinite(a[0])||!isFinite(a[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(s[0])||!isFinite(s[1])?2:0)+(!isFinite(A[0])||!isFinite(A[1])?1:0),g!=1&&g!=2&&g!=4&&g!=8)return}if(l>0){if(!p){var _=[(e[0]+n[0])/2,(e[1]+n[1])/2],E=this.transformInv_(_),B=void 0;if(f){var L=(Bu(a[0],h)+Bu(s[0],h))/2;B=L-Bu(E[0],h)}else B=(a[0]+s[0])/2-E[0];var O=(a[1]+s[1])/2-E[1],b=B*B+O*O;p=b>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var T=[(t[0]+n[0])/2,(t[1]+n[1])/2],I=this.transformInv_(T),M=[(i[0]+e[0])/2,(i[1]+e[1])/2],x=this.transformInv_(M);this.addQuad_(e,t,T,M,a,o,I,x,l-1),this.addQuad_(M,T,n,i,x,I,s,A,l-1)}else{var S=[(e[0]+t[0])/2,(e[1]+t[1])/2],N=this.transformInv_(S),P=[(n[0]+i[0])/2,(n[1]+i[1])/2],X=this.transformInv_(P);this.addQuad_(e,S,P,i,a,N,X,A,l-1),this.addQuad_(S,t,n,P,N,o,s,X,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}g&11||this.addTriangle_(e,n,i,a,s,A),g&14||this.addTriangle_(e,n,t,a,s,o),g&&(g&13||this.addTriangle_(t,i,e,o,A,a),g&7||this.addTriangle_(t,i,n,o,A,s))}},r.prototype.calculateSourceExtent=function(){var e=_i();return this.triangles_.forEach(function(t,n,i){var a=t.source;Yc(e,a[0]),Yc(e,a[1]),Yc(e,a[2])}),e},r.prototype.getTriangles=function(){return this.triangles_},r}(),S4=Lit,Lp={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},x4={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},IC;function tN(r,e,t,n,i){r.beginPath(),r.moveTo(0,0),r.lineTo(e,t),r.lineTo(n,i),r.closePath(),r.save(),r.clip(),r.fillRect(0,0,Math.max(e,n)+1,Math.max(t,i)),r.restore()}function FC(r,e){return Math.abs(r[e*4]-210)>2||Math.abs(r[e*4+3]-.75*255)>2}function Oit(){if(IC===void 0){var r=document.createElement("canvas").getContext("2d");r.globalCompositeOperation="lighter",r.fillStyle="rgba(210, 0, 0, 0.75)",tN(r,4,5,4,0),tN(r,4,5,0,5);var e=r.getImageData(0,0,3,3).data;IC=FC(e,0)||FC(e,4)||FC(e,8)}return IC}function wg(r,e,t,n){var i=Qu(t,e,r),a=T_(e,n,t),o=e.getMetersPerUnit();o!==void 0&&(a*=o);var s=r.getMetersPerUnit();s!==void 0&&(a/=s);var A=r.getExtent();if(!A||xs(A,i)){var l=T_(r,a,i)/a;isFinite(l)&&l>0&&(a/=l)}return a}function Rit(r,e,t,n){var i=Sa(t),a=wg(r,e,i,n);return(!isFinite(a)||a<=0)&&X1(t,function(o){return a=wg(r,e,o,n),isFinite(a)&&a>0}),a}function b4(r,e,t,n,i,a,o,s,A,l,u,c){var h=ja(Math.round(t*r),Math.round(t*e));if(c||de(h,Lp),A.length===0)return h.canvas;h.scale(t,t);function f(B){return Math.round(B*t)/t}h.globalCompositeOperation="lighter";var p=_i();A.forEach(function(B,L,O){Uu(p,B.extent)});var v=Fr(p),m=Ai(p),g=ja(Math.round(t*v/n),Math.round(t*m/n));c||de(g,Lp);var _=t/n;A.forEach(function(B,L,O){var b=B.extent[0]-p[0],T=-(B.extent[3]-p[3]),I=Fr(B.extent),M=Ai(B.extent);B.image.width>0&&B.image.height>0&&g.drawImage(B.image,l,l,B.image.width-2*l,B.image.height-2*l,b*_,T*_,I*_,M*_)});var E=Rs(o);return s.getTriangles().forEach(function(B,L,O){var b=B.source,T=B.target,I=b[0][0],M=b[0][1],x=b[1][0],S=b[1][1],N=b[2][0],P=b[2][1],X=f((T[0][0]-E[0])/a),z=f(-(T[0][1]-E[1])/a),tt=f((T[1][0]-E[0])/a),J=f(-(T[1][1]-E[1])/a),nt=f((T[2][0]-E[0])/a),it=f(-(T[2][1]-E[1])/a),_t=I,R=M;I=0,M=0,x-=_t,S-=R,N-=_t,P-=R;var $=[[x,S,0,0,tt-X],[N,P,0,0,nt-X],[0,0,x,S,J-z],[0,0,N,P,it-z]],K=HY($);if(K){if(h.save(),h.beginPath(),Oit()||!c){h.moveTo(tt,J);for(var q=4,at=X-tt,vt=z-J,wt=0;wtthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},r}();function pf(r,e,t,n,i){return i!==void 0?(i.minX=r,i.maxX=e,i.minY=t,i.maxY=n,i):new I4(r,e,t,n)}var BF=I4,Pit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Uit=function(r){Pit(e,r);function e(t){var n=r.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=_i(),n.tmpTileRange_=new BF(0,0,0,0),n}return e.prototype.isDrawableTile=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ge.LOADED||i==ge.EMPTY||i==ge.ERROR&&!a},e.prototype.getTile=function(t,n,i,a){var o=a.pixelRatio,s=a.viewState.projection,A=this.getLayer(),l=A.getSource(),u=l.getTile(t,n,i,o,s);return u.getState()==ge.ERROR&&(A.getUseInterimTilesOnError()?A.getPreload()>0&&(this.newTiles_=!0):u.setState(ge.LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=un(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!xs(o,a))return null;for(var s=n.pixelRatio,A=n.viewState.projection,l=n.viewState,u=i.getRenderSource(),c=u.getTileGridForProjection(l.projection),h=u.getTilePixelRatio(n.pixelRatio),f=c.getZForResolution(l.resolution);f>=c.getMinZoom();--f){var p=c.getTileCoordForCoordAndZ(a,f),v=u.getTile(f,p[1],p[2],s,A);if(!(v instanceof G_||v instanceof CF))return null;if(v.getState()===ge.LOADED){var m=c.getOrigin(f),g=Pi(c.getTileSize(f)),_=c.getResolution(f),E=Math.floor(h*((a[0]-m[0])/_-p[1]*g[0])),B=Math.floor(h*((m[1]-a[1])/_-p[2]*g[1]));return this.getImageData(v.getImage(),E,B)}}return null},e.prototype.loadedTileCallback=function(t,n,i){return this.isDrawableTile(i)?r.prototype.loadedTileCallback.call(this,t,n,i):!1},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,n){var i=t.layerStatesArray[t.layerIndex],a=t.viewState,o=a.projection,s=a.resolution,A=a.center,l=a.rotation,u=t.pixelRatio,c=this.getLayer(),h=c.getSource(),f=h.getRevision(),p=h.getTileGridForProjection(o),v=p.getZForResolution(s,h.zDirection),m=p.getResolution(v),g=t.extent,_=i.extent&&Lo(i.extent);_&&(g=Jo(g,Lo(i.extent)));var E=h.getTilePixelRatio(u),B=Math.round(t.size[0]*E),L=Math.round(t.size[1]*E);if(l){var O=Math.round(Math.sqrt(B*B+L*L));B=O,L=O}var b=m*B/2/E,T=m*L/2/E,I=[A[0]-b,A[1]-T,A[0]+b,A[1]+T],M=p.getTileRangeForExtentAndZ(g,v),x={};x[v]={};var S=this.createLoadedTileFinder(h,o,x),N=this.tmpExtent,P=this.tmpTileRange_;this.newTiles_=!1;for(var X=M.minX;X<=M.maxX;++X)for(var z=M.minY;z<=M.maxY;++z){var tt=this.getTile(v,X,z,t);if(this.isDrawableTile(tt)){var J=pe(this);if(tt.getState()==ge.LOADED){x[v][tt.tileCoord.toString()]=tt;var nt=tt.inTransition(J);!this.newTiles_&&(nt||this.renderedTiles.indexOf(tt)===-1)&&(this.newTiles_=!0)}if(tt.getAlpha(J,t.time)===1)continue}var it=p.getTileCoordChildTileRange(tt.tileCoord,P,N),_t=!1;it&&(_t=S(v+1,it)),_t||p.forEachTileCoordParentTileRange(tt.tileCoord,S,P,N)}var R=m/s;$a(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/E,1/E,l,-B/2,-L/2);var $=FI(this.pixelTransform);this.useContainer(n,$,i.opacity,this.getBackground(t));var K=this.context,q=K.canvas;Kg(this.inversePixelTransform,this.pixelTransform),$a(this.tempTransform,B/2,L/2,R,R,0,-B/2,-L/2),q.width!=B||q.height!=L?(q.width=B,q.height=L):this.containerReused||K.clearRect(0,0,B,L),_&&this.clipUnrotated(K,t,_),h.getInterpolate()||de(K,Lp),this.preRender(K,t),this.renderedTiles.length=0;var at=Object.keys(x).map(Number);at.sort(Nu);var vt,wt,W;i.opacity===1&&(!this.containerReused||h.getOpaque(t.viewState.projection))?at=at.reverse():(vt=[],wt=[]);for(var It=at.length-1;It>=0;--It){var Ot=at[It],j=h.getTilePixelSize(Ot,u,o),Z=p.getResolution(Ot),ut=Z/m,rt=j[0]*ut*R,G=j[1]*ut*R,xt=p.getTileCoordForCoordAndZ(Rs(I),Ot),bt=p.getTileCoordExtent(xt),dt=un(this.tempTransform,[E*(bt[0]-I[0])/m,E*(I[3]-bt[3])/m]),Et=E*h.getGutterForProjection(o),yt=x[Ot];for(var St in yt){var tt=yt[St],Ft=tt.tileCoord,Mt=xt[1]-Ft[1],Vt=Math.round(dt[0]-(Mt-1)*rt),Yt=xt[2]-Ft[2],ie=Math.round(dt[1]-(Yt-1)*G),X=Math.round(dt[0]-Mt*rt),z=Math.round(dt[1]-Yt*G),ee=Vt-X,Xt=ie-z,oe=v===Ot,nt=oe&&tt.getAlpha(pe(this),t.time)!==1,Kt=!1;if(!nt)if(vt){W=[X,z,X+ee,z,X+ee,z+Xt,X,z+Xt];for(var Xe=0,Re=vt.length;Xe{}}}};function Git(r,e,t,n,i,a){return cn(),Vn("div")}var Ih=le(Hit,[["render",Git]]);const kit={extends:Ih,name:"ol-tile-layer",setup(r){const e=Ce("map"),t=Ce("overviewMap",null),{properties:n}=vr(r),i=hr(()=>new TF(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&he(t,()=>{o(),a()}),Ze(()=>{a()}),ir(()=>{o()}),Mr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function $it(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var cS=le(kit,[["render",$it]]),Vit=function(){function r(e){this.highWaterMark=e!==void 0?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return r.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},r.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},r.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},r.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},r.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},r.prototype.get=function(e,t){var n=this.entries_[e];return _e(n!==void 0,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},r.prototype.remove=function(e){var t=this.entries_[e];return _e(t!==void 0,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},r.prototype.getCount=function(){return this.count_},r.prototype.getKeys=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.key_;return e},r.prototype.getValues=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.value_;return e},r.prototype.peekLast=function(){return this.oldest_.value_},r.prototype.peekLastKey=function(){return this.oldest_.key_},r.prototype.peekFirstKey=function(){return this.newest_.key_},r.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},r.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},r.prototype.set=function(e,t){_e(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},r.prototype.setSize=function(e){this.highWaterMark=e},r}(),L4=Vit,jit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kit=function(r){jit(e,r);function e(t){var n=this,i=ge.IDLE;return n=r.call(this,t.tileCoord,i,{transition:t.transition,interpolate:t.interpolate})||this,n.loader_=t.loader,n.data_=null,n.error_=null,n}return e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){this.state=ge.LOADING,this.changed();var t=this;this.loader_().then(function(n){t.data_=n,t.state=ge.LOADED,t.changed()}).catch(function(n){t.error_=n,t.state=ge.ERROR,t.changed()})},e}(EF),zit=Kit,Eg=34962,hw=34963,Yit=35040,SF=35044,D0=35048,Xit=5121,Wit=5123,qit=5125,O4=5126,eN=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function R4(r,e){for(var t=de({preserveDrawingBuffer:!0,antialias:!mY},e),n=eN.length,i=0;i0&&(v=1e5/Math.pow(10,h),m=r.substring(a,a+h),f=parseFloat(m)*v,g=r.substring(a+h),p=parseFloat(g)*v),_=f+l,E=p+u,{easting:_,northing:E,zoneLetter:s,zoneNumber:o,accuracy:v}}function Jtt(r,e){for(var t=h4.charCodeAt(e-1),n=1e5,i=!1;t!==r.charCodeAt(0);){if(t++,t===eo&&t++,t===Ko&&t++,t>vv){if(i)throw"Bad character: "+r;t=Yf,i=!0}n+=1e5}return n}function tet(r,e){if(r>"V")throw"MGRSPoint given invalid Northing "+r;for(var t=f4.charCodeAt(e-1),n=0,i=!1;t!==r.charCodeAt(0);){if(t++,t===eo&&t++,t===Ko&&t++,t>dv){if(i)throw"Bad character: "+r;t=Yf,i=!0}n+=1e5}return n}function eet(r){var e;switch(r){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+r}function Ip(r,e,t){if(!(this instanceof Ip))return new Ip(r,e,t);if(Array.isArray(r))this.x=r[0],this.y=r[1],this.z=r[2]||0;else if(typeof r=="object")this.x=r.x,this.y=r.y,this.z=r.z||0;else if(typeof r=="string"&&typeof e>"u"){var n=r.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=r,this.y=e,this.z=t||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Ip.fromMGRS=function(r){return new Ip(d4(r))};Ip.prototype.toMGRS=function(r){return p4([this.x,this.y],r)};var ret=1,net=.25,XM=.046875,WM=.01953125,qM=.01068115234375,iet=.75,aet=.46875,oet=.013020833333333334,set=.007120768229166667,Aet=.3645833333333333,uet=.005696614583333333,cet=.3076171875;function y4(r){var e=[];e[0]=ret-r*(net+r*(XM+r*(WM+r*qM))),e[1]=r*(iet-r*(XM+r*(WM+r*qM)));var t=r*r;return e[2]=t*(aet-r*(oet+r*set)),t*=r,e[3]=t*(Aet-r*uet),e[4]=t*r*cet,e}function uw(r,e,t,n){return t*=e,e*=e,n[0]*r-t*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}var het=20;function m4(r,e,t){for(var n=1/(1-e),i=r,a=het;a;--a){var o=Math.sin(i),s=1-e*o*o;if(s=(uw(i,o,Math.cos(i),t)-r)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)ne?Math.tan(t):0,v=Math.pow(p,2),m=Math.pow(v,2);i=1-this.es*Math.pow(s,2),u=u/Math.sqrt(i);var g=uw(t,s,A,this.en);a=this.a*(this.k0*u*(1+c/6*(1-v+h+c/20*(5-18*v+m+14*h-58*v*h+c/42*(61+179*m-m*v-479*v)))))+this.x0,o=this.a*(this.k0*(g-this.ml0+s*n*u/2*(1+c/12*(5-v+9*h+4*f+c/30*(61+m-58*v+270*h-330*v*h+c/56*(1385+543*m-m*v-3111*v))))))+this.y0}else{var l=A*Math.sin(n);if(Math.abs(Math.abs(l)-1)=1){if(l-1>ne)return 93;o=0}else o=Math.acos(o);t<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return r.x=a,r.y=o,r}function det(r){var e,t,n,i,a=(r.x-this.x0)*(1/this.a),o=(r.y-this.y0)*(1/this.a);if(this.es)if(e=this.ml0+o/this.k0,t=m4(e,this.es,this.en),Math.abs(t)ne?Math.tan(t):0,p=this.ep2*Math.pow(h,2),v=Math.pow(p,2),m=Math.pow(f,2),g=Math.pow(m,2);e=1-this.es*Math.pow(c,2);var _=a*Math.sqrt(e)/this.k0,E=Math.pow(_,2);e=e*f,n=t-e*E/(1-this.es)*.5*(1-E/12*(5+3*m-9*p*m+p-4*v-E/30*(61+90*m-252*p*m+45*g+46*p-E/56*(1385+3633*m+4095*g+1574*g*m)))),i=fe(this.long0+_*(1-E/6*(1+2*m+p-E/20*(5+28*m+24*g+8*p*m+6*p-E/42*(61+662*m+1320*g+720*g*m))))/h)}else n=zt*iy(o),i=0;else{var s=Math.exp(a/this.k0),A=.5*(s-1/s),l=this.lat0+o/this.k0,u=Math.cos(l);e=Math.sqrt((1-Math.pow(u,2))/(1+Math.pow(A,2))),n=Math.asin(e),o<0&&(n=-n),A===0&&u===0?i=0:i=fe(Math.atan2(A,u)+this.long0)}return r.x=i,r.y=n,r}var vet=["Fast_Transverse_Mercator","Fast Transverse Mercator"],P0={init:fet,forward:pet,inverse:det,names:vet};function _4(r){var e=Math.exp(r);return e=(e-1/e)/2,e}function cw(r,e){r=Math.abs(r),e=Math.abs(e);var t=Math.max(r,e),n=Math.min(r,e)/(t||1);return t*Math.sqrt(1+Math.pow(n,2))}function get(r){var e=1+r,t=e-1;return t===0?r:r*Math.log(e)/t}function yet(r){var e=Math.abs(r);return e=get(e*(1+e/(cw(1,e)+1))),r<0?-e:e}function mF(r,e){for(var t=2*Math.cos(2*e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return e+o*Math.sin(2*e)}function met(r,e){for(var t=2*Math.cos(e),n=r.length-1,i=r[n],a=0,o;--n>=0;)o=-a+t*i+r[n],a=i,i=o;return Math.sin(e)*o}function _et(r){var e=Math.exp(r);return e=(e+1/e)/2,e}function w4(r,e,t){for(var n=Math.sin(e),i=Math.cos(e),a=_4(t),o=_et(t),s=2*i*o,A=-2*n*a,l=r.length-1,u=r[l],c=0,h=0,f=0,p,v;--l>=0;)p=h,v=c,h=u,c=f,u=-p+s*h-A*c+r[l],f=-v+A*h+s*c;return s=n*o,A=i*a,[s*u-A*f,s*f+A*u]}function wet(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(P0.init.apply(this),this.forward=P0.forward,this.inverse=P0.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var r=this.es/(1+Math.sqrt(1-this.es)),e=r/(2-r),t=e;this.cgb[0]=e*(2+e*(-2/3+e*(-2+e*(116/45+e*(26/45+e*(-2854/675)))))),this.cbg[0]=e*(-2+e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))),t=t*e,this.cgb[1]=t*(7/3+e*(-8/5+e*(-227/45+e*(2704/315+e*(2323/945))))),this.cbg[1]=t*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),t=t*e,this.cgb[2]=t*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=t*(-26/15+e*(34/21+e*(8/5+e*(-12686/2835)))),t=t*e,this.cgb[3]=t*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=t*(1237/630+e*(-12/5+e*(-24832/14175))),t=t*e,this.cgb[4]=t*(4174/315+e*(-144838/6237)),this.cbg[4]=t*(-734/315+e*(109598/31185)),t=t*e,this.cgb[5]=t*(601676/22275),this.cbg[5]=t*(444337/155925),t=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+t*(1/4+t*(1/64+t/256))),this.utg[0]=e*(-.5+e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=t*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=t*(13/48+e*(-3/5+e*(557/1440+e*(281/630+e*(-1983433/1935360))))),t=t*e,this.utg[2]=t*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=t*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),t=t*e,this.utg[3]=t*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=t*(49561/161280+e*(-179/168+e*(6601661/7257600))),t=t*e,this.utg[4]=t*(-4583/161280+e*(108847/3991680)),this.gtu[4]=t*(34729/80640+e*(-3418889/1995840)),t=t*e,this.utg[5]=t*(-20648693/638668800),this.gtu[5]=t*(212378941/319334400);var n=mF(this.cbg,this.lat0);this.Zb=-this.Qn*(n+met(this.gtu,2*n))}function Eet(r){var e=fe(r.x-this.long0),t=r.y;t=mF(this.cbg,t);var n=Math.sin(t),i=Math.cos(t),a=Math.sin(e),o=Math.cos(e);t=Math.atan2(n,o*i),e=Math.atan2(a*i,cw(n,i*o)),e=yet(Math.tan(e));var s=w4(this.gtu,2*t,2*e);t=t+s[0],e=e+s[1];var A,l;return Math.abs(e)<=2.623395162778?(A=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*t+this.Zb)+this.y0):(A=1/0,l=1/0),r.x=A,r.y=l,r}function Cet(r){var e=(r.x-this.x0)*(1/this.a),t=(r.y-this.y0)*(1/this.a);t=(t-this.Zb)/this.Qn,e=e/this.Qn;var n,i;if(Math.abs(e)<=2.623395162778){var a=w4(this.utg,2*t,2*e);t=t+a[0],e=e+a[1],e=Math.atan(_4(e));var o=Math.sin(t),s=Math.cos(t),A=Math.sin(e),l=Math.cos(e);t=Math.atan2(o*l,cw(A,l*s)),e=Math.atan2(A,l*s),n=fe(e+this.long0),i=mF(this.cgb,t)}else n=1/0,i=1/0;return r.x=n,r.y=i,r}var Bet=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","tmerc"],U0={init:wet,forward:Eet,inverse:Cet,names:Bet};function Tet(r,e){if(r===void 0){if(r=Math.floor((fe(e)+Math.PI)*30/Math.PI)+1,r<0)return 0;if(r>60)return 60}return r}var xet="etmerc";function bet(){var r=Tet(this.zone,this.long0);if(r===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(r)-183)*ra,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,U0.init.apply(this),this.forward=U0.forward,this.inverse=U0.inverse}var Iet=["Universal Transverse Mercator System","utm"],Fet={init:bet,names:Iet,dependsOn:xet};function _F(r,e){return Math.pow((1-r)/(1+r),e)}var Let=20;function Oet(){var r=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*r*r),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(r/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+zr)/(Math.pow(Math.tan(.5*this.lat0+zr),this.C)*_F(this.e*r,this.ratexp))}function Ret(r){var e=r.x,t=r.y;return r.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*t+zr),this.C)*_F(this.e*Math.sin(t),this.ratexp))-zt,r.x=this.C*e,r}function Met(r){for(var e=1e-14,t=r.x/this.C,n=r.y,i=Math.pow(Math.tan(.5*n+zr)/this.K,1/this.C),a=Let;a>0&&(n=2*Math.atan(i*_F(this.e*Math.sin(r.y),-.5*this.e))-zt,!(Math.abs(n-r.y)0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=ne&&(this.k0=.5*this.cons*uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/Ss(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=uA(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-zt,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function $et(r){var e=r.x,t=r.y,n=Math.sin(t),i=Math.cos(t),a,o,s,A,l,u,c=fe(e-this.long0);return Math.abs(Math.abs(e-this.long0)-Math.PI)<=ne&&Math.abs(t+this.lat0)<=ne?(r.x=NaN,r.y=NaN,r):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(c)),r.x=this.a*a*i*Math.sin(c)+this.x0,r.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(c))+this.y0,r):(o=2*Math.atan(this.ssfn_(t,n,this.e))-zt,A=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=ne?(l=Ss(this.e,t*this.con,this.con*n),u=2*this.a*this.k0*l/this.cons,r.x=this.x0+u*Math.sin(e-this.long0),r.y=this.y0-this.con*u*Math.cos(e-this.long0),r):(Math.abs(this.sinlat0)0?e=fe(this.long0+Math.atan2(r.x,-1*r.y)):e=fe(this.long0+Math.atan2(r.x,r.y)):e=fe(this.long0+Math.atan2(r.x*Math.sin(s),o*this.coslat0*Math.cos(s)-r.y*this.sinlat0*Math.sin(s))),r.x=e,r.y=t,r)}else if(Math.abs(this.coslat0)<=ne){if(o<=ne)return t=this.lat0,e=this.long0,r.x=e,r.y=t,r;r.x*=this.con,r.y*=this.con,n=o*this.cons/(2*this.a*this.k0),t=this.con*_g(this.e,n),e=this.con*fe(this.con*this.long0+Math.atan2(r.x,-1*r.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,o<=ne?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+r.y*Math.sin(i)*this.cosX0/o),e=fe(this.long0+Math.atan2(r.x*Math.sin(i),o*this.cosX0*Math.cos(i)-r.y*this.sinX0*Math.sin(i)))),t=-1*_g(this.e,Math.tan(.5*(zt+a)));return r.x=e,r.y=t,r}var jet=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],Ket={init:ket,forward:$et,inverse:Vet,names:jet,ssfn_:Get};function zet(){var r=this.lat0;this.lambda0=this.long0;var e=Math.sin(r),t=this.a,n=this.rf,i=1/n,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*t*Math.sqrt(1-a)/(1-a*Math.pow(e,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(r),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),A=Math.log(Math.tan(Math.PI/4+r/2)),l=Math.log((1+o*e)/(1-o*e));this.K=s-this.alpha*A+this.alpha*o/2*l}function Yet(r){var e=Math.log(Math.tan(Math.PI/4-r.y/2)),t=this.e/2*Math.log((1+this.e*Math.sin(r.y))/(1-this.e*Math.sin(r.y))),n=-this.alpha*(e+t)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(r.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return r.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,r.x=this.R*o+this.x0,r}function Xet(r){for(var e=r.x-this.x0,t=r.y-this.y0,n=e/this.R,i=2*(Math.atan(Math.exp(t/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+o/this.alpha,A=0,l=a,u=-1e3,c=0;Math.abs(l-u)>1e-7;){if(++c>20)return;A=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),u=l,l=2*Math.atan(Math.exp(A))-Math.PI/2}return r.x=s,r.y=l,r}var Wet=["somerc"],qet={init:zet,forward:Yet,inverse:Xet,names:Wet},Nf=1e-7;function Zet(r){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],t=typeof r.PROJECTION=="object"?Object.keys(r.PROJECTION)[0]:r.PROJECTION;return"no_uoff"in r||"no_off"in r||e.indexOf(t)!==-1}function Jet(){var r,e,t,n,i,a,o,s,A,l,u=0,c,h=0,f=0,p=0,v=0,m=0,g=0;this.no_off=Zet(this),this.no_rot="no_rot"in this;var _=!1;"alpha"in this&&(_=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),_&&(g=this.alpha),E&&(u=this.rectified_grid_angle*ra),_||E)h=this.longc;else if(f=this.long1,v=this.lat1,p=this.long2,m=this.lat2,Math.abs(v-m)<=Nf||(r=Math.abs(v))<=Nf||Math.abs(r-zt)<=Nf||Math.abs(Math.abs(this.lat0)-zt)<=Nf||Math.abs(Math.abs(m)-zt)<=Nf)throw new Error;var B=1-this.es;e=Math.sqrt(B),Math.abs(this.lat0)>ne?(s=Math.sin(this.lat0),t=Math.cos(this.lat0),r=1-this.es*s*s,this.B=t*t,this.B=Math.sqrt(1+this.es*this.B*this.B/B),this.A=this.B*this.k0*e/r,n=this.B*e/(t*Math.sqrt(r)),i=n*n-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(Ss(this.e,this.lat0,s),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=i=1),_||E?(_?(c=Math.asin(Math.sin(g)/n),E||(u=g)):(c=u,g=Math.asin(n*Math.sin(c))),this.lam0=h-Math.asin(.5*(i-1/i)*Math.tan(c))/this.B):(a=Math.pow(Ss(this.e,v,Math.sin(v)),this.B),o=Math.pow(Ss(this.e,m,Math.sin(m)),this.B),i=this.E/a,A=(o-a)/(o+a),l=this.E*this.E,l=(l-o*a)/(l+o*a),r=f-p,r<-Math.pi?p-=yg:r>Math.pi&&(p+=yg),this.lam0=fe(.5*(f+p)-Math.atan(l*Math.tan(.5*this.B*(f-p))/A)/this.B),c=Math.atan(2*Math.sin(this.B*fe(f-this.lam0))/(i-1/i)),u=g=Math.asin(n*Math.sin(c))),this.singam=Math.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(u),this.cosrot=Math.cos(u),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A*this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(g))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(zr-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(zr+i))}function trt(r){var e={},t,n,i,a,o,s,A,l;if(r.x=r.x-this.lam0,Math.abs(Math.abs(r.y)-zt)>ne){if(o=this.E/Math.pow(Ss(this.e,r.y,Math.sin(r.y)),this.B),s=1/o,t=.5*(o-s),n=.5*(o+s),a=Math.sin(this.B*r.x),i=(t*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)0?this.v_pole_n:this.v_pole_s,A=this.ArB*r.y;return this.no_rot?(e.x=A,e.y=l):(A-=this.u_0,e.x=l*this.cosrot+A*this.sinrot,e.y=A*this.cosrot-l*this.sinrot),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function ert(r){var e,t,n,i,a,o,s,A={};if(r.x=(r.x-this.x0)*(1/this.a),r.y=(r.y-this.y0)*(1/this.a),this.no_rot?(t=r.y,e=r.x):(t=r.x*this.cosrot-r.y*this.sinrot,e=r.y*this.cosrot+r.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*t),i=.5*(n-1/n),a=.5*(n+1/n),o=Math.sin(this.BrA*e),s=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(s)-1)ne?this.ns=Math.log(n/s)/Math.log(i/A):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(l,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function art(r){var e=r.x,t=r.y;Math.abs(2*Math.abs(t)-Math.PI)<=ne&&(t=iy(t)*(zt-2*ne));var n=Math.abs(Math.abs(t)-zt),i,a;if(n>ne)i=Ss(this.e,t,Math.sin(t)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(n=t*this.ns,n<=0)return null;a=0}var o=this.ns*fe(e-this.long0);return r.x=this.k0*(a*Math.sin(o))+this.x0,r.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,r}function ort(r){var e,t,n,i,a,o=(r.x-this.x0)/this.k0,s=this.rh-(r.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(o*o+s*s),t=1):(e=-Math.sqrt(o*o+s*s),t=-1);var A=0;if(e!==0&&(A=Math.atan2(t*o,t*s)),e!==0||this.ns>0){if(t=1/this.ns,n=Math.pow(e/(this.a*this.f0),t),i=_g(this.e,n),i===-9999)return null}else i=-zt;return a=fe(A/this.ns+this.long0),r.x=a,r.y=i,r}var srt=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc"],Art={init:irt,forward:art,inverse:ort,names:srt};function lrt(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function urt(r){var e,t,n,i,a,o,s,A=r.x,l=r.y,u=fe(A-this.long0);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),t=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),n=-u*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(t)+Math.sin(this.ad)*Math.cos(t)*Math.cos(n)),a=Math.asin(Math.cos(t)*Math.sin(n)/Math.cos(i)),o=this.n*a,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),r.y=s*Math.cos(o)/1,r.x=s*Math.sin(o)/1,this.czech||(r.y*=-1,r.x*=-1),r}function crt(r){var e,t,n,i,a,o,s,A,l=r.x;r.x=r.y,r.y=l,this.czech||(r.y*=-1,r.x*=-1),o=Math.sqrt(r.x*r.x+r.y*r.y),a=Math.atan2(r.y,r.x),i=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),t=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(e)),r.x=this.long0-t/this.alfa,s=e,A=0;var u=0;do r.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-r.y)<1e-10&&(A=1),s=r.y,u+=1;while(A===0&&u<15);return u>=15?null:r}var hrt=["Krovak","krovak"],frt={init:lrt,forward:urt,inverse:crt,names:hrt};function Ha(r,e,t,n,i){return r*i-e*Math.sin(2*i)+t*Math.sin(4*i)-n*Math.sin(6*i)}function ay(r){return 1-.25*r*(1+r/16*(3+1.25*r))}function oy(r){return .375*r*(1+.25*r*(1+.46875*r))}function sy(r){return .05859375*r*r*(1+.75*r)}function Ay(r){return r*r*r*(35/3072)}function Fp(r,e,t){var n=e*t;return r/Math.sqrt(1-n*n)}function zp(r){return Math.abs(r)1e-7?(t=r*e,(1-r*r)*(e/(1-t*t)-.5/r*Math.log((1-t)/(1+t)))):2*e}var mrt=1,_rt=2,wrt=3,Ert=4;function Crt(){var r=Math.abs(this.lat0);if(Math.abs(r-zt)0){var e;switch(this.qp=Su(this.e,1),this.mmf=.5/(1-this.es),this.apa=Ort(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=Su(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function Brt(r){var e,t,n,i,a,o,s,A,l,u,c=r.x,h=r.y;if(c=fe(c-this.long0),this.sphere){if(a=Math.sin(h),u=Math.cos(h),n=Math.cos(c),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t=this.mode===this.EQUIT?1+u*n:1+this.sinph0*a+this.cosph0*u*n,t<=ne)return null;t=Math.sqrt(2/t),e=t*u*Math.sin(c),t*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*u*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(h+this.lat0)=0?(e=(l=Math.sqrt(o))*i,t=n*(this.mode===this.S_POLE?l:-l)):e=t=0;break}}return r.x=this.a*e+this.x0,r.y=this.a*t+this.y0,r}function Trt(r){r.x-=this.x0,r.y-=this.y0;var e=r.x/this.a,t=r.y/this.a,n,i,a,o,s,A,l;if(this.sphere){var u=0,c,h=0;if(c=Math.sqrt(e*e+t*t),i=c*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(h=Math.sin(i),u=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(c)<=ne?0:Math.asin(t*h/c),e*=h,t=u*c;break;case this.OBLIQ:i=Math.abs(c)<=ne?this.lat0:Math.asin(u*this.sinph0+t*h*this.cosph0/c),e*=h*this.cosph0,t=(u-Math.sin(i)*this.sinph0)*c;break;case this.N_POLE:t=-t,i=zt-i;break;case this.S_POLE:i-=zt;break}n=t===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(e,t)}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(e/=this.dd,t*=this.dd,A=Math.sqrt(e*e+t*t),A1&&(r=r>1?1:-1),Math.asin(r)}function Prt(){Math.abs(this.lat1+this.lat2)ne?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Urt(r){var e=r.x,t=r.y;this.sin_phi=Math.sin(t),this.cos_phi=Math.cos(t);var n=Su(this.e3,this.sin_phi,this.cos_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*fe(e-this.long0),o=i*Math.sin(a)+this.x0,s=this.rh-i*Math.cos(a)+this.y0;return r.x=o,r.y=s,r}function Drt(r){var e,t,n,i,a,o;return r.x-=this.x0,r.y=this.rh-r.y+this.y0,this.ns0>=0?(e=Math.sqrt(r.x*r.x+r.y*r.y),n=1):(e=-Math.sqrt(r.x*r.x+r.y*r.y),n=-1),i=0,e!==0&&(i=Math.atan2(n*r.x,n*r.y)),n=e*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(t=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,t)),a=fe(i/this.ns0+this.long0),r.x=a,r.y=o,r}function Qrt(r,e){var t,n,i,a,o,s=ku(.5*e);if(r0||Math.abs(o)<=ne?(s=this.x0+this.a*a*t*Math.sin(n)/o,A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)/o):(s=this.x0+this.infinity_dist*t*Math.sin(n),A=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function Vrt(r){var e,t,n,i,a,o;return r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,r.x/=this.k0,r.y/=this.k0,(e=Math.sqrt(r.x*r.x+r.y*r.y))?(i=Math.atan2(e,this.rc),t=Math.sin(i),n=Math.cos(i),o=ku(n*this.sin_p14+r.y*t*this.cos_p14/e),a=Math.atan2(r.x*t,e*this.cos_p14*n-r.y*this.sin_p14*t),a=fe(this.long0+a)):(o=this.phic0,a=0),r.x=a,r.y=o,r}var jrt=["gnom"],Krt={init:krt,forward:$rt,inverse:Vrt,names:jrt};function zrt(r,e){var t=1-(1-r*r)/(2*r)*Math.log((1-r)/(1+r));if(Math.abs(Math.abs(e)-t)<1e-6)return e<0?-1*zt:zt;for(var n=Math.asin(.5*e),i,a,o,s,A=0;A<30;A++)if(a=Math.sin(n),o=Math.cos(n),s=r*a,i=Math.pow(1-s*s,2)/(2*o)*(e/(1-r*r)-a/(1-s*s)+.5/r*Math.log((1-s)/(1+s))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function Yrt(){this.sphere||(this.k0=uA(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function Xrt(r){var e=r.x,t=r.y,n,i,a=fe(e-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(t)/Math.cos(this.lat_ts);else{var o=Su(this.e,Math.sin(t));n=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return r.x=n,r.y=i,r}function Wrt(r){r.x-=this.x0,r.y-=this.y0;var e,t;return this.sphere?(e=fe(this.long0+r.x/this.a/Math.cos(this.lat_ts)),t=Math.asin(r.y/this.a*Math.cos(this.lat_ts))):(t=zrt(this.e,2*r.y*this.k0/this.a),e=fe(this.long0+r.x/(this.a*this.k0))),r.x=e,r.y=t,r}var qrt=["cea"],Zrt={init:Yrt,forward:Xrt,inverse:Wrt,names:qrt};function Jrt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function tnt(r){var e=r.x,t=r.y,n=fe(e-this.long0),i=zp(t-this.lat0);return r.x=this.x0+this.a*n*this.rc,r.y=this.y0+this.a*i,r}function ent(r){var e=r.x,t=r.y;return r.x=fe(this.long0+(e-this.x0)/(this.a*this.rc)),r.y=zp(this.lat0+(t-this.y0)/this.a),r}var rnt=["Equirectangular","Equidistant_Cylindrical","eqc"],nnt={init:Jrt,forward:tnt,inverse:ent,names:rnt},ZM=20;function int(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ay(this.es),this.e1=oy(this.es),this.e2=sy(this.es),this.e3=Ay(this.es),this.ml0=this.a*Ha(this.e0,this.e1,this.e2,this.e3,this.lat0)}function ant(r){var e=r.x,t=r.y,n,i,a,o=fe(e-this.long0);if(a=o*Math.sin(t),this.sphere)Math.abs(t)<=ne?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(t),i=this.a*(zp(t-this.lat0)+(1-Math.cos(a))/Math.tan(t)));else if(Math.abs(t)<=ne)n=this.a*o,i=-1*this.ml0;else{var s=Fp(this.a,this.e,Math.sin(t))/Math.tan(t);n=s*Math.sin(a),i=this.a*Ha(this.e0,this.e1,this.e2,this.e3,t)-this.ml0+s*(1-Math.cos(a))}return r.x=n+this.x0,r.y=i+this.y0,r}function ont(r){var e,t,n,i,a,o,s,A,l;if(n=r.x-this.x0,i=r.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=ne)e=fe(n/this.a+this.long0),t=0;else{o=this.lat0+i/this.a,s=n*n/this.a/this.a+o*o,A=o;var u;for(a=ZM;a;--a)if(u=Math.tan(A),l=-1*(o*(A*u+1)-A-.5*(A*A+s)*u)/((A-o)/u-1),A+=l,Math.abs(l)<=ne){t=A;break}e=fe(this.long0+Math.asin(n*Math.tan(A)/this.a)/Math.sin(t))}else if(Math.abs(i+this.ml0)<=ne)t=0,e=fe(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,s=n*n/this.a/this.a+o*o,A=o;var c,h,f,p,v;for(a=ZM;a;--a)if(v=this.e*Math.sin(A),c=Math.sqrt(1-v*v)*Math.tan(A),h=this.a*Ha(this.e0,this.e1,this.e2,this.e3,A),f=this.e0-2*this.e1*Math.cos(2*A)+4*this.e2*Math.cos(4*A)-6*this.e3*Math.cos(6*A),p=h/this.a,l=(o*(c*p+1)-p-.5*c*(p*p+s))/(this.es*Math.sin(2*A)*(p*p+s-2*o*p)/(4*c)+(o-p)*(c*f-2/Math.sin(2*A))-f),A-=l,Math.abs(l)<=ne){t=A;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(t),2))*Math.tan(t),e=fe(this.long0+Math.asin(n*c/this.a)/Math.sin(t))}return r.x=e,r.y=t,r}var snt=["Polyconic","poly"],Ant={init:int,forward:ant,inverse:ont,names:snt};function lnt(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function unt(r){var e,t=r.x,n=r.y,i=n-this.lat0,a=t-this.long0,o=i/Qv*1e-5,s=a,A=1,l=0;for(e=1;e<=10;e++)A=A*o,l=l+this.A[e]*A;var u=l,c=s,h=1,f=0,p,v,m=0,g=0;for(e=1;e<=6;e++)p=h*u-f*c,v=f*u+h*c,h=p,f=v,m=m+this.B_re[e]*h-this.B_im[e]*f,g=g+this.B_im[e]*h+this.B_re[e]*f;return r.x=g*this.a+this.x0,r.y=m*this.a+this.y0,r}function cnt(r){var e,t=r.x,n=r.y,i=t-this.x0,a=n-this.y0,o=a/this.a,s=i/this.a,A=1,l=0,u,c,h=0,f=0;for(e=1;e<=6;e++)u=A*o-l*s,c=l*o+A*s,A=u,l=c,h=h+this.C_re[e]*A-this.C_im[e]*l,f=f+this.C_im[e]*A+this.C_re[e]*l;for(var p=0;p.999999999999&&(t=.999999999999),e=Math.asin(t);var n=fe(this.long0+r.x/(.900316316158*this.a*Math.cos(e)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),t=(2*e+Math.sin(2*e))/Math.PI,Math.abs(t)>1&&(t=1);var i=Math.asin(t);return r.x=n,r.y=i,r}var bnt=["Mollweide","moll"],Int={init:Tnt,forward:Snt,inverse:xnt,names:bnt};function Fnt(){Math.abs(this.lat1+this.lat2)=0?(t=Math.sqrt(r.x*r.x+r.y*r.y),e=1):(t=-Math.sqrt(r.x*r.x+r.y*r.y),e=-1);var a=0;if(t!==0&&(a=Math.atan2(e*r.x,e*r.y)),this.sphere)return i=fe(this.long0+a/this.ns),n=zp(this.g-t/this.a),r.x=i,r.y=n,r;var o=this.g-t/this.a;return n=D_(o,this.e0,this.e1,this.e2,this.e3),i=fe(this.long0+a/this.ns),r.x=i,r.y=n,r}var Rnt=["Equidistant_Conic","eqdc"],Mnt={init:Fnt,forward:Lnt,inverse:Ont,names:Rnt};function Nnt(){this.R=this.a}function Pnt(r){var e=r.x,t=r.y,n=fe(e-this.long0),i,a;Math.abs(t)<=ne&&(i=this.x0+this.R*n,a=this.y0);var o=ku(2*Math.abs(t/Math.PI));(Math.abs(n)<=ne||Math.abs(Math.abs(t)-zt)<=ne)&&(i=this.x0,t>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var s=.5*Math.abs(Math.PI/n-n/Math.PI),A=s*s,l=Math.sin(o),u=Math.cos(o),c=u/(l+u-1),h=c*c,f=c*(2/l-1),p=f*f,v=Math.PI*this.R*(s*(c-p)+Math.sqrt(A*(c-p)*(c-p)-(p+A)*(h-p)))/(p+A);n<0&&(v=-v),i=this.x0+v;var m=A+c;return v=Math.PI*this.R*(f*m-s*Math.sqrt((p+A)*(A+1)-m*m))/(p+A),t>=0?a=this.y0+v:a=this.y0-v,r.x=i,r.y=a,r}function Unt(r){var e,t,n,i,a,o,s,A,l,u,c,h,f;return r.x-=this.x0,r.y-=this.y0,c=Math.PI*this.R,n=r.x/c,i=r.y/c,a=n*n+i*i,o=-Math.abs(i)*(1+a),s=o-2*i*i+n*n,A=-2*o+1+2*i*i+a*a,f=i*i/A+(2*s*s*s/A/A/A-9*o*s/A/A)/27,l=(o-s*s/3/A)/A,u=2*Math.sqrt(-l/3),c=3*f/l/u,Math.abs(c)>1&&(c>=0?c=1:c=-1),h=Math.acos(c)/3,r.y>=0?t=(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI:t=-(-u*Math.cos(h+Math.PI/3)-s/3/A)*Math.PI,Math.abs(n)2*zt*this.a?void 0:(t=e/this.a,n=Math.sin(t),i=Math.cos(t),a=this.long0,Math.abs(e)<=ne?o=this.lat0:(o=ku(i*this.sin_p12+r.y*n*this.cos_p12/e),s=Math.abs(this.lat0)-zt,Math.abs(s)<=ne?this.lat0>=0?a=fe(this.long0+Math.atan2(r.x,-r.y)):a=fe(this.long0-Math.atan2(-r.x,r.y)):a=fe(this.long0+Math.atan2(r.x*n,e*this.cos_p12*i-r.y*this.sin_p12*n))),r.x=a,r.y=o,r)):(A=ay(this.es),l=oy(this.es),u=sy(this.es),c=Ay(this.es),Math.abs(this.sin_p12-1)<=ne?(h=this.a*Ha(A,l,u,c,zt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=h-e,o=D_(f/this.a,A,l,u,c),a=fe(this.long0+Math.atan2(r.x,-1*r.y)),r.x=a,r.y=o,r):Math.abs(this.sin_p12+1)<=ne?(h=this.a*Ha(A,l,u,c,zt),e=Math.sqrt(r.x*r.x+r.y*r.y),f=e-h,o=D_(f/this.a,A,l,u,c),a=fe(this.long0+Math.atan2(r.x,r.y)),r.x=a,r.y=o,r):(e=Math.sqrt(r.x*r.x+r.y*r.y),m=Math.atan2(r.x,r.y),p=Fp(this.a,this.e,this.sin_p12),g=Math.cos(m),_=this.e*this.cos_p12*g,E=-_*_/(1-this.es),B=3*this.es*(1-E)*this.sin_p12*this.cos_p12*g/(1-this.es),L=e/p,O=L-E*(1+E)*Math.pow(L,3)/6-B*(1+3*E)*Math.pow(L,4)/24,b=1-E*O*O/2-L*O*O*O/6,v=Math.asin(this.sin_p12*Math.cos(O)+this.cos_p12*Math.sin(O)*g),a=fe(this.long0+Math.asin(Math.sin(m)*Math.sin(O)/Math.cos(v))),T=Math.sin(v),o=Math.atan2((T-this.es*b*this.sin_p12)*Math.tan(v),T*(1-this.es)),r.x=a,r.y=o,r))}var $nt=["Azimuthal_Equidistant","aeqd"],Vnt={init:Hnt,forward:Gnt,inverse:knt,names:$nt};function jnt(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Knt(r){var e,t,n,i,a,o,s,A,l=r.x,u=r.y;return n=fe(l-this.long0),e=Math.sin(u),t=Math.cos(u),i=Math.cos(n),o=this.sin_p14*e+this.cos_p14*t*i,a=1,(o>0||Math.abs(o)<=ne)&&(s=this.a*a*t*Math.sin(n),A=this.y0+this.a*a*(this.cos_p14*e-this.sin_p14*t*i)),r.x=s,r.y=A,r}function znt(r){var e,t,n,i,a,o,s;return r.x-=this.x0,r.y-=this.y0,e=Math.sqrt(r.x*r.x+r.y*r.y),t=ku(e/this.a),n=Math.sin(t),i=Math.cos(t),o=this.long0,Math.abs(e)<=ne?(s=this.lat0,r.x=o,r.y=s,r):(s=ku(i*this.sin_p14+r.y*n*this.cos_p14/e),a=Math.abs(this.lat0)-zt,Math.abs(a)<=ne?(this.lat0>=0?o=fe(this.long0+Math.atan2(r.x,-r.y)):o=fe(this.long0-Math.atan2(-r.x,r.y)),r.x=o,r.y=s,r):(o=fe(this.long0+Math.atan2(r.x*n,e*this.cos_p14*i-r.y*this.sin_p14*n)),r.x=o,r.y=s,r))}var Ynt=["ortho"],Xnt={init:jnt,forward:Knt,inverse:znt,names:Ynt},Rn={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},Yr={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Wnt(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=zt-zr/2?this.face=Rn.TOP:this.lat0<=-(zt-zr/2)?this.face=Rn.BOTTOM:Math.abs(this.long0)<=zr?this.face=Rn.FRONT:Math.abs(this.long0)<=zt+zr?this.face=this.long0>0?Rn.RIGHT:Rn.LEFT:this.face=Rn.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function qnt(r){var e={x:0,y:0},t,n,i,a,o,s,A={value:0};if(r.x-=this.long0,this.es!==0?t=Math.atan(this.one_minus_f_squared*Math.tan(r.y)):t=r.y,n=r.x,this.face===Rn.TOP)a=zt-t,n>=zr&&n<=zt+zr?(A.value=Yr.AREA_0,i=n-zt):n>zt+zr||n<=-(zt+zr)?(A.value=Yr.AREA_1,i=n>0?n-ei:n+ei):n>-(zt+zr)&&n<=-zr?(A.value=Yr.AREA_2,i=n+zt):(A.value=Yr.AREA_3,i=n);else if(this.face===Rn.BOTTOM)a=zt+t,n>=zr&&n<=zt+zr?(A.value=Yr.AREA_0,i=-n+zt):n=-zr?(A.value=Yr.AREA_1,i=-n):n<-zr&&n>=-(zt+zr)?(A.value=Yr.AREA_2,i=-n-zt):(A.value=Yr.AREA_3,i=n>0?-n+ei:-n-ei);else{var l,u,c,h,f,p,v;this.face===Rn.RIGHT?n=up(n,+zt):this.face===Rn.BACK?n=up(n,+ei):this.face===Rn.LEFT&&(n=up(n,-zt)),h=Math.sin(t),f=Math.cos(t),p=Math.sin(n),v=Math.cos(n),l=f*v,u=f*p,c=h,this.face===Rn.FRONT?(a=Math.acos(l),i=Mm(a,c,u,A)):this.face===Rn.RIGHT?(a=Math.acos(u),i=Mm(a,c,-l,A)):this.face===Rn.BACK?(a=Math.acos(-l),i=Mm(a,c,-u,A)):this.face===Rn.LEFT?(a=Math.acos(-u),i=Mm(a,c,l,A)):(a=i=0,A.value=Yr.AREA_0)}return s=Math.atan(12/ei*(i+Math.acos(Math.sin(i)*Math.cos(zr))-zt)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),A.value===Yr.AREA_1?s+=zt:A.value===Yr.AREA_2?s+=ei:A.value===Yr.AREA_3&&(s+=1.5*ei),e.x=o*Math.cos(s),e.y=o*Math.sin(s),e.x=e.x*this.a+this.x0,e.y=e.y*this.a+this.y0,r.x=e.x,r.y=e.y,r}function Znt(r){var e={lam:0,phi:0},t,n,i,a,o,s,A,l,u,c={value:0};if(r.x=(r.x-this.x0)/this.a,r.y=(r.y-this.y0)/this.a,n=Math.atan(Math.sqrt(r.x*r.x+r.y*r.y)),t=Math.atan2(r.y,r.x),r.x>=0&&r.x>=Math.abs(r.y)?c.value=Yr.AREA_0:r.y>=0&&r.y>=Math.abs(r.x)?(c.value=Yr.AREA_1,t-=zt):r.x<0&&-r.x>=Math.abs(r.y)?(c.value=Yr.AREA_2,t=t<0?t+ei:t-ei):(c.value=Yr.AREA_3,t+=zt),u=ei/12*Math.tan(t),o=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(t),a=Math.tan(n),A=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(s)))),A<-1?A=-1:A>1&&(A=1),this.face===Rn.TOP)l=Math.acos(A),e.phi=zt-l,c.value===Yr.AREA_0?e.lam=s+zt:c.value===Yr.AREA_1?e.lam=s<0?s+ei:s-ei:c.value===Yr.AREA_2?e.lam=s-zt:e.lam=s;else if(this.face===Rn.BOTTOM)l=Math.acos(A),e.phi=l-zt,c.value===Yr.AREA_0?e.lam=-s+zt:c.value===Yr.AREA_1?e.lam=-s:c.value===Yr.AREA_2?e.lam=-s-zt:e.lam=s<0?-s-ei:-s+ei;else{var h,f,p;h=A,u=h*h,u>=1?p=0:p=Math.sqrt(1-u)*Math.sin(s),u+=p*p,u>=1?f=0:f=Math.sqrt(1-u),c.value===Yr.AREA_1?(u=f,f=-p,p=u):c.value===Yr.AREA_2?(f=-f,p=-p):c.value===Yr.AREA_3&&(u=f,f=p,p=-u),this.face===Rn.RIGHT?(u=h,h=-f,f=u):this.face===Rn.BACK?(h=-h,f=-f):this.face===Rn.LEFT&&(u=h,h=f,f=-u),e.phi=Math.acos(-p)-zt,e.lam=Math.atan2(f,h),this.face===Rn.RIGHT?e.lam=up(e.lam,-zt):this.face===Rn.BACK?e.lam=up(e.lam,-ei):this.face===Rn.LEFT&&(e.lam=up(e.lam,+zt))}if(this.es!==0){var v,m,g;v=e.phi<0?1:0,m=Math.tan(e.phi),g=this.b/Math.sqrt(m*m+this.one_minus_f_squared),e.phi=Math.atan(Math.sqrt(this.a*this.a-g*g)/(this.one_minus_f*g)),v&&(e.phi=-e.phi)}return e.lam+=this.long0,r.x=e.lam,r.y=e.phi,r}function Mm(r,e,t,n){var i;return rzr&&i<=zt+zr?(n.value=Yr.AREA_1,i-=zt):i>zt+zr||i<=-(zt+zr)?(n.value=Yr.AREA_2,i=i>=0?i-ei:i+ei):(n.value=Yr.AREA_3,i+=zt)),i}function up(r,e){var t=r+e;return t<-ei?t+=yg:t>+ei&&(t-=yg),t}var Jnt=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"],tit={init:Wnt,forward:qnt,inverse:Znt,names:Jnt},lS=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],gv=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],E4=.8487,C4=1.3523,B4=tA/5,eit=1/B4,Xf=18,Q_=function(r,e){return r[0]+e*(r[1]+e*(r[2]+e*r[3]))},rit=function(r,e){return r[1]+e*(2*r[2]+e*3*r[3])};function nit(r,e,t,n){for(var i=e;n;--n){var a=r(i);if(i-=a,Math.abs(a)=Xf&&(n=Xf-1),t=tA*(t-eit*n);var i={x:Q_(lS[n],t)*e,y:Q_(gv[n],t)};return r.y<0&&(i.y=-i.y),i.x=i.x*this.a*E4+this.x0,i.y=i.y*this.a*C4+this.y0,i}function oit(r){var e={x:(r.x-this.x0)/(this.a*E4),y:Math.abs(r.y-this.y0)/(this.a*C4)};if(e.y>=1)e.x/=lS[Xf][0],e.y=r.y<0?-zt:zt;else{var t=Math.floor(e.y*Xf);for(t<0?t=0:t>=Xf&&(t=Xf-1);;)if(gv[t][0]>e.y)--t;else if(gv[t+1][0]<=e.y)++t;else break;var n=gv[t],i=5*(e.y-n[0])/(gv[t+1][0]-n[0]);i=nit(function(a){return(Q_(n,a)-e.y)/rit(n,a)},i,ne,100),e.x/=Q_(lS[t],i),e.y=(5*t+i)*ra,r.y<0&&(e.y=-e.y)}return e.x=fe(e.x+this.long0),e}var sit=["Robinson","robin"],Ait={init:iit,forward:ait,inverse:oit,names:sit};function lit(){this.name="geocent"}function uit(r){var e=l4(r,this.es,this.a);return e}function cit(r){var e=u4(r,this.es,this.a,this.b);return e}var hit=["Geocentric","geocentric","geocent","Geocent"],fit={init:lit,forward:uit,inverse:cit,names:hit},ma={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},jd={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function pit(){if(Object.keys(jd).forEach(function(t){if(typeof this[t]>"u")this[t]=jd[t].def;else{if(jd[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);jd[t].num&&(this[t]=parseFloat(this[t]))}jd[t].degrees&&(this[t]=this[t]*ra)}.bind(this)),Math.abs(Math.abs(this.lat0)-zt)1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var r=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(r),this.sw=Math.sin(r)}function dit(r){r.x-=this.long0;var e=Math.sin(r.y),t=Math.cos(r.y),n=Math.cos(r.x),i,a;switch(this.mode){case ma.OBLIQ:a=this.sinph0*e+this.cosph0*t*n;break;case ma.EQUIT:a=t*n;break;case ma.S_POLE:a=-e;break;case ma.N_POLE:a=e;break}switch(a=this.pn1/(this.p-a),i=a*t*Math.sin(r.x),this.mode){case ma.OBLIQ:a*=this.cosph0*e-this.sinph0*t*n;break;case ma.EQUIT:a*=e;break;case ma.N_POLE:a*=-(t*n);break;case ma.S_POLE:a*=t*n;break}var o,s;return o=a*this.cg+i*this.sg,s=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*s,a=o*s,r.x=i*this.a,r.y=a*this.a,r}function vit(r){r.x/=this.a,r.y/=this.a;var e={x:r.x,y:r.y},t,n,i;i=1/(this.pn1-r.y*this.sw),t=this.pn1*r.x*i,n=this.pn1*r.y*this.cw*i,r.x=t*this.cg+n*this.sg,r.y=n*this.cg-t*this.sg;var a=cw(r.x,r.y);if(Math.abs(a)t)throw new Error("Tile load sequence violation");this.state=t,this.changed()},e.prototype.load=function(){Be()},e.prototype.getAlpha=function(t,n){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(!i)i=n,this.transitionStarts_[t]=i;else if(i===-1)return 1;var a=n-i+1e3/60;return a>=this.transition_?1:zI(a/this.transition_)},e.prototype.inTransition=function(t){return this.transition_?this.transitionStarts_[t]!==-1:!1},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Th),EF=xit,bit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Iit=function(r){bit(e,r);function e(t,n,i,a,o,s){var A=r.call(this,t,n,s)||this;return A.crossOrigin_=a,A.src_=i,A.key=i,A.image_=new Image,a!==null&&(A.image_.crossOrigin=a),A.unlisten_=null,A.tileLoadFunction_=o,A}return e.prototype.getImage=function(){return this.image_},e.prototype.setImage=function(t){this.image_=t,this.state=ge.LOADED,this.unlistenImage_(),this.changed()},e.prototype.handleImageError_=function(){this.state=ge.ERROR,this.unlistenImage_(),this.image_=Fit(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=ge.LOADED:this.state=ge.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==ge.ERROR&&(this.state=ge.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==ge.IDLE&&(this.state=ge.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=pF(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},e.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},e}(EF);function Fit(){var r=ja(1,1);return r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1),r.canvas}var G_=Iit,S4=.5,Lit=10,JM=.25,Oit=function(){function r(e,t,n,i,a,o){this.sourceProj_=e,this.targetProj_=t;var s={},A=vg(this.targetProj_,this.sourceProj_);this.transformInv_=function(E){var B=E[0]+"/"+E[1];return s[B]||(s[B]=A(E)),s[B]},this.maxSourceExtent_=i,this.errorThresholdSquared_=a*a,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Fr(i)==Fr(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Fr(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Fr(this.targetProj_.getExtent()):null;var l=Rs(n),u=Yg(n),c=$p(n),h=zg(n),f=this.transformInv_(l),p=this.transformInv_(u),v=this.transformInv_(c),m=this.transformInv_(h),g=Lit+(o?Math.max(0,Math.ceil(k6(Ag(n)/(o*o*256*256)))):0);if(this.addQuad_(l,u,c,h,f,p,v,m,g),this.wrapsXInSource_){var _=1/0;this.triangles_.forEach(function(E,B,L){_=Math.min(_,E.source[0][0],E.source[1][0],E.source[2][0])}),this.triangles_.forEach(function(E){if(Math.max(E.source[0][0],E.source[1][0],E.source[2][0])-_>this.sourceWorldWidth_/2){var B=[[E.source[0][0],E.source[0][1]],[E.source[1][0],E.source[1][1]],[E.source[2][0],E.source[2][1]]];B[0][0]-_>this.sourceWorldWidth_/2&&(B[0][0]-=this.sourceWorldWidth_),B[1][0]-_>this.sourceWorldWidth_/2&&(B[1][0]-=this.sourceWorldWidth_),B[2][0]-_>this.sourceWorldWidth_/2&&(B[2][0]-=this.sourceWorldWidth_);var L=Math.min(B[0][0],B[1][0],B[2][0]),O=Math.max(B[0][0],B[1][0],B[2][0]);O-L.5&&c<1,p=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var v=Yi([e,t,n,i]),m=Fr(v)/this.targetWorldWidth_;p=m>JM||p}!f&&this.sourceProj_.isGlobal()&&c&&(p=c>JM||p)}if(!(!p&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!Mn(u,this.maxSourceExtent_))){var g=0;if(!p&&(!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(A[0])||!isFinite(A[1]))){if(l>0)p=!0;else if(g=(!isFinite(a[0])||!isFinite(a[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(s[0])||!isFinite(s[1])?2:0)+(!isFinite(A[0])||!isFinite(A[1])?1:0),g!=1&&g!=2&&g!=4&&g!=8)return}if(l>0){if(!p){var _=[(e[0]+n[0])/2,(e[1]+n[1])/2],E=this.transformInv_(_),B=void 0;if(f){var L=(Bu(a[0],h)+Bu(s[0],h))/2;B=L-Bu(E[0],h)}else B=(a[0]+s[0])/2-E[0];var O=(a[1]+s[1])/2-E[1],b=B*B+O*O;p=b>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){var T=[(t[0]+n[0])/2,(t[1]+n[1])/2],I=this.transformInv_(T),M=[(i[0]+e[0])/2,(i[1]+e[1])/2],x=this.transformInv_(M);this.addQuad_(e,t,T,M,a,o,I,x,l-1),this.addQuad_(M,T,n,i,x,I,s,A,l-1)}else{var S=[(e[0]+t[0])/2,(e[1]+t[1])/2],N=this.transformInv_(S),P=[(n[0]+i[0])/2,(n[1]+i[1])/2],X=this.transformInv_(P);this.addQuad_(e,S,P,i,a,N,X,A,l-1),this.addQuad_(S,t,n,P,N,o,s,X,l-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}g&11||this.addTriangle_(e,n,i,a,s,A),g&14||this.addTriangle_(e,n,t,a,s,o),g&&(g&13||this.addTriangle_(t,i,e,o,A,a),g&7||this.addTriangle_(t,i,n,o,A,s))}},r.prototype.calculateSourceExtent=function(){var e=_i();return this.triangles_.forEach(function(t,n,i){var a=t.source;Yc(e,a[0]),Yc(e,a[1]),Yc(e,a[2])}),e},r.prototype.getTriangles=function(){return this.triangles_},r}(),x4=Oit,Lp={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},b4={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},IC;function tN(r,e,t,n,i){r.beginPath(),r.moveTo(0,0),r.lineTo(e,t),r.lineTo(n,i),r.closePath(),r.save(),r.clip(),r.fillRect(0,0,Math.max(e,n)+1,Math.max(t,i)),r.restore()}function FC(r,e){return Math.abs(r[e*4]-210)>2||Math.abs(r[e*4+3]-.75*255)>2}function Rit(){if(IC===void 0){var r=document.createElement("canvas").getContext("2d");r.globalCompositeOperation="lighter",r.fillStyle="rgba(210, 0, 0, 0.75)",tN(r,4,5,4,0),tN(r,4,5,0,5);var e=r.getImageData(0,0,3,3).data;IC=FC(e,0)||FC(e,4)||FC(e,8)}return IC}function wg(r,e,t,n){var i=Qu(t,e,r),a=T_(e,n,t),o=e.getMetersPerUnit();o!==void 0&&(a*=o);var s=r.getMetersPerUnit();s!==void 0&&(a/=s);var A=r.getExtent();if(!A||xs(A,i)){var l=T_(r,a,i)/a;isFinite(l)&&l>0&&(a/=l)}return a}function Mit(r,e,t,n){var i=Sa(t),a=wg(r,e,i,n);return(!isFinite(a)||a<=0)&&X1(t,function(o){return a=wg(r,e,o,n),isFinite(a)&&a>0}),a}function I4(r,e,t,n,i,a,o,s,A,l,u,c){var h=ja(Math.round(t*r),Math.round(t*e));if(c||de(h,Lp),A.length===0)return h.canvas;h.scale(t,t);function f(B){return Math.round(B*t)/t}h.globalCompositeOperation="lighter";var p=_i();A.forEach(function(B,L,O){Uu(p,B.extent)});var v=Fr(p),m=Ai(p),g=ja(Math.round(t*v/n),Math.round(t*m/n));c||de(g,Lp);var _=t/n;A.forEach(function(B,L,O){var b=B.extent[0]-p[0],T=-(B.extent[3]-p[3]),I=Fr(B.extent),M=Ai(B.extent);B.image.width>0&&B.image.height>0&&g.drawImage(B.image,l,l,B.image.width-2*l,B.image.height-2*l,b*_,T*_,I*_,M*_)});var E=Rs(o);return s.getTriangles().forEach(function(B,L,O){var b=B.source,T=B.target,I=b[0][0],M=b[0][1],x=b[1][0],S=b[1][1],N=b[2][0],P=b[2][1],X=f((T[0][0]-E[0])/a),z=f(-(T[0][1]-E[1])/a),tt=f((T[1][0]-E[0])/a),J=f(-(T[1][1]-E[1])/a),nt=f((T[2][0]-E[0])/a),it=f(-(T[2][1]-E[1])/a),_t=I,R=M;I=0,M=0,x-=_t,S-=R,N-=_t,P-=R;var $=[[x,S,0,0,tt-X],[N,P,0,0,nt-X],[0,0,x,S,J-z],[0,0,N,P,it-z]],K=GY($);if(K){if(h.save(),h.beginPath(),Rit()||!c){h.moveTo(tt,J);for(var q=4,at=X-tt,vt=z-J,wt=0;wtthis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},r}();function pf(r,e,t,n,i){return i!==void 0?(i.minX=r,i.maxX=e,i.minY=t,i.maxY=n,i):new F4(r,e,t,n)}var BF=F4,Uit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dit=function(r){Uit(e,r);function e(t){var n=r.call(this,t)||this;return n.extentChanged=!0,n.renderedExtent_=null,n.renderedPixelRatio,n.renderedProjection=null,n.renderedRevision,n.renderedTiles=[],n.newTiles_=!1,n.tmpExtent=_i(),n.tmpTileRange_=new BF(0,0,0,0),n}return e.prototype.isDrawableTile=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ge.LOADED||i==ge.EMPTY||i==ge.ERROR&&!a},e.prototype.getTile=function(t,n,i,a){var o=a.pixelRatio,s=a.viewState.projection,A=this.getLayer(),l=A.getSource(),u=l.getTile(t,n,i,o,s);return u.getState()==ge.ERROR&&(A.getUseInterimTilesOnError()?A.getPreload()>0&&(this.newTiles_=!0):u.setState(ge.LOADED)),this.isDrawableTile(u)||(u=u.getInterimTile()),u},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=un(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!xs(o,a))return null;for(var s=n.pixelRatio,A=n.viewState.projection,l=n.viewState,u=i.getRenderSource(),c=u.getTileGridForProjection(l.projection),h=u.getTilePixelRatio(n.pixelRatio),f=c.getZForResolution(l.resolution);f>=c.getMinZoom();--f){var p=c.getTileCoordForCoordAndZ(a,f),v=u.getTile(f,p[1],p[2],s,A);if(!(v instanceof G_||v instanceof CF))return null;if(v.getState()===ge.LOADED){var m=c.getOrigin(f),g=Pi(c.getTileSize(f)),_=c.getResolution(f),E=Math.floor(h*((a[0]-m[0])/_-p[1]*g[0])),B=Math.floor(h*((m[1]-a[1])/_-p[2]*g[1]));return this.getImageData(v.getImage(),E,B)}}return null},e.prototype.loadedTileCallback=function(t,n,i){return this.isDrawableTile(i)?r.prototype.loadedTileCallback.call(this,t,n,i):!1},e.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},e.prototype.renderFrame=function(t,n){var i=t.layerStatesArray[t.layerIndex],a=t.viewState,o=a.projection,s=a.resolution,A=a.center,l=a.rotation,u=t.pixelRatio,c=this.getLayer(),h=c.getSource(),f=h.getRevision(),p=h.getTileGridForProjection(o),v=p.getZForResolution(s,h.zDirection),m=p.getResolution(v),g=t.extent,_=i.extent&&Lo(i.extent);_&&(g=Jo(g,Lo(i.extent)));var E=h.getTilePixelRatio(u),B=Math.round(t.size[0]*E),L=Math.round(t.size[1]*E);if(l){var O=Math.round(Math.sqrt(B*B+L*L));B=O,L=O}var b=m*B/2/E,T=m*L/2/E,I=[A[0]-b,A[1]-T,A[0]+b,A[1]+T],M=p.getTileRangeForExtentAndZ(g,v),x={};x[v]={};var S=this.createLoadedTileFinder(h,o,x),N=this.tmpExtent,P=this.tmpTileRange_;this.newTiles_=!1;for(var X=M.minX;X<=M.maxX;++X)for(var z=M.minY;z<=M.maxY;++z){var tt=this.getTile(v,X,z,t);if(this.isDrawableTile(tt)){var J=pe(this);if(tt.getState()==ge.LOADED){x[v][tt.tileCoord.toString()]=tt;var nt=tt.inTransition(J);!this.newTiles_&&(nt||this.renderedTiles.indexOf(tt)===-1)&&(this.newTiles_=!0)}if(tt.getAlpha(J,t.time)===1)continue}var it=p.getTileCoordChildTileRange(tt.tileCoord,P,N),_t=!1;it&&(_t=S(v+1,it)),_t||p.forEachTileCoordParentTileRange(tt.tileCoord,S,P,N)}var R=m/s;$a(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/E,1/E,l,-B/2,-L/2);var $=FI(this.pixelTransform);this.useContainer(n,$,i.opacity,this.getBackground(t));var K=this.context,q=K.canvas;Kg(this.inversePixelTransform,this.pixelTransform),$a(this.tempTransform,B/2,L/2,R,R,0,-B/2,-L/2),q.width!=B||q.height!=L?(q.width=B,q.height=L):this.containerReused||K.clearRect(0,0,B,L),_&&this.clipUnrotated(K,t,_),h.getInterpolate()||de(K,Lp),this.preRender(K,t),this.renderedTiles.length=0;var at=Object.keys(x).map(Number);at.sort(Nu);var vt,wt,W;i.opacity===1&&(!this.containerReused||h.getOpaque(t.viewState.projection))?at=at.reverse():(vt=[],wt=[]);for(var It=at.length-1;It>=0;--It){var Ot=at[It],j=h.getTilePixelSize(Ot,u,o),Z=p.getResolution(Ot),ut=Z/m,rt=j[0]*ut*R,G=j[1]*ut*R,xt=p.getTileCoordForCoordAndZ(Rs(I),Ot),bt=p.getTileCoordExtent(xt),dt=un(this.tempTransform,[E*(bt[0]-I[0])/m,E*(I[3]-bt[3])/m]),Et=E*h.getGutterForProjection(o),yt=x[Ot];for(var St in yt){var tt=yt[St],Ft=tt.tileCoord,Mt=xt[1]-Ft[1],Vt=Math.round(dt[0]-(Mt-1)*rt),Yt=xt[2]-Ft[2],ie=Math.round(dt[1]-(Yt-1)*G),X=Math.round(dt[0]-Mt*rt),z=Math.round(dt[1]-Yt*G),ee=Vt-X,Xt=ie-z,oe=v===Ot,nt=oe&&tt.getAlpha(pe(this),t.time)!==1,Kt=!1;if(!nt)if(vt){W=[X,z,X+ee,z,X+ee,z+Xt,X,z+Xt];for(var Xe=0,Re=vt.length;Xe{}}}};function kit(r,e,t,n,i,a){return cn(),Vn("div")}var Ih=le(Git,[["render",kit]]);const $it={extends:Ih,name:"ol-tile-layer",setup(r){const e=Ce("map"),t=Ce("overviewMap",null),{properties:n}=vr(r),i=hr(()=>new TF(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&he(t,()=>{o(),a()}),Ze(()=>{a()}),ir(()=>{o()}),Mr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function Vit(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var cS=le($it,[["render",Vit]]),jit=function(){function r(e){this.highWaterMark=e!==void 0?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return r.prototype.canExpireCache=function(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark},r.prototype.expireCache=function(e){for(;this.canExpireCache();)this.pop()},r.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},r.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},r.prototype.forEach=function(e){for(var t=this.oldest_;t;)e(t.value_,t.key_,this),t=t.newer},r.prototype.get=function(e,t){var n=this.entries_[e];return _e(n!==void 0,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_},r.prototype.remove=function(e){var t=this.entries_[e];return _e(t!==void 0,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},r.prototype.getCount=function(){return this.count_},r.prototype.getKeys=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.key_;return e},r.prototype.getValues=function(){var e=new Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.value_;return e},r.prototype.peekLast=function(){return this.oldest_.value_},r.prototype.peekLastKey=function(){return this.oldest_.key_},r.prototype.peekFirstKey=function(){return this.newest_.key_},r.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},r.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},r.prototype.set=function(e,t){_e(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},r.prototype.setSize=function(e){this.highWaterMark=e},r}(),O4=jit,Kit=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zit=function(r){Kit(e,r);function e(t){var n=this,i=ge.IDLE;return n=r.call(this,t.tileCoord,i,{transition:t.transition,interpolate:t.interpolate})||this,n.loader_=t.loader,n.data_=null,n.error_=null,n}return e.prototype.getData=function(){return this.data_},e.prototype.getError=function(){return this.error_},e.prototype.load=function(){this.state=ge.LOADING,this.changed();var t=this;this.loader_().then(function(n){t.data_=n,t.state=ge.LOADED,t.changed()}).catch(function(n){t.error_=n,t.state=ge.ERROR,t.changed()})},e}(EF),Yit=zit,Eg=34962,hw=34963,Xit=35040,SF=35044,D0=35048,Wit=5121,qit=5123,Zit=5125,R4=5126,eN=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function M4(r,e){for(var t=de({preserveDrawingBuffer:!0,antialias:!_Y},e),n=eN.length,i=0;i0&&(v=1e5/Math.pow(10,h) v_screenCoord = v_texCoord * u_screenSize; gl_Position = vec4(a_position, 0.0, 1.0); } -`,oat=` +`,sat=` precision mediump float; uniform sampler2D u_image; @@ -453,7 +453,7 @@ northing meters`+r;var h=c/2,f=0,p=0,v,m,g,_,E;return h>0&&(v=1e5/Math.pow(10,h) void main() { gl_FragColor = texture2D(u_image, v_texCoord) * u_opacity; } -`,sat=function(){function r(e){this.gl_=e.webGlContext;var t=this.gl_;this.scaleRatio_=e.scaleRatio||1,this.renderTargetTexture_=t.createTexture(),this.renderTargetTextureSize_=null,this.frameBuffer_=t.createFramebuffer();var n=t.createShader(t.VERTEX_SHADER);t.shaderSource(n,e.vertexShader||aat),t.compileShader(n);var i=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(i,e.fragmentShader||oat),t.compileShader(i),this.renderTargetProgram_=t.createProgram(),t.attachShader(this.renderTargetProgram_,n),t.attachShader(this.renderTargetProgram_,i),t.linkProgram(this.renderTargetProgram_),this.renderTargetVerticesBuffer_=t.createBuffer();var a=[-1,-1,1,-1,-1,1,1,-1,1,1,-1,1];t.bindBuffer(t.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),t.bufferData(t.ARRAY_BUFFER,new Float32Array(a),t.STATIC_DRAW),this.renderTargetAttribLocation_=t.getAttribLocation(this.renderTargetProgram_,"a_position"),this.renderTargetUniformLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_screenSize"),this.renderTargetOpacityLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_opacity"),this.renderTargetTextureLocation_=t.getUniformLocation(this.renderTargetProgram_,"u_image"),this.uniforms_=[],e.uniforms&&Object.keys(e.uniforms).forEach(function(o){this.uniforms_.push({value:e.uniforms[o],location:t.getUniformLocation(this.renderTargetProgram_,o)})}.bind(this))}return r.prototype.getGL=function(){return this.gl_},r.prototype.init=function(e){var t=this.getGL(),n=[t.drawingBufferWidth*this.scaleRatio_,t.drawingBufferHeight*this.scaleRatio_];if(t.bindFramebuffer(t.FRAMEBUFFER,this.getFrameBuffer()),t.viewport(0,0,n[0],n[1]),!this.renderTargetTextureSize_||this.renderTargetTextureSize_[0]!==n[0]||this.renderTargetTextureSize_[1]!==n[1]){this.renderTargetTextureSize_=n;var i=0,a=t.RGBA,o=0,s=t.RGBA,A=t.UNSIGNED_BYTE,l=null;t.bindTexture(t.TEXTURE_2D,this.renderTargetTexture_),t.texImage2D(t.TEXTURE_2D,i,a,n[0],n[1],o,s,A,l),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.renderTargetTexture_,0)}},r.prototype.apply=function(e,t,n,i){var a=this.getGL(),o=e.size;if(a.bindFramebuffer(a.FRAMEBUFFER,t?t.getFrameBuffer():null),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,this.renderTargetTexture_),!t){var s=pe(a.canvas);if(!e.renderTargets[s]){var A=a.getContextAttributes();A&&A.preserveDrawingBuffer&&(a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT)),e.renderTargets[s]=!0}}a.enable(a.BLEND),a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),a.bindBuffer(a.ARRAY_BUFFER,this.renderTargetVerticesBuffer_),a.useProgram(this.renderTargetProgram_),a.enableVertexAttribArray(this.renderTargetAttribLocation_),a.vertexAttribPointer(this.renderTargetAttribLocation_,2,a.FLOAT,!1,0,0),a.uniform2f(this.renderTargetUniformLocation_,o[0],o[1]),a.uniform1i(this.renderTargetTextureLocation_,0);var l=e.layerStatesArray[e.layerIndex].opacity;a.uniform1f(this.renderTargetOpacityLocation_,l),this.applyUniforms(e),n&&n(a,e),a.drawArrays(a.TRIANGLES,0,6),i&&i(a,e)},r.prototype.getFrameBuffer=function(){return this.frameBuffer_},r.prototype.applyUniforms=function(e){var t=this.getGL(),n,i=1;this.uniforms_.forEach(function(a){if(n=typeof a.value=="function"?a.value(e):a.value,n instanceof HTMLCanvasElement||n instanceof ImageData)a.texture||(a.texture=t.createTexture()),t.activeTexture(t["TEXTURE".concat(i)]),t.bindTexture(t.TEXTURE_2D,a.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),n instanceof ImageData?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,n.width,n.height,0,t.UNSIGNED_BYTE,new Uint8Array(n.data)):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.uniform1i(a.location,i++);else if(Array.isArray(n))switch(n.length){case 2:t.uniform2f(a.location,n[0],n[1]);return;case 3:t.uniform3f(a.location,n[0],n[1],n[2]);return;case 4:t.uniform4f(a.location,n[0],n[1],n[2],n[3]);return;default:return}else typeof n=="number"&&t.uniform1f(a.location,n)})},r}(),nN=sat;function N4(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function Q0(r,e){return r[0]=e[0],r[1]=e[1],r[4]=e[2],r[5]=e[3],r[12]=e[4],r[13]=e[5],r}var Aat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pf={PROJECTION_MATRIX:"u_projectionMatrix",OFFSET_SCALE_MATRIX:"u_offsetScaleMatrix",OFFSET_ROTATION_MATRIX:"u_offsetRotateMatrix",TIME:"u_time",ZOOM:"u_zoom",RESOLUTION:"u_resolution"},Yo={UNSIGNED_BYTE:Xit,UNSIGNED_SHORT:Wit,UNSIGNED_INT:qit,FLOAT:O4},k_={};function iN(r){return"shared/"+r}var aN=0;function lat(){var r="unique/"+aN;return aN+=1,r}function uat(r){var e=k_[r];if(!e){var t=document.createElement("canvas");t.style.position="absolute",t.style.left="0",e={users:0,canvas:t},k_[r]=e}return e.users+=1,e.canvas}function cat(r){var e=k_[r];if(e&&(e.users-=1,!(e.users>0))){var t=e.canvas,n=R4(t),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete k_[r]}}var hat=function(r){Aat(e,r);function e(t){var n=r.call(this)||this,i=t||{};n.boundHandleWebGLContextLost_=n.handleWebGLContextLost.bind(n),n.boundHandleWebGLContextRestored_=n.handleWebGLContextRestored.bind(n),n.canvasCacheKey_=i.canvasCacheKey?iN(i.canvasCacheKey):lat(),n.canvas_=uat(n.canvasCacheKey_),n.gl_=R4(n.canvas_),n.bufferCache_={},n.extensionCache_={},n.currentProgram_=null,n.canvas_.addEventListener(Nm.LOST,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(Nm.RESTORED,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=oi(),n.offsetScaleMatrix_=oi(),n.tmpMat4_=N4(),n.uniformLocations_={},n.attribLocations_={},n.uniforms_=[],i.uniforms&&n.setUniforms(i.uniforms);var a=n.getGL();return n.postProcessPasses_=i.postProcesses?i.postProcesses.map(function(o){return new nN({webGlContext:a,scaleRatio:o.scaleRatio,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,uniforms:o.uniforms})}):[new nN({webGlContext:a})],n.shaderCompileErrors_=null,n.startTime_=Date.now(),n}return e.prototype.setUniforms=function(t){this.uniforms_=[];for(var n in t)this.uniforms_.push({name:n,value:t[n]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===iN(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var n=this.gl_.getExtension(t);return this.extensionCache_[t]=n,n},e.prototype.bindBuffer=function(t){var n=this.getGL(),i=pe(t),a=this.bufferCache_[i];if(!a){var o=n.createBuffer();a={buffer:t,webGlBuffer:o},this.bufferCache_[i]=a}n.bindBuffer(t.getType(),a.webGlBuffer)},e.prototype.flushBufferData=function(t){var n=this.getGL();this.bindBuffer(t),n.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var n=this.getGL(),i=pe(t),a=this.bufferCache_[i];a&&!n.isContextLost()&&n.deleteBuffer(a.webGlBuffer),delete this.bufferCache_[i]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Nm.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Nm.RESTORED,this.boundHandleWebGLContextRestored_),cat(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,n){var i=this.getGL(),a=this.getCanvas(),o=t.size,s=t.pixelRatio;a.width=o[0]*s,a.height=o[1]*s,a.style.width=o[0]+"px",a.style.height=o[1]+"px",i.useProgram(this.currentProgram_);for(var A=this.postProcessPasses_.length-1;A>=0;A--)this.postProcessPasses_[A].init(t);i.bindTexture(i.TEXTURE_2D,null),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,n?i.ZERO:i.ONE_MINUS_SRC_ALPHA),i.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,n,i){var a=this.getGL(),o=n.getSize();a.bindFramebuffer(a.FRAMEBUFFER,n.getFramebuffer()),a.viewport(0,0,o[0],o[1]),a.bindTexture(a.TEXTURE_2D,n.getTexture()),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.enable(a.BLEND),a.blendFunc(a.ONE,i?a.ZERO:a.ONE_MINUS_SRC_ALPHA),a.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,n){var i=this.getGL();this.getExtension("OES_element_index_uint");var a=i.UNSIGNED_INT,o=4,s=n-t,A=t*o;i.drawElements(i.TRIANGLES,s,a,A)},e.prototype.finalizeDraw=function(t,n,i){for(var a=0,o=this.postProcessPasses_.length;at||t>e.getMaxZoom())return!1;var a=e.getFullTileRange(t);return a?a.containsXY(n,i):!0}var _at=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qe={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY",RENDER_EXTENT:"u_renderExtent",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},H0={TEXTURE_COORD:"a_textureCoord"},wat=[{name:H0.TEXTURE_COORD,size:2,type:Yo.FLOAT}],Eat={};function Cat(r){return 2*(1-1/(r+1))-1}function oN(r,e,t){t in r||(r[t]=[]),r[t].push(e)}function RC(r,e){var t=r.layerStatesArray[r.layerIndex];t.extent&&(e=Jo(e,Lo(t.extent,r.viewState.projection)));var n=t.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(r.viewState.projection).getExtent();i&&(e=Jo(e,i))}return e}function MC(r,e){return"".concat(r.getKey(),",").concat(Bg(e))}var Bat=function(r){_at(e,r);function e(t,n){var i=r.call(this,t,{uniforms:n.uniforms})||this;i.renderComplete=!1,i.tileTransform_=oi(),i.tempMat4_=N4(),i.tempTileRange_=new BF(0,0,0,0),i.tempTileCoord_=Cg(0,0,0),i.tempSize_=[0,0],i.program_,i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.indices_=new Hv(hw,SF),i.indices_.fromArray([0,1,3,1,2,3]);var a=n.cacheSize!==void 0?n.cacheSize:512;return i.tileTextureCache_=new L4(a),i.paletteTextures_=n.paletteTextures||[],i.frameState_=null,i}return e.prototype.reset=function(t){r.prototype.reset.call(this,{uniforms:t.uniforms}),this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.paletteTextures_=t.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},e.prototype.isDrawableTile_=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ge.LOADED||i==ge.EMPTY||i==ge.ERROR&&!a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getRenderSource();return!i||Vp(RC(t,t.extent))?!1:i.getState()===Da.READY},e.prototype.enqueueTiles=function(t,n,i,a){var o=t.viewState,s=this.getLayer(),A=s.getRenderSource(),l=A.getTileGridForProjection(o.projection),u=A.getTilePixelRatio(t.pixelRatio),c=A.getGutterForProjection(o.projection),h=pe(A);h in t.wantedTiles||(t.wantedTiles[h]={});for(var f=t.wantedTiles[h],p=this.tileTextureCache_,v=Math.max(i-s.getPreload(),l.getMinZoom(),s.getMinZoom()),m=i;m>=v;--m)for(var g=l.getTileRangeForExtentAndZ(n,m,this.tempTileRange_),_=l.getResolution(m),E=g.minX;E<=g.maxX;++E)for(var B=g.minY;B<=g.maxY;++B){var L=Cg(m,E,B,this.tempTileCoord_),O=MC(A,L),b=void 0,T=void 0;if(p.containsKey(O)&&(b=p.get(O),T=b.tile),!b||b.tile.key!==A.getKey())if(T=A.getTile(m,E,B,t.pixelRatio,o.projection),!b)b=new iat({tile:T,grid:l,helper:this.helper,tilePixelRatio:u,gutter:c}),p.set(O,b);else if(this.isDrawableTile_(T))b.setTile(T);else{var I=T.getInterimTile();b.setTile(I)}oN(a,b,m);var M=T.getKey();f[M]=!0,T.getState()===ge.IDLE&&(t.tileQueue.isKeyQueued(M)||t.tileQueue.enqueue([T,h,l.getTileCoordCenter(L),_]))}},e.prototype.renderFrame=function(t){this.frameState_=t,this.renderComplete=!0;var n=this.helper.getGL();this.preRender(n,t);var i=t.viewState,a=this.getLayer(),o=a.getRenderSource(),s=o.getTileGridForProjection(i.projection),A=RC(t,t.extent),l=s.getZForResolution(i.resolution,o.zDirection),u={};if(t.nextExtent){var c=s.getZForResolution(i.nextResolution,o.zDirection),h=RC(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,A,l,u);for(var f={},p=pe(this),v=t.time,m=!1,g=u[l],_=0,E=g.length;_=M;--x){var S=this.findAltTiles_(s,O,x,u);if(S)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!m);for(var N=Object.keys(u).map(Number).sort(Nu),P=i.center[0],X=i.center[1],z=0,tt=N.length;z=u.getMinZoom();--f){var p=u.getTileCoordForCoordAndZ(o,f),v=MC(l,p);if(h.containsKey(v)){var m=h.get(v);if(m.loaded){var g=u.getOrigin(f),_=Pi(u.getTileSize(f)),E=u.getResolution(f),B=(o[0]-g[0])/E-p[1]*_[0],L=(g[1]-o[1])/E-p[2]*_[1];return m.getPixelData(B,L)}}}return null},e.prototype.findAltTiles_=function(t,n,i,a){var o=t.getTileRangeForTileCoordAndZ(n,i,this.tempTileRange_);if(!o)return!1;for(var s=!0,A=this.tileTextureCache_,l=this.getLayer().getRenderSource(),u=o.minX;u<=o.maxX;++u)for(var c=o.minY;c<=o.maxY;++c){var h=MC(l,[i,u,c]),f=!1;if(A.containsKey(h)){var p=A.get(h);p.loaded&&(oN(a,p,i),f=!0)}f||(s=!1)}return s},e.prototype.removeHelper=function(){if(this.helper){var t=this.tileTextureCache_;t.forEach(function(n){return n.dispose()}),t.clear()}r.prototype.removeHelper.call(this)},e.prototype.disposeInternal=function(){var t=this.helper;if(t){var n=t.getGL();n.deleteProgram(this.program_),delete this.program_,t.deleteBuffer(this.indices_)}r.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},e}(U4),Tat=Bat,Sat=function(){function r(e,t){this.name=e,this.data=t,this.texture_=null}return r.prototype.getTexture=function(e){if(!this.texture_){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.data.length/4,1,0,e.RGBA,e.UNSIGNED_BYTE,this.data),this.texture_=t}return this.texture_},r}(),xat=Sat,Jt={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},nr={};function cA(r){if(typeof r=="number")return Jt.NUMBER;if(typeof r=="boolean")return Jt.BOOLEAN;if(typeof r=="string")return kY(r)?Jt.COLOR|Jt.STRING:Jt.STRING;if(!Array.isArray(r))throw new Error("Unhandled value type: ".concat(JSON.stringify(r)));var e=r,t=e.every(function(i){return typeof i=="number"});if(t)return e.length===3||e.length===4?Jt.COLOR|Jt.NUMBER_ARRAY:Jt.NUMBER_ARRAY;if(typeof e[0]!="string")throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=nr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function bat(r){return G6(r)%1===0}function pw(r){var e=r.toString();return e.indexOf(".")===-1?e+".0":e}function Q4(r){if(r.length<2||r.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(r.length,"(").concat(r.map(pw).join(", "),")")}function Iat(r){var e=Du(r).slice();return e.length<4&&e.push(1),Q4(e.map(function(t,n){return n<3?t/255:t}))}function $_(r,e){return r.stringLiteralsMap[e]===void 0&&(r.stringLiteralsMap[e]=Object.keys(r.stringLiteralsMap).length),r.stringLiteralsMap[e]}function Fat(r,e){return pw($_(r,e))}function Ae(r,e,t){if(Array.isArray(e)&&typeof e[0]=="string"){var n=nr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.toGlsl(r,e.slice(1),t)}var i=cA(e);if((i&Jt.NUMBER)>0)return pw(e);if((i&Jt.BOOLEAN)>0)return e.toString();if((i&Jt.STRING)>0&&(t===void 0||t==Jt.STRING))return Fat(r,e.toString());if((i&Jt.COLOR)>0&&(t===void 0||t==Jt.COLOR))return Iat(e);if((i&Jt.NUMBER_ARRAY)>0)return Q4(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(t,")"))}function H4(r){if(!(cA(r)&Jt.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(r)," instead"))}function ui(r){for(var e=0;ee)throw new Error("At most ".concat(e," arguments were expected, got ").concat(r.length," instead"))}function k4(r){if(r.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(r," instead"))}function Lat(r){if(r.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(r," instead"))}function bF(r,e){if(!bat(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(r)))}nr.get={getReturnType:function(r){return Jt.ANY},toGlsl:function(r,e){_n(e,1),G4(e[0]);var t=e[0].toString();r.attributes.indexOf(t)===-1&&r.attributes.push(t);var n=r.inFragmentShader?"v_":"a_";return n+t}};function IF(r){return"u_var_"+r}nr.var={getReturnType:function(r){return Jt.ANY},toGlsl:function(r,e){_n(e,1),G4(e[0]);var t=e[0].toString();return r.variables.indexOf(t)===-1&&r.variables.push(t),IF(t)}};var $4="u_paletteTextures";nr.palette={getReturnType:function(r){return Jt.COLOR},toGlsl:function(r,e){_n(e,2),H4(e[0]);var t=Ae(r,e[0]),n=e[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var i=n.length,a=new Uint8Array(i*4),o=0;o0))){var t=e.canvas,n=M4(t),i=n.getExtension("WEBGL_lose_context");i&&i.loseContext(),delete k_[r]}}var fat=function(r){lat(e,r);function e(t){var n=r.call(this)||this,i=t||{};n.boundHandleWebGLContextLost_=n.handleWebGLContextLost.bind(n),n.boundHandleWebGLContextRestored_=n.handleWebGLContextRestored.bind(n),n.canvasCacheKey_=i.canvasCacheKey?iN(i.canvasCacheKey):uat(),n.canvas_=cat(n.canvasCacheKey_),n.gl_=M4(n.canvas_),n.bufferCache_={},n.extensionCache_={},n.currentProgram_=null,n.canvas_.addEventListener(Nm.LOST,n.boundHandleWebGLContextLost_),n.canvas_.addEventListener(Nm.RESTORED,n.boundHandleWebGLContextRestored_),n.offsetRotateMatrix_=oi(),n.offsetScaleMatrix_=oi(),n.tmpMat4_=P4(),n.uniformLocations_={},n.attribLocations_={},n.uniforms_=[],i.uniforms&&n.setUniforms(i.uniforms);var a=n.getGL();return n.postProcessPasses_=i.postProcesses?i.postProcesses.map(function(o){return new nN({webGlContext:a,scaleRatio:o.scaleRatio,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,uniforms:o.uniforms})}):[new nN({webGlContext:a})],n.shaderCompileErrors_=null,n.startTime_=Date.now(),n}return e.prototype.setUniforms=function(t){this.uniforms_=[];for(var n in t)this.uniforms_.push({name:n,value:t[n]});this.uniformLocations_={}},e.prototype.canvasCacheKeyMatches=function(t){return this.canvasCacheKey_===iN(t)},e.prototype.getExtension=function(t){if(t in this.extensionCache_)return this.extensionCache_[t];var n=this.gl_.getExtension(t);return this.extensionCache_[t]=n,n},e.prototype.bindBuffer=function(t){var n=this.getGL(),i=pe(t),a=this.bufferCache_[i];if(!a){var o=n.createBuffer();a={buffer:t,webGlBuffer:o},this.bufferCache_[i]=a}n.bindBuffer(t.getType(),a.webGlBuffer)},e.prototype.flushBufferData=function(t){var n=this.getGL();this.bindBuffer(t),n.bufferData(t.getType(),t.getArray(),t.getUsage())},e.prototype.deleteBuffer=function(t){var n=this.getGL(),i=pe(t),a=this.bufferCache_[i];a&&!n.isContextLost()&&n.deleteBuffer(a.webGlBuffer),delete this.bufferCache_[i]},e.prototype.disposeInternal=function(){this.canvas_.removeEventListener(Nm.LOST,this.boundHandleWebGLContextLost_),this.canvas_.removeEventListener(Nm.RESTORED,this.boundHandleWebGLContextRestored_),hat(this.canvasCacheKey_),delete this.gl_,delete this.canvas_},e.prototype.prepareDraw=function(t,n){var i=this.getGL(),a=this.getCanvas(),o=t.size,s=t.pixelRatio;a.width=o[0]*s,a.height=o[1]*s,a.style.width=o[0]+"px",a.style.height=o[1]+"px",i.useProgram(this.currentProgram_);for(var A=this.postProcessPasses_.length-1;A>=0;A--)this.postProcessPasses_[A].init(t);i.bindTexture(i.TEXTURE_2D,null),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.enable(i.BLEND),i.blendFunc(i.ONE,n?i.ZERO:i.ONE_MINUS_SRC_ALPHA),i.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.prepareDrawToRenderTarget=function(t,n,i){var a=this.getGL(),o=n.getSize();a.bindFramebuffer(a.FRAMEBUFFER,n.getFramebuffer()),a.viewport(0,0,o[0],o[1]),a.bindTexture(a.TEXTURE_2D,n.getTexture()),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT),a.enable(a.BLEND),a.blendFunc(a.ONE,i?a.ZERO:a.ONE_MINUS_SRC_ALPHA),a.useProgram(this.currentProgram_),this.applyFrameState(t),this.applyUniforms(t)},e.prototype.drawElements=function(t,n){var i=this.getGL();this.getExtension("OES_element_index_uint");var a=i.UNSIGNED_INT,o=4,s=n-t,A=t*o;i.drawElements(i.TRIANGLES,s,a,A)},e.prototype.finalizeDraw=function(t,n,i){for(var a=0,o=this.postProcessPasses_.length;at||t>e.getMaxZoom())return!1;var a=e.getFullTileRange(t);return a?a.containsXY(n,i):!0}var wat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qe={TILE_TEXTURE_ARRAY:"u_tileTextures",TILE_TRANSFORM:"u_tileTransform",TRANSITION_ALPHA:"u_transitionAlpha",DEPTH:"u_depth",TEXTURE_PIXEL_WIDTH:"u_texturePixelWidth",TEXTURE_PIXEL_HEIGHT:"u_texturePixelHeight",TEXTURE_RESOLUTION:"u_textureResolution",TEXTURE_ORIGIN_X:"u_textureOriginX",TEXTURE_ORIGIN_Y:"u_textureOriginY",RENDER_EXTENT:"u_renderExtent",RESOLUTION:"u_resolution",ZOOM:"u_zoom"},H0={TEXTURE_COORD:"a_textureCoord"},Eat=[{name:H0.TEXTURE_COORD,size:2,type:Yo.FLOAT}],Cat={};function Bat(r){return 2*(1-1/(r+1))-1}function oN(r,e,t){t in r||(r[t]=[]),r[t].push(e)}function RC(r,e){var t=r.layerStatesArray[r.layerIndex];t.extent&&(e=Jo(e,Lo(t.extent,r.viewState.projection)));var n=t.layer.getRenderSource();if(!n.getWrapX()){var i=n.getTileGridForProjection(r.viewState.projection).getExtent();i&&(e=Jo(e,i))}return e}function MC(r,e){return"".concat(r.getKey(),",").concat(Bg(e))}var Tat=function(r){wat(e,r);function e(t,n){var i=r.call(this,t,{uniforms:n.uniforms})||this;i.renderComplete=!1,i.tileTransform_=oi(),i.tempMat4_=P4(),i.tempTileRange_=new BF(0,0,0,0),i.tempTileCoord_=Cg(0,0,0),i.tempSize_=[0,0],i.program_,i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.indices_=new Hv(hw,SF),i.indices_.fromArray([0,1,3,1,2,3]);var a=n.cacheSize!==void 0?n.cacheSize:512;return i.tileTextureCache_=new O4(a),i.paletteTextures_=n.paletteTextures||[],i.frameState_=null,i}return e.prototype.reset=function(t){r.prototype.reset.call(this,{uniforms:t.uniforms}),this.vertexShader_=t.vertexShader,this.fragmentShader_=t.fragmentShader,this.paletteTextures_=t.paletteTextures||[],this.helper&&(this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_))},e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.helper.flushBufferData(this.indices_)},e.prototype.isDrawableTile_=function(t){var n=this.getLayer(),i=t.getState(),a=n.getUseInterimTilesOnError();return i==ge.LOADED||i==ge.EMPTY||i==ge.ERROR&&!a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getRenderSource();return!i||Vp(RC(t,t.extent))?!1:i.getState()===Da.READY},e.prototype.enqueueTiles=function(t,n,i,a){var o=t.viewState,s=this.getLayer(),A=s.getRenderSource(),l=A.getTileGridForProjection(o.projection),u=A.getTilePixelRatio(t.pixelRatio),c=A.getGutterForProjection(o.projection),h=pe(A);h in t.wantedTiles||(t.wantedTiles[h]={});for(var f=t.wantedTiles[h],p=this.tileTextureCache_,v=Math.max(i-s.getPreload(),l.getMinZoom(),s.getMinZoom()),m=i;m>=v;--m)for(var g=l.getTileRangeForExtentAndZ(n,m,this.tempTileRange_),_=l.getResolution(m),E=g.minX;E<=g.maxX;++E)for(var B=g.minY;B<=g.maxY;++B){var L=Cg(m,E,B,this.tempTileCoord_),O=MC(A,L),b=void 0,T=void 0;if(p.containsKey(O)&&(b=p.get(O),T=b.tile),!b||b.tile.key!==A.getKey())if(T=A.getTile(m,E,B,t.pixelRatio,o.projection),!b)b=new aat({tile:T,grid:l,helper:this.helper,tilePixelRatio:u,gutter:c}),p.set(O,b);else if(this.isDrawableTile_(T))b.setTile(T);else{var I=T.getInterimTile();b.setTile(I)}oN(a,b,m);var M=T.getKey();f[M]=!0,T.getState()===ge.IDLE&&(t.tileQueue.isKeyQueued(M)||t.tileQueue.enqueue([T,h,l.getTileCoordCenter(L),_]))}},e.prototype.renderFrame=function(t){this.frameState_=t,this.renderComplete=!0;var n=this.helper.getGL();this.preRender(n,t);var i=t.viewState,a=this.getLayer(),o=a.getRenderSource(),s=o.getTileGridForProjection(i.projection),A=RC(t,t.extent),l=s.getZForResolution(i.resolution,o.zDirection),u={};if(t.nextExtent){var c=s.getZForResolution(i.nextResolution,o.zDirection),h=RC(t,t.nextExtent);this.enqueueTiles(t,h,c,u)}this.enqueueTiles(t,A,l,u);for(var f={},p=pe(this),v=t.time,m=!1,g=u[l],_=0,E=g.length;_=M;--x){var S=this.findAltTiles_(s,O,x,u);if(S)break}}this.helper.useProgram(this.program_),this.helper.prepareDraw(t,!m);for(var N=Object.keys(u).map(Number).sort(Nu),P=i.center[0],X=i.center[1],z=0,tt=N.length;z=u.getMinZoom();--f){var p=u.getTileCoordForCoordAndZ(o,f),v=MC(l,p);if(h.containsKey(v)){var m=h.get(v);if(m.loaded){var g=u.getOrigin(f),_=Pi(u.getTileSize(f)),E=u.getResolution(f),B=(o[0]-g[0])/E-p[1]*_[0],L=(g[1]-o[1])/E-p[2]*_[1];return m.getPixelData(B,L)}}}return null},e.prototype.findAltTiles_=function(t,n,i,a){var o=t.getTileRangeForTileCoordAndZ(n,i,this.tempTileRange_);if(!o)return!1;for(var s=!0,A=this.tileTextureCache_,l=this.getLayer().getRenderSource(),u=o.minX;u<=o.maxX;++u)for(var c=o.minY;c<=o.maxY;++c){var h=MC(l,[i,u,c]),f=!1;if(A.containsKey(h)){var p=A.get(h);p.loaded&&(oN(a,p,i),f=!0)}f||(s=!1)}return s},e.prototype.removeHelper=function(){if(this.helper){var t=this.tileTextureCache_;t.forEach(function(n){return n.dispose()}),t.clear()}r.prototype.removeHelper.call(this)},e.prototype.disposeInternal=function(){var t=this.helper;if(t){var n=t.getGL();n.deleteProgram(this.program_),delete this.program_,t.deleteBuffer(this.indices_)}r.prototype.disposeInternal.call(this),delete this.indices_,delete this.tileTextureCache_,delete this.frameState_},e}(D4),Sat=Tat,xat=function(){function r(e,t){this.name=e,this.data=t,this.texture_=null}return r.prototype.getTexture=function(e){if(!this.texture_){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,this.data.length/4,1,0,e.RGBA,e.UNSIGNED_BYTE,this.data),this.texture_=t}return this.texture_},r}(),bat=xat,Jt={NUMBER:1,STRING:2,COLOR:4,BOOLEAN:8,NUMBER_ARRAY:16,ANY:31,NONE:0},nr={};function cA(r){if(typeof r=="number")return Jt.NUMBER;if(typeof r=="boolean")return Jt.BOOLEAN;if(typeof r=="string")return $Y(r)?Jt.COLOR|Jt.STRING:Jt.STRING;if(!Array.isArray(r))throw new Error("Unhandled value type: ".concat(JSON.stringify(r)));var e=r,t=e.every(function(i){return typeof i=="number"});if(t)return e.length===3||e.length===4?Jt.COLOR|Jt.NUMBER_ARRAY:Jt.NUMBER_ARRAY;if(typeof e[0]!="string")throw new Error("Expected an expression operator but received: ".concat(JSON.stringify(e)));var n=nr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.getReturnType(e.slice(1))}function Iat(r){return k6(r)%1===0}function pw(r){var e=r.toString();return e.indexOf(".")===-1?e+".0":e}function H4(r){if(r.length<2||r.length>4)throw new Error("`formatArray` can only output `vec2`, `vec3` or `vec4` arrays.");return"vec".concat(r.length,"(").concat(r.map(pw).join(", "),")")}function Fat(r){var e=Du(r).slice();return e.length<4&&e.push(1),H4(e.map(function(t,n){return n<3?t/255:t}))}function $_(r,e){return r.stringLiteralsMap[e]===void 0&&(r.stringLiteralsMap[e]=Object.keys(r.stringLiteralsMap).length),r.stringLiteralsMap[e]}function Lat(r,e){return pw($_(r,e))}function Ae(r,e,t){if(Array.isArray(e)&&typeof e[0]=="string"){var n=nr[e[0]];if(n===void 0)throw new Error("Unrecognized expression operator: ".concat(JSON.stringify(e)));return n.toGlsl(r,e.slice(1),t)}var i=cA(e);if((i&Jt.NUMBER)>0)return pw(e);if((i&Jt.BOOLEAN)>0)return e.toString();if((i&Jt.STRING)>0&&(t===void 0||t==Jt.STRING))return Lat(r,e.toString());if((i&Jt.COLOR)>0&&(t===void 0||t==Jt.COLOR))return Fat(e);if((i&Jt.NUMBER_ARRAY)>0)return H4(e);throw new Error("Unexpected expression ".concat(e," (expected type ").concat(t,")"))}function G4(r){if(!(cA(r)&Jt.NUMBER))throw new Error("A numeric value was expected, got ".concat(JSON.stringify(r)," instead"))}function ui(r){for(var e=0;ee)throw new Error("At most ".concat(e," arguments were expected, got ").concat(r.length," instead"))}function $4(r){if(r.length%2!==0)throw new Error("An even amount of arguments was expected, got ".concat(r," instead"))}function Oat(r){if(r.length%2===0)throw new Error("An odd amount of arguments was expected, got ".concat(r," instead"))}function bF(r,e){if(!Iat(e))throw new Error("Could not infer only one type from the following expression: ".concat(JSON.stringify(r)))}nr.get={getReturnType:function(r){return Jt.ANY},toGlsl:function(r,e){_n(e,1),k4(e[0]);var t=e[0].toString();r.attributes.indexOf(t)===-1&&r.attributes.push(t);var n=r.inFragmentShader?"v_":"a_";return n+t}};function IF(r){return"u_var_"+r}nr.var={getReturnType:function(r){return Jt.ANY},toGlsl:function(r,e){_n(e,1),k4(e[0]);var t=e[0].toString();return r.variables.indexOf(t)===-1&&r.variables.push(t),IF(t)}};var V4="u_paletteTextures";nr.palette={getReturnType:function(r){return Jt.COLOR},toGlsl:function(r,e){_n(e,2),G4(e[0]);var t=Ae(r,e[0]),n=e[1];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");for(var i=n.length,a=new Uint8Array(i*4),o=0;o0&&(v=1e5/Math.pow(10,h) float dy = yOffset / `).concat(qe.TEXTURE_PIXEL_HEIGHT,`; `).concat(n,` } - `)}var l=Ae(r,t),u=Ae(r,e[1]||0),c=Ae(r,e[2]||0);return"".concat(NC,"(").concat(l,", ").concat(u,", ").concat(c,")")}};nr.time={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_time"}};nr.zoom={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_zoom"}};nr.resolution={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_resolution"}};nr["*"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," * ").concat(Ae(r,e[1]),")")}};nr["/"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," / ").concat(Ae(r,e[1]),")")}};nr["+"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," + ").concat(Ae(r,e[1]),")")}};nr["-"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," - ").concat(Ae(r,e[1]),")")}};nr.clamp={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){_n(e,3),ui(e);var t=Ae(r,e[1]),n=Ae(r,e[2]);return"clamp(".concat(Ae(r,e[0]),", ").concat(t,", ").concat(n,")")}};nr["%"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"mod(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")")}};nr["^"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"pow(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")")}};nr.abs={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"abs(".concat(Ae(r,e[0]),")")}};nr.floor={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"floor(".concat(Ae(r,e[0]),")")}};nr.round={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"floor(".concat(Ae(r,e[0])," + 0.5)")}};nr.ceil={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"ceil(".concat(Ae(r,e[0]),")")}};nr.sin={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"sin(".concat(Ae(r,e[0]),")")}};nr.cos={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"cos(".concat(Ae(r,e[0]),")")}};nr.atan={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return qu(e,1),dw(e,2),ui(e),e.length===2?"atan(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")"):"atan(".concat(Ae(r,e[0]),")")}};nr[">"]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," > ").concat(Ae(r,e[1]),")")}};nr[">="]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," >= ").concat(Ae(r,e[1]),")")}};nr["<"]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," < ").concat(Ae(r,e[1]),")")}};nr["<="]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," <= ").concat(Ae(r,e[1]),")")}};function V4(r){return{getReturnType:function(e){return Jt.BOOLEAN},toGlsl:function(e,t){_n(t,2);for(var n=Jt.ANY,i=0;i= ").concat(t," && ").concat(i," <= ").concat(n,")")}};nr.array={getReturnType:function(r){return Jt.NUMBER_ARRAY},toGlsl:function(r,e){qu(e,2),dw(e,4),ui(e);var t=e.map(function(n){return Ae(r,n,Jt.NUMBER)});return"vec".concat(e.length,"(").concat(t.join(", "),")")}};nr.color={getReturnType:function(r){return Jt.COLOR},toGlsl:function(r,e){qu(e,3),dw(e,4),ui(e);var t=e;e.length===3&&t.push(1);var n=e.map(function(i,a){return Ae(r,i,Jt.NUMBER)+(a<3?" / 255.0":"")});return"vec".concat(e.length,"(").concat(n.join(", "),")")}};nr.interpolate={getReturnType:function(r){for(var e=Jt.COLOR|Jt.NUMBER,t=3;t=1;A-=2){var l=Ae(r,e[A]),u=Ae(r,e[A+1],i);s="(".concat(a," == ").concat(l," ? ").concat(u," : ").concat(s||o,")")}return s}};nr.case={getReturnType:function(r){for(var e=Jt.ANY,t=1;t=0;a-=2){var A=Ae(r,e[a]),l=Ae(r,e[a+1],i);s="(".concat(A," ? ").concat(l," : ").concat(s||o,")")}return s}};var Oat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function sN(r,e){var t=` + `)}var l=Ae(r,t),u=Ae(r,e[1]||0),c=Ae(r,e[2]||0);return"".concat(NC,"(").concat(l,", ").concat(u,", ").concat(c,")")}};nr.time={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_time"}};nr.zoom={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_zoom"}};nr.resolution={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,0),"u_resolution"}};nr["*"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," * ").concat(Ae(r,e[1]),")")}};nr["/"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," / ").concat(Ae(r,e[1]),")")}};nr["+"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," + ").concat(Ae(r,e[1]),")")}};nr["-"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," - ").concat(Ae(r,e[1]),")")}};nr.clamp={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){_n(e,3),ui(e);var t=Ae(r,e[1]),n=Ae(r,e[2]);return"clamp(".concat(Ae(r,e[0]),", ").concat(t,", ").concat(n,")")}};nr["%"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"mod(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")")}};nr["^"]={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,2),ui(e),"pow(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")")}};nr.abs={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"abs(".concat(Ae(r,e[0]),")")}};nr.floor={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"floor(".concat(Ae(r,e[0]),")")}};nr.round={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"floor(".concat(Ae(r,e[0])," + 0.5)")}};nr.ceil={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"ceil(".concat(Ae(r,e[0]),")")}};nr.sin={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"sin(".concat(Ae(r,e[0]),")")}};nr.cos={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return _n(e,1),ui(e),"cos(".concat(Ae(r,e[0]),")")}};nr.atan={getReturnType:function(r){return Jt.NUMBER},toGlsl:function(r,e){return qu(e,1),dw(e,2),ui(e),e.length===2?"atan(".concat(Ae(r,e[0]),", ").concat(Ae(r,e[1]),")"):"atan(".concat(Ae(r,e[0]),")")}};nr[">"]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," > ").concat(Ae(r,e[1]),")")}};nr[">="]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," >= ").concat(Ae(r,e[1]),")")}};nr["<"]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," < ").concat(Ae(r,e[1]),")")}};nr["<="]={getReturnType:function(r){return Jt.BOOLEAN},toGlsl:function(r,e){return _n(e,2),ui(e),"(".concat(Ae(r,e[0])," <= ").concat(Ae(r,e[1]),")")}};function j4(r){return{getReturnType:function(e){return Jt.BOOLEAN},toGlsl:function(e,t){_n(t,2);for(var n=Jt.ANY,i=0;i= ").concat(t," && ").concat(i," <= ").concat(n,")")}};nr.array={getReturnType:function(r){return Jt.NUMBER_ARRAY},toGlsl:function(r,e){qu(e,2),dw(e,4),ui(e);var t=e.map(function(n){return Ae(r,n,Jt.NUMBER)});return"vec".concat(e.length,"(").concat(t.join(", "),")")}};nr.color={getReturnType:function(r){return Jt.COLOR},toGlsl:function(r,e){qu(e,3),dw(e,4),ui(e);var t=e;e.length===3&&t.push(1);var n=e.map(function(i,a){return Ae(r,i,Jt.NUMBER)+(a<3?" / 255.0":"")});return"vec".concat(e.length,"(").concat(n.join(", "),")")}};nr.interpolate={getReturnType:function(r){for(var e=Jt.COLOR|Jt.NUMBER,t=3;t=1;A-=2){var l=Ae(r,e[A]),u=Ae(r,e[A+1],i);s="(".concat(a," == ").concat(l," ? ").concat(u," : ").concat(s||o,")")}return s}};nr.case={getReturnType:function(r){for(var e=Jt.ANY,t=1;t=0;a-=2){var A=Ae(r,e[a]),l=Ae(r,e[a+1],i);s="(".concat(A," ? ").concat(l," : ").concat(s||o,")")}return s}};var Rat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();function sN(r,e){var t=` attribute vec2 `.concat(H0.TEXTURE_COORD,`; uniform mat4 `).concat(qe.TILE_TRANSFORM,`; uniform float `).concat(qe.TEXTURE_PIXEL_WIDTH,`; @@ -495,7 +495,7 @@ northing meters`+r;var h=c/2,f=0,p=0,v,m,g,_,E;return h>0&&(v=1e5/Math.pow(10,h) sb, sb, sb + saturation ); color.rgb = clamp(saturationMatrix * color.rgb, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0)); - `))}if(r.gamma!==void 0){var l=Ae(n,r.gamma,Jt.NUMBER);i.push("color.rgb = pow(color.rgb, vec3(1.0 / ".concat(l,"));"))}if(r.brightness!==void 0){var u=Ae(n,r.brightness,Jt.NUMBER);i.push("color.rgb = clamp(color.rgb + ".concat(u,", vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0));"))}var c={},h=n.variables.length;if(h>1&&!r.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var f=function(E){var B=n.variables[E];if(!(B in r.variables))throw new Error("Missing '".concat(B,"' in style variables"));var L=IF(B);c[L]=function(){var O=r.variables[B];return typeof O=="string"&&(O=$_(n,O)),O!==void 0?O:-9999999}},p=0;p1&&!r.variables)throw new Error("Missing variables in style (expected ".concat(n.variables,")"));for(var f=function(E){var B=n.variables[E];if(!(B in r.variables))throw new Error("Missing '".concat(B,"' in style variables"));var L=IF(B);c[L]=function(){var O=r.variables[B];return typeof O=="string"&&(O=$_(n,O)),O!==void 0?O:-9999999}},p=0;p0&&(v=1e5/Math.pow(10,h) gl_FragColor = color; gl_FragColor.rgb *= gl_FragColor.a; gl_FragColor *= `).concat(qe.TRANSITION_ALPHA,`; - }`);return{vertexShader:t,fragmentShader:_,uniforms:c,paletteTextures:n.paletteTextures}}var K4=function(r){Oat(e,r);function e(t){var n=this,i=t?de({},t):{},a=i.style||{};delete i.style;var o=i.cacheSize;return delete i.cacheSize,n=r.call(this,i)||this,n.sources_=i.sources,n.renderedSource_=null,n.renderedResolution_=NaN,n.style_=a,n.cacheSize_=o,n.styleVariables_=n.style_.variables||{},n.addChangeListener(Dr.SOURCE,n.handleSourceUpdate_),n}return e.prototype.getSources=function(t,n){var i=this.getSource();return this.sources_?typeof this.sources_=="function"?this.sources_(t,n):this.sources_:i?[i]:[]},e.prototype.getRenderSource=function(){return this.renderedSource_||this.getSource()},e.prototype.getSourceState=function(){var t=this.getRenderSource();return t?t.getState():Da.UNDEFINED},e.prototype.handleSourceUpdate_=function(){this.getSource()&&this.setStyle(this.style_)},e.prototype.getSourceBandCount_=function(){var t=this.getSource();return t&&"bandCount"in t?t.bandCount:4},e.prototype.createRenderer=function(){var t=sN(this.style_,this.getSourceBandCount_());return new Tat(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.cacheSize_,paletteTextures:t.paletteTextures})},e.prototype.renderSources=function(t,n){for(var i=this.getRenderer(),a,o=0,s=n.length;o.5*a.resolution){var h=this.getSources(t.extent,this.renderedResolution_).filter(function(f){return!o.includes(f)});if(h.length>0)return this.renderSources(t,h)}return c},e.prototype.setStyle=function(t){this.styleVariables_=t.variables||{},this.style_=t;var n=sN(this.style_,this.getSourceBandCount_()),i=this.getRenderer();i.reset({vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,uniforms:n.uniforms,paletteTextures:n.paletteTextures}),this.changed()},e.prototype.updateStyleVariables=function(t){de(this.styleVariables_,t),this.changed()},e}(B4);K4.prototype.dispose;var Rat=K4;const Mat={extends:Ih,name:"ol-webgl-tile-layer",setup(r){const e=Ce("map"),t=Ce("overviewMap",null),{properties:n}=vr(r),i=hr(()=>new Rat(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&he(t,()=>{o(),a()}),Ze(()=>{a()}),ir(()=>{o()}),Mr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function Nat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var hS=le(Mat,[["render",Nat]]),Pat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Uat=function(r){Pat(e,r);function e(t){var n=t||{};return r.call(this,n)||this}return e}(Sh),Dat=Uat,Qat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Hat=function(r){Qat(e,r);function e(t){var n=r.call(this,t)||this;return n.image_=null,n}return e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var n=t.layerStatesArray[t.layerIndex],i=t.pixelRatio,a=t.viewState,o=a.resolution,s=this.getLayer().getSource(),A=t.viewHints,l=t.extent;if(n.extent!==void 0&&(l=Jo(l,Lo(n.extent,a.projection))),!A[gn.ANIMATING]&&!A[gn.INTERACTING]&&!Vp(l))if(s){var u=a.projection,c=s.getImage(l,o,i,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===$e.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=un(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!xs(o,a))return null;var s=this.image_.getExtent(),A=this.image_.getImage(),l=Fr(s),u=Math.floor(A.width*((a[0]-s[0])/l));if(u<0||u>=A.width)return null;var c=Ai(s),h=Math.floor(A.height*((s[3]-a[1])/c));return h<0||h>=A.height?null:this.getImageData(A,u,h)},e.prototype.renderFrame=function(t,n){var i=this.image_,a=i.getExtent(),o=i.getResolution(),s=i.getPixelRatio(),A=t.layerStatesArray[t.layerIndex],l=t.pixelRatio,u=t.viewState,c=u.center,h=u.resolution,f=t.size,p=l*o/(h*s),v=Math.round(f[0]*l),m=Math.round(f[1]*l),g=u.rotation;if(g){var _=Math.round(Math.sqrt(v*v+m*m));v=_,m=_}$a(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,g,-v/2,-m/2),Kg(this.inversePixelTransform,this.pixelTransform);var E=FI(this.pixelTransform);this.useContainer(n,E,A.opacity,this.getBackground(t));var B=this.context,L=B.canvas;L.width!=v||L.height!=m?(L.width=v,L.height=m):this.containerReused||B.clearRect(0,0,v,m);var O=!1,b=!0;if(A.extent){var T=Lo(A.extent,u.projection);b=Mn(T,t.extent),O=b&&!Fo(T,t.extent),O&&this.clipUnrotated(B,t,T)}var I=i.getImage(),M=$a(this.tempTransform,v/2,m/2,p,p,0,s*(a[0]-c[0])/o,s*(c[1]-a[3])/o);this.renderedResolution=o*l/s;var x=I.width*M[0],S=I.height*M[3];if(this.getLayer().getSource().getInterpolate()||de(B,Lp),this.preRender(B,t),b&&x>=.5&&S>=.5){var N=M[4],P=M[5],X=A.opacity,z=void 0;X!==1&&(z=B.globalAlpha,B.globalAlpha=X),B.drawImage(I,0,0,+I.width,+I.height,Math.round(N),Math.round(P),Math.round(x),Math.round(S)),X!==1&&(B.globalAlpha=z)}return this.postRender(B,t),O&&B.restore(),de(B,x4),E!==L.style.transform&&(L.style.transform=E),this.container},e}(hF),Gat=Hat,kat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),$at=function(r){kat(e,r);function e(t){return r.call(this,t)||this}return e.prototype.createRenderer=function(){return new Gat(this)},e.prototype.getData=function(t){return r.prototype.getData.call(this,t)},e}(Dat),z4=$at;const Vat={extends:Ih,name:"ol-image-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=new z4(t);return he(t,()=>{n.setProperties(t)}),Ze(()=>{e.addLayer(n)}),ir(()=>{e.removeLayer(n)}),Mr("imageLayer",n),{imageLayer:n}}};function jat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var fS=le(Vat,[["render",jat]]);const Kat={extends:Ih,name:"ol-vector-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=hr(()=>new hA(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("vectorLayer",n),Mr("stylable",n),{vectorLayer:n}},props:{renderBuffer:{type:Number,default:100},updateWhileAnimating:{type:Boolean,default:!1},style:{type:Function},updateWhileInteracting:{type:Boolean,default:!1}}};function zat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var pS=le(Kat,[["render",zat]]),Yat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xat=function(r){Yat(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.expireCache=function(t){for(;this.canExpireCache();){var n=this.peekLast();if(n.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(this.getCount()!==0){var t=this.peekFirstKey(),n=yat(t),i=n[0];this.forEach(function(a){a.tileCoord[0]!==i&&(this.remove(Bg(a.tileCoord)),a.release())}.bind(this))}},e}(L4),Y4=Xat,PC={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},Wat=[0,0,0],Xl=5,qat=function(){function r(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,_e(pY(this.resolutions_,function(o,s){return s-o},!0),17);var t;if(!e.origins){for(var n=0,i=this.resolutions_.length-1;n=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),s=Math.floor(s/2),a=pf(o,o,s,s,n)):a=this.getTileRangeForExtentAndZ(A,l,n),t(l,a))return!0;--l}return!1},r.prototype.getExtent=function(){return this.extent_},r.prototype.getMaxZoom=function(){return this.maxZoom},r.prototype.getMinZoom=function(){return this.minZoom},r.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},r.prototype.getResolution=function(e){return this.resolutions_[e]},r.prototype.getResolutions=function(){return this.resolutions_},r.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]this.maxZoom||t0?n:Math.max(o/s[0],a/s[1]),l=i+1,u=new Array(l),c=0;ci.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,n,i,a){},e}(ow),rot=function(r){Z4(e,r);function e(t,n){var i=r.call(this,t)||this;return i.tile=n,i}return e}(fo),J4=eot;function not(r,e){var t=/\{z\}/g,n=/\{x\}/g,i=/\{y\}/g,a=/\{-y\}/g;return function(o,s,A){if(o)return r.replace(t,o[0].toString()).replace(n,o[1].toString()).replace(i,o[2].toString()).replace(a,function(){var l=o[0],u=e.getFullTileRange(l);_e(u,55);var c=u.getHeight()-o[2]-1;return c.toString()})}}function iot(r,e){for(var t=r.length,n=new Array(t),i=0;i>=1;return t.join("")}var pot='Terms of Use',dot=function(r){hot(e,r);function e(t){var n=this,i=t.hidpi!==void 0?t.hidpi:!1,a=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(a=t.interpolate),n=r.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:a,opaque:!0,projection:Oe("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:Da.LOADING,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:i?2:1,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection})||this,n.hidpi_=i,n.culture_=t.culture!==void 0?t.culture:"en-us",n.maxZoom_=t.maxZoom!==void 0?t.maxZoom:-1,n.apiKey_=t.key,n.imagerySet_=t.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+n.apiKey_+"&c="+n.culture_;return cot(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(t.statusCode!=200||t.statusDescription!="OK"||t.authenticationResultCode!="ValidCredentials"||t.resourceSets.length!=1||t.resourceSets[0].resources.length!=1){this.setState(Da.ERROR);return}var n=t.resourceSets[0].resources[0],i=this.maxZoom_==-1?n.zoomMax:this.maxZoom_,a=this.getProjection(),o=vw(a),s=this.hidpi_?2:1,A=n.imageWidth==n.imageHeight?n.imageWidth/s:[n.imageWidth/s,n.imageHeight/s],l=W4({extent:o,minZoom:n.zoomMin,maxZoom:i,tileSize:A});this.tileGrid=l;var u=this.culture_,c=this.hidpi_;if(this.tileUrlFunction=V_(n.imageUrlSubdomains.map(function(f){var p=[0,0,0],v=n.imageUrl.replace("{subdomain}",f).replace("{culture}",u);return function(m,g,_){if(m){Cg(m[0],m[1],m[2],p);var E=v;return c&&(E+="&dpi=d1&device=mobile"),E.replace("{quadkey}",fot(p))}else return}})),n.imageryProviders){var h=fh(Oe("EPSG:4326"),this.getProjection());this.setAttributions(function(f){var p=[],v=f.viewState,m=this.getTileGrid(),g=m.getZForResolution(v.resolution,this.zDirection),_=m.getTileCoordForCoordAndZ(v.center,g),E=_[0];return n.imageryProviders.map(function(B){for(var L=!1,O=B.coverageAreas,b=0,T=O.length;b=I.zoomMin&&E<=I.zoomMax){var M=I.bbox,x=[M[1],M[0],M[3],M[2]],S=MI(x,h);if(Mn(S,f.extent)){L=!0;break}}}L&&p.push(B.attribution)}),p.push(pot),p}.bind(this))}this.setState(Da.READY)},e}(gw),vot=dot,got=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),yot=function(r){got(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a=n.projection!==void 0?n.projection:"EPSG:3857",o=n.tileGrid!==void 0?n.tileGrid:W4({extent:vw(a),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return r.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,opaque:n.opaque,projection:a,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:n.wrapX!==void 0?n.wrapX:!0,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return e}(gw),r8=yot,mot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),_ot=function(r){mot(e,r);function e(t){var n=r.call(this,{attributions:t.attributions,wrapX:t.wrapX})||this;return n.resolution=void 0,n.distance=t.distance!==void 0?t.distance:20,n.minDistance=t.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=t.geometryFunction||function(i){var a=i.getGeometry();return _e(a.getType()==st.POINT,10),a},n.createCustomCluster_=t.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(t.source||null),n}return e.prototype.clear=function(t){this.features.length=0,r.prototype.clear.call(this,t)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,n,i){this.source.loadFeatures(t,n,i),n!==this.resolution&&(this.resolution=n,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(ye.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(ye.CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,n){var i=t===0?0:Math.min(n,t)/t,a=t!==this.distance||this.interpolationRatio!==i;this.distance=t,this.minDistance=n,this.interpolationRatio=i,a&&this.refresh()},e.prototype.cluster=function(){if(!(this.resolution===void 0||!this.source))for(var t=_i(),n=this.distance*this.resolution,i=this.source.getFeatures(),a={},o=0,s=i.length;o=0;--a){var o=this.geometryFunction(t[a]);o?X6(i,o.getCoordinates()):t.splice(a,1)}W6(i,1/t.length);var s=Sa(n),A=this.interpolationRatio,l=new fr([i[0]*(1-A)+s[0]*A,i[1]*(1-A)+s[1]*A]);return this.createCustomCluster_?this.createCustomCluster_(l,t):new or({geometry:l,features:t})},e}(_l),n8=_ot,Zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wot(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}),e}var wa=globalThis&&globalThis.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,a;n1,n=t&&r.imageInfo.profile[1].supports?r.imageInfo.profile[1].supports:[],i=t&&r.imageInfo.profile[1].formats?r.imageInfo.profile[1].formats:[],a=t&&r.imageInfo.profile[1].qualities?r.imageInfo.profile[1].qualities:[];return{url:r.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(o){return o.width})[0],r.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:wa(wa([],e.supports,!0),n,!0),formats:wa(wa([],e.formats,!0),i,!0),qualities:wa(wa([],e.qualities,!0),a,!0)}}function Sot(r){var e=r.getComplianceLevelSupportedFeatures(),t=r.imageInfo.extraFormats===void 0?e.formats:wa(wa([],e.formats,!0),r.imageInfo.extraFormats,!0),n=r.imageInfo.preferredFormats!==void 0&&Array.isArray(r.imageInfo.preferredFormats)&&r.imageInfo.preferredFormats.length>0?r.imageInfo.preferredFormats.filter(function(i){return yi(["jpg","png","gif"],i)}).reduce(function(i,a){return i===void 0&&yi(t,a)?a:i},void 0):void 0;return{url:r.imageInfo.id,sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(i){return i.width})[0],r.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:r.imageInfo.extraFeatures===void 0?e.supports:wa(wa([],e.supports,!0),r.imageInfo.extraFeatures,!0),formats:t,qualities:r.imageInfo.extraQualities===void 0?e.qualities:wa(wa([],e.qualities,!0),r.imageInfo.extraQualities,!0),preferredFormat:n}}var yw={};yw[Pa.VERSION1]=Bot;yw[Pa.VERSION2]=Tot;yw[Pa.VERSION3]=Sot;var xot=function(){function r(e){this.setImageInfo(e)}return r.prototype.setImageInfo=function(e){typeof e=="string"?this.imageInfo=JSON.parse(e):this.imageInfo=e},r.prototype.getImageApiVersion=function(){if(this.imageInfo!==void 0){var e=this.imageInfo["@context"]||"ol-no-context";typeof e=="string"&&(e=[e]);for(var t=0;t0&&typeof this.imageInfo.profile[0]=="string"&&AN.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}},r.prototype.getComplianceLevelFromProfile=function(e){var t=this.getComplianceLevelEntryFromProfile(e);if(t!==void 0){var n=t.match(/level[0-2](?:\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},r.prototype.getComplianceLevelSupportedFeatures=function(){if(this.imageInfo!==void 0){var e=this.getImageApiVersion(),t=this.getComplianceLevelFromProfile(e);return t===void 0?gh.none.none:gh[e][t]}},r.prototype.getTileSourceOptions=function(e){var t=e||{},n=this.getImageApiVersion();if(n!==void 0){var i=n===void 0?void 0:yw[n](this);if(i!==void 0)return{url:i.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:t.format!==void 0&&yi(i.formats,t.format)?t.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:t.quality&&yi(i.qualities,t.quality)?t.quality:yi(i.qualities,"native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(a,o){return o-a}):void 0,tileSize:i.tileSize}}},r}(),bot=xot,Iot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Fot=function(r){Iot(e,r);function e(t,n,i,a,o,s,A){var l=this,u=t.getExtent(),c=n.getExtent(),h=c?Jo(i,c):i,f=Sa(h),p=wg(t,n,f,a),v=T4,m=new S4(t,n,h,u,p*v,a),g=m.calculateSourceExtent(),_=s(g,p,o),E=_?$e.IDLE:$e.EMPTY,B=_?_.getPixelRatio():1;return l=r.call(this,i,a,B,E)||this,l.targetProj_=n,l.maxSourceExtent_=u,l.triangulation_=m,l.targetResolution_=a,l.targetExtent_=i,l.sourceImage_=_,l.sourcePixelRatio_=B,l.interpolate_=A,l.canvas_=null,l.sourceListenerKey_=null,l}return e.prototype.disposeInternal=function(){this.state==$e.LOADING&&this.unlistenSource_(),r.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==$e.LOADED){var n=Fr(this.targetExtent_)/this.targetResolution_,i=Ai(this.targetExtent_)/this.targetResolution_;this.canvas_=b4(n,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==$e.IDLE){this.state=$e.LOADING,this.changed();var t=this.sourceImage_.getState();t==$e.LOADED||t==$e.ERROR?this.reproject_():(this.sourceListenerKey_=Pe(this.sourceImage_,ye.CHANGE,function(n){var i=this.sourceImage_.getState();(i==$e.LOADED||i==$e.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Rr(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(kQ),Lot=Fot,i8=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),UC={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},Oot=function(r){i8(e,r);function e(t,n){var i=r.call(this,t)||this;return i.image=n,i}return e}(fo),Rot=function(r){i8(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),n=r.call(this,{attributions:t.attributions,projection:t.projection,state:t.state,interpolate:i})||this,n.on,n.once,n.un,n.resolutions_=t.resolutions!==void 0?t.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var n=j1(this.resolutions_,t,0);t=this.resolutions_[n]}return t},e.prototype.getImage=function(t,n,i,a){var o=this.getProjection();if(!o||!a||Ws(o,a))return o&&(a=o),this.getImageInternal(t,n,i,a);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Ws(this.reprojectedImage_.getProjection(),a)&&this.reprojectedImage_.getResolution()==n&&AA(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Lot(o,a,t,n,i,function(s,A,l){return this.getImageInternal(s,A,l,o)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_},e.prototype.getImageInternal=function(t,n,i,a){return Be()},e.prototype.handleImageChange=function(t){var n=t.target,i;switch(n.getState()){case $e.LOADING:this.loading=!0,i=UC.IMAGELOADSTART;break;case $e.LOADED:this.loading=!1,i=UC.IMAGELOADEND;break;case $e.ERROR:this.loading=!1,i=UC.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new Oot(i,n))},e}(ow);function a8(r,e){r.getImage().src=e}var o8=Rot;function Op(r,e){var t=[];Object.keys(e).forEach(function(i){e[i]!==null&&e[i]!==void 0&&t.push(i+"="+encodeURIComponent(e[i]))});var n=t.join("&");return r=r.replace(/[?&]$/,""),r=r.indexOf("?")===-1?r+"?":r+"&",r+n}var Mot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Not=function(r){Mot(e,r);function e(t){var n=this,i=t.crossOrigin!==void 0?t.crossOrigin:null,a=t.imageLoadFunction!==void 0?t.imageLoadFunction:a8,o=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(o=t.interpolate),n=r.call(this,{attributions:t.attributions,interpolate:o,projection:Oe(t.projection)})||this,n.url_=t.url,n.imageExtent_=t.imageExtent,n.image_=new $Q(n.imageExtent_,void 0,1,n.url_,i,a),n.imageSize_=t.imageSize?t.imageSize:null,n.image_.addEventListener(ye.CHANGE,n.handleImageChange.bind(n)),n}return e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,n,i,a){return Mn(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(t){if(this.image_.getState()==$e.LOADED){var n=this.image_.getExtent(),i=this.image_.getImage(),a=void 0,o=void 0;this.imageSize_?(a=this.imageSize_[0],o=this.imageSize_[1]):(a=i.width,o=i.height);var s=Fr(n),A=Ai(n),l=s/a,u=A/o,c=a,h=o;if(l>u?c=Math.round(s/u):h=Math.round(A/l),c!==a||h!==o){var f=ja(c,h);this.getInterpolate()||de(f,Lp);var p=f.canvas;f.drawImage(i,0,0,a,o,0,0,p.width,p.height),this.image_.setImage(p)}}r.prototype.handleImageChange.call(this,t)},e}(o8),Pot=Not,hu="1.3.0",fu={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},Uot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wl=4,lN=[101,101],Dot=function(r){Uot(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;return i.interpolate!==void 0&&(a=i.interpolate),n=r.call(this,{attributions:i.attributions,interpolate:a,projection:i.projection,resolutions:i.resolutions})||this,n.crossOrigin_=i.crossOrigin!==void 0?i.crossOrigin:null,n.url_=i.url,n.imageLoadFunction_=i.imageLoadFunction!==void 0?i.imageLoadFunction:a8,n.params_=i.params||{},n.v13_=!0,n.updateV13_(),n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=i.ratio!==void 0?i.ratio:1.5,n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){if(this.url_!==void 0){var o=Oe(i),s=this.getProjection();s&&s!==o&&(n=wg(s,o,t,n),t=Qu(t,o,s));var A=Xc(t,n,0,lN),l={SERVICE:"WMS",VERSION:hu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};de(l,this.params_,a);var u=$f((t[0]-A[0])/n,Wl),c=$f((A[3]-t[1])/n,Wl);return l[this.v13_?"I":"X"]=u,l[this.v13_?"J":"Y"]=c,this.getRequestUrl_(A,lN,1,s||o,l)}},e.prototype.getLegendUrl=function(t,n){if(this.url_!==void 0){var i={SERVICE:"WMS",VERSION:hu,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return de(i,n),Op(this.url_,i)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,n,i,a){if(this.url_===void 0)return null;n=this.findNearestResolution(n),i!=1&&(!this.hidpi_||this.serverType_===void 0)&&(i=1);var o=n/i,s=Sa(t),A=lu(Fr(t)/o,Wl),l=lu(Ai(t)/o,Wl),u=Xc(s,o,0,[A,l]),c=lu(this.ratio_*Fr(t)/o,Wl),h=lu(this.ratio_*Ai(t)/o,Wl),f=Xc(s,o,0,[c,h]),p=this.image_;if(p&&this.renderedRevision_==this.getRevision()&&p.getResolution()==n&&p.getPixelRatio()==i&&Fo(p.getExtent(),u))return p;var v={SERVICE:"WMS",VERSION:hu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};de(v,this.params_),this.imageSize_[0]=YR(Fr(f)/o,Wl),this.imageSize_[1]=YR(Ai(f)/o,Wl);var m=this.getRequestUrl_(f,this.imageSize_,i,a,v);return this.image_=new $Q(f,n,i,m,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(ye.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,n,i,a,o){if(_e(this.url_!==void 0,9),o[this.v13_?"CRS":"SRS"]=a.getCode(),"STYLES"in this.params_||(o.STYLES=""),i!=1)switch(this.serverType_){case fu.GEOSERVER:var s=90*i+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case fu.MAPSERVER:o.MAP_RESOLUTION=90*i;break;case fu.CARMENTA_SERVER:case fu.QGIS:o.DPI=90*i;break;default:_e(!1,8);break}o.WIDTH=n[0],o.HEIGHT=n[1];var A=a.getAxisOrientation(),l;return this.v13_&&A.substr(0,2)=="ne"?l=[t[1],t[0],t[3],t[2]]:l=t,o.BBOX=l.join(","),Op(this.url_,o)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){de(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||hu;this.v13_=Y6(t,"1.3")>=0},e}(o8),Qot=Dot,Hot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Got='© OpenStreetMap contributors.',kot=function(r){Hot(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a;n.attributions!==void 0?a=n.attributions:a=[Got];var o=n.crossOrigin!==void 0?n.crossOrigin:"anonymous",s=n.url!==void 0?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return r.call(this,{attributions:a,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:o,interpolate:i,maxZoom:n.maxZoom!==void 0?n.maxZoom:19,opaque:n.opaque!==void 0?n.opaque:!0,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:s,wrapX:n.wrapX,zDirection:n.zDirection})||this}return e}(r8),$ot=kot,Vot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jot=function(r){Vot(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;i.interpolate!==void 0&&(a=i.interpolate);var o=i.params||{},s="TRANSPARENT"in o?o.TRANSPARENT:!0;return n=r.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:a,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:i.wrapX!==void 0?i.wrapX:!0,transition:i.transition,zDirection:i.zDirection})||this,n.gutter_=i.gutter!==void 0?i.gutter:0,n.params_=o,n.v13_=!0,n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.tmpExtent_=_i(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){var o=Oe(i),s=this.getProjection(),A=this.getTileGrid();A||(A=this.getTileGridForProjection(o));var l=A.getZForResolution(n,this.zDirection),u=A.getTileCoordForCoordAndZ(t,l);if(!(A.getResolutions().length<=u[0])){var c=A.getResolution(u[0]),h=A.getTileCoordExtent(u,this.tmpExtent_),f=Pi(A.getTileSize(u[0]),this.tmpSize),p=this.gutter_;p!==0&&(f=pM(f,p,this.tmpSize),h=Va(h,c*p,h)),s&&s!==o&&(c=wg(s,o,t,c),h=S_(h,o,s),t=Qu(t,o,s));var v={SERVICE:"WMS",VERSION:hu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};de(v,this.params_,a);var m=Math.floor((t[0]-h[0])/c),g=Math.floor((h[3]-t[1])/c);return v[this.v13_?"I":"X"]=m,v[this.v13_?"J":"Y"]=g,this.getRequestUrl_(u,f,h,1,s||o,v)}},e.prototype.getLegendUrl=function(t,n){if(this.urls[0]!==void 0){var i={SERVICE:"WMS",VERSION:hu,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return de(i,n),Op(this.urls[0],i)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,n,i,a,o,s){var A=this.urls;if(A){if(s.WIDTH=n[0],s.HEIGHT=n[1],s[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(s.STYLES=""),a!=1)switch(this.serverType_){case fu.GEOSERVER:var l=90*a+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+l:s.FORMAT_OPTIONS="dpi:"+l;break;case fu.MAPSERVER:s.MAP_RESOLUTION=90*a;break;case fu.CARMENTA_SERVER:case fu.QGIS:s.DPI=90*a;break;default:_e(!1,52);break}var u=o.getAxisOrientation(),c=i;if(this.v13_&&u.substr(0,2)=="ne"){var h=void 0;h=i[0],c[0]=i[1],c[1]=h,h=i[2],c[2]=i[3],c[3]=h}s.BBOX=c.join(",");var f;if(A.length==1)f=A[0];else{var p=Bu(D4(t),A.length);f=A[p]}return Op(f,s)}},e.prototype.getTilePixelRatio=function(t){return!this.hidpi_||this.serverType_===void 0?1:t},e.prototype.getKeyForParams_=function(){var t=0,n=[];for(var i in this.params_)n[t++]=i+"-"+this.params_[i];return n.join("/")},e.prototype.updateParams=function(t){de(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||hu;this.v13_=Y6(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,n,i){var a=this.getTileGrid();if(a||(a=this.getTileGridForProjection(i)),!(a.getResolutions().length<=t[0])){n!=1&&(!this.hidpi_||this.serverType_===void 0)&&(n=1);var o=a.getResolution(t[0]),s=a.getTileCoordExtent(t,this.tmpExtent_),A=Pi(a.getTileSize(t[0]),this.tmpSize),l=this.gutter_;l!==0&&(A=pM(A,l,this.tmpSize),s=Va(s,o*l,s)),n!=1&&(A=mQ(A,n,this.tmpSize));var u={SERVICE:"WMS",VERSION:hu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return de(u,this.params_),this.getRequestUrl_(t,A,s,n,i,u)}},e}(gw),Kot=jot,Pm={KVP:"KVP",REST:"REST"},zot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yot=function(r){zot(e,r);function e(t){var n=r.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return n.matrixIds_=t.matrixIds,n}return e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(FF),dS=Yot,Xot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wot=function(r){Xot(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(i=t.interpolate);var a=t.requestEncoding!==void 0?t.requestEncoding:Pm.KVP,o=t.tileGrid,s=t.urls;return s===void 0&&t.url!==void 0&&(s=t8(t.url)),n=r.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:i,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:s,wrapX:t.wrapX!==void 0?t.wrapX:!1,transition:t.transition,zDirection:t.zDirection})||this,n.version_=t.version!==void 0?t.version:"1.0.0",n.format_=t.format!==void 0?t.format:"image/jpeg",n.dimensions_=t.dimensions!==void 0?t.dimensions:{},n.layer_=t.layer,n.matrixSet_=t.matrixSet,n.style_=t.style,n.requestEncoding_=a,n.setKey(n.getKeyForDimensions_()),s&&s.length>0&&(n.tileUrlFunction=V_(s.map(n.createFromWMTSTemplate.bind(n)))),n}return e.prototype.setUrls=function(t){this.urls=t;var n=t.join(` -`);this.setTileUrlFunction(V_(t.map(this.createFromWMTSTemplate.bind(this))),n)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,n=[];for(var i in this.dimensions_)n[t++]=i+"-"+this.dimensions_[i];return n.join("/")},e.prototype.updateDimensions=function(t){de(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var n=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};n==Pm.KVP&&de(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=n==Pm.KVP?Op(t,i):t.replace(/\{(\w+?)\}/g,function(s,A){return A.toLowerCase()in i?i[A.toLowerCase()]:s});var a=this.tileGrid,o=this.dimensions_;return function(s,A,l){if(s){var u={TileMatrix:a.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};de(u,o);var c=t;return n==Pm.KVP?c=Op(c,u):c=c.replace(/\{(\w+?)\}/g,function(h,f){return u[f]}),c}else return}},e}(gw),s8=Wot;window.ol&&!ol.ext&&(ol.ext={});var Cr=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r};window.ol&&(ol.inherits||(ol.inherits=Cr));window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});function mw(r){const e=r.frameState,t=kp(r.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new fF(r.context,e.pixelRatio,e.extent,t,e.viewState.rotation)}window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var G0=F6.split(".");G0=parseInt(G0[0])*100+parseInt(G0[1]);var vS=function(r,e){var t=r.frameState.pixelRatio;if(G0>605&&t!==1&&e.getImage()instanceof ny){e=e.clone();var n=e.getImage();n.setScale(n.getScale()*t);var i=n.getAnchor();if(n.setDisplacement){var a=n.getDisplacement();a&&(a[0]-=i[0]/t,a[1]+=i[1]/t,n.setAnchor([0,0]))}else i&&(i[0]/=t,i[1]/=t)}return e},Fh=function(r){var e=r||{};hA.call(this,e),this.oldcluster=new _l,this.clusters=[],this.animation={start:!1},this.set("animationDuration",typeof e.animationDuration=="number"?e.animationDuration:700),this.set("animationMethod",e.animationMethod||ts),this.getSource().on("change",this.saveCluster.bind(this)),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))};Cr(Fh,hA);Fh.prototype.saveCluster=function(){if(this.oldcluster){if(this.oldcluster.clear(),!this.get("animationDuration"))return;var r=this.getSource().getFeatures();r.length&&r[0].get("features")&&(this.oldcluster.addFeatures(this.clusters),this.clusters=r.slice(0),this.sourceChanged=!0)}};Fh.prototype.getClusterForFeature=function(r,e){for(var t=0,n;n=e[t];t++){var i=n.get("features");if(i&&i.length){for(var a=0,o;o=i[a];a++)if(r===o)return n}}return!1};Fh.prototype.stopAnimation=function(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]};Fh.prototype.animate=function(r){var e=this.get("animationDuration");if(e){var t=r.frameState.viewState.resolution,n,i,a=this.animation,o=r.frameState.time;if(a.resolution!=t&&this.sourceChanged){var s=r.frameState.extent;for(a.resolution1e3){this.stopAnimation();return}o=a.start=new Date().getTime()}if(a.start){var u=r.vectorContext||mw(r),c=(o-a.start)/e;c>1&&(this.stopAnimation(),c=1),c=this.get("animationMethod")(c);var h=this.getStyle(),f=typeof h=="function"?h:h.length?function(){return h}:function(){return[h]};for(r.context.save(),r.context.globalAlpha=this.getOpacity(),n=0,l;l=a.clusters[n];n++){var p=l.f.getGeometry().getCoordinates(),v=p[0]-l.pt[0],m=p[1]-l.pt[1];a.revers?(p[0]=l.pt[0]+c*v,p[1]=l.pt[1]+c*m):(p[0]=p[0]-c*v,p[1]=p[1]-c*m);var g=f(l.f,t,!0);if(g.length||(g=[g]),l.f.get("features").length===1&&!v&&!m)A=l.f.get("features")[0];else{var _=new fr(p);A=new or(_)}for(var E=0,B;B=g[E];E++)if(B.getText()&&/\n/.test(B.getText().getText())){var L=B.getText().getOffsetX(),O=B.getText().getOffsetY(),b=B.getText().getRotation()||0,T=Number((B.getText().getFont()||"10px").match(/\d+/))*1.2,I=B.getText().getText().split(` -`),M,x=I.length-1,S=B.clone();I.forEach(function(N,P){switch(P==1&&(S.setImage(),S.setFill(),S.setStroke()),B.getText().getTextBaseline()){case"alphabetic":case"ideographic":case"bottom":{M=x;break}case"hanging":case"top":{M=0;break}default:{M=x/2;break}}S.getText().setOffsetX(L-Math.sin(b)*T*(P-M)),S.getText().setOffsetY(O+Math.cos(b)*T*(P-M)),S.getText().setText(N),u.drawFeature(A,vS(r,S))})}else u.drawFeature(A,vS(r,B))}r.context.restore(),r.frameState.animate=!0,r.context.save(),r.context.beginPath(),r.context.rect(0,0,0,0),r.context.clip(),this.clip_=!0}}};Fh.prototype.postanimate=function(r){this.clip_&&(r.context.restore(),this.clip_=!1)};const qot={extends:Ih,name:"ol-animated-clusterlayer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=hr(()=>new Fh(Os(Un({},t),{source:new n8({distance:t.distance,geometryFunction:o=>o.getGeometry()})}))),i=hr(()=>n.value.getSource());return he(t,()=>{n.value.setProperties(t),n.value.changed()}),Ze(()=>{e.addLayer(n.value),n.value.changed(),e.changed()}),ir(()=>{e.removeLayer(n.value)}),Mr("vectorLayer",i),Mr("stylable",n),{vectorLayer:n,map:e}},props:{animationDuration:{type:Number,default:700},distance:{type:Number,default:20},animationMethod:{type:Function,default:ts},updateWhileAnimating:{type:Boolean,default:!1},updateWhileInteracting:{type:Boolean,default:!1}}};function Zot(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var gS=le(qot,[["render",Zot]]),Gs=new Uint8Array(4),Jot=function(){function r(e,t){this.helper_=e;var n=e.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=t||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return r.prototype.setSize=function(e){yl(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())},r.prototype.getSize=function(){return this.size_},r.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},r.prototype.readAll=function(){if(this.dataCacheDirty_){var e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},r.prototype.readPixel=function(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return Gs[0]=0,Gs[1]=0,Gs[2]=0,Gs[3]=0,Gs;this.readAll();var n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return Gs[0]=this.data_[n*4],Gs[1]=this.data_[n*4+1],Gs[2]=this.data_[n*4+2],Gs[3]=this.data_[n*4+3],Gs},r.prototype.getTexture=function(){return this.texture_},r.prototype.getFramebuffer=function(){return this.framebuffer_},r.prototype.updateSize_=function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)},r}(),tst=Jot;function est(){var r='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r"u"?"data:application/javascript;base64,"+Buffer.from(r,"binary").toString("base64"):URL.createObjectURL(new Blob([r],{type:"application/javascript"})))}var rst=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nst=function(r){rst(e,r);function e(t,n){var i=this,a=n.uniforms||{},o=oi();a[Pf.PROJECTION_MATRIX]=o,i=r.call(this,t,{uniforms:a,postProcesses:n.postProcesses})||this,i.ready=!1,i.sourceRevision_=-1,i.verticesBuffer_=new Hv(Eg,D0),i.hitVerticesBuffer_=new Hv(Eg,D0),i.indicesBuffer_=new Hv(hw,D0),i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.program_,i.hitDetectionEnabled_=!!(n.hitFragmentShader&&n.hitVertexShader),i.hitVertexShader_=n.hitVertexShader,i.hitFragmentShader_=n.hitFragmentShader,i.hitProgram_;var s=n.attributes?n.attributes.map(function(l){return{name:"a_"+l.name,size:1,type:Yo.FLOAT}}):[];i.attributes=[{name:"a_position",size:2,type:Yo.FLOAT},{name:"a_index",size:1,type:Yo.FLOAT}].concat(s),i.hitDetectionAttributes=[{name:"a_position",size:2,type:Yo.FLOAT},{name:"a_index",size:1,type:Yo.FLOAT},{name:"a_hitColor",size:4,type:Yo.FLOAT},{name:"a_featureUid",size:1,type:Yo.FLOAT}].concat(s),i.customAttributes=n.attributes?n.attributes:[],i.previousExtent_=_i(),i.currentTransform_=o,i.renderTransform_=oi(),i.invertRenderTransform_=oi(),i.renderInstructions_=new Float32Array(0),i.hitRenderInstructions_=new Float32Array(0),i.hitRenderTarget_,i.generateBuffersRun_=0,i.worker_=est(),i.worker_.addEventListener("message",function(l){var u=l.data;if(u.type===OC.GENERATE_BUFFERS){var c=u.projectionTransform;u.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(u.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=c,Kg(this.invertRenderTransform_,this.renderTransform_),u.hitDetection?this.hitRenderInstructions_=new Float32Array(l.data.renderInstructions):(this.renderInstructions_=new Float32Array(l.data.renderInstructions),u.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(i)),i.featureCache_={},i.featureCount_=0;var A=i.getLayer().getSource();return i.sourceListenKeys_=[Pe(A,Oi.ADDFEATURE,i.handleSourceFeatureAdded_,i),Pe(A,Oi.CHANGEFEATURE,i.handleSourceFeatureChanged_,i),Pe(A,Oi.REMOVEFEATURE,i.handleSourceFeatureDelete_,i),Pe(A,Oi.CLEAR,i.handleSourceFeatureClear_,i)],A.forEachFeature(function(l){this.featureCache_[pe(l)]={feature:l,properties:l.getProperties(),geometry:l.getGeometry()},this.featureCount_++}.bind(i)),i}return e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new tst(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var n=t.feature;this.featureCache_[pe(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var n=t.feature;this.featureCache_[pe(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var n=t.feature;delete this.featureCache_[pe(n)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var n=this.helper.getGL();this.preRender(n,t);var i=this.indicesBuffer_.getSize();this.helper.drawElements(0,i),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var a=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t),this.hitRenderTarget_.clearCachedData()),this.postRender(n,t),a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getSource(),a=t.viewState,o=!t.viewHints[gn.ANIMATING]&&!t.viewHints[gn.INTERACTING],s=!AA(this.previousExtent_,t.extent),A=this.sourceRevision_.5*a.resolution){var h=this.getSources(t.extent,this.renderedResolution_).filter(function(f){return!o.includes(f)});if(h.length>0)return this.renderSources(t,h)}return c},e.prototype.setStyle=function(t){this.styleVariables_=t.variables||{},this.style_=t;var n=sN(this.style_,this.getSourceBandCount_()),i=this.getRenderer();i.reset({vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,uniforms:n.uniforms,paletteTextures:n.paletteTextures}),this.changed()},e.prototype.updateStyleVariables=function(t){de(this.styleVariables_,t),this.changed()},e}(T4);z4.prototype.dispose;var Mat=z4;const Nat={extends:Ih,name:"ol-webgl-tile-layer",setup(r){const e=Ce("map"),t=Ce("overviewMap",null),{properties:n}=vr(r),i=hr(()=>new Mat(n)),a=()=>{t!=null?(t.value.getOverviewMap().addLayer(i.value),t.value.changed()):e.addLayer(i.value)},o=()=>{t!=null?(t.value.getOverviewMap().removeLayer(i.value),t.value.changed()):e.removeLayer(i.value)};return t!=null&&he(t,()=>{o(),a()}),Ze(()=>{a()}),ir(()=>{o()}),Mr("tileLayer",i),{tileLayer:i}},props:{preload:{type:Number,default:1}}};function Pat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var hS=le(Nat,[["render",Pat]]),Uat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dat=function(r){Uat(e,r);function e(t){var n=t||{};return r.call(this,n)||this}return e}(Sh),Qat=Dat,Hat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Gat=function(r){Hat(e,r);function e(t){var n=r.call(this,t)||this;return n.image_=null,n}return e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.prepareFrame=function(t){var n=t.layerStatesArray[t.layerIndex],i=t.pixelRatio,a=t.viewState,o=a.resolution,s=this.getLayer().getSource(),A=t.viewHints,l=t.extent;if(n.extent!==void 0&&(l=Jo(l,Lo(n.extent,a.projection))),!A[gn.ANIMATING]&&!A[gn.INTERACTING]&&!Vp(l))if(s){var u=a.projection,c=s.getImage(l,o,i,u);c&&(this.loadImage(c)?this.image_=c:c.getState()===$e.EMPTY&&(this.image_=null))}else this.image_=null;return!!this.image_},e.prototype.getData=function(t){var n=this.frameState;if(!n)return null;var i=this.getLayer(),a=un(n.pixelToCoordinateTransform,t.slice()),o=i.getExtent();if(o&&!xs(o,a))return null;var s=this.image_.getExtent(),A=this.image_.getImage(),l=Fr(s),u=Math.floor(A.width*((a[0]-s[0])/l));if(u<0||u>=A.width)return null;var c=Ai(s),h=Math.floor(A.height*((s[3]-a[1])/c));return h<0||h>=A.height?null:this.getImageData(A,u,h)},e.prototype.renderFrame=function(t,n){var i=this.image_,a=i.getExtent(),o=i.getResolution(),s=i.getPixelRatio(),A=t.layerStatesArray[t.layerIndex],l=t.pixelRatio,u=t.viewState,c=u.center,h=u.resolution,f=t.size,p=l*o/(h*s),v=Math.round(f[0]*l),m=Math.round(f[1]*l),g=u.rotation;if(g){var _=Math.round(Math.sqrt(v*v+m*m));v=_,m=_}$a(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,g,-v/2,-m/2),Kg(this.inversePixelTransform,this.pixelTransform);var E=FI(this.pixelTransform);this.useContainer(n,E,A.opacity,this.getBackground(t));var B=this.context,L=B.canvas;L.width!=v||L.height!=m?(L.width=v,L.height=m):this.containerReused||B.clearRect(0,0,v,m);var O=!1,b=!0;if(A.extent){var T=Lo(A.extent,u.projection);b=Mn(T,t.extent),O=b&&!Fo(T,t.extent),O&&this.clipUnrotated(B,t,T)}var I=i.getImage(),M=$a(this.tempTransform,v/2,m/2,p,p,0,s*(a[0]-c[0])/o,s*(c[1]-a[3])/o);this.renderedResolution=o*l/s;var x=I.width*M[0],S=I.height*M[3];if(this.getLayer().getSource().getInterpolate()||de(B,Lp),this.preRender(B,t),b&&x>=.5&&S>=.5){var N=M[4],P=M[5],X=A.opacity,z=void 0;X!==1&&(z=B.globalAlpha,B.globalAlpha=X),B.drawImage(I,0,0,+I.width,+I.height,Math.round(N),Math.round(P),Math.round(x),Math.round(S)),X!==1&&(B.globalAlpha=z)}return this.postRender(B,t),O&&B.restore(),de(B,b4),E!==L.style.transform&&(L.style.transform=E),this.container},e}(hF),kat=Gat,$at=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vat=function(r){$at(e,r);function e(t){return r.call(this,t)||this}return e.prototype.createRenderer=function(){return new kat(this)},e.prototype.getData=function(t){return r.prototype.getData.call(this,t)},e}(Qat),Y4=Vat;const jat={extends:Ih,name:"ol-image-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=new Y4(t);return he(t,()=>{n.setProperties(t)}),Ze(()=>{e.addLayer(n)}),ir(()=>{e.removeLayer(n)}),Mr("imageLayer",n),{imageLayer:n}}};function Kat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var fS=le(jat,[["render",Kat]]);const zat={extends:Ih,name:"ol-vector-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=hr(()=>new hA(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("vectorLayer",n),Mr("stylable",n),{vectorLayer:n}},props:{renderBuffer:{type:Number,default:100},updateWhileAnimating:{type:Boolean,default:!1},style:{type:Function},updateWhileInteracting:{type:Boolean,default:!1}}};function Yat(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var pS=le(zat,[["render",Yat]]),Xat=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wat=function(r){Xat(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.expireCache=function(t){for(;this.canExpireCache();){var n=this.peekLast();if(n.getKey()in t)break;this.pop().release()}},e.prototype.pruneExceptNewestZ=function(){if(this.getCount()!==0){var t=this.peekFirstKey(),n=mat(t),i=n[0];this.forEach(function(a){a.tileCoord[0]!==i&&(this.remove(Bg(a.tileCoord)),a.release())}.bind(this))}},e}(O4),X4=Wat,PC={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"},qat=[0,0,0],Xl=5,Zat=function(){function r(e){this.minZoom=e.minZoom!==void 0?e.minZoom:0,this.resolutions_=e.resolutions,_e(dY(this.resolutions_,function(o,s){return s-o},!0),17);var t;if(!e.origins){for(var n=0,i=this.resolutions_.length-1;n=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),s=Math.floor(s/2),a=pf(o,o,s,s,n)):a=this.getTileRangeForExtentAndZ(A,l,n),t(l,a))return!0;--l}return!1},r.prototype.getExtent=function(){return this.extent_},r.prototype.getMaxZoom=function(){return this.maxZoom},r.prototype.getMinZoom=function(){return this.minZoom},r.prototype.getOrigin=function(e){return this.origin_?this.origin_:this.origins_[e]},r.prototype.getResolution=function(e){return this.resolutions_[e]},r.prototype.getResolutions=function(){return this.resolutions_},r.prototype.getTileCoordChildTileRange=function(e,t,n){if(e[0]this.maxZoom||t0?n:Math.max(o/s[0],a/s[1]),l=i+1,u=new Array(l),c=0;ci.highWaterMark&&(i.highWaterMark=t)},e.prototype.useTile=function(t,n,i,a){},e}(ow),not=function(r){J4(e,r);function e(t,n){var i=r.call(this,t)||this;return i.tile=n,i}return e}(fo),t8=rot;function iot(r,e){var t=/\{z\}/g,n=/\{x\}/g,i=/\{y\}/g,a=/\{-y\}/g;return function(o,s,A){if(o)return r.replace(t,o[0].toString()).replace(n,o[1].toString()).replace(i,o[2].toString()).replace(a,function(){var l=o[0],u=e.getFullTileRange(l);_e(u,55);var c=u.getHeight()-o[2]-1;return c.toString()})}}function aot(r,e){for(var t=r.length,n=new Array(t),i=0;i>=1;return t.join("")}var dot='Terms of Use',vot=function(r){fot(e,r);function e(t){var n=this,i=t.hidpi!==void 0?t.hidpi:!1,a=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(a=t.interpolate),n=r.call(this,{cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:a,opaque:!0,projection:Oe("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:Da.LOADING,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:i?2:1,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,zDirection:t.zDirection})||this,n.hidpi_=i,n.culture_=t.culture!==void 0?t.culture:"en-us",n.maxZoom_=t.maxZoom!==void 0?t.maxZoom:-1,n.apiKey_=t.key,n.imagerySet_=t.imagerySet;var o="https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+n.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+n.apiKey_+"&c="+n.culture_;return hot(o,n.handleImageryMetadataResponse.bind(n),void 0,"jsonp"),n}return e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(t.statusCode!=200||t.statusDescription!="OK"||t.authenticationResultCode!="ValidCredentials"||t.resourceSets.length!=1||t.resourceSets[0].resources.length!=1){this.setState(Da.ERROR);return}var n=t.resourceSets[0].resources[0],i=this.maxZoom_==-1?n.zoomMax:this.maxZoom_,a=this.getProjection(),o=vw(a),s=this.hidpi_?2:1,A=n.imageWidth==n.imageHeight?n.imageWidth/s:[n.imageWidth/s,n.imageHeight/s],l=q4({extent:o,minZoom:n.zoomMin,maxZoom:i,tileSize:A});this.tileGrid=l;var u=this.culture_,c=this.hidpi_;if(this.tileUrlFunction=V_(n.imageUrlSubdomains.map(function(f){var p=[0,0,0],v=n.imageUrl.replace("{subdomain}",f).replace("{culture}",u);return function(m,g,_){if(m){Cg(m[0],m[1],m[2],p);var E=v;return c&&(E+="&dpi=d1&device=mobile"),E.replace("{quadkey}",pot(p))}else return}})),n.imageryProviders){var h=fh(Oe("EPSG:4326"),this.getProjection());this.setAttributions(function(f){var p=[],v=f.viewState,m=this.getTileGrid(),g=m.getZForResolution(v.resolution,this.zDirection),_=m.getTileCoordForCoordAndZ(v.center,g),E=_[0];return n.imageryProviders.map(function(B){for(var L=!1,O=B.coverageAreas,b=0,T=O.length;b=I.zoomMin&&E<=I.zoomMax){var M=I.bbox,x=[M[1],M[0],M[3],M[2]],S=MI(x,h);if(Mn(S,f.extent)){L=!0;break}}}L&&p.push(B.attribution)}),p.push(dot),p}.bind(this))}this.setState(Da.READY)},e}(gw),got=vot,yot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mot=function(r){yot(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a=n.projection!==void 0?n.projection:"EPSG:3857",o=n.tileGrid!==void 0?n.tileGrid:q4({extent:vw(a),maxResolution:n.maxResolution,maxZoom:n.maxZoom,minZoom:n.minZoom,tileSize:n.tileSize});return r.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,crossOrigin:n.crossOrigin,interpolate:i,opaque:n.opaque,projection:a,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileGrid:o,tileLoadFunction:n.tileLoadFunction,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:n.wrapX!==void 0?n.wrapX:!0,transition:n.transition,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this}return e}(gw),n8=mot,_ot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wot=function(r){_ot(e,r);function e(t){var n=r.call(this,{attributions:t.attributions,wrapX:t.wrapX})||this;return n.resolution=void 0,n.distance=t.distance!==void 0?t.distance:20,n.minDistance=t.minDistance||0,n.interpolationRatio=0,n.features=[],n.geometryFunction=t.geometryFunction||function(i){var a=i.getGeometry();return _e(a.getType()==st.POINT,10),a},n.createCustomCluster_=t.createCluster,n.source=null,n.boundRefresh_=n.refresh.bind(n),n.updateDistance(n.distance,n.minDistance),n.setSource(t.source||null),n}return e.prototype.clear=function(t){this.features.length=0,r.prototype.clear.call(this,t)},e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,n,i){this.source.loadFeatures(t,n,i),n!==this.resolution&&(this.resolution=n,this.refresh())},e.prototype.setDistance=function(t){this.updateDistance(t,this.minDistance)},e.prototype.setMinDistance=function(t){this.updateDistance(this.distance,t)},e.prototype.getMinDistance=function(){return this.minDistance},e.prototype.setSource=function(t){this.source&&this.source.removeEventListener(ye.CHANGE,this.boundRefresh_),this.source=t,t&&t.addEventListener(ye.CHANGE,this.boundRefresh_),this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features)},e.prototype.updateDistance=function(t,n){var i=t===0?0:Math.min(n,t)/t,a=t!==this.distance||this.interpolationRatio!==i;this.distance=t,this.minDistance=n,this.interpolationRatio=i,a&&this.refresh()},e.prototype.cluster=function(){if(!(this.resolution===void 0||!this.source))for(var t=_i(),n=this.distance*this.resolution,i=this.source.getFeatures(),a={},o=0,s=i.length;o=0;--a){var o=this.geometryFunction(t[a]);o?W6(i,o.getCoordinates()):t.splice(a,1)}q6(i,1/t.length);var s=Sa(n),A=this.interpolationRatio,l=new fr([i[0]*(1-A)+s[0]*A,i[1]*(1-A)+s[1]*A]);return this.createCustomCluster_?this.createCustomCluster_(l,t):new or({geometry:l,features:t})},e}(_l),i8=wot,Zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eot(r){if(r.__esModule)return r;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(t){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}),e}var wa=globalThis&&globalThis.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,a;n1,n=t&&r.imageInfo.profile[1].supports?r.imageInfo.profile[1].supports:[],i=t&&r.imageInfo.profile[1].formats?r.imageInfo.profile[1].formats:[],a=t&&r.imageInfo.profile[1].qualities?r.imageInfo.profile[1].qualities:[];return{url:r.imageInfo["@id"].replace(/\/?(?:info\.json)?$/g,""),sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(o){return[o.width,o.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(o){return o.width})[0],r.imageInfo.tiles.map(function(o){return o.height===void 0?o.width:o.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(o){return o.scaleFactors})[0],supports:wa(wa([],e.supports,!0),n,!0),formats:wa(wa([],e.formats,!0),i,!0),qualities:wa(wa([],e.qualities,!0),a,!0)}}function xot(r){var e=r.getComplianceLevelSupportedFeatures(),t=r.imageInfo.extraFormats===void 0?e.formats:wa(wa([],e.formats,!0),r.imageInfo.extraFormats,!0),n=r.imageInfo.preferredFormats!==void 0&&Array.isArray(r.imageInfo.preferredFormats)&&r.imageInfo.preferredFormats.length>0?r.imageInfo.preferredFormats.filter(function(i){return yi(["jpg","png","gif"],i)}).reduce(function(i,a){return i===void 0&&yi(t,a)?a:i},void 0):void 0;return{url:r.imageInfo.id,sizes:r.imageInfo.sizes===void 0?void 0:r.imageInfo.sizes.map(function(i){return[i.width,i.height]}),tileSize:r.imageInfo.tiles===void 0?void 0:[r.imageInfo.tiles.map(function(i){return i.width})[0],r.imageInfo.tiles.map(function(i){return i.height})[0]],resolutions:r.imageInfo.tiles===void 0?void 0:r.imageInfo.tiles.map(function(i){return i.scaleFactors})[0],supports:r.imageInfo.extraFeatures===void 0?e.supports:wa(wa([],e.supports,!0),r.imageInfo.extraFeatures,!0),formats:t,qualities:r.imageInfo.extraQualities===void 0?e.qualities:wa(wa([],e.qualities,!0),r.imageInfo.extraQualities,!0),preferredFormat:n}}var yw={};yw[Pa.VERSION1]=Tot;yw[Pa.VERSION2]=Sot;yw[Pa.VERSION3]=xot;var bot=function(){function r(e){this.setImageInfo(e)}return r.prototype.setImageInfo=function(e){typeof e=="string"?this.imageInfo=JSON.parse(e):this.imageInfo=e},r.prototype.getImageApiVersion=function(){if(this.imageInfo!==void 0){var e=this.imageInfo["@context"]||"ol-no-context";typeof e=="string"&&(e=[e]);for(var t=0;t0&&typeof this.imageInfo.profile[0]=="string"&&AN.test(this.imageInfo.profile[0]))return this.imageInfo.profile[0];break}},r.prototype.getComplianceLevelFromProfile=function(e){var t=this.getComplianceLevelEntryFromProfile(e);if(t!==void 0){var n=t.match(/level[0-2](?:\.json)?$/g);return Array.isArray(n)?n[0].replace(".json",""):void 0}},r.prototype.getComplianceLevelSupportedFeatures=function(){if(this.imageInfo!==void 0){var e=this.getImageApiVersion(),t=this.getComplianceLevelFromProfile(e);return t===void 0?gh.none.none:gh[e][t]}},r.prototype.getTileSourceOptions=function(e){var t=e||{},n=this.getImageApiVersion();if(n!==void 0){var i=n===void 0?void 0:yw[n](this);if(i!==void 0)return{url:i.url,version:n,size:[this.imageInfo.width,this.imageInfo.height],sizes:i.sizes,format:t.format!==void 0&&yi(i.formats,t.format)?t.format:i.preferredFormat!==void 0?i.preferredFormat:"jpg",supports:i.supports,quality:t.quality&&yi(i.qualities,t.quality)?t.quality:yi(i.qualities,"native")?"native":"default",resolutions:Array.isArray(i.resolutions)?i.resolutions.sort(function(a,o){return o-a}):void 0,tileSize:i.tileSize}}},r}(),Iot=bot,Fot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lot=function(r){Fot(e,r);function e(t,n,i,a,o,s,A){var l=this,u=t.getExtent(),c=n.getExtent(),h=c?Jo(i,c):i,f=Sa(h),p=wg(t,n,f,a),v=S4,m=new x4(t,n,h,u,p*v,a),g=m.calculateSourceExtent(),_=s(g,p,o),E=_?$e.IDLE:$e.EMPTY,B=_?_.getPixelRatio():1;return l=r.call(this,i,a,B,E)||this,l.targetProj_=n,l.maxSourceExtent_=u,l.triangulation_=m,l.targetResolution_=a,l.targetExtent_=i,l.sourceImage_=_,l.sourcePixelRatio_=B,l.interpolate_=A,l.canvas_=null,l.sourceListenerKey_=null,l}return e.prototype.disposeInternal=function(){this.state==$e.LOADING&&this.unlistenSource_(),r.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==$e.LOADED){var n=Fr(this.targetExtent_)/this.targetResolution_,i=Ai(this.targetExtent_)/this.targetResolution_;this.canvas_=I4(n,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0,void 0,this.interpolate_)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==$e.IDLE){this.state=$e.LOADING,this.changed();var t=this.sourceImage_.getState();t==$e.LOADED||t==$e.ERROR?this.reproject_():(this.sourceListenerKey_=Pe(this.sourceImage_,ye.CHANGE,function(n){var i=this.sourceImage_.getState();(i==$e.LOADED||i==$e.ERROR)&&(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){Rr(this.sourceListenerKey_),this.sourceListenerKey_=null},e}($Q),Oot=Lot,a8=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),UC={IMAGELOADSTART:"imageloadstart",IMAGELOADEND:"imageloadend",IMAGELOADERROR:"imageloaderror"},Rot=function(r){a8(e,r);function e(t,n){var i=r.call(this,t)||this;return i.image=n,i}return e}(fo),Mot=function(r){a8(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),n=r.call(this,{attributions:t.attributions,projection:t.projection,state:t.state,interpolate:i})||this,n.on,n.once,n.un,n.resolutions_=t.resolutions!==void 0?t.resolutions:null,n.reprojectedImage_=null,n.reprojectedRevision_=0,n}return e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var n=j1(this.resolutions_,t,0);t=this.resolutions_[n]}return t},e.prototype.getImage=function(t,n,i,a){var o=this.getProjection();if(!o||!a||Ws(o,a))return o&&(a=o),this.getImageInternal(t,n,i,a);if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&Ws(this.reprojectedImage_.getProjection(),a)&&this.reprojectedImage_.getResolution()==n&&AA(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new Oot(o,a,t,n,i,function(s,A,l){return this.getImageInternal(s,A,l,o)}.bind(this),this.getInterpolate()),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_},e.prototype.getImageInternal=function(t,n,i,a){return Be()},e.prototype.handleImageChange=function(t){var n=t.target,i;switch(n.getState()){case $e.LOADING:this.loading=!0,i=UC.IMAGELOADSTART;break;case $e.LOADED:this.loading=!1,i=UC.IMAGELOADEND;break;case $e.ERROR:this.loading=!1,i=UC.IMAGELOADERROR;break;default:return}this.hasListener(i)&&this.dispatchEvent(new Rot(i,n))},e}(ow);function o8(r,e){r.getImage().src=e}var s8=Mot;function Op(r,e){var t=[];Object.keys(e).forEach(function(i){e[i]!==null&&e[i]!==void 0&&t.push(i+"="+encodeURIComponent(e[i]))});var n=t.join("&");return r=r.replace(/[?&]$/,""),r=r.indexOf("?")===-1?r+"?":r+"&",r+n}var Not=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Pot=function(r){Not(e,r);function e(t){var n=this,i=t.crossOrigin!==void 0?t.crossOrigin:null,a=t.imageLoadFunction!==void 0?t.imageLoadFunction:o8,o=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(o=t.interpolate),n=r.call(this,{attributions:t.attributions,interpolate:o,projection:Oe(t.projection)})||this,n.url_=t.url,n.imageExtent_=t.imageExtent,n.image_=new VQ(n.imageExtent_,void 0,1,n.url_,i,a),n.imageSize_=t.imageSize?t.imageSize:null,n.image_.addEventListener(ye.CHANGE,n.handleImageChange.bind(n)),n}return e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,n,i,a){return Mn(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(t){if(this.image_.getState()==$e.LOADED){var n=this.image_.getExtent(),i=this.image_.getImage(),a=void 0,o=void 0;this.imageSize_?(a=this.imageSize_[0],o=this.imageSize_[1]):(a=i.width,o=i.height);var s=Fr(n),A=Ai(n),l=s/a,u=A/o,c=a,h=o;if(l>u?c=Math.round(s/u):h=Math.round(A/l),c!==a||h!==o){var f=ja(c,h);this.getInterpolate()||de(f,Lp);var p=f.canvas;f.drawImage(i,0,0,a,o,0,0,p.width,p.height),this.image_.setImage(p)}}r.prototype.handleImageChange.call(this,t)},e}(s8),Uot=Pot,hu="1.3.0",fu={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},Dot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wl=4,lN=[101,101],Qot=function(r){Dot(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;return i.interpolate!==void 0&&(a=i.interpolate),n=r.call(this,{attributions:i.attributions,interpolate:a,projection:i.projection,resolutions:i.resolutions})||this,n.crossOrigin_=i.crossOrigin!==void 0?i.crossOrigin:null,n.url_=i.url,n.imageLoadFunction_=i.imageLoadFunction!==void 0?i.imageLoadFunction:o8,n.params_=i.params||{},n.v13_=!0,n.updateV13_(),n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.image_=null,n.imageSize_=[0,0],n.renderedRevision_=0,n.ratio_=i.ratio!==void 0?i.ratio:1.5,n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){if(this.url_!==void 0){var o=Oe(i),s=this.getProjection();s&&s!==o&&(n=wg(s,o,t,n),t=Qu(t,o,s));var A=Xc(t,n,0,lN),l={SERVICE:"WMS",VERSION:hu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};de(l,this.params_,a);var u=$f((t[0]-A[0])/n,Wl),c=$f((A[3]-t[1])/n,Wl);return l[this.v13_?"I":"X"]=u,l[this.v13_?"J":"Y"]=c,this.getRequestUrl_(A,lN,1,s||o,l)}},e.prototype.getLegendUrl=function(t,n){if(this.url_!==void 0){var i={SERVICE:"WMS",VERSION:hu,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return de(i,n),Op(this.url_,i)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,n,i,a){if(this.url_===void 0)return null;n=this.findNearestResolution(n),i!=1&&(!this.hidpi_||this.serverType_===void 0)&&(i=1);var o=n/i,s=Sa(t),A=lu(Fr(t)/o,Wl),l=lu(Ai(t)/o,Wl),u=Xc(s,o,0,[A,l]),c=lu(this.ratio_*Fr(t)/o,Wl),h=lu(this.ratio_*Ai(t)/o,Wl),f=Xc(s,o,0,[c,h]),p=this.image_;if(p&&this.renderedRevision_==this.getRevision()&&p.getResolution()==n&&p.getPixelRatio()==i&&Fo(p.getExtent(),u))return p;var v={SERVICE:"WMS",VERSION:hu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};de(v,this.params_),this.imageSize_[0]=YR(Fr(f)/o,Wl),this.imageSize_[1]=YR(Ai(f)/o,Wl);var m=this.getRequestUrl_(f,this.imageSize_,i,a,v);return this.image_=new VQ(f,n,i,m,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),this.image_.addEventListener(ye.CHANGE,this.handleImageChange.bind(this)),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,n,i,a,o){if(_e(this.url_!==void 0,9),o[this.v13_?"CRS":"SRS"]=a.getCode(),"STYLES"in this.params_||(o.STYLES=""),i!=1)switch(this.serverType_){case fu.GEOSERVER:var s=90*i+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+s:o.FORMAT_OPTIONS="dpi:"+s;break;case fu.MAPSERVER:o.MAP_RESOLUTION=90*i;break;case fu.CARMENTA_SERVER:case fu.QGIS:o.DPI=90*i;break;default:_e(!1,8);break}o.WIDTH=n[0],o.HEIGHT=n[1];var A=a.getAxisOrientation(),l;return this.v13_&&A.substr(0,2)=="ne"?l=[t[1],t[0],t[3],t[2]]:l=t,o.BBOX=l.join(","),Op(this.url_,o)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){de(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||hu;this.v13_=X6(t,"1.3")>=0},e}(s8),Hot=Qot,Got=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kot='© OpenStreetMap contributors.',$ot=function(r){Got(e,r);function e(t){var n=t||{},i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;n.interpolate!==void 0&&(i=n.interpolate);var a;n.attributions!==void 0?a=n.attributions:a=[kot];var o=n.crossOrigin!==void 0?n.crossOrigin:"anonymous",s=n.url!==void 0?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";return r.call(this,{attributions:a,attributionsCollapsible:!1,cacheSize:n.cacheSize,crossOrigin:o,interpolate:i,maxZoom:n.maxZoom!==void 0?n.maxZoom:19,opaque:n.opaque!==void 0?n.opaque:!0,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,transition:n.transition,url:s,wrapX:n.wrapX,zDirection:n.zDirection})||this}return e}(n8),Vot=$ot,jot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kot=function(r){jot(e,r);function e(t){var n=this,i=t||{},a=i.imageSmoothing!==void 0?i.imageSmoothing:!0;i.interpolate!==void 0&&(a=i.interpolate);var o=i.params||{},s="TRANSPARENT"in o?o.TRANSPARENT:!0;return n=r.call(this,{attributions:i.attributions,attributionsCollapsible:i.attributionsCollapsible,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,interpolate:a,opaque:!s,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,url:i.url,urls:i.urls,wrapX:i.wrapX!==void 0?i.wrapX:!0,transition:i.transition,zDirection:i.zDirection})||this,n.gutter_=i.gutter!==void 0?i.gutter:0,n.params_=o,n.v13_=!0,n.serverType_=i.serverType,n.hidpi_=i.hidpi!==void 0?i.hidpi:!0,n.tmpExtent_=_i(),n.updateV13_(),n.setKey(n.getKeyForParams_()),n}return e.prototype.getFeatureInfoUrl=function(t,n,i,a){var o=Oe(i),s=this.getProjection(),A=this.getTileGrid();A||(A=this.getTileGridForProjection(o));var l=A.getZForResolution(n,this.zDirection),u=A.getTileCoordForCoordAndZ(t,l);if(!(A.getResolutions().length<=u[0])){var c=A.getResolution(u[0]),h=A.getTileCoordExtent(u,this.tmpExtent_),f=Pi(A.getTileSize(u[0]),this.tmpSize),p=this.gutter_;p!==0&&(f=pM(f,p,this.tmpSize),h=Va(h,c*p,h)),s&&s!==o&&(c=wg(s,o,t,c),h=S_(h,o,s),t=Qu(t,o,s));var v={SERVICE:"WMS",VERSION:hu,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};de(v,this.params_,a);var m=Math.floor((t[0]-h[0])/c),g=Math.floor((h[3]-t[1])/c);return v[this.v13_?"I":"X"]=m,v[this.v13_?"J":"Y"]=g,this.getRequestUrl_(u,f,h,1,s||o,v)}},e.prototype.getLegendUrl=function(t,n){if(this.urls[0]!==void 0){var i={SERVICE:"WMS",VERSION:hu,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(n===void 0||n.LAYER===void 0){var a=this.params_.LAYERS,o=!Array.isArray(a)||a.length===1;if(!o)return;i.LAYER=a}if(t!==void 0){var s=this.getProjection()?this.getProjection().getMetersPerUnit():1,A=28e-5;i.SCALE=t*s/A}return de(i,n),Op(this.urls[0],i)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,n,i,a,o,s){var A=this.urls;if(A){if(s.WIDTH=n[0],s.HEIGHT=n[1],s[this.v13_?"CRS":"SRS"]=o.getCode(),"STYLES"in this.params_||(s.STYLES=""),a!=1)switch(this.serverType_){case fu.GEOSERVER:var l=90*a+.5|0;"FORMAT_OPTIONS"in s?s.FORMAT_OPTIONS+=";dpi:"+l:s.FORMAT_OPTIONS="dpi:"+l;break;case fu.MAPSERVER:s.MAP_RESOLUTION=90*a;break;case fu.CARMENTA_SERVER:case fu.QGIS:s.DPI=90*a;break;default:_e(!1,52);break}var u=o.getAxisOrientation(),c=i;if(this.v13_&&u.substr(0,2)=="ne"){var h=void 0;h=i[0],c[0]=i[1],c[1]=h,h=i[2],c[2]=i[3],c[3]=h}s.BBOX=c.join(",");var f;if(A.length==1)f=A[0];else{var p=Bu(Q4(t),A.length);f=A[p]}return Op(f,s)}},e.prototype.getTilePixelRatio=function(t){return!this.hidpi_||this.serverType_===void 0?1:t},e.prototype.getKeyForParams_=function(){var t=0,n=[];for(var i in this.params_)n[t++]=i+"-"+this.params_[i];return n.join("/")},e.prototype.updateParams=function(t){de(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||hu;this.v13_=X6(t,"1.3")>=0},e.prototype.tileUrlFunction=function(t,n,i){var a=this.getTileGrid();if(a||(a=this.getTileGridForProjection(i)),!(a.getResolutions().length<=t[0])){n!=1&&(!this.hidpi_||this.serverType_===void 0)&&(n=1);var o=a.getResolution(t[0]),s=a.getTileCoordExtent(t,this.tmpExtent_),A=Pi(a.getTileSize(t[0]),this.tmpSize),l=this.gutter_;l!==0&&(A=pM(A,l,this.tmpSize),s=Va(s,o*l,s)),n!=1&&(A=_Q(A,n,this.tmpSize));var u={SERVICE:"WMS",VERSION:hu,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return de(u,this.params_),this.getRequestUrl_(t,A,s,n,i,u)}},e}(gw),zot=Kot,Pm={KVP:"KVP",REST:"REST"},Yot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xot=function(r){Yot(e,r);function e(t){var n=r.call(this,{extent:t.extent,origin:t.origin,origins:t.origins,resolutions:t.resolutions,tileSize:t.tileSize,tileSizes:t.tileSizes,sizes:t.sizes})||this;return n.matrixIds_=t.matrixIds,n}return e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(FF),dS=Xot,Wot=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qot=function(r){Wot(e,r);function e(t){var n=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;t.interpolate!==void 0&&(i=t.interpolate);var a=t.requestEncoding!==void 0?t.requestEncoding:Pm.KVP,o=t.tileGrid,s=t.urls;return s===void 0&&t.url!==void 0&&(s=e8(t.url)),n=r.call(this,{attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:i,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:o,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:s,wrapX:t.wrapX!==void 0?t.wrapX:!1,transition:t.transition,zDirection:t.zDirection})||this,n.version_=t.version!==void 0?t.version:"1.0.0",n.format_=t.format!==void 0?t.format:"image/jpeg",n.dimensions_=t.dimensions!==void 0?t.dimensions:{},n.layer_=t.layer,n.matrixSet_=t.matrixSet,n.style_=t.style,n.requestEncoding_=a,n.setKey(n.getKeyForDimensions_()),s&&s.length>0&&(n.tileUrlFunction=V_(s.map(n.createFromWMTSTemplate.bind(n)))),n}return e.prototype.setUrls=function(t){this.urls=t;var n=t.join(` +`);this.setTileUrlFunction(V_(t.map(this.createFromWMTSTemplate.bind(this))),n)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,n=[];for(var i in this.dimensions_)n[t++]=i+"-"+this.dimensions_[i];return n.join("/")},e.prototype.updateDimensions=function(t){de(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e.prototype.createFromWMTSTemplate=function(t){var n=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};n==Pm.KVP&&de(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=n==Pm.KVP?Op(t,i):t.replace(/\{(\w+?)\}/g,function(s,A){return A.toLowerCase()in i?i[A.toLowerCase()]:s});var a=this.tileGrid,o=this.dimensions_;return function(s,A,l){if(s){var u={TileMatrix:a.getMatrixId(s[0]),TileCol:s[1],TileRow:s[2]};de(u,o);var c=t;return n==Pm.KVP?c=Op(c,u):c=c.replace(/\{(\w+?)\}/g,function(h,f){return u[f]}),c}else return}},e}(gw),A8=qot;window.ol&&!ol.ext&&(ol.ext={});var Cr=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r};window.ol&&(ol.inherits||(ol.inherits=Cr));window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);window.Element&&!Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});function mw(r){const e=r.frameState,t=kp(r.inversePixelTransform.slice(),e.coordinateToPixelTransform);return new fF(r.context,e.pixelRatio,e.extent,t,e.viewState.rotation)}window.ol&&(ol.util?ol.util.VERSION||(ol.util.VERSION=ol.VERSION||"6.1.0"):ol.util={VERSION:ol.VERSION||"5.3.0"});var G0=L6.split(".");G0=parseInt(G0[0])*100+parseInt(G0[1]);var vS=function(r,e){var t=r.frameState.pixelRatio;if(G0>605&&t!==1&&e.getImage()instanceof ny){e=e.clone();var n=e.getImage();n.setScale(n.getScale()*t);var i=n.getAnchor();if(n.setDisplacement){var a=n.getDisplacement();a&&(a[0]-=i[0]/t,a[1]+=i[1]/t,n.setAnchor([0,0]))}else i&&(i[0]/=t,i[1]/=t)}return e},Fh=function(r){var e=r||{};hA.call(this,e),this.oldcluster=new _l,this.clusters=[],this.animation={start:!1},this.set("animationDuration",typeof e.animationDuration=="number"?e.animationDuration:700),this.set("animationMethod",e.animationMethod||ts),this.getSource().on("change",this.saveCluster.bind(this)),this.on(["precompose","prerender"],this.animate.bind(this)),this.on(["postcompose","postrender"],this.postanimate.bind(this))};Cr(Fh,hA);Fh.prototype.saveCluster=function(){if(this.oldcluster){if(this.oldcluster.clear(),!this.get("animationDuration"))return;var r=this.getSource().getFeatures();r.length&&r[0].get("features")&&(this.oldcluster.addFeatures(this.clusters),this.clusters=r.slice(0),this.sourceChanged=!0)}};Fh.prototype.getClusterForFeature=function(r,e){for(var t=0,n;n=e[t];t++){var i=n.get("features");if(i&&i.length){for(var a=0,o;o=i[a];a++)if(r===o)return n}}return!1};Fh.prototype.stopAnimation=function(){this.animation.start=!1,this.animation.cA=[],this.animation.cB=[]};Fh.prototype.animate=function(r){var e=this.get("animationDuration");if(e){var t=r.frameState.viewState.resolution,n,i,a=this.animation,o=r.frameState.time;if(a.resolution!=t&&this.sourceChanged){var s=r.frameState.extent;for(a.resolution1e3){this.stopAnimation();return}o=a.start=new Date().getTime()}if(a.start){var u=r.vectorContext||mw(r),c=(o-a.start)/e;c>1&&(this.stopAnimation(),c=1),c=this.get("animationMethod")(c);var h=this.getStyle(),f=typeof h=="function"?h:h.length?function(){return h}:function(){return[h]};for(r.context.save(),r.context.globalAlpha=this.getOpacity(),n=0,l;l=a.clusters[n];n++){var p=l.f.getGeometry().getCoordinates(),v=p[0]-l.pt[0],m=p[1]-l.pt[1];a.revers?(p[0]=l.pt[0]+c*v,p[1]=l.pt[1]+c*m):(p[0]=p[0]-c*v,p[1]=p[1]-c*m);var g=f(l.f,t,!0);if(g.length||(g=[g]),l.f.get("features").length===1&&!v&&!m)A=l.f.get("features")[0];else{var _=new fr(p);A=new or(_)}for(var E=0,B;B=g[E];E++)if(B.getText()&&/\n/.test(B.getText().getText())){var L=B.getText().getOffsetX(),O=B.getText().getOffsetY(),b=B.getText().getRotation()||0,T=Number((B.getText().getFont()||"10px").match(/\d+/))*1.2,I=B.getText().getText().split(` +`),M,x=I.length-1,S=B.clone();I.forEach(function(N,P){switch(P==1&&(S.setImage(),S.setFill(),S.setStroke()),B.getText().getTextBaseline()){case"alphabetic":case"ideographic":case"bottom":{M=x;break}case"hanging":case"top":{M=0;break}default:{M=x/2;break}}S.getText().setOffsetX(L-Math.sin(b)*T*(P-M)),S.getText().setOffsetY(O+Math.cos(b)*T*(P-M)),S.getText().setText(N),u.drawFeature(A,vS(r,S))})}else u.drawFeature(A,vS(r,B))}r.context.restore(),r.frameState.animate=!0,r.context.save(),r.context.beginPath(),r.context.rect(0,0,0,0),r.context.clip(),this.clip_=!0}}};Fh.prototype.postanimate=function(r){this.clip_&&(r.context.restore(),this.clip_=!1)};const Zot={extends:Ih,name:"ol-animated-clusterlayer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=hr(()=>new Fh(Os(Un({},t),{source:new i8({distance:t.distance,geometryFunction:o=>o.getGeometry()})}))),i=hr(()=>n.value.getSource());return he(t,()=>{n.value.setProperties(t),n.value.changed()}),Ze(()=>{e.addLayer(n.value),n.value.changed(),e.changed()}),ir(()=>{e.removeLayer(n.value)}),Mr("vectorLayer",i),Mr("stylable",n),{vectorLayer:n,map:e}},props:{animationDuration:{type:Number,default:700},distance:{type:Number,default:20},animationMethod:{type:Function,default:ts},updateWhileAnimating:{type:Boolean,default:!1},updateWhileInteracting:{type:Boolean,default:!1}}};function Jot(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var gS=le(Zot,[["render",Jot]]),Gs=new Uint8Array(4),tst=function(){function r(e,t){this.helper_=e;var n=e.getGL();this.texture_=n.createTexture(),this.framebuffer_=n.createFramebuffer(),this.size_=t||[1,1],this.data_=new Uint8Array(0),this.dataCacheDirty_=!0,this.updateSize_()}return r.prototype.setSize=function(e){yl(e,this.size_)||(this.size_[0]=e[0],this.size_[1]=e[1],this.updateSize_())},r.prototype.getSize=function(){return this.size_},r.prototype.clearCachedData=function(){this.dataCacheDirty_=!0},r.prototype.readAll=function(){if(this.dataCacheDirty_){var e=this.size_,t=this.helper_.getGL();t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.readPixels(0,0,e[0],e[1],t.RGBA,t.UNSIGNED_BYTE,this.data_),this.dataCacheDirty_=!1}return this.data_},r.prototype.readPixel=function(e,t){if(e<0||t<0||e>this.size_[0]||t>=this.size_[1])return Gs[0]=0,Gs[1]=0,Gs[2]=0,Gs[3]=0,Gs;this.readAll();var n=Math.floor(e)+(this.size_[1]-Math.floor(t)-1)*this.size_[0];return Gs[0]=this.data_[n*4],Gs[1]=this.data_[n*4+1],Gs[2]=this.data_[n*4+2],Gs[3]=this.data_[n*4+3],Gs},r.prototype.getTexture=function(){return this.texture_},r.prototype.getFramebuffer=function(){return this.framebuffer_},r.prototype.updateSize_=function(){var e=this.size_,t=this.helper_.getGL();this.texture_=this.helper_.createTexture(e,null,this.texture_),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer_),t.viewport(0,0,e[0],e[1]),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture_,0),this.data_=new Uint8Array(e[0]*e[1]*4)},r}(),est=tst;function rst(){var r='var e="function"==typeof Object.assign?Object.assign:function(e,n){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,o=arguments.length;r"u"?"data:application/javascript;base64,"+Buffer.from(r,"binary").toString("base64"):URL.createObjectURL(new Blob([r],{type:"application/javascript"})))}var nst=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ist=function(r){nst(e,r);function e(t,n){var i=this,a=n.uniforms||{},o=oi();a[Pf.PROJECTION_MATRIX]=o,i=r.call(this,t,{uniforms:a,postProcesses:n.postProcesses})||this,i.ready=!1,i.sourceRevision_=-1,i.verticesBuffer_=new Hv(Eg,D0),i.hitVerticesBuffer_=new Hv(Eg,D0),i.indicesBuffer_=new Hv(hw,D0),i.vertexShader_=n.vertexShader,i.fragmentShader_=n.fragmentShader,i.program_,i.hitDetectionEnabled_=!!(n.hitFragmentShader&&n.hitVertexShader),i.hitVertexShader_=n.hitVertexShader,i.hitFragmentShader_=n.hitFragmentShader,i.hitProgram_;var s=n.attributes?n.attributes.map(function(l){return{name:"a_"+l.name,size:1,type:Yo.FLOAT}}):[];i.attributes=[{name:"a_position",size:2,type:Yo.FLOAT},{name:"a_index",size:1,type:Yo.FLOAT}].concat(s),i.hitDetectionAttributes=[{name:"a_position",size:2,type:Yo.FLOAT},{name:"a_index",size:1,type:Yo.FLOAT},{name:"a_hitColor",size:4,type:Yo.FLOAT},{name:"a_featureUid",size:1,type:Yo.FLOAT}].concat(s),i.customAttributes=n.attributes?n.attributes:[],i.previousExtent_=_i(),i.currentTransform_=o,i.renderTransform_=oi(),i.invertRenderTransform_=oi(),i.renderInstructions_=new Float32Array(0),i.hitRenderInstructions_=new Float32Array(0),i.hitRenderTarget_,i.generateBuffersRun_=0,i.worker_=rst(),i.worker_.addEventListener("message",function(l){var u=l.data;if(u.type===OC.GENERATE_BUFFERS){var c=u.projectionTransform;u.hitDetection?(this.hitVerticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.hitVerticesBuffer_)):(this.verticesBuffer_.fromArrayBuffer(u.vertexBuffer),this.helper.flushBufferData(this.verticesBuffer_)),this.indicesBuffer_.fromArrayBuffer(u.indexBuffer),this.helper.flushBufferData(this.indicesBuffer_),this.renderTransform_=c,Kg(this.invertRenderTransform_,this.renderTransform_),u.hitDetection?this.hitRenderInstructions_=new Float32Array(l.data.renderInstructions):(this.renderInstructions_=new Float32Array(l.data.renderInstructions),u.generateBuffersRun===this.generateBuffersRun_&&(this.ready=!0)),this.getLayer().changed()}}.bind(i)),i.featureCache_={},i.featureCount_=0;var A=i.getLayer().getSource();return i.sourceListenKeys_=[Pe(A,Oi.ADDFEATURE,i.handleSourceFeatureAdded_,i),Pe(A,Oi.CHANGEFEATURE,i.handleSourceFeatureChanged_,i),Pe(A,Oi.REMOVEFEATURE,i.handleSourceFeatureDelete_,i),Pe(A,Oi.CLEAR,i.handleSourceFeatureClear_,i)],A.forEachFeature(function(l){this.featureCache_[pe(l)]={feature:l,properties:l.getProperties(),geometry:l.getGeometry()},this.featureCount_++}.bind(i)),i}return e.prototype.afterHelperCreated=function(){this.program_=this.helper.getProgram(this.fragmentShader_,this.vertexShader_),this.hitDetectionEnabled_&&(this.hitProgram_=this.helper.getProgram(this.hitFragmentShader_,this.hitVertexShader_),this.hitRenderTarget_=new est(this.helper))},e.prototype.handleSourceFeatureAdded_=function(t){var n=t.feature;this.featureCache_[pe(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()},this.featureCount_++},e.prototype.handleSourceFeatureChanged_=function(t){var n=t.feature;this.featureCache_[pe(n)]={feature:n,properties:n.getProperties(),geometry:n.getGeometry()}},e.prototype.handleSourceFeatureDelete_=function(t){var n=t.feature;delete this.featureCache_[pe(n)],this.featureCount_--},e.prototype.handleSourceFeatureClear_=function(){this.featureCache_={},this.featureCount_=0},e.prototype.renderFrame=function(t){var n=this.helper.getGL();this.preRender(n,t);var i=this.indicesBuffer_.getSize();this.helper.drawElements(0,i),this.helper.finalizeDraw(t,this.dispatchPreComposeEvent,this.dispatchPostComposeEvent);var a=this.helper.getCanvas();return this.hitDetectionEnabled_&&(this.renderHitDetection(t),this.hitRenderTarget_.clearCachedData()),this.postRender(n,t),a},e.prototype.prepareFrameInternal=function(t){var n=this.getLayer(),i=n.getSource(),a=t.viewState,o=!t.viewHints[gn.ANIMATING]&&!t.viewHints[gn.INTERACTING],s=!AA(this.previousExtent_,t.extent),A=this.sourceRevision_new Ast(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("webglPointsLayer",n),{webglPointsLayer:n}},props:{disableHitDetection:{type:Boolean,default:!1},style:{type:Object,default:()=>({symbol:{symbolType:"circle",size:8,color:"#33AAFF",opacity:.9}})}}};function ust(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var yS=le(lst,[["render",ust]]),cst=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ps={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},hst=["#00f","#0ff","#0f0","#ff0","#f00"],fst=function(r){cst(e,r);function e(t){var n=this,i=t||{},a=de({},i);delete a.gradient,delete a.radius,delete a.blur,delete a.weight,n=r.call(this,a)||this,n.gradient_=null,n.addChangeListener(ps.GRADIENT,n.handleGradientChanged_),n.setGradient(i.gradient?i.gradient:hst),n.setBlur(i.blur!==void 0?i.blur:15),n.setRadius(i.radius!==void 0?i.radius:8);var o=i.weight?i.weight:"weight";return typeof o=="string"?n.weightFunction_=function(s){return s.get(o)}:n.weightFunction_=o,n.setRenderOrder(null),n}return e.prototype.getBlur=function(){return this.get(ps.BLUR)},e.prototype.getGradient=function(){return this.get(ps.GRADIENT)},e.prototype.getRadius=function(){return this.get(ps.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=pst(this.getGradient())},e.prototype.setBlur=function(t){this.set(ps.BLUR,t)},e.prototype.setGradient=function(t){this.set(ps.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(ps.RADIUS,t)},e.prototype.createRenderer=function(){return new A8(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var n=this.weightFunction_(t);return n!==void 0?xn(n,0,1):1}.bind(this)}],vertexShader:` +}`)},r}();function ost(r){var e=r.symbol,t=e.size!==void 0?e.size:1,n=e.color||"white",i=e.textureCoord||[0,0,1,1],a=e.offset||[0,0],o=e.opacity!==void 0?e.opacity:1,s=e.rotation!==void 0?e.rotation:0,A={inFragmentShader:!1,variables:[],attributes:[],stringLiteralsMap:{},functions:{}},l=Ae(A,t,Jt.NUMBER_ARRAY|Jt.NUMBER),u=Ae(A,a,Jt.NUMBER_ARRAY),c=Ae(A,i,Jt.NUMBER_ARRAY),h=Ae(A,s,Jt.NUMBER),f={inFragmentShader:!0,variables:A.variables,attributes:[],stringLiteralsMap:A.stringLiteralsMap,functions:{}},p=Ae(f,n,Jt.COLOR),v=Ae(f,o,Jt.NUMBER),m="1.0",g="vec2(".concat(Ae(f,t,Jt.NUMBER_ARRAY|Jt.NUMBER),").x");switch(e.symbolType){case"square":break;case"image":break;case"circle":m="(1.0-smoothstep(1.-4./".concat(g,",1.,dot(v_quadCoord-.5,v_quadCoord-.5)*4.))");break;case"triangle":var _="(v_quadCoord*2.-1.)",E="(atan(".concat(_,".x,").concat(_,".y))");m="(1.0-smoothstep(.5-3./".concat(g,",.5,cos(floor(.5+").concat(E,"/2.094395102)*2.094395102-").concat(E,")*length(").concat(_,")))");break;default:throw new Error("Unexpected symbol type: "+e.symbolType)}var B=new ast().setSizeExpression("vec2(".concat(l,")")).setRotationExpression(h).setSymbolOffsetExpression(u).setTextureCoordinateExpression(c).setSymbolRotateWithView(!!e.rotateWithView).setColorExpression("vec4(".concat(p,".rgb, ").concat(p,".a * ").concat(v," * ").concat(m,")"));if(r.filter){var L=Ae(f,r.filter,Jt.BOOLEAN);B.setFragmentDiscardExpression("!".concat(L))}var O={};if(f.variables.forEach(function(T){var I=IF(T);B.addUniform("float ".concat(I)),O[I]=function(){if(!r.variables||r.variables[T]===void 0)throw new Error("The following variable is missing from the style: ".concat(T));var M=r.variables[T];return typeof M=="string"&&(M=$_(A,M)),M!==void 0?M:-9999999}}),e.symbolType==="image"&&e.src){var b=new Image;b.crossOrigin=e.crossOrigin===void 0?"anonymous":e.crossOrigin,b.src=e.src,B.addUniform("sampler2D u_texture").setColorExpression(B.getColorExpression()+" * texture2D(u_texture, v_texCoord)"),O.u_texture=b}return f.attributes.forEach(function(T){A.attributes.indexOf(T)===-1&&A.attributes.push(T),B.addVarying("v_".concat(T),"float","a_".concat(T))}),A.attributes.forEach(function(T){B.addAttribute("float a_".concat(T))}),{builder:B,attributes:A.attributes.map(function(T){return{name:T,callback:function(I,M){var x=M[T];return typeof x=="string"&&(x=$_(A,x)),x!==void 0?x:-9999999}}}),uniforms:O}}var sst=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ast=function(r){sst(e,r);function e(t){var n=this,i=de({},t);return n=r.call(this,i)||this,n.parseResult_=ost(t.style),n.styleVariables_=t.style.variables||{},n.hitDetectionDisabled_=!!t.disableHitDetection,n}return e.prototype.createRenderer=function(){return new l8(this,{vertexShader:this.parseResult_.builder.getSymbolVertexShader(),fragmentShader:this.parseResult_.builder.getSymbolFragmentShader(),hitVertexShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolVertexShader(!0),hitFragmentShader:!this.hitDetectionDisabled_&&this.parseResult_.builder.getSymbolFragmentShader(!0),uniforms:this.parseResult_.uniforms,attributes:this.parseResult_.attributes})},e.prototype.updateStyleVariables=function(t){de(this.styleVariables_,t),this.changed()},e}(Sh),lst=Ast;const ust={extends:Ih,name:"ol-webglpoints-layer",setup(r){const e=Ce("map"),{properties:t}=vr(r),n=hr(()=>new lst(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("webglPointsLayer",n),{webglPointsLayer:n}},props:{disableHitDetection:{type:Boolean,default:!1},style:{type:Object,default:()=>({symbol:{symbolType:"circle",size:8,color:"#33AAFF",opacity:.9}})}}};function cst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var yS=le(ust,[["render",cst]]),hst=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ps={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},fst=["#00f","#0ff","#0f0","#ff0","#f00"],pst=function(r){hst(e,r);function e(t){var n=this,i=t||{},a=de({},i);delete a.gradient,delete a.radius,delete a.blur,delete a.weight,n=r.call(this,a)||this,n.gradient_=null,n.addChangeListener(ps.GRADIENT,n.handleGradientChanged_),n.setGradient(i.gradient?i.gradient:fst),n.setBlur(i.blur!==void 0?i.blur:15),n.setRadius(i.radius!==void 0?i.radius:8);var o=i.weight?i.weight:"weight";return typeof o=="string"?n.weightFunction_=function(s){return s.get(o)}:n.weightFunction_=o,n.setRenderOrder(null),n}return e.prototype.getBlur=function(){return this.get(ps.BLUR)},e.prototype.getGradient=function(){return this.get(ps.GRADIENT)},e.prototype.getRadius=function(){return this.get(ps.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=dst(this.getGradient())},e.prototype.setBlur=function(t){this.set(ps.BLUR,t)},e.prototype.setGradient=function(t){this.set(ps.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(ps.RADIUS,t)},e.prototype.createRenderer=function(){return new l8(this,{className:this.getClassName(),attributes:[{name:"weight",callback:function(t){var n=this.weightFunction_(t);return n!==void 0?xn(n,0,1):1}.bind(this)}],vertexShader:` precision mediump float; uniform mat4 u_projectionMatrix; uniform mat4 u_offsetScaleMatrix; @@ -697,13 +697,13 @@ void main(void) { gl_FragColor.a = color.a * u_opacity; gl_FragColor.rgb = texture2D(u_gradientTexture, vec2(0.5, color.a)).rgb; gl_FragColor.rgb *= gl_FragColor.a; - }`,uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(aw);function pst(r){for(var e=1,t=256,n=ja(e,t),i=n.createLinearGradient(0,0,e,t),a=1/(r.length-1),o=0,s=r.length;onew l8(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("heatmapLayer",n),Mr("stylable",n),{heatmapLayer:n}},props:{weight:{type:Function},extent:{type:Array},blur:{type:Number},radius:{type:Number}}};function vst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var mS=le(dst,[["render",vst]]);function j_(r){j_.installed||(j_.installed=!0,r.component(cS.name,cS),r.component(hS.name,hS),r.component(fS.name,fS),r.component(pS.name,pS),r.component(gS.name,gS),r.component(yS.name,yS),r.component(mS.name,mS))}var gst=Object.freeze(Object.defineProperty({__proto__:null,default:j_,install:j_,TileLayer:cS,WebGLTileLayer:hS,ImageLayer:fS,VectorLayer:pS,AnimatedClusterLayer:gS,WebglPointsLayer:yS,HeatmapLayer:mS},Symbol.toStringTag,{value:"Module"}));const yst={name:"ol-source-xyz",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new r8(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:[String,Array]},url:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},opaque:{type:Boolean},projection:{type:String,default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tileSize:{type:Array,default:()=>[256,256]},tilePixelRatio:{type:Number,default:1},tileKey:{type:String},transition:{type:Number},tileGrid:{type:Object}}};function mst(r,e,t,n,i,a){return dr("",!0)}var _S=le(yst,[["render",mst]]);const _st={name:"ol-source-osm",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new $ot(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String,default:"anonymous"},imageSmoothing:{type:Boolean,default:!0},minZoom:{type:Number,default:0},maxZoom:{type:Number,default:19},opaque:{type:Boolean,default:!0},reprojectionErrorThreshold:{type:Number,default:.5},transition:{type:Number,default:250},url:{type:String,default:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"},wrapX:{type:Boolean,default:!0}}};function wst(r,e,t,n,i,a){return dr("",!0)}var wS=le(_st,[["render",wst]]);const Est={name:"ol-source-image-static",setup(r){const e=Ce("imageLayer"),{properties:t}=vr(r),n=()=>new Pot(Os(Un({},t),{projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection))}));let i=n();return he(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Ze(()=>{e.setSource(i)}),ir(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object]},imageSmoothing:{type:Boolean,default:!0},imageSize:{type:Array},url:{type:String}}};function Cst(r,e,t,n,i,a){return dr("",!0)}var ES=le(Est,[["render",Cst]]);const Bst={name:"ol-source-wmts",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r),n=hr(()=>Oe(t.projection).getExtent()),i=hr(()=>Rs(n.value)),a=hr(()=>Fr(n.value)/256),o=hr(()=>{const A=new Array(t.tileZoomLevel),l=new Array(t.tileZoomLevel);for(var u=0;unew s8(Os(Un({},t),{projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection)),tileGrid:o.value})));return he(s,()=>{e.value.setSource(s.value)}),he(e,()=>{e.value.setSource(s.value)}),Ze(()=>{e.value.setSource(s.value)}),ir(()=>{e.value.setSource(null)}),{tileLayer:e,source:s}},props:{tileZoomLevel:{type:Number,default:30},attributions:{type:String},cacheSize:{type:Number},crossOrigin:{type:String},imageSmoothing:{type:Boolean,default:!0},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tilePixelRatio:{type:Number,default:1},format:{type:String,default:"image/jpeg"},version:{type:String,default:"1.0.0"},matrixSet:{type:String},dimensions:{type:Object},requestEncoding:{type:String,default:"KVP"},url:{type:String},urls:{type:Array},wrapX:{type:Boolean,default:!1},transition:{type:Number},layer:{type:String},style:{type:String}}};function Tst(r,e,t,n,i,a){return dr("",!0)}var CS=le(Bst,[["render",Tst]]);const Sst={name:"ol-source-vector",setup(r){const e=Ce("vectorLayer")||Ce("heatmapLayer"),{properties:t}=vr(r);let n=hr(()=>new _l(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),Mr("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function xst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var BS=le(Sst,[["render",xst]]);const bst={name:"ol-source-cluster",setup(r){const e=Ce("vectorLayer"),{properties:t}=vr(r);let n=hr(()=>new n8(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value),e.value.changed()}),ir(()=>{e.value.setSource(null)}),Mr("vectorLayer",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},distance:{type:Number,default:20},geometryFunction:{type:Function,default:r=>r.getGeometry()},wrapX:{type:Boolean,default:!0}}};function Ist(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var TS=le(bst,[["render",Ist]]);const Fst={name:"ol-source-bingmaps",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new vot(Os(Un({},t),{key:t.apiKey})));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{cacheSize:{type:Number},hidpi:{type:Boolean,default:!1},culture:{type:String,default:"en-us"},apiKey:{type:String},imagerySet:{type:String},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number,default:.5},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Lst(r,e,t,n,i,a){return dr("",!0)}var SS=le(Fst,[["render",Lst]]);class zA extends s8{constructor(e){zA.layerLabelMap={vec:"cva",ter:"cta",img:"cia"},zA.layerZoomMap={vec:18,ter:14,img:18};let t=e||{};t.layerType=t.layerType||"vec",t.layerType=t.isLabel?zA.layerLabelMap[t.layerType]:t.layerType,t.matrixSet=t.projection==="EPSG:4326"||t.projection==="EPSG:4490"?"c":"w",!t.url&&!t.urls&&(t.url="https://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?"),t.tk&&(t.url=`${t.url}tk=${t.tk}`),t.url=t.url.replace("{layer}",t.layerType).replace("{proj}",t.matrixSet);let n=t.tileGrid||zA.getTileGrid(t.projection||"EPSG:3857"),i=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",a={version:t.version||"1.0.0",format:t.format||"tiles",dimensions:t.dimensions||{},layer:t.layerType,matrixSet:t.matrixSet,tileGrid:n,style:t.style||"default",cacheSize:t.cacheSize,crossOrigin:i,opaque:t.opaque===void 0?!0:t.opaque,maxZoom:zA.layerZoomMap[t.layerType],reprojectionErrorThreshold:t.reprojectionErrorThreshold,url:t.url,urls:t.urls,projection:t.projection||"EPSG:3857",wrapX:t.wrapX};t.tileProxy&&(a.tileLoadFunction=s),super(a),t.tileProxy&&(this.tileProxy=t.tileProxy);let o=this;function s(A,l){A.getImage().src=o.tileProxy+encodeURIComponent(l)}}static getTileGrid(e){return e==="EPSG:4326"||e==="EPSG:4490"?zA.default4326TileGrid():zA.default3857TileGrid()}static default4326TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(.703125*2/Math.pow(2,i)),t.push(i);return new dS({extent:[-180,-90,180,90],resolutions:e,origin:[-180,90],matrixIds:t,minZoom:1})}static default3857TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(78271.51696402031*2/Math.pow(2,i)),t.push(i);return new dS({extent:[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7],resolutions:e,matrixIds:t,origin:[-200375083427892e-7,200375083427892e-7],minZoom:1})}}const Ost={name:"ol-source-tianditu",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new zA(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{layerType:{type:String,default:"img"},tk:{type:String},isLabel:{type:Boolean,default:!1},cacheSize:{type:Number},crossOrigin:{type:String},projection:{Type:String,default:"EPSG:3857"},hidpi:{type:Boolean,default:!1},requestEncoding:{type:String,default:"KVP"},format:{type:String},version:{type:String,default:"1.0.0"},culture:{type:String,default:"en-us"},matrixSet:{type:String},dimensions:{type:Object,default:()=>{}},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Rst(r,e,t,n,i,a){return dr("",!0)}var xS=le(Ost,[["render",Rst]]);const Mst={name:"ol-source-image-wms",setup(r){const e=Ce("imageLayer"),{properties:t}=vr(r),n=()=>new Qot(Os(Un({},t),{params:{LAYERS:r.layers,STYLES:r.styles,TIME:r.time},projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection))}));let i=n();return he(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Ze(()=>{e.setSource(i)}),ir(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},format:{type:String,default:"image/png"},version:{type:String,default:"1.3.0"},matrixSet:{type:String},serverType:{type:String,default:"mapserver"},imageSmoothing:{type:Boolean,default:!0},layers:{type:[String,Array],required:!0},styles:{type:[String,Array],default:""},time:{type:String},ratio:{type:Number,default:1},imageSize:{type:Array},url:{type:String},params:{type:Object},imageLoadFunction:{type:Function}}};function Nst(r,e,t,n,i,a){return dr("",!0)}var bS=le(Mst,[["render",Nst]]);const Pst={name:"ol-source-webglpoints",setup(r){const e=Ce("webglPointsLayer"),{properties:t}=vr(r);let n=hr(()=>new _l(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),Mr("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function Ust(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var IS=le(Pst,[["render",Ust]]);function K_(r){K_.installed||(K_.installed=!0,r.component(_S.name,_S),r.component(wS.name,wS),r.component(ES.name,ES),r.component(CS.name,CS),r.component(BS.name,BS),r.component(TS.name,TS),r.component(SS.name,SS),r.component(xS.name,xS),r.component(bS.name,bS),r.component(IS.name,IS))}var Dst=Object.freeze(Object.defineProperty({__proto__:null,default:K_,install:K_,SourceXYZ:_S,SourceOSM:wS,SourceImageStatic:ES,SourceWMTS:CS,SourceVector:BS,SourceCluster:TS,SourceTianDiTu:xS,SourceImageWMS:bS,SourceWebglPoints:IS,SourceBingMaps:SS},Symbol.toStringTag,{value:"Module"}));function Di(r,e,t){const n=Ce("map"),i=Ce("controlBar",null),a=i!=null?i.value:n,{properties:o}=vr(e);let s=hr(()=>new r(Un({},o)));return s.value.set("order",t.attrs.order==null?0:t.attrs.order),he(s,(A,l)=>{a.removeControl&&(a.removeControl(l),a.addControl(A),n.changed())}),Ze(()=>{if(a.addControl(s.value),a.controls_!=null){let A=[...a.controls_];A.sort((l,u)=>l.get("order")-u.get("order")),a.controls_=[],A.forEach(l=>{a.addControl(l)}),a.changed()}n.changed()}),ir(()=>{if(a.removeControl)a.removeControl(s.value);else{let A=a.controls_.findIndex(l=>l==s.value);a.controls_.splice(A,1),s.value.dispose()}n.changed()}),{map:n,control:s}}const Qst={name:"ol-fullscreen-control",setup(r,e){const{control:t}=Di(oq,r,e);return{control:t}},props:{className:{type:String,default:"ol-full-screen"},label:{type:String,default:"⤢"},labelActive:{type:String,default:"×"},activeClassName:{type:String,default:"ol-full-screen-true"},inactiveClassName:{type:String,default:"ol-full-screen-false"},tipLabel:{type:String,default:"Toggle full-screen"},keys:{type:Boolean,default:!1},target:{type:Object,default:void 0},source:{type:Object,default:void 0}}};function Hst(r,e,t,n,i,a){return dr("",!0)}var FS=le(Qst,[["render",Hst]]);const Gst={name:"ol-mouseposition-control",setup(r,e){const{control:t}=Di(lq,r,e);return{control:t}},props:{className:{type:String,default:"ol-mouse-position"},coordinateFormat:{type:[String,Function]},projection:{type:String},render:{type:Function},target:{type:HTMLElement},undefinedHTML:{type:String,default:" "}}};function kst(r,e,t,n,i,a){return dr("",!0)}var LS=le(Gst,[["render",kst]]);const $st={name:"ol-attribution-control",setup(r,e){const{control:t}=Di(CQ,r,e);return{control:t}},props:{className:{type:String,default:"ol-attribution"},target:{type:HTMLElement},collapsible:{type:Boolean},collapsed:{type:Boolean,default:!0},tipLabel:{type:String,default:"Attributions"},label:{type:String,default:"i"},expandClassName:{type:String,default:"ol-attribution-expand"},collapseLabel:{type:String,default:"»"},collapseClassName:{type:String,default:"ol-attribution-collapse"},render:{type:Function}}};function Vst(r,e,t,n,i,a){return dr("",!0)}var OS=le($st,[["render",Vst]]);const jst={name:"ol-overviewmap-control",setup(r,e){const t=Ce("map"),{control:n}=Di(pq,r,e);return Ze(()=>{n.value.setMap(t)}),ir(()=>{n.value.setMap(null)}),Mr("overviewMap",n),{control:n}},props:{className:{type:String,default:"ol-overviewmap"},collapsed:{type:Boolean,default:!0},collapseLabel:{type:String,default:"«"},collapsible:{type:Boolean,default:!0},label:{type:String,default:"»"},render:{type:Function},rotateWithView:{type:Boolean,default:!1},target:{type:HTMLElement},tipLabel:{type:String,default:"Overview map"}}};function Kst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var RS=le(jst,[["render",Kst]]);const zst={name:"ol-scaleline-control",setup(r,e){const{control:t}=Di(yq,r,e);return{control:t}},props:{className:{type:String,default:"ol-scale-line"},minWidth:{type:Number,default:64},render:{type:Function},target:{type:HTMLElement},units:{type:String,default:"metric"},bar:{type:Boolean,default:!1},steps:{type:Number,default:4},text:{type:Boolean,default:!1},dpi:{type:Number,default:void 0}}};function Yst(r,e,t,n,i,a){return dr("",!0)}var MS=le(zst,[["render",Yst]]);const Xst={name:"ol-zoom-control",setup(r,e){const{control:t}=Di(TQ,r,e);return{control:t}},props:{duration:{type:Number,default:250},className:{type:String,default:"ol-zoom"},zoomInClassName:{type:String,default:"ol-zoom-in"},zoomOutClassName:{type:String,default:"ol-zoom-out"},zoomInLabel:{type:String,default:"+"},zoomOutLabel:{type:String,default:"-"},zoomInTipLabel:{type:String,default:"Zoom in"},zoomOutTipLabel:{type:String,default:"Zoom Out"},delta:{type:Number,default:1},target:{type:HTMLElement}}};function Wst(r,e,t,n,i,a){return dr("",!0)}var NS=le(Xst,[["render",Wst]]);const qst={name:"ol-zoomslider-control",setup(r,e){const{control:t}=Di(wq,r,e);return{control:t}},props:{duration:{type:Number,default:200},className:{type:String,default:"ol-zoomslider"},render:{type:Function}}};function Zst(r,e,t,n,i,a){return dr("",!0)}var PS=le(qst,[["render",Zst]]);const Jst={name:"ol-zoomtoextent-control",setup(r,e){const{control:t}=Di(Bq,r,e);return{control:t}},props:{className:{type:String,default:"ol-zoom-extent"},target:{type:HTMLElement},label:{type:String,default:"E"},tipLabel:{type:String,default:"Fit to extent"},extent:{type:Array}}};function tAt(r,e,t,n,i,a){return dr("",!0)}var US=le(Jst,[["render",tAt]]);const eAt={name:"ol-rotate-control",setup(r,e){const{control:t}=Di(BQ,r,e);return{control:t}},props:{className:{type:String,default:"ol-rotate"},label:{type:String,default:"⇧"},tipLabel:{type:String,default:"Reset rotation"},compassClassName:{type:String,default:"ol-compass"},duration:{type:Number,default:250},autoHide:{type:Boolean,default:!1},render:{type:Function},resetNorth:{type:Function},target:{type:HTMLElement}}};function rAt(r,e,t,n,i,a){return dr("",!0)}var uN=le(eAt,[["render",rAt]]),u8={exports:{}},nAt=wot(XW);/*! + }`,uniforms:{u_gradientTexture:function(){return this.gradient_}.bind(this),u_opacity:function(){return this.getOpacity()}.bind(this)}}]})},e.prototype.renderDeclutter=function(){},e}(aw);function dst(r){for(var e=1,t=256,n=ja(e,t),i=n.createLinearGradient(0,0,e,t),a=1/(r.length-1),o=0,s=r.length;onew u8(t));return he(t,()=>{n.value.setProperties(t)}),Ze(()=>{e.addLayer(n.value)}),ir(()=>{e.removeLayer(n.value)}),Mr("heatmapLayer",n),Mr("stylable",n),{heatmapLayer:n}},props:{weight:{type:Function},extent:{type:Array},blur:{type:Number},radius:{type:Number}}};function gst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var mS=le(vst,[["render",gst]]);function j_(r){j_.installed||(j_.installed=!0,r.component(cS.name,cS),r.component(hS.name,hS),r.component(fS.name,fS),r.component(pS.name,pS),r.component(gS.name,gS),r.component(yS.name,yS),r.component(mS.name,mS))}var yst=Object.freeze(Object.defineProperty({__proto__:null,default:j_,install:j_,TileLayer:cS,WebGLTileLayer:hS,ImageLayer:fS,VectorLayer:pS,AnimatedClusterLayer:gS,WebglPointsLayer:yS,HeatmapLayer:mS},Symbol.toStringTag,{value:"Module"}));const mst={name:"ol-source-xyz",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new n8(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:[String,Array]},url:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String},maxZoom:{type:Number,default:28},minZoom:{type:Number,default:0},opaque:{type:Boolean},projection:{type:String,default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tileSize:{type:Array,default:()=>[256,256]},tilePixelRatio:{type:Number,default:1},tileKey:{type:String},transition:{type:Number},tileGrid:{type:Object}}};function _st(r,e,t,n,i,a){return dr("",!0)}var _S=le(mst,[["render",_st]]);const wst={name:"ol-source-osm",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new Vot(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{attributions:{type:String},cacheSize:{type:Number,default:2048},crossOrigin:{type:String,default:"anonymous"},imageSmoothing:{type:Boolean,default:!0},minZoom:{type:Number,default:0},maxZoom:{type:Number,default:19},opaque:{type:Boolean,default:!0},reprojectionErrorThreshold:{type:Number,default:.5},transition:{type:Number,default:250},url:{type:String,default:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png"},wrapX:{type:Boolean,default:!0}}};function Est(r,e,t,n,i,a){return dr("",!0)}var wS=le(wst,[["render",Est]]);const Cst={name:"ol-source-image-static",setup(r){const e=Ce("imageLayer"),{properties:t}=vr(r),n=()=>new Uot(Os(Un({},t),{projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection))}));let i=n();return he(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Ze(()=>{e.setSource(i)}),ir(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object]},imageSmoothing:{type:Boolean,default:!0},imageSize:{type:Array},url:{type:String}}};function Bst(r,e,t,n,i,a){return dr("",!0)}var ES=le(Cst,[["render",Bst]]);const Tst={name:"ol-source-wmts",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r),n=hr(()=>Oe(t.projection).getExtent()),i=hr(()=>Rs(n.value)),a=hr(()=>Fr(n.value)/256),o=hr(()=>{const A=new Array(t.tileZoomLevel),l=new Array(t.tileZoomLevel);for(var u=0;unew A8(Os(Un({},t),{projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection)),tileGrid:o.value})));return he(s,()=>{e.value.setSource(s.value)}),he(e,()=>{e.value.setSource(s.value)}),Ze(()=>{e.value.setSource(s.value)}),ir(()=>{e.value.setSource(null)}),{tileLayer:e,source:s}},props:{tileZoomLevel:{type:Number,default:30},attributions:{type:String},cacheSize:{type:Number},crossOrigin:{type:String},imageSmoothing:{type:Boolean,default:!0},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},tilePixelRatio:{type:Number,default:1},format:{type:String,default:"image/jpeg"},version:{type:String,default:"1.0.0"},matrixSet:{type:String},dimensions:{type:Object},requestEncoding:{type:String,default:"KVP"},url:{type:String},urls:{type:Array},wrapX:{type:Boolean,default:!1},transition:{type:Number},layer:{type:String},style:{type:String}}};function Sst(r,e,t,n,i,a){return dr("",!0)}var CS=le(Tst,[["render",Sst]]);const xst={name:"ol-source-vector",setup(r){const e=Ce("vectorLayer")||Ce("heatmapLayer"),{properties:t}=vr(r);let n=hr(()=>new _l(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),Mr("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function bst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var BS=le(xst,[["render",bst]]);const Ist={name:"ol-source-cluster",setup(r){const e=Ce("vectorLayer"),{properties:t}=vr(r);let n=hr(()=>new i8(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value),e.value.changed()}),ir(()=>{e.value.setSource(null)}),Mr("vectorLayer",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},distance:{type:Number,default:20},geometryFunction:{type:Function,default:r=>r.getGeometry()},wrapX:{type:Boolean,default:!0}}};function Fst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var TS=le(Ist,[["render",Fst]]);const Lst={name:"ol-source-bingmaps",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new got(Os(Un({},t),{key:t.apiKey})));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{cacheSize:{type:Number},hidpi:{type:Boolean,default:!1},culture:{type:String,default:"en-us"},apiKey:{type:String},imagerySet:{type:String},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number,default:.5},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Ost(r,e,t,n,i,a){return dr("",!0)}var SS=le(Lst,[["render",Ost]]);class zA extends A8{constructor(e){zA.layerLabelMap={vec:"cva",ter:"cta",img:"cia"},zA.layerZoomMap={vec:18,ter:14,img:18};let t=e||{};t.layerType=t.layerType||"vec",t.layerType=t.isLabel?zA.layerLabelMap[t.layerType]:t.layerType,t.matrixSet=t.projection==="EPSG:4326"||t.projection==="EPSG:4490"?"c":"w",!t.url&&!t.urls&&(t.url="https://t{0-7}.tianditu.gov.cn/{layer}_{proj}/wmts?"),t.tk&&(t.url=`${t.url}tk=${t.tk}`),t.url=t.url.replace("{layer}",t.layerType).replace("{proj}",t.matrixSet);let n=t.tileGrid||zA.getTileGrid(t.projection||"EPSG:3857"),i=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",a={version:t.version||"1.0.0",format:t.format||"tiles",dimensions:t.dimensions||{},layer:t.layerType,matrixSet:t.matrixSet,tileGrid:n,style:t.style||"default",cacheSize:t.cacheSize,crossOrigin:i,opaque:t.opaque===void 0?!0:t.opaque,maxZoom:zA.layerZoomMap[t.layerType],reprojectionErrorThreshold:t.reprojectionErrorThreshold,url:t.url,urls:t.urls,projection:t.projection||"EPSG:3857",wrapX:t.wrapX};t.tileProxy&&(a.tileLoadFunction=s),super(a),t.tileProxy&&(this.tileProxy=t.tileProxy);let o=this;function s(A,l){A.getImage().src=o.tileProxy+encodeURIComponent(l)}}static getTileGrid(e){return e==="EPSG:4326"||e==="EPSG:4490"?zA.default4326TileGrid():zA.default3857TileGrid()}static default4326TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(.703125*2/Math.pow(2,i)),t.push(i);return new dS({extent:[-180,-90,180,90],resolutions:e,origin:[-180,90],matrixIds:t,minZoom:1})}static default3857TileGrid(){let e=[],t=[];for(let i=1;i<19;i++)e.push(78271.51696402031*2/Math.pow(2,i)),t.push(i);return new dS({extent:[-200375083427892e-7,-200375083427892e-7,200375083427892e-7,200375083427892e-7],resolutions:e,matrixIds:t,origin:[-200375083427892e-7,200375083427892e-7],minZoom:1})}}const Rst={name:"ol-source-tianditu",setup(r){const e=Ce("tileLayer"),{properties:t}=vr(r);let n=hr(()=>new zA(t));return he(n,()=>{e.value.setSource(n.value)}),he(e,()=>{e.value.setSource(n.value)}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),{layer:e,source:n}},props:{layerType:{type:String,default:"img"},tk:{type:String},isLabel:{type:Boolean,default:!1},cacheSize:{type:Number},crossOrigin:{type:String},projection:{Type:String,default:"EPSG:3857"},hidpi:{type:Boolean,default:!1},requestEncoding:{type:String,default:"KVP"},format:{type:String},version:{type:String,default:"1.0.0"},culture:{type:String,default:"en-us"},matrixSet:{type:String},dimensions:{type:Object,default:()=>{}},imageSmoothing:{type:Boolean,default:!0},maxZoom:{type:Number,default:21},reprojectionErrorThreshold:{type:Number},tileLoadFunction:{type:Function,default:(r,e)=>r.getImage().src=e},wrapX:{type:Boolean,default:!0},transition:{type:Number}}};function Mst(r,e,t,n,i,a){return dr("",!0)}var xS=le(Rst,[["render",Mst]]);const Nst={name:"ol-source-image-wms",setup(r){const e=Ce("imageLayer"),{properties:t}=vr(r),n=()=>new Hot(Os(Un({},t),{params:{LAYERS:r.layers,STYLES:r.styles,TIME:r.time},projection:typeof t.projection=="string"?t.projection:new ml(Un({},t.projection))}));let i=n();return he(t,()=>{e.setSource(null),i=n(),e.setSource(i)}),Ze(()=>{e.setSource(i)}),ir(()=>{e.setSource(null)}),{layer:e,source:i}},props:{attributions:{type:String},crossOrigin:{type:String},imageExtent:{type:Array},projection:{type:[String,Object],default:"EPSG:3857"},reprojectionErrorThreshold:{type:Number,default:.5},format:{type:String,default:"image/png"},version:{type:String,default:"1.3.0"},matrixSet:{type:String},serverType:{type:String,default:"mapserver"},imageSmoothing:{type:Boolean,default:!0},layers:{type:[String,Array],required:!0},styles:{type:[String,Array],default:""},time:{type:String},ratio:{type:Number,default:1},imageSize:{type:Array},url:{type:String},params:{type:Object},imageLoadFunction:{type:Function}}};function Pst(r,e,t,n,i,a){return dr("",!0)}var bS=le(Nst,[["render",Pst]]);const Ust={name:"ol-source-webglpoints",setup(r){const e=Ce("webglPointsLayer"),{properties:t}=vr(r);let n=hr(()=>new _l(t));const i=()=>{e.value.setSource(null),e.value.setSource(n.value),e.value.changed()};return he(t,()=>{i()}),he(e,()=>{i()}),Ze(()=>{e.value.setSource(n.value)}),ir(()=>{e.value.setSource(null)}),Mr("vectorSource",n),{layer:e,source:n}},props:{attributions:{type:[String,Array]},features:{type:Array,default:()=>[]},format:{type:Object},loader:{type:Function},overlaps:{type:Boolean,default:!0},projection:{type:String,default:"EPSG:3857"},strategy:{type:Function},url:{type:[String,Function]},useSpatialIndex:{type:Boolean,default:!0},wrapX:{type:Boolean,default:!0}}};function Dst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var IS=le(Ust,[["render",Dst]]);function K_(r){K_.installed||(K_.installed=!0,r.component(_S.name,_S),r.component(wS.name,wS),r.component(ES.name,ES),r.component(CS.name,CS),r.component(BS.name,BS),r.component(TS.name,TS),r.component(SS.name,SS),r.component(xS.name,xS),r.component(bS.name,bS),r.component(IS.name,IS))}var Qst=Object.freeze(Object.defineProperty({__proto__:null,default:K_,install:K_,SourceXYZ:_S,SourceOSM:wS,SourceImageStatic:ES,SourceWMTS:CS,SourceVector:BS,SourceCluster:TS,SourceTianDiTu:xS,SourceImageWMS:bS,SourceWebglPoints:IS,SourceBingMaps:SS},Symbol.toStringTag,{value:"Module"}));function Di(r,e,t){const n=Ce("map"),i=Ce("controlBar",null),a=i!=null?i.value:n,{properties:o}=vr(e);let s=hr(()=>new r(Un({},o)));return s.value.set("order",t.attrs.order==null?0:t.attrs.order),he(s,(A,l)=>{a.removeControl&&(a.removeControl(l),a.addControl(A),n.changed())}),Ze(()=>{if(a.addControl(s.value),a.controls_!=null){let A=[...a.controls_];A.sort((l,u)=>l.get("order")-u.get("order")),a.controls_=[],A.forEach(l=>{a.addControl(l)}),a.changed()}n.changed()}),ir(()=>{if(a.removeControl)a.removeControl(s.value);else{let A=a.controls_.findIndex(l=>l==s.value);a.controls_.splice(A,1),s.value.dispose()}n.changed()}),{map:n,control:s}}const Hst={name:"ol-fullscreen-control",setup(r,e){const{control:t}=Di(sq,r,e);return{control:t}},props:{className:{type:String,default:"ol-full-screen"},label:{type:String,default:"⤢"},labelActive:{type:String,default:"×"},activeClassName:{type:String,default:"ol-full-screen-true"},inactiveClassName:{type:String,default:"ol-full-screen-false"},tipLabel:{type:String,default:"Toggle full-screen"},keys:{type:Boolean,default:!1},target:{type:Object,default:void 0},source:{type:Object,default:void 0}}};function Gst(r,e,t,n,i,a){return dr("",!0)}var FS=le(Hst,[["render",Gst]]);const kst={name:"ol-mouseposition-control",setup(r,e){const{control:t}=Di(uq,r,e);return{control:t}},props:{className:{type:String,default:"ol-mouse-position"},coordinateFormat:{type:[String,Function]},projection:{type:String},render:{type:Function},target:{type:HTMLElement},undefinedHTML:{type:String,default:" "}}};function $st(r,e,t,n,i,a){return dr("",!0)}var LS=le(kst,[["render",$st]]);const Vst={name:"ol-attribution-control",setup(r,e){const{control:t}=Di(BQ,r,e);return{control:t}},props:{className:{type:String,default:"ol-attribution"},target:{type:HTMLElement},collapsible:{type:Boolean},collapsed:{type:Boolean,default:!0},tipLabel:{type:String,default:"Attributions"},label:{type:String,default:"i"},expandClassName:{type:String,default:"ol-attribution-expand"},collapseLabel:{type:String,default:"»"},collapseClassName:{type:String,default:"ol-attribution-collapse"},render:{type:Function}}};function jst(r,e,t,n,i,a){return dr("",!0)}var OS=le(Vst,[["render",jst]]);const Kst={name:"ol-overviewmap-control",setup(r,e){const t=Ce("map"),{control:n}=Di(dq,r,e);return Ze(()=>{n.value.setMap(t)}),ir(()=>{n.value.setMap(null)}),Mr("overviewMap",n),{control:n}},props:{className:{type:String,default:"ol-overviewmap"},collapsed:{type:Boolean,default:!0},collapseLabel:{type:String,default:"«"},collapsible:{type:Boolean,default:!0},label:{type:String,default:"»"},render:{type:Function},rotateWithView:{type:Boolean,default:!1},target:{type:HTMLElement},tipLabel:{type:String,default:"Overview map"}}};function zst(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var RS=le(Kst,[["render",zst]]);const Yst={name:"ol-scaleline-control",setup(r,e){const{control:t}=Di(mq,r,e);return{control:t}},props:{className:{type:String,default:"ol-scale-line"},minWidth:{type:Number,default:64},render:{type:Function},target:{type:HTMLElement},units:{type:String,default:"metric"},bar:{type:Boolean,default:!1},steps:{type:Number,default:4},text:{type:Boolean,default:!1},dpi:{type:Number,default:void 0}}};function Xst(r,e,t,n,i,a){return dr("",!0)}var MS=le(Yst,[["render",Xst]]);const Wst={name:"ol-zoom-control",setup(r,e){const{control:t}=Di(SQ,r,e);return{control:t}},props:{duration:{type:Number,default:250},className:{type:String,default:"ol-zoom"},zoomInClassName:{type:String,default:"ol-zoom-in"},zoomOutClassName:{type:String,default:"ol-zoom-out"},zoomInLabel:{type:String,default:"+"},zoomOutLabel:{type:String,default:"-"},zoomInTipLabel:{type:String,default:"Zoom in"},zoomOutTipLabel:{type:String,default:"Zoom Out"},delta:{type:Number,default:1},target:{type:HTMLElement}}};function qst(r,e,t,n,i,a){return dr("",!0)}var NS=le(Wst,[["render",qst]]);const Zst={name:"ol-zoomslider-control",setup(r,e){const{control:t}=Di(Eq,r,e);return{control:t}},props:{duration:{type:Number,default:200},className:{type:String,default:"ol-zoomslider"},render:{type:Function}}};function Jst(r,e,t,n,i,a){return dr("",!0)}var PS=le(Zst,[["render",Jst]]);const tAt={name:"ol-zoomtoextent-control",setup(r,e){const{control:t}=Di(Tq,r,e);return{control:t}},props:{className:{type:String,default:"ol-zoom-extent"},target:{type:HTMLElement},label:{type:String,default:"E"},tipLabel:{type:String,default:"Fit to extent"},extent:{type:Array}}};function eAt(r,e,t,n,i,a){return dr("",!0)}var US=le(tAt,[["render",eAt]]);const rAt={name:"ol-rotate-control",setup(r,e){const{control:t}=Di(TQ,r,e);return{control:t}},props:{className:{type:String,default:"ol-rotate"},label:{type:String,default:"⇧"},tipLabel:{type:String,default:"Reset rotation"},compassClassName:{type:String,default:"ol-compass"},duration:{type:Number,default:250},autoHide:{type:Boolean,default:!1},render:{type:Function},resetNorth:{type:Function},target:{type:HTMLElement}}};function nAt(r,e,t,n,i,a){return dr("",!0)}var uN=le(rAt,[["render",nAt]]),c8={exports:{}},iAt=Eot(WW);/*! * ol-contextmenu - v4.1.0 * https://github.com/jonataswalker/ol-contextmenu * Built: Sat Aug 15 2020 10:43:26 GMT-0300 (Brasilia Standard Time) - */(function(r,e){(function(t,n){r.exports=n(nAt)})(Zs,function(t){function n(I){return I&&typeof I=="object"&&"default"in I?I:{default:I}}var i=n(t),a="ol-ctx-menu",o={namespace:a,container:a+"-container",separator:a+"-separator",submenu:a+"-submenu",hidden:a+"-hidden",icon:a+"-icon",zoomIn:a+"-zoom-in",zoomOut:a+"-zoom-out",unselectable:"ol-unselectable"},s=o,A="beforeopen",l="open",u="close",c="contextmenu",h={width:150,scrollAt:4,eventType:c,defaultItems:!0},f=[{text:"Zoom In",classname:o.zoomIn+" "+o.icon,callback:function(I,M){var x=M.getView();x.animate({zoom:+x.getZoom()+1,duration:700,center:I.coordinate})}},{text:"Zoom Out",classname:o.zoomOut+" "+o.icon,callback:function(I,M){var x=M.getView();x.animate({zoom:+x.getZoom()-1,duration:700,center:I.coordinate})}}];function p(I,M){if(M===void 0&&(M="Assertion failed"),!I)throw typeof Error<"u"?new Error(M):M}function v(I){return/^\d+$/.test(I)}function m(I,M){return I.classList?I.classList.contains(M):B(M).test(I.className)}function g(I,M,x){M===void 0&&(M=window.document);var S=Array.prototype.slice,N=[];if(/^(#?[\w-]+|\.[\w-.]+)$/.test(I))switch(I[0]){case"#":N=[_(I.substr(1))];break;case".":N=S.call(M.getElementsByClassName(I.substr(1).replace(/\./g," ")));break;default:N=S.call(M.getElementsByTagName(I))}else N=S.call(M.querySelectorAll(I));return x?N:N[0]}function _(I){return I=I[0]==="#"?I.substr(1,I.length):I,document.getElementById(I)}function E(I){var M=document.createDocumentFragment(),x=document.createElement("div");for(x.innerHTML=I;x.firstChild;)M.appendChild(x.firstChild);return M}function B(I){return new RegExp("(^|\\s+) "+I+" (\\s+|$)")}function L(I,M,x){I.classList?I.classList.add(M):I.className=(I.className+" "+M).trim(),x&&v(x)&&window.setTimeout(function(){return O(I,M)},x)}function O(I,M,x){I.classList?I.classList.remove(M):I.className=I.className.replace(B(M)," ").trim(),x&&v(x)&&window.setTimeout(function(){return L(I,M)},x)}var b=function(I){return this.Base=I,this.map=void 0,this.viewport=void 0,this.coordinateClicked=void 0,this.pixelClicked=void 0,this.lineHeight=0,this.items={},this.opened=!1,this.submenu={left:I.options.width-15+"px",lastLeft:""},this.eventHandler=this.handleEvent.bind(this),this.eventMapMoveHandler=this.handleMapMoveEvent.bind(this),this};b.prototype.init=function(I){this.map=I,this.viewport=I.getViewport(),this.setListeners(),this.Base.Html.createMenu(),this.lineHeight=this.getItemsLength()>0?this.Base.container.offsetHeight/this.getItemsLength():this.Base.Html.cloneAndGetLineHeight()},b.prototype.getItemsLength=function(){var I=this,M=0;return Object.keys(this.items).forEach(function(x){I.items[x].submenu||I.items[x].separator||M++}),M},b.prototype.getPixelClicked=function(){return this.pixelClicked},b.prototype.getCoordinateClicked=function(){return this.coordinateClicked},b.prototype.positionContainer=function(I){var M=this,x=this.Base.container,S=this.map.getSize(),N=S[1]-I[1],P=S[0]-I[0],X=x.offsetWidth,z=Math.round(this.lineHeight*this.getItemsLength()),tt=g("li."+s.submenu+">div",x,!0);P>=X?(x.style.right="auto",x.style.left=I[0]+5+"px"):(x.style.left="auto",x.style.right="15px"),N>=z?(x.style.bottom="auto",x.style.top=I[1]-10+"px"):(x.style.top="auto",x.style.bottom=0),function J(nt,it,_t){if(Array.isArray(nt))nt.forEach(function(K){return J(K,it,_t)});else for(var R=Array.isArray(it)?it:it.split(/\s+/),$=R.length;$--;)m(nt,R[$])&&O(nt,R[$],_t)}(x,s.hidden),tt.length&&(this.submenu.lastLeft=P<2*X?"-"+X+"px":this.submenu.left,tt.forEach(function(J){var nt,it,_t,R={w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight},$=(it=(nt=J).getBoundingClientRect(),_t=document.documentElement,{left:it.left+window.pageXOffset-_t.clientLeft,top:it.top+window.pageYOffset-_t.clientTop,width:nt.offsetWidth,height:nt.offsetHeight}),K=$.height,q=N-K;q<0&&(q=K-(R.h-$.top),J.style.top="-"+q+"px"),J.style.left=M.submenu.lastLeft}))},b.prototype.openMenu=function(I,M){this.Base.dispatchEvent({type:l,pixel:I,coordinate:M}),this.opened=!0,this.positionContainer(I)},b.prototype.closeMenu=function(){this.opened=!1,function I(M,x,S){if(Array.isArray(M))M.forEach(function(X){return I(X,x)});else for(var N=Array.isArray(x)?x:x.split(/\s+/),P=N.length;P--;)m(M,N[P])||L(M,N[P],S)}(this.Base.container,s.hidden),this.Base.dispatchEvent({type:u})},b.prototype.setListeners=function(){this.viewport.addEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.on("movestart",this.eventMapMoveHandler)},b.prototype.removeListeners=function(){this.viewport.removeEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.un("movestart",this.eventMapMoveHandler)},b.prototype.handleEvent=function(I){var M=this;this.coordinateClicked=this.map.getEventCoordinate(I),this.pixelClicked=this.map.getEventPixel(I),this.Base.dispatchEvent({type:A,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===c&&(I.stopPropagation(),I.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),I.target.addEventListener("pointerdown",{handleEvent:function(x){M.opened&&(M.closeMenu(),x.stopPropagation(),I.target.removeEventListener(x.type,this,!1))}},!1))},b.prototype.handleMapMoveEvent=function(I){this.closeMenu()},b.prototype.setItemListener=function(I,M){var x,S=this;I&&typeof this.items[M].callback=="function"&&(x=this.items[M].callback,I.addEventListener("click",function(N){N.preventDefault();var P={coordinate:S.getCoordinateClicked(),data:S.items[M].data||null};S.closeMenu(),x(P,S.map)},!1))};var T=function(I){return this.Base=I,this.Base.container=this.container=this.createContainer(!0),this};return T.prototype.createContainer=function(I){var M=document.createElement("div"),x=document.createElement("ul"),S=[s.container,s.unselectable];return I&&S.push(s.hidden),M.className=S.join(" "),M.style.width=parseInt(this.Base.options.width,10)+"px",M.appendChild(x),M},T.prototype.createMenu=function(){var I=[];if("items"in this.Base.options?I=this.Base.options.defaultItems?this.Base.options.items.concat(f):this.Base.options.items:this.Base.options.defaultItems&&(I=f),I.length===0)return!1;I.forEach(this.addMenuEntry,this)},T.prototype.addMenuEntry=function(I){var M,x=this;if(I.items&&Array.isArray(I.items)){I.classname=I.classname||"",M=s.submenu,~I.classname.indexOf(M)||(I.classname=I.classname.length?" "+s.submenu:s.submenu);var S=this.generateHtmlAndPublish(this.container,I),N=this.createContainer();N.style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,S.appendChild(N),I.items.forEach(function(P){x.generateHtmlAndPublish(N,P,!0)})}else this.generateHtmlAndPublish(this.container,I)},T.prototype.generateHtmlAndPublish=function(I,M,x){var S,N,P="_"+Math.random().toString(36).substr(2,9),X=!1;return typeof M=="string"&&M.trim()==="-"?(S=E('

  • '),N=[].slice.call(S.childNodes,0)[0],I.firstChild.appendChild(S),X=!0):(M.classname=M.classname||"",S=E(""+M.text+""),N=document.createElement("li"),M.icon&&(M.classname===""?M.classname=s.icon:M.classname.indexOf(s.icon)===-1&&(M.classname+=" "+s.icon),N.setAttribute("style","background-image:url("+M.icon+")")),N.id=P,N.className=M.classname,N.appendChild(S),I.firstChild.appendChild(N)),this.Base.Internal.items[P]={id:P,submenu:x||0,separator:X,callback:M.callback,data:M.data||null},this.Base.Internal.setItemListener(N,P),N},T.prototype.removeMenuEntry=function(I){var M=g("#"+I,this.container.firstChild);M&&this.container.firstChild.removeChild(M),delete this.Base.Internal.items[I]},T.prototype.cloneAndGetLineHeight=function(){var I=this.container.cloneNode(),M=E("Foo"),x=E("Foo"),S=document.createElement("li"),N=document.createElement("li");S.appendChild(M),N.appendChild(x),I.appendChild(S),I.appendChild(N),this.container.parentNode.appendChild(I);var P=I.offsetHeight/2;return this.container.parentNode.removeChild(I),P},function(I){function M(x){x===void 0&&(x={}),p(typeof x=="object","@param `opt_options` should be object type!"),this.options=function(S,N){var P={};for(var X in S)P[X]=S[X];for(var z in N)P[z]=N[z];return P}(h,x),this.disabled=!1,this.Internal=new b(this),this.Html=new T(this),I.call(this,{element:this.container})}return I&&(M.__proto__=I),M.prototype=Object.create(I&&I.prototype),M.prototype.constructor=M,M.prototype.clear=function(){Object.keys(this.Internal.items).forEach(this.Html.removeMenuEntry,this.Html)},M.prototype.close=function(){this.Internal.closeMenu()},M.prototype.enable=function(){this.disabled=!1},M.prototype.disable=function(){this.disabled=!0},M.prototype.getDefaultItems=function(){return f},M.prototype.countItems=function(){return Object.keys(this.Internal.items).length},M.prototype.extend=function(x){p(Array.isArray(x),"@param `arr` should be an Array."),x.forEach(this.push,this)},M.prototype.isOpen=function(){return this.Internal.opened},M.prototype.updatePosition=function(x){p(Array.isArray(x),"@param `pixel` should be an Array."),this.isOpen()&&this.Internal.positionContainer(x)},M.prototype.pop=function(){var x=Object.keys(this.Internal.items);this.Html.removeMenuEntry(x[x.length-1])},M.prototype.push=function(x){p(x!=null,"@param `item` must be informed."),this.Html.addMenuEntry(x)},M.prototype.shift=function(){this.Html.removeMenuEntry(Object.keys(this.Internal.items)[0])},M.prototype.setMap=function(x){I.prototype.setMap.call(this,x),x?this.Internal.init(x,this):this.Internal.removeListeners()},M}(i.default)})})(u8);var iAt=u8.exports;const aAt={name:"ol-context-menu",setup(r,e){const{control:t}=Di(iAt,r,e);return{control:t}},props:{eventType:{type:String,default:"contextmenu"},defaultItems:{type:Boolean,default:!0},width:{type:Number,default:150},items:{type:Array,default:()=>[]}}};function oAt(r,e,t,n,i,a){return dr("",!0)}var DS=le(aAt,[["render",oAt]]),vo=function(r){r=r||{};var e=document.createElement("button"),t=document.createElement("div");t.className=(r.className||"ol-swipe")+" ol-unselectable ol-control",t.appendChild(e),t.addEventListener("mousedown",this.move.bind(this)),t.addEventListener("touchstart",this.move.bind(this)),_r.call(this,{element:t}),this.precomposeRight_=this.precomposeRight.bind(this),this.precomposeLeft_=this.precomposeLeft.bind(this),this.postcompose_=this.postcompose.bind(this),this.layers=[],r.layers&&this.addLayer(r.layers,!1),r.rightLayers&&this.addLayer(r.rightLayers,!0),this.on("propertychange",function(n){if(this.getMap())try{this.getMap().renderSync()}catch{}this.get("orientation")==="horizontal"?(this.element.style.top=this.get("position")*100+"%",this.element.style.left=""):(this.get("orientation")!=="vertical"&&this.set("orientation","vertical"),this.element.style.left=this.get("position")*100+"%",this.element.style.top=""),n.key==="orientation"&&(this.element.classList.remove("horizontal","vertical"),this.element.classList.add(this.get("orientation"))),this.isMoving||this.layers.forEach(function(i){i.layer.getImageRatio&&i.layer.changed()})}.bind(this)),this.set("position",r.position||.5),this.set("orientation",r.orientation||"vertical")};Cr(vo,_r);vo.prototype.setMap=function(r){var e,t;if(this.getMap()){for(e=0;e=0&&this.getMap()&&(this.layers[t].right?r[e].un(["precompose","prerender"],this.precomposeRight_):r[e].un(["precompose","prerender"],this.precomposeLeft_),r[e].un(["postcompose","postrender"],this.postcompose_),this.layers.splice(t,1))}if(this.getMap())try{this.getMap().renderSync()}catch{}};vo.prototype.getRectangle=function(){var r;return this.get("orientation")==="vertical"?(r=this.getMap().getSize(),[0,0,r[0]*this.get("position"),r[1]]):(r=this.getMap().getSize(),[0,0,r[0],r[1]*this.get("position")])};vo.prototype.move=function(r){var e=this,t;switch(this._movefn||(this._movefn=this.move.bind(this)),r.type){case"touchcancel":case"touchend":case"mouseup":{e.isMoving=!1,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.removeEventListener(s,e._movefn)}),this.layers.forEach(function(s){s.layer.getImageRatio&&s.layer.changed()});break}case"mousedown":case"touchstart":e.isMoving=!0,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.addEventListener(s,e._movefn)});case"mousemove":case"touchmove":{if(e.isMoving)if(e.get("orientation")==="vertical"){var n=r.pageX||r.touches&&r.touches.length&&r.touches[0].pageX||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageX;if(!n)break;n-=e.getMap().getTargetElement().getBoundingClientRect().left+window.pageXOffset-document.documentElement.clientLeft,t=e.getMap().getSize()[0];var i=t-Math.min(Math.max(0,t-n),t);t=i/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[i,e.getMap().getSize()[1]],position:[t,0]})}else{var a=r.pageY||r.touches&&r.touches.length&&r.touches[0].pageY||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageY;if(!a)break;a-=e.getMap().getTargetElement().getBoundingClientRect().top+window.pageYOffset-document.documentElement.clientTop,t=e.getMap().getSize()[1];var o=t-Math.min(Math.max(0,t-a),t);t=o/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[e.getMap().getSize()[0],o],position:[0,t]})}break}}};vo.prototype._transformPt=function(r,e){var t=r.inversePixelTransform,n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e};vo.prototype._drawRect=function(r,e){var t=r.inversePixelTransform;if(t){var n=[[e[0][0],e[0][1]],[e[0][0],e[1][1]],[e[1][0],e[1][1]],[e[1][0],e[0][1]],[e[0][0],e[0][1]]];if(r.context.save(),r.target.getImageRatio){var i=-Math.atan2(r.frameState.pixelToCoordinateTransform[1],r.frameState.pixelToCoordinateTransform[0]);r.context.translate(r.frameState.size[0]/2,r.frameState.size[1]/2),r.context.rotate(i),r.context.translate(-r.frameState.size[0]/2,-r.frameState.size[1]/2)}n.forEach(function(o,s){o=[o[0]*t[0]-o[1]*t[1]+t[4],-o[0]*t[2]+o[1]*t[3]+t[5]],s?r.context.lineTo(o[0],o[1]):r.context.moveTo(o[0],o[1])}),r.context.restore()}else{var a=r.frameState.pixelRatio;r.context.rect(e[0][0]*a,e[0][1]*a,e[1][0]*a,e[1][1]*a)}};vo.prototype.precomposeLeft=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?a=Math.round(a*this.get("position")):(o=Math.round(o*this.get("position")),n[1]+=t[1]-o),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[1]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),s[1]]:A[1]=[s[0],s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};vo.prototype.precomposeRight=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?(a=Math.round(a*(1-this.get("position"))),n[0]+=t[0]-a):o=Math.round(o*(1-this.get("position"))),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[0]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),0]:A[0]=[0,s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};vo.prototype.postcompose=function(r){if(r.context instanceof WebGLRenderingContext){if(r.type==="postrender"){var e=r.context;e.disable(e.SCISSOR_TEST)}}else r.target.getClassName&&r.target.getClassName()!=="ol-layer"&&r.target.get("declutter")?setTimeout(function(){r.context.restore()},0):r.context.restore()};const sAt={name:"ol-swipe-control",setup(r,e){const{control:t}=Di(vo,r,e),{layerList:n}=Lu(r);return n.value.forEach((i,a)=>{t.value.addLayer(i,a==1)}),{control:t}},props:{layerList:{type:Array},className:{type:String,default:"ol-swipe"},position:{type:Number,default:.5},orientation:{type:String,default:"vertical"}}};function AAt(r,e,t,n,i,a){return dr("",!0)}var QS=le(sAt,[["render",AAt]]),Uo=function(r){r||(r={});var e=document.createElement("div");if(e.classList.add("ol-unselectable","ol-control","ol-bar"),r.className){var t=r.className.split(" ").filter(function(i){return i.length>0});e.classList.add.apply(e.classList,t)}if(r.group&&e.classList.add("ol-group"),_r.call(this,{element:e,target:r.target}),this.set("toggleOne",r.toggleOne),this.set("autoDeactivate",r.autoDeactivate),this.controls_=[],r.controls instanceof Array)for(var n=0;nT-.5?_.classList.add("ol-100pc"):_.classList.remove("ol-100pc")}},v=function(b){b.target.classList.contains("ol-noscroll")||(l=!1,t=b[s],a=new Date,r.classList.add("ol-move"),b.preventDefault(),window.addEventListener("pointermove",m),ct.addListener(window,["pointerup","pointercancel"],L))},m=function(b){if(l=!0,t!==!1){var T=(c?-1/u:1)*(t-b[s]);r[A]+=T,i=new Date,i-a&&(n=(n+T/(i-a))/2),t=b[s],a=i,T&&o(!0)}},g=function(b){var T=b>0?Math.min(100,b/2):Math.max(-100,b/2);b-=T,r[A]+=T,-1100||c?n=0:a>0&&(n=((n||0)+(t-b[s])/a)/2),g(e.animate===!1?0:n*200),t=!1,n=0,a=0,r.classList.contains("ol-move")?r.classList.remove("ol-hasClick"):(r.classList.add("ol-hasClick"),setTimeout(function(){r.classList.remove("ol-hasClick")},500)),c=!1,window.removeEventListener("pointermove",m),ct.removeListener(window,["pointerup","pointercancel"],L)},O=function(b){var T=Math.max(-1,Math.min(1,b.wheelDelta||-b.detail));return r.classList.add("ol-move"),r[A]-=T*30,r.classList.remove("ol-move"),!1};return e.mousewheel&&ct.addListener(r,["mousewheel","DOMMouseScroll","onmousewheel"],O),{refresh:f}};ct.dispatchEvent=function(r,e){var t;try{t=new CustomEvent(r)}catch{t=document.createEvent("CustomEvent"),t.initCustomEvent(r,!0,!0,{})}e.dispatchEvent(t)};var El=function(r){r=r||{};var e=document.createElement("div");e.className=(r.className||"")+" ol-button ol-unselectable ol-control";var t=this,n=this.button_=document.createElement(/ol-text-button/.test(r.className)?"div":"button");n.type="button",r.title&&(n.title=r.title),r.name&&(n.name=r.name),r.html instanceof Element?n.appendChild(r.html):n.innerHTML=r.html||"";var i=function(a){a&&a.preventDefault&&(a.preventDefault(),a.stopPropagation()),r.handleClick&&r.handleClick.call(t,a)};n.addEventListener("click",i),e.appendChild(n),!r.title&&n.firstElementChild&&(n.title=n.firstElementChild.title),_r.call(this,{element:e,target:r.target}),r.title&&this.set("title",r.title),r.title&&this.set("title",r.title),r.name&&this.set("name",r.name)};Cr(El,_r);El.prototype.setVisible=function(r){r?ct.show(this.element):ct.hide(this.element)};El.prototype.setTitle=function(r){this.button_.setAttribute("title",r)};El.prototype.setHtml=function(r){ct.setHTML(this.button_,r)};El.prototype.getButtonElement=function(){return this.button_};var rs=function(r){r=r||{};var e=this;this.interaction_=r.interaction,this.interaction_&&(this.interaction_.setActive(r.active),this.interaction_.on("change:active",function(){e.setActive(e.interaction_.getActive())})),r.toggleFn&&(r.onToggle=r.toggleFn),r.handleClick=function(){e.toggle(),r.onToggle&&r.onToggle.call(e,e.getActive())},r.className=(r.className||"")+" ol-toggle",El.call(this,r),this.set("title",r.title),this.set("autoActivate",r.autoActivate),r.bar&&this.setSubBar(r.bar),this.setActive(r.active),this.setDisable(r.disable)};Cr(rs,El);rs.prototype.setMap=function(r){!r&&this.getMap()&&(this.interaction_&&this.getMap().removeInteraction(this.interaction_),this.subbar_&&this.getMap().removeControl(this.subbar_)),El.prototype.setMap.call(this,r),r&&(this.interaction_&&r.addInteraction(this.interaction_),this.subbar_&&r.addControl(this.subbar_))};rs.prototype.getSubBar=function(){return this.subbar_};rs.prototype.setSubBar=function(r){var e=this.getMap();e&&this.subbar_&&e.removeControl(this.subbar_),this.subbar_=r,r&&(this.subbar_.setTarget(this.element),this.subbar_.element.classList.add("ol-option-bar"),e&&e.addControl(this.subbar_))};rs.prototype.getDisable=function(){var r=this.element.querySelector("button");return r&&r.disabled};rs.prototype.setDisable=function(r){this.getDisable()!=r&&(this.element.querySelector("button").disabled=r,r&&this.getActive()&&this.setActive(!1),this.dispatchEvent({type:"change:disable",key:"disable",oldValue:!r,disable:r}))};rs.prototype.getActive=function(){return this.element.classList.contains("ol-active")};rs.prototype.toggle=function(){this.getActive()?this.setActive(!1):this.setActive(!0)};rs.prototype.setActive=function(r){this.interaction_&&this.interaction_.setActive(r),this.subbar_&&this.subbar_.setActive(r),this.getActive()!==r&&(r?this.element.classList.add("ol-active"):this.element.classList.remove("ol-active"),this.dispatchEvent({type:"change:active",key:"active",oldValue:!r,active:r}))};rs.prototype.setInteraction=function(r){this.interaction_=r};rs.prototype.getInteraction=function(){return this.interaction_};const cAt={name:"ol-control-toggle",setup(r,e){const{control:t}=Di(rs,r,e);return{control:t}},props:{html:{type:String},interaction:{type:Object},className:{type:String},title:{type:String},onToggle:{type:Function}}};function hAt(r,e,t,n,i,a){return dr("",!0)}var GS=le(cAt,[["render",hAt]]);const fAt={name:"ol-control-button",setup(r,e){const{control:t}=Di(El,r,e);return{control:t}},props:{html:{type:String},name:{type:String},className:{type:String},title:{type:String},handleClick:{type:Function}}};function pAt(r,e,t,n,i,a){return dr("",!0)}var kS=le(fAt,[["render",pAt]]),Ia=function(r){r=r||{},r.fullscreen&&(r.target=document.body);var e=ct.create("DIV",{className:((r.className||"")+(r.zoom?" ol-zoom":"")+" ol-ext-dialog").trim(),click:function(i){this.get("hideOnBack")&&i.target===e&&this.close(),this.get("hideOnClick")&&this.close()}.bind(this)}),t=ct.create("FORM",{on:{submit:this._onButton("submit")},parent:e});ct.create("H2",{parent:t}),ct.create("DIV",{className:"ol-closebox",click:this._onButton("cancel"),parent:t}),ct.create("DIV",{className:"ol-content",parent:t}),this._progress=ct.create("DIV",{style:{display:"none"},parent:t});var n=ct.create("DIV",{className:"ol-progress-bar",parent:this._progress});this._progressbar=ct.create("DIV",{parent:n}),this._progressMessage=ct.create("DIV",{className:"ol-progress-message",parent:this._progress}),ct.create("DIV",{className:"ol-buttons",parent:t}),_r.call(this,{element:e,target:r.target}),this.set("closeBox",r.closeBox!==!1),this.set("zoom",!!r.zoom),this.set("hideOnClick",!!r.hideOnClick),this.set("hideOnBack",!!r.hideOnBack),this.set("className",e.className),this.set("closeOnSubmit",r.closeOnSubmit),this.set("buttons",r.buttons),this.setContent(r)};Cr(Ia,_r);Ia.prototype.show=function(r){r&&((r instanceof Element||typeof r=="string")&&(r={content:r}),this.setContent(r)),this.element.classList.add("ol-visible");var e=this.element.querySelector('input[type="text"],input[type="search"],input[type="number"]');if(e&&e.focus(),this.dispatchEvent({type:"show"}),r){if(r.autoclose){var t=setTimeout(function(){this.hide()}.bind(this),r.autoclose);this.once("hide",function(){clearTimeout(t)})}if(r.hideOnBack){var n=this.get("hideOnBack");this.set("hideOnBack",!0),this.once("hide",function(){this.set("hideOnBack",n)}.bind(this))}}};Ia.prototype.open=function(){this.show()};Ia.prototype.setContentMessage=function(r){if(r!==void 0){var e=this.getContentElement();r instanceof Element&&ct.setHTML(e,""),ct.setHTML(e,r||"")}};Ia.prototype.setTitle=function(r){var e=this.element.querySelector("form");e.querySelector("h2").innerText=r||"",r?e.classList.add("ol-title"):e.classList.remove("ol-title")};Ia.prototype.setContent=function(r){if(r){this.element.className=this.get("className"),typeof r=="string"&&(r={content:r}),r=r||{},this.setProgress(!1),r.max&&this.setProgress(0,r.max),r.progress!==void 0&&this.setProgress(r.progress),this.get("zoom")?this.element.classList.add("ol-zoom"):this.element.classList.remove("ol-zoom"),r.className&&r.className.split(" ").forEach(function(a){this.element.classList.add(a)}.bind(this));var e=this.element.querySelector("form");r.content!==void 0&&(r.content instanceof Element&&ct.setHTML(e.querySelector(".ol-content"),""),ct.setHTML(e.querySelector(".ol-content"),r.content||"")),this.setTitle(r.title),r.closeBox||this.get("closeBox")&&r.closeBox!==!1?e.classList.add("ol-closebox"):e.classList.remove("ol-closebox");var t=this.element.querySelector(".ol-buttons");t.innerHTML="";var n=r.buttons||this.get("buttons");if(n){e.classList.add("ol-button");for(var i in n)ct.create("INPUT",{type:i==="submit"?"submit":"button",value:n[i],click:this._onButton(i,r.onButton),parent:t})}else e.classList.remove("ol-button")}};Ia.prototype.getContentElement=function(){return this.element.querySelector("form .ol-content")};Ia.prototype.setProgress=function(r,e,t){if(r===!1){ct.setStyle(this._progress,{display:"none"});return}if(e>0?this.set("max",Number(e)):e=this.get("max"),!e)ct.setStyle(this._progress,{display:"none"});else{var n=Math.round(r/e*100);ct.setStyle(this._progress,{display:""}),this._progressbar.className=n?"":"notransition",ct.setStyle(this._progressbar,{width:n+"%"})}this._progressMessage.innerHTML="",ct.setHTML(this._progressMessage,t||"")};Ia.prototype._onButton=function(r,e){var t=function(n){n.preventDefault(),(r!=="submit"||this.get("closeOnSubmit")!==!1)&&this.hide();var i=this.getInputs();this.dispatchEvent({type:"button",button:r,inputs:i}),typeof e=="function"&&e(r,i)}.bind(this);return t};Ia.prototype.getInputs=function(){var r={};return["input","textarea","select"].forEach(function(e){this.element.querySelectorAll("form "+e).forEach(function(t){t.className&&t.className.split(" ").forEach(function(n){r[n]=t})})}.bind(this)),r};Ia.prototype.hide=function(){this.element.classList.remove("ol-visible"),this.dispatchEvent({type:"hide"})};Ia.prototype.close=Ia.prototype.hide;Ia.prototype.isOpen=function(){return this.element.classList.contains("ol-visible")};var dAt=function(r){if(!r)return null;var e=r.getViewport().getElementsByClassName("ol-fixedoverlay")[0];return e||(r.getViewport().querySelector(".ol-layers")?(e=document.createElement("canvas"),e.className="ol-fixedoverlay",r.getViewport().querySelector(".ol-layers").after(e),r.on("precompose",function(t){e.width=r.getSize()[0]*t.frameState.pixelRatio,e.height=r.getSize()[1]*t.frameState.pixelRatio})):e=r.getViewport().querySelector("canvas")),e},Qi=function(r){r||(r={}),this.setStyle(r.style),_r.call(this,r)};Cr(Qi,_r);Qi.prototype.setMap=function(r){this.getCanvas(r);var e=this.getMap();if(this._listener&&(No(this._listener),this._listener=null),_r.prototype.setMap.call(this,r),e)try{e.renderSync()}catch{}r&&(this._listener=r.on("postcompose",this._draw.bind(this)))};Qi.prototype.getCanvas=function(r){return dAt(r)};Qi.prototype.getContext=function(r){var e=r.context;if(!e&&this.getMap()){var t=this.getMap().getViewport().getElementsByClassName("ol-fixedoverlay")[0];e=t?t.getContext("2d"):null}return e};Qi.prototype.setStyle=function(r){this._style=r||new oa({})};Qi.prototype.getStyle=function(){return this._style};Qi.prototype.getStroke=function(){var r=this._style.getStroke();return r||this._style.setStroke(new Ui({color:"#000",width:1.25})),this._style.getStroke()};Qi.prototype.getFill=function(){var r=this._style.getFill();return r||this._style.setFill(new Aa({color:"#fff"})),this._style.getFill()};Qi.prototype.getTextStroke=function(){var r=this._style.getText();return r||(r=new bh({})),r.getStroke()||r.setStroke(new Ui({color:"#fff",width:3})),r.getStroke()};Qi.prototype.getTextFill=function(){var r=this._style.getText();return r||(r=new bh({})),r.getFill()||r.setFill(new Aa({color:"#fff"})),r.getFill()};Qi.prototype.getTextFont=function(){var r=this._style.getText();return r||(r=new bh({})),r.getFont()||r.setFont("12px sans-serif"),r.getFont()};Qi.prototype._draw=function(){console.warn("[CanvasBase] draw function not implemented.")};function vAt(r,e){var t=r.canvas,n=e||{},i=n.pixelRatio||uh,a=n.size;a&&(t.width=a[0]*i,t.height=a[1]*i,t.style.width=a[0]+"px",t.style.height=a[1]+"px");var o=[0,0,t.width,t.height],s=Pv(oi(),i,i);return new fF(r,i,o,s,0)}var Rp=function(r){r=r||{},li.call(this,r),r.feature&&this.set("feature",r.feature.clone())};Cr(Rp,li);Rp.prototype.setTitle=function(r){this.set("title",r||""),this.changed()};Rp.prototype.getElement=function(r,e){var t=ct.create("LI",{className:this.get("className"),click:function(n){e(!1),n.stopPropagation()},style:{height:r[1]+"px"},"aria-label":this.get("title")});return ct.create("DIV",{click:function(n){e(!0),n.stopPropagation()},style:{width:r[0]+"px",height:r[1]+"px"},parent:t}),t};window.ol&&!ol.legend&&(ol.legend={});var la=function(r){r=r||{},li.call(this),this._items=new si;var e=[],t;this._items.on("add",function(n){e.push({item:n.element,on:n.element.on("change",function(){this.refresh()}.bind(this))}),t&&(clearTimeout(t),t=null),t=setTimeout(function(){this.refresh()}.bind(this),0)}.bind(this)),this._items.on("remove",function(n){for(var i=0;i0?this.Base.container.offsetHeight/this.getItemsLength():this.Base.Html.cloneAndGetLineHeight()},b.prototype.getItemsLength=function(){var I=this,M=0;return Object.keys(this.items).forEach(function(x){I.items[x].submenu||I.items[x].separator||M++}),M},b.prototype.getPixelClicked=function(){return this.pixelClicked},b.prototype.getCoordinateClicked=function(){return this.coordinateClicked},b.prototype.positionContainer=function(I){var M=this,x=this.Base.container,S=this.map.getSize(),N=S[1]-I[1],P=S[0]-I[0],X=x.offsetWidth,z=Math.round(this.lineHeight*this.getItemsLength()),tt=g("li."+s.submenu+">div",x,!0);P>=X?(x.style.right="auto",x.style.left=I[0]+5+"px"):(x.style.left="auto",x.style.right="15px"),N>=z?(x.style.bottom="auto",x.style.top=I[1]-10+"px"):(x.style.top="auto",x.style.bottom=0),function J(nt,it,_t){if(Array.isArray(nt))nt.forEach(function(K){return J(K,it,_t)});else for(var R=Array.isArray(it)?it:it.split(/\s+/),$=R.length;$--;)m(nt,R[$])&&O(nt,R[$],_t)}(x,s.hidden),tt.length&&(this.submenu.lastLeft=P<2*X?"-"+X+"px":this.submenu.left,tt.forEach(function(J){var nt,it,_t,R={w:window.innerWidth||document.documentElement.clientWidth,h:window.innerHeight||document.documentElement.clientHeight},$=(it=(nt=J).getBoundingClientRect(),_t=document.documentElement,{left:it.left+window.pageXOffset-_t.clientLeft,top:it.top+window.pageYOffset-_t.clientTop,width:nt.offsetWidth,height:nt.offsetHeight}),K=$.height,q=N-K;q<0&&(q=K-(R.h-$.top),J.style.top="-"+q+"px"),J.style.left=M.submenu.lastLeft}))},b.prototype.openMenu=function(I,M){this.Base.dispatchEvent({type:l,pixel:I,coordinate:M}),this.opened=!0,this.positionContainer(I)},b.prototype.closeMenu=function(){this.opened=!1,function I(M,x,S){if(Array.isArray(M))M.forEach(function(X){return I(X,x)});else for(var N=Array.isArray(x)?x:x.split(/\s+/),P=N.length;P--;)m(M,N[P])||L(M,N[P],S)}(this.Base.container,s.hidden),this.Base.dispatchEvent({type:u})},b.prototype.setListeners=function(){this.viewport.addEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.on("movestart",this.eventMapMoveHandler)},b.prototype.removeListeners=function(){this.viewport.removeEventListener(this.Base.options.eventType,this.eventHandler,!1),this.map.un("movestart",this.eventMapMoveHandler)},b.prototype.handleEvent=function(I){var M=this;this.coordinateClicked=this.map.getEventCoordinate(I),this.pixelClicked=this.map.getEventPixel(I),this.Base.dispatchEvent({type:A,pixel:this.pixelClicked,coordinate:this.coordinateClicked}),this.Base.disabled||(this.Base.options.eventType===c&&(I.stopPropagation(),I.preventDefault()),this.openMenu(this.pixelClicked,this.coordinateClicked),I.target.addEventListener("pointerdown",{handleEvent:function(x){M.opened&&(M.closeMenu(),x.stopPropagation(),I.target.removeEventListener(x.type,this,!1))}},!1))},b.prototype.handleMapMoveEvent=function(I){this.closeMenu()},b.prototype.setItemListener=function(I,M){var x,S=this;I&&typeof this.items[M].callback=="function"&&(x=this.items[M].callback,I.addEventListener("click",function(N){N.preventDefault();var P={coordinate:S.getCoordinateClicked(),data:S.items[M].data||null};S.closeMenu(),x(P,S.map)},!1))};var T=function(I){return this.Base=I,this.Base.container=this.container=this.createContainer(!0),this};return T.prototype.createContainer=function(I){var M=document.createElement("div"),x=document.createElement("ul"),S=[s.container,s.unselectable];return I&&S.push(s.hidden),M.className=S.join(" "),M.style.width=parseInt(this.Base.options.width,10)+"px",M.appendChild(x),M},T.prototype.createMenu=function(){var I=[];if("items"in this.Base.options?I=this.Base.options.defaultItems?this.Base.options.items.concat(f):this.Base.options.items:this.Base.options.defaultItems&&(I=f),I.length===0)return!1;I.forEach(this.addMenuEntry,this)},T.prototype.addMenuEntry=function(I){var M,x=this;if(I.items&&Array.isArray(I.items)){I.classname=I.classname||"",M=s.submenu,~I.classname.indexOf(M)||(I.classname=I.classname.length?" "+s.submenu:s.submenu);var S=this.generateHtmlAndPublish(this.container,I),N=this.createContainer();N.style.left=this.Base.Internal.submenu.lastLeft||this.Base.Internal.submenu.left,S.appendChild(N),I.items.forEach(function(P){x.generateHtmlAndPublish(N,P,!0)})}else this.generateHtmlAndPublish(this.container,I)},T.prototype.generateHtmlAndPublish=function(I,M,x){var S,N,P="_"+Math.random().toString(36).substr(2,9),X=!1;return typeof M=="string"&&M.trim()==="-"?(S=E('

  • '),N=[].slice.call(S.childNodes,0)[0],I.firstChild.appendChild(S),X=!0):(M.classname=M.classname||"",S=E(""+M.text+""),N=document.createElement("li"),M.icon&&(M.classname===""?M.classname=s.icon:M.classname.indexOf(s.icon)===-1&&(M.classname+=" "+s.icon),N.setAttribute("style","background-image:url("+M.icon+")")),N.id=P,N.className=M.classname,N.appendChild(S),I.firstChild.appendChild(N)),this.Base.Internal.items[P]={id:P,submenu:x||0,separator:X,callback:M.callback,data:M.data||null},this.Base.Internal.setItemListener(N,P),N},T.prototype.removeMenuEntry=function(I){var M=g("#"+I,this.container.firstChild);M&&this.container.firstChild.removeChild(M),delete this.Base.Internal.items[I]},T.prototype.cloneAndGetLineHeight=function(){var I=this.container.cloneNode(),M=E("Foo"),x=E("Foo"),S=document.createElement("li"),N=document.createElement("li");S.appendChild(M),N.appendChild(x),I.appendChild(S),I.appendChild(N),this.container.parentNode.appendChild(I);var P=I.offsetHeight/2;return this.container.parentNode.removeChild(I),P},function(I){function M(x){x===void 0&&(x={}),p(typeof x=="object","@param `opt_options` should be object type!"),this.options=function(S,N){var P={};for(var X in S)P[X]=S[X];for(var z in N)P[z]=N[z];return P}(h,x),this.disabled=!1,this.Internal=new b(this),this.Html=new T(this),I.call(this,{element:this.container})}return I&&(M.__proto__=I),M.prototype=Object.create(I&&I.prototype),M.prototype.constructor=M,M.prototype.clear=function(){Object.keys(this.Internal.items).forEach(this.Html.removeMenuEntry,this.Html)},M.prototype.close=function(){this.Internal.closeMenu()},M.prototype.enable=function(){this.disabled=!1},M.prototype.disable=function(){this.disabled=!0},M.prototype.getDefaultItems=function(){return f},M.prototype.countItems=function(){return Object.keys(this.Internal.items).length},M.prototype.extend=function(x){p(Array.isArray(x),"@param `arr` should be an Array."),x.forEach(this.push,this)},M.prototype.isOpen=function(){return this.Internal.opened},M.prototype.updatePosition=function(x){p(Array.isArray(x),"@param `pixel` should be an Array."),this.isOpen()&&this.Internal.positionContainer(x)},M.prototype.pop=function(){var x=Object.keys(this.Internal.items);this.Html.removeMenuEntry(x[x.length-1])},M.prototype.push=function(x){p(x!=null,"@param `item` must be informed."),this.Html.addMenuEntry(x)},M.prototype.shift=function(){this.Html.removeMenuEntry(Object.keys(this.Internal.items)[0])},M.prototype.setMap=function(x){I.prototype.setMap.call(this,x),x?this.Internal.init(x,this):this.Internal.removeListeners()},M}(i.default)})})(c8);var aAt=c8.exports;const oAt={name:"ol-context-menu",setup(r,e){const{control:t}=Di(aAt,r,e);return{control:t}},props:{eventType:{type:String,default:"contextmenu"},defaultItems:{type:Boolean,default:!0},width:{type:Number,default:150},items:{type:Array,default:()=>[]}}};function sAt(r,e,t,n,i,a){return dr("",!0)}var DS=le(oAt,[["render",sAt]]),vo=function(r){r=r||{};var e=document.createElement("button"),t=document.createElement("div");t.className=(r.className||"ol-swipe")+" ol-unselectable ol-control",t.appendChild(e),t.addEventListener("mousedown",this.move.bind(this)),t.addEventListener("touchstart",this.move.bind(this)),_r.call(this,{element:t}),this.precomposeRight_=this.precomposeRight.bind(this),this.precomposeLeft_=this.precomposeLeft.bind(this),this.postcompose_=this.postcompose.bind(this),this.layers=[],r.layers&&this.addLayer(r.layers,!1),r.rightLayers&&this.addLayer(r.rightLayers,!0),this.on("propertychange",function(n){if(this.getMap())try{this.getMap().renderSync()}catch{}this.get("orientation")==="horizontal"?(this.element.style.top=this.get("position")*100+"%",this.element.style.left=""):(this.get("orientation")!=="vertical"&&this.set("orientation","vertical"),this.element.style.left=this.get("position")*100+"%",this.element.style.top=""),n.key==="orientation"&&(this.element.classList.remove("horizontal","vertical"),this.element.classList.add(this.get("orientation"))),this.isMoving||this.layers.forEach(function(i){i.layer.getImageRatio&&i.layer.changed()})}.bind(this)),this.set("position",r.position||.5),this.set("orientation",r.orientation||"vertical")};Cr(vo,_r);vo.prototype.setMap=function(r){var e,t;if(this.getMap()){for(e=0;e=0&&this.getMap()&&(this.layers[t].right?r[e].un(["precompose","prerender"],this.precomposeRight_):r[e].un(["precompose","prerender"],this.precomposeLeft_),r[e].un(["postcompose","postrender"],this.postcompose_),this.layers.splice(t,1))}if(this.getMap())try{this.getMap().renderSync()}catch{}};vo.prototype.getRectangle=function(){var r;return this.get("orientation")==="vertical"?(r=this.getMap().getSize(),[0,0,r[0]*this.get("position"),r[1]]):(r=this.getMap().getSize(),[0,0,r[0],r[1]*this.get("position")])};vo.prototype.move=function(r){var e=this,t;switch(this._movefn||(this._movefn=this.move.bind(this)),r.type){case"touchcancel":case"touchend":case"mouseup":{e.isMoving=!1,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.removeEventListener(s,e._movefn)}),this.layers.forEach(function(s){s.layer.getImageRatio&&s.layer.changed()});break}case"mousedown":case"touchstart":e.isMoving=!0,["mouseup","mousemove","touchend","touchcancel","touchmove"].forEach(function(s){document.addEventListener(s,e._movefn)});case"mousemove":case"touchmove":{if(e.isMoving)if(e.get("orientation")==="vertical"){var n=r.pageX||r.touches&&r.touches.length&&r.touches[0].pageX||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageX;if(!n)break;n-=e.getMap().getTargetElement().getBoundingClientRect().left+window.pageXOffset-document.documentElement.clientLeft,t=e.getMap().getSize()[0];var i=t-Math.min(Math.max(0,t-n),t);t=i/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[i,e.getMap().getSize()[1]],position:[t,0]})}else{var a=r.pageY||r.touches&&r.touches.length&&r.touches[0].pageY||r.changedTouches&&r.changedTouches.length&&r.changedTouches[0].pageY;if(!a)break;a-=e.getMap().getTargetElement().getBoundingClientRect().top+window.pageYOffset-document.documentElement.clientTop,t=e.getMap().getSize()[1];var o=t-Math.min(Math.max(0,t-a),t);t=o/t,e.set("position",t),e.dispatchEvent({type:"moving",size:[e.getMap().getSize()[0],o],position:[0,t]})}break}}};vo.prototype._transformPt=function(r,e){var t=r.inversePixelTransform,n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e};vo.prototype._drawRect=function(r,e){var t=r.inversePixelTransform;if(t){var n=[[e[0][0],e[0][1]],[e[0][0],e[1][1]],[e[1][0],e[1][1]],[e[1][0],e[0][1]],[e[0][0],e[0][1]]];if(r.context.save(),r.target.getImageRatio){var i=-Math.atan2(r.frameState.pixelToCoordinateTransform[1],r.frameState.pixelToCoordinateTransform[0]);r.context.translate(r.frameState.size[0]/2,r.frameState.size[1]/2),r.context.rotate(i),r.context.translate(-r.frameState.size[0]/2,-r.frameState.size[1]/2)}n.forEach(function(o,s){o=[o[0]*t[0]-o[1]*t[1]+t[4],-o[0]*t[2]+o[1]*t[3]+t[5]],s?r.context.lineTo(o[0],o[1]):r.context.moveTo(o[0],o[1])}),r.context.restore()}else{var a=r.frameState.pixelRatio;r.context.rect(e[0][0]*a,e[0][1]*a,e[1][0]*a,e[1][1]*a)}};vo.prototype.precomposeLeft=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?a=Math.round(a*this.get("position")):(o=Math.round(o*this.get("position")),n[1]+=t[1]-o),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[1]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),s[1]]:A[1]=[s[0],s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};vo.prototype.precomposeRight=function(r){var e=r.context;if(e instanceof WebGLRenderingContext){if(r.type==="prerender"){e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),e.enable(e.SCISSOR_TEST);var t=this.getMap().getSize(),n=this._transformPt(r,[0,t[1]]),i=this._transformPt(r,[t[0],0]),a=i[0]-n[0],o=i[1]-n[1];this.get("orientation")==="vertical"?(a=Math.round(a*(1-this.get("position"))),n[0]+=t[0]-a):o=Math.round(o*(1-this.get("position"))),e.scissor(n[0],n[1],a,o)}}else{var s=r.frameState.size;e.save(),e.beginPath();var A=[[0,0],[s[0],s[1]]];this.get("orientation")==="vertical"?A[0]=[s[0]*.5+this.getMap().getSize()[0]*(this.get("position")-.5),0]:A[0]=[0,s[1]*.5+this.getMap().getSize()[1]*(this.get("position")-.5)],this._drawRect(r,A),e.clip()}};vo.prototype.postcompose=function(r){if(r.context instanceof WebGLRenderingContext){if(r.type==="postrender"){var e=r.context;e.disable(e.SCISSOR_TEST)}}else r.target.getClassName&&r.target.getClassName()!=="ol-layer"&&r.target.get("declutter")?setTimeout(function(){r.context.restore()},0):r.context.restore()};const AAt={name:"ol-swipe-control",setup(r,e){const{control:t}=Di(vo,r,e),{layerList:n}=Lu(r);return n.value.forEach((i,a)=>{t.value.addLayer(i,a==1)}),{control:t}},props:{layerList:{type:Array},className:{type:String,default:"ol-swipe"},position:{type:Number,default:.5},orientation:{type:String,default:"vertical"}}};function lAt(r,e,t,n,i,a){return dr("",!0)}var QS=le(AAt,[["render",lAt]]),Uo=function(r){r||(r={});var e=document.createElement("div");if(e.classList.add("ol-unselectable","ol-control","ol-bar"),r.className){var t=r.className.split(" ").filter(function(i){return i.length>0});e.classList.add.apply(e.classList,t)}if(r.group&&e.classList.add("ol-group"),_r.call(this,{element:e,target:r.target}),this.set("toggleOne",r.toggleOne),this.set("autoDeactivate",r.autoDeactivate),this.controls_=[],r.controls instanceof Array)for(var n=0;nT-.5?_.classList.add("ol-100pc"):_.classList.remove("ol-100pc")}},v=function(b){b.target.classList.contains("ol-noscroll")||(l=!1,t=b[s],a=new Date,r.classList.add("ol-move"),b.preventDefault(),window.addEventListener("pointermove",m),ct.addListener(window,["pointerup","pointercancel"],L))},m=function(b){if(l=!0,t!==!1){var T=(c?-1/u:1)*(t-b[s]);r[A]+=T,i=new Date,i-a&&(n=(n+T/(i-a))/2),t=b[s],a=i,T&&o(!0)}},g=function(b){var T=b>0?Math.min(100,b/2):Math.max(-100,b/2);b-=T,r[A]+=T,-1100||c?n=0:a>0&&(n=((n||0)+(t-b[s])/a)/2),g(e.animate===!1?0:n*200),t=!1,n=0,a=0,r.classList.contains("ol-move")?r.classList.remove("ol-hasClick"):(r.classList.add("ol-hasClick"),setTimeout(function(){r.classList.remove("ol-hasClick")},500)),c=!1,window.removeEventListener("pointermove",m),ct.removeListener(window,["pointerup","pointercancel"],L)},O=function(b){var T=Math.max(-1,Math.min(1,b.wheelDelta||-b.detail));return r.classList.add("ol-move"),r[A]-=T*30,r.classList.remove("ol-move"),!1};return e.mousewheel&&ct.addListener(r,["mousewheel","DOMMouseScroll","onmousewheel"],O),{refresh:f}};ct.dispatchEvent=function(r,e){var t;try{t=new CustomEvent(r)}catch{t=document.createEvent("CustomEvent"),t.initCustomEvent(r,!0,!0,{})}e.dispatchEvent(t)};var El=function(r){r=r||{};var e=document.createElement("div");e.className=(r.className||"")+" ol-button ol-unselectable ol-control";var t=this,n=this.button_=document.createElement(/ol-text-button/.test(r.className)?"div":"button");n.type="button",r.title&&(n.title=r.title),r.name&&(n.name=r.name),r.html instanceof Element?n.appendChild(r.html):n.innerHTML=r.html||"";var i=function(a){a&&a.preventDefault&&(a.preventDefault(),a.stopPropagation()),r.handleClick&&r.handleClick.call(t,a)};n.addEventListener("click",i),e.appendChild(n),!r.title&&n.firstElementChild&&(n.title=n.firstElementChild.title),_r.call(this,{element:e,target:r.target}),r.title&&this.set("title",r.title),r.title&&this.set("title",r.title),r.name&&this.set("name",r.name)};Cr(El,_r);El.prototype.setVisible=function(r){r?ct.show(this.element):ct.hide(this.element)};El.prototype.setTitle=function(r){this.button_.setAttribute("title",r)};El.prototype.setHtml=function(r){ct.setHTML(this.button_,r)};El.prototype.getButtonElement=function(){return this.button_};var rs=function(r){r=r||{};var e=this;this.interaction_=r.interaction,this.interaction_&&(this.interaction_.setActive(r.active),this.interaction_.on("change:active",function(){e.setActive(e.interaction_.getActive())})),r.toggleFn&&(r.onToggle=r.toggleFn),r.handleClick=function(){e.toggle(),r.onToggle&&r.onToggle.call(e,e.getActive())},r.className=(r.className||"")+" ol-toggle",El.call(this,r),this.set("title",r.title),this.set("autoActivate",r.autoActivate),r.bar&&this.setSubBar(r.bar),this.setActive(r.active),this.setDisable(r.disable)};Cr(rs,El);rs.prototype.setMap=function(r){!r&&this.getMap()&&(this.interaction_&&this.getMap().removeInteraction(this.interaction_),this.subbar_&&this.getMap().removeControl(this.subbar_)),El.prototype.setMap.call(this,r),r&&(this.interaction_&&r.addInteraction(this.interaction_),this.subbar_&&r.addControl(this.subbar_))};rs.prototype.getSubBar=function(){return this.subbar_};rs.prototype.setSubBar=function(r){var e=this.getMap();e&&this.subbar_&&e.removeControl(this.subbar_),this.subbar_=r,r&&(this.subbar_.setTarget(this.element),this.subbar_.element.classList.add("ol-option-bar"),e&&e.addControl(this.subbar_))};rs.prototype.getDisable=function(){var r=this.element.querySelector("button");return r&&r.disabled};rs.prototype.setDisable=function(r){this.getDisable()!=r&&(this.element.querySelector("button").disabled=r,r&&this.getActive()&&this.setActive(!1),this.dispatchEvent({type:"change:disable",key:"disable",oldValue:!r,disable:r}))};rs.prototype.getActive=function(){return this.element.classList.contains("ol-active")};rs.prototype.toggle=function(){this.getActive()?this.setActive(!1):this.setActive(!0)};rs.prototype.setActive=function(r){this.interaction_&&this.interaction_.setActive(r),this.subbar_&&this.subbar_.setActive(r),this.getActive()!==r&&(r?this.element.classList.add("ol-active"):this.element.classList.remove("ol-active"),this.dispatchEvent({type:"change:active",key:"active",oldValue:!r,active:r}))};rs.prototype.setInteraction=function(r){this.interaction_=r};rs.prototype.getInteraction=function(){return this.interaction_};const hAt={name:"ol-control-toggle",setup(r,e){const{control:t}=Di(rs,r,e);return{control:t}},props:{html:{type:String},interaction:{type:Object},className:{type:String},title:{type:String},onToggle:{type:Function}}};function fAt(r,e,t,n,i,a){return dr("",!0)}var GS=le(hAt,[["render",fAt]]);const pAt={name:"ol-control-button",setup(r,e){const{control:t}=Di(El,r,e);return{control:t}},props:{html:{type:String},name:{type:String},className:{type:String},title:{type:String},handleClick:{type:Function}}};function dAt(r,e,t,n,i,a){return dr("",!0)}var kS=le(pAt,[["render",dAt]]),Ia=function(r){r=r||{},r.fullscreen&&(r.target=document.body);var e=ct.create("DIV",{className:((r.className||"")+(r.zoom?" ol-zoom":"")+" ol-ext-dialog").trim(),click:function(i){this.get("hideOnBack")&&i.target===e&&this.close(),this.get("hideOnClick")&&this.close()}.bind(this)}),t=ct.create("FORM",{on:{submit:this._onButton("submit")},parent:e});ct.create("H2",{parent:t}),ct.create("DIV",{className:"ol-closebox",click:this._onButton("cancel"),parent:t}),ct.create("DIV",{className:"ol-content",parent:t}),this._progress=ct.create("DIV",{style:{display:"none"},parent:t});var n=ct.create("DIV",{className:"ol-progress-bar",parent:this._progress});this._progressbar=ct.create("DIV",{parent:n}),this._progressMessage=ct.create("DIV",{className:"ol-progress-message",parent:this._progress}),ct.create("DIV",{className:"ol-buttons",parent:t}),_r.call(this,{element:e,target:r.target}),this.set("closeBox",r.closeBox!==!1),this.set("zoom",!!r.zoom),this.set("hideOnClick",!!r.hideOnClick),this.set("hideOnBack",!!r.hideOnBack),this.set("className",e.className),this.set("closeOnSubmit",r.closeOnSubmit),this.set("buttons",r.buttons),this.setContent(r)};Cr(Ia,_r);Ia.prototype.show=function(r){r&&((r instanceof Element||typeof r=="string")&&(r={content:r}),this.setContent(r)),this.element.classList.add("ol-visible");var e=this.element.querySelector('input[type="text"],input[type="search"],input[type="number"]');if(e&&e.focus(),this.dispatchEvent({type:"show"}),r){if(r.autoclose){var t=setTimeout(function(){this.hide()}.bind(this),r.autoclose);this.once("hide",function(){clearTimeout(t)})}if(r.hideOnBack){var n=this.get("hideOnBack");this.set("hideOnBack",!0),this.once("hide",function(){this.set("hideOnBack",n)}.bind(this))}}};Ia.prototype.open=function(){this.show()};Ia.prototype.setContentMessage=function(r){if(r!==void 0){var e=this.getContentElement();r instanceof Element&&ct.setHTML(e,""),ct.setHTML(e,r||"")}};Ia.prototype.setTitle=function(r){var e=this.element.querySelector("form");e.querySelector("h2").innerText=r||"",r?e.classList.add("ol-title"):e.classList.remove("ol-title")};Ia.prototype.setContent=function(r){if(r){this.element.className=this.get("className"),typeof r=="string"&&(r={content:r}),r=r||{},this.setProgress(!1),r.max&&this.setProgress(0,r.max),r.progress!==void 0&&this.setProgress(r.progress),this.get("zoom")?this.element.classList.add("ol-zoom"):this.element.classList.remove("ol-zoom"),r.className&&r.className.split(" ").forEach(function(a){this.element.classList.add(a)}.bind(this));var e=this.element.querySelector("form");r.content!==void 0&&(r.content instanceof Element&&ct.setHTML(e.querySelector(".ol-content"),""),ct.setHTML(e.querySelector(".ol-content"),r.content||"")),this.setTitle(r.title),r.closeBox||this.get("closeBox")&&r.closeBox!==!1?e.classList.add("ol-closebox"):e.classList.remove("ol-closebox");var t=this.element.querySelector(".ol-buttons");t.innerHTML="";var n=r.buttons||this.get("buttons");if(n){e.classList.add("ol-button");for(var i in n)ct.create("INPUT",{type:i==="submit"?"submit":"button",value:n[i],click:this._onButton(i,r.onButton),parent:t})}else e.classList.remove("ol-button")}};Ia.prototype.getContentElement=function(){return this.element.querySelector("form .ol-content")};Ia.prototype.setProgress=function(r,e,t){if(r===!1){ct.setStyle(this._progress,{display:"none"});return}if(e>0?this.set("max",Number(e)):e=this.get("max"),!e)ct.setStyle(this._progress,{display:"none"});else{var n=Math.round(r/e*100);ct.setStyle(this._progress,{display:""}),this._progressbar.className=n?"":"notransition",ct.setStyle(this._progressbar,{width:n+"%"})}this._progressMessage.innerHTML="",ct.setHTML(this._progressMessage,t||"")};Ia.prototype._onButton=function(r,e){var t=function(n){n.preventDefault(),(r!=="submit"||this.get("closeOnSubmit")!==!1)&&this.hide();var i=this.getInputs();this.dispatchEvent({type:"button",button:r,inputs:i}),typeof e=="function"&&e(r,i)}.bind(this);return t};Ia.prototype.getInputs=function(){var r={};return["input","textarea","select"].forEach(function(e){this.element.querySelectorAll("form "+e).forEach(function(t){t.className&&t.className.split(" ").forEach(function(n){r[n]=t})})}.bind(this)),r};Ia.prototype.hide=function(){this.element.classList.remove("ol-visible"),this.dispatchEvent({type:"hide"})};Ia.prototype.close=Ia.prototype.hide;Ia.prototype.isOpen=function(){return this.element.classList.contains("ol-visible")};var vAt=function(r){if(!r)return null;var e=r.getViewport().getElementsByClassName("ol-fixedoverlay")[0];return e||(r.getViewport().querySelector(".ol-layers")?(e=document.createElement("canvas"),e.className="ol-fixedoverlay",r.getViewport().querySelector(".ol-layers").after(e),r.on("precompose",function(t){e.width=r.getSize()[0]*t.frameState.pixelRatio,e.height=r.getSize()[1]*t.frameState.pixelRatio})):e=r.getViewport().querySelector("canvas")),e},Qi=function(r){r||(r={}),this.setStyle(r.style),_r.call(this,r)};Cr(Qi,_r);Qi.prototype.setMap=function(r){this.getCanvas(r);var e=this.getMap();if(this._listener&&(No(this._listener),this._listener=null),_r.prototype.setMap.call(this,r),e)try{e.renderSync()}catch{}r&&(this._listener=r.on("postcompose",this._draw.bind(this)))};Qi.prototype.getCanvas=function(r){return vAt(r)};Qi.prototype.getContext=function(r){var e=r.context;if(!e&&this.getMap()){var t=this.getMap().getViewport().getElementsByClassName("ol-fixedoverlay")[0];e=t?t.getContext("2d"):null}return e};Qi.prototype.setStyle=function(r){this._style=r||new oa({})};Qi.prototype.getStyle=function(){return this._style};Qi.prototype.getStroke=function(){var r=this._style.getStroke();return r||this._style.setStroke(new Ui({color:"#000",width:1.25})),this._style.getStroke()};Qi.prototype.getFill=function(){var r=this._style.getFill();return r||this._style.setFill(new Aa({color:"#fff"})),this._style.getFill()};Qi.prototype.getTextStroke=function(){var r=this._style.getText();return r||(r=new bh({})),r.getStroke()||r.setStroke(new Ui({color:"#fff",width:3})),r.getStroke()};Qi.prototype.getTextFill=function(){var r=this._style.getText();return r||(r=new bh({})),r.getFill()||r.setFill(new Aa({color:"#fff"})),r.getFill()};Qi.prototype.getTextFont=function(){var r=this._style.getText();return r||(r=new bh({})),r.getFont()||r.setFont("12px sans-serif"),r.getFont()};Qi.prototype._draw=function(){console.warn("[CanvasBase] draw function not implemented.")};function gAt(r,e){var t=r.canvas,n=e||{},i=n.pixelRatio||uh,a=n.size;a&&(t.width=a[0]*i,t.height=a[1]*i,t.style.width=a[0]+"px",t.style.height=a[1]+"px");var o=[0,0,t.width,t.height],s=Pv(oi(),i,i);return new fF(r,i,o,s,0)}var Rp=function(r){r=r||{},li.call(this,r),r.feature&&this.set("feature",r.feature.clone())};Cr(Rp,li);Rp.prototype.setTitle=function(r){this.set("title",r||""),this.changed()};Rp.prototype.getElement=function(r,e){var t=ct.create("LI",{className:this.get("className"),click:function(n){e(!1),n.stopPropagation()},style:{height:r[1]+"px"},"aria-label":this.get("title")});return ct.create("DIV",{click:function(n){e(!0),n.stopPropagation()},style:{width:r[0]+"px",height:r[1]+"px"},parent:t}),t};window.ol&&!ol.legend&&(ol.legend={});var la=function(r){r=r||{},li.call(this),this._items=new si;var e=[],t;this._items.on("add",function(n){e.push({item:n.element,on:n.element.on("change",function(){this.refresh()}.bind(this))}),t&&(clearTimeout(t),t=null),t=setTimeout(function(){this.refresh()}.bind(this),0)}.bind(this)),this._items.on("remove",function(n){for(var i=0;i"u"&&(r.margin=10);var n=r.size||[40,25];r.onload=r.onload||function(){setTimeout(function(){la.getLegendImage(r,e,t)},100)};var i=n[0]+2*r.margin,a=r.lineHeight||n[1]+2*r.margin,o=uh;e||(t=0,e=document.createElement("canvas"),e.width=i*o,e.height=a*o);var s=e.getContext("2d");s.save();var A=vAt(s,{pixelRatio:o}),l=r.typeGeom,u,c=r.feature;!c&&l&&(/Point/.test(l)?c=new or(new fr([0,0])):/LineString/.test(l)?c=new or(new Hr([0,0])):c=new or(new bn([[0,0]])),r.properties&&c.setProperties(r.properties)),c?(u=c.getStyle(),typeof u=="function"&&(u=u(c)),u||(u=typeof r.style=="function"?r.style(c):r.style||[]),l=c.getGeometry().getType()):u=[],u instanceof Array||(u=[u]);var h=i/2,f=a/2,p=n[0]/2,v=n[1]/2,m,g;if(l==="Point"){var _=null;for(m=0;g=u[m];m++){var E=g.getImage();if(E){var B=E.getImage();if(B&&B.complete&&!B.naturalWidth&&(typeof r.onload=="function"&&B.addEventListener("load",function(){setTimeout(function(){r.onload()},100)}),E.load()),E.getAnchor){var L=E.getAnchor();if(L){var O=E.getSize(),b=L[0]-O[0],T=L[1]-O[1];_?Uu(_,[b,T,b+O[0],T+O[1]]):_=[b,T,b+O[0],T+O[1]]}}}}_&&(h=h+(_[2]+_[0])/2,f=f+(_[3]+_[1])/2)}for(f+=t*a||0,m=0;g=u[m];m++)switch(A.setStyle(g),l){case fr:case"Point":case"MultiPoint":A.drawGeometry(new fr([h,f]));break;case Hr:case"LineString":case"MultiLineString":s.save(),s.rect(r.margin*o,0,n[0]*o,e.height),s.clip(),A.drawGeometry(new Hr([[h-p,f],[h+p,f]])),s.restore();break;case bn:case"Polygon":case"MultiPolygon":A.drawGeometry(new bn([[[h-p,f-v],[h+p,f-v],[h+p,f+v],[h-p,f+v],[h-p,f-v]]]));break}return s.restore(),e};var Ms=function(r){r=r||{};var e=document.createElement("div");if(r.target)e.className=r.className||"ol-legend";else{e.className=(r.className||"ol-legend")+" ol-unselectable ol-control"+(r.collapsible===!1?" ol-uncollapsible":" ol-collapsed");var t=document.createElement("button");t.setAttribute("type","button"),t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t),t=document.createElement("button"),t.setAttribute("type","button"),t.className="ol-closebox",t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t)}Qi.call(this,{element:e,target:r.target}),this._legend=r.legend,this._legend.getCanvas().className="ol-legendImg",e.appendChild(this._legend.getCanvas()),e.appendChild(this._legend.getListElement()),r.collapsible!==!1&&r.collapsed===!1&&this.show(),this._legend.on("select",function(n){this.dispatchEvent(n)}.bind(this)),this._legend.on("refresh",function(){if(this._onCanvas&&this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this))};Cr(Ms,Qi);Ms.prototype.getLegend=function(){return this._legend};Ms.prototype.setCanvas=function(r){if(this._onCanvas=r,this.element.style.visibility=r?"hidden":"visible",this.getMap())try{this.getMap().renderSync()}catch{}};Ms.prototype.onCanvas=function(){return!!this._onCanvas};Ms.prototype._draw=function(r){if(this._onCanvas&&!this.element.classList.contains("ol-collapsed")){var e=this._legend.getCanvas(),t=this.getContext(r),n=t.canvas.height-e.height;t.save(),t.rect(0,n,e.width,e.height);var i="#fff";this._legend.getTextStyle().getBackgroundFill()&&(i=tl(this._legend.getTextStyle().getBackgroundFill().getColor())),t.fillStyle=t.strokeStyle=i,t.lineWidth=10,t.lineJoin="round",t.stroke(),t.clearRect(0,n,e.width,e.height),t.fill(),t.drawImage(e,0,n),t.restore()}};Ms.prototype.show=function(){if(this.element.classList.contains("ol-collapsed")&&(this.element.classList.remove("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!1}),this.getMap()))try{this.getMap().renderSync()}catch{}};Ms.prototype.hide=function(){if(!this.element.classList.contains("ol-collapsed")&&(this.element.classList.add("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!0}),this.getMap()))try{this.getMap().renderSync()}catch{}};Ms.prototype.collapse=function(r){r===!1?this.show():this.hide()};Ms.prototype.isCollapsed=function(){return this.element.classList.contains("ol-collapsed")};Ms.prototype.toggle=function(){if(this.element.classList.toggle("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:this.element.classList.contains("ol-collapsed")}),this.getMap())try{this.getMap().renderSync()}catch{}};var Zu=function(r){r||(r={});var e=ct.create("DIV",{className:r.className||"ol-print"});r.target||(e.classList.add("ol-unselectable","ol-control"),ct.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e})),_r.call(this,{element:e,target:r.target}),this.set("immediate",r.immediate),this.set("imageType",r.imageType||"image/jpeg"),this.set("quality",r.quality||.8),this.set("orientation",r.orientation)};Cr(Zu,_r);Zu.prototype.toClipboard=function(r,e){try{r.canvas.toBlob(function(t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},t.type,{value:t,enumerable:!0}))]),typeof e=="function"&&e(!0)}catch{typeof e=="function"&&e(!1)}})}catch{typeof e=="function"&&e(!1)}};Zu.prototype.copyMap=function(r,e){this.once("print",function(t){this.toClipboard(t,e)}.bind(this)),this.print(r)};Zu.prototype._getCanvas=function(r,e,t){var n;if(r.context)t=r.context.canvas;else{if(t)n=t.getContext("2d");else{t=document.createElement("canvas");var i=this.getMap().getSize();t.width=i[0],t.height=i[1],n=t.getContext("2d"),/jp.*g$/.test(e)&&(n.fillStyle=this.get("bgColor")||"white",n.fillRect(0,0,t.width,t.height))}this.getMap().getViewport().querySelectorAll(".ol-layers canvas, canvas.ol-fixedoverlay").forEach(function(a){if(a.width){if(n.save(),a.parentNode.style.opacity==="0")return;n.globalAlpha=parseFloat(a.parentNode.style.opacity)||1,ct.getStyle(a.parentNode,"mix-blend-mode")==="multiply"&&(n.globalCompositeOperation="multiply");var o=ct.getStyle(a,"transform")||ct.getStyle(a,"-webkit-transform");/^matrix/.test(o)?(o=o.replace(/^matrix\(|\)$/g,"").split(","),o.forEach(function(s,A){o[A]=parseFloat(s)}),n.transform(o[0],o[1],o[2],o[3],o[4],o[5]),n.drawImage(a,0,0)):n.drawImage(a,0,0,ct.getStyle(a,"width"),ct.getStyle(a,"height")),n.restore()}}.bind(this))}return t};Zu.prototype.fastPrint=function(r,e){r=r||{},this._ol6?requestAnimationFrame(function(){e(this._getCanvas({},r.imageType,r.canvas))}.bind(this)):(this.getMap().once("postcompose",function(t){t.context||(this._ol6=!0),e(this._getCanvas(t,r.imageType,r.canvas))}.bind(this)),this.getMap().render())};Zu.prototype.print=function(r){r=r||{};var e=r.imageType||this.get("imageType"),t=r.quality||this.get("quality");if(this.getMap()){if(r.immediate!=="silent"&&this.dispatchEvent(Object.assign({type:"printing"},r)),!r.immediate){setTimeout(function(){r=Object.assign({},r),r.immediate="silent",this.print(r)}.bind(this),200);return}this.getMap().once(this.get("immediate")?"postcompose":"rendercomplete",function(n){var i=this._getCanvas(n,e),a=r.size||[210,297],o=r.format||"a4",s,A,l,u=r.orient||this.get("orientation"),c=typeof r.margin=="number"?r.margin:10;if(i){u!=="landscape"&&u!=="portrait"&&(u=i.width>i.height?"landscape":"portrait"),u==="landscape"&&(a=[a[1],a[0]]);var h=Math.min((a[0]-2*c)/i.width,(a[1]-2*c)/i.height);s=h*i.width,A=h*i.height,l=[(a[0]-s)/2,(a[1]-A)/2]}var f;try{f=i?i.toDataURL(e,t):null}catch{this.dispatchEvent({type:"error",canvas:i});return}var p=Object.assign({type:"print",print:{format:o,orientation:u,unit:"mm",size:a,position:l,imageWidth:s,imageHeight:A},image:f,imageType:e,quality:t,canvas:i},r);this.dispatchEvent(p)}.bind(this)),this.getMap().render()}};var Ju=function(r){r||(r={});var e=ct.create("DIV",{className:(r.className||"")+" ol-control-title ol-unselectable",style:{display:"block",visibility:"hidden"}});Qi.call(this,{element:e,style:r.style}),this.setTitle(r.title||""),this.setVisible(r.visible),this.element.style.font=this.getTextFont()};Cr(Ju,Qi);Ju.prototype.setStyle=function(r){Qi.prototype.setStyle.call(this,r),this.element&&(this.element.style.font=this.getTextFont()),this.getMap()&&this.getMap().render()};Ju.prototype.setTitle=function(r){if(this.element.textContent=r,this.set("title",r),this.getMap())try{this.getMap().renderSync()}catch{}};Ju.prototype.getTitle=function(){return this.get("title")};Ju.prototype.setVisible=function(r){if(this.element.style.display=r?"block":"none",this.getMap())try{this.getMap().renderSync()}catch{}};Ju.prototype.getVisible=function(){return this.element.style.display!=="none"};Ju.prototype._draw=function(r){if(this.getVisible()){var e=this.getContext(r);if(e){var t=r.frameState.pixelRatio;e.save(),e.scale(t,t);var n=this.element.getBoundingClientRect(),i=this.getMap().getViewport().getBoundingClientRect(),a=this.getMap().getSize()[0]/i.width;e.translate(Math.round((n.left-i.left)*a),Math.round((n.top-i.top)*a));var o=this.element.clientHeight,s=this.element.clientWidth,A=s/2;e.beginPath(),e.fillStyle=tl(this.getFill().getColor()),e.rect(0,0,s,o),e.fill(),e.closePath(),e.beginPath(),e.fillStyle=tl(this.getTextFill().getColor()),e.strokeStyle=tl(this.getTextStroke().getColor()),e.lineWidth=this.getTextStroke().getWidth(),e.textAlign="center",e.textBaseline="middle",e.font=this.getTextFont(),e.lineWidth&&e.strokeText(this.getTitle(),A,o/2),e.fillText(this.getTitle(),A,o/2),e.closePath(),e.restore()}}};var $S=function(r,e){var t=r.getView(),n=t.getProjection(),i=t.getCenter(),a=r.getPixelFromCoordinate(i);a[1]+=1;var o=r.getCoordinateFromPixel(a),s=B_(Qu(i,n,"EPSG:4326"),Qu(o,n,"EPSG:4326"));return s*=(e||96)/.0254,s},gAt=function(r,e,t){if(r&&e){var n=e;if(typeof e=="string"&&(n=e.split("/")[1],n||(n=e),n=n.replace(/[^\d]/g,""),n=parseInt(n)),!n)return;var i=r.getView(),a=i.getProjection(),o=i.getCenter(),s=r.getPixelFromCoordinate(o);s[1]+=1;var A=r.getCoordinateFromPixel(s),l=B_(Qu(o,a,"EPSG:4326"),Qu(A,a,"EPSG:4326"));return l*=(t||96)/.0254,i.setResolution(i.getResolution()*n/l),n}},ul=function(r){r||(r={});var e=document.createElement("div");e.className="ol-control ol-compassctrl ol-unselectable ol-hidden"+(r.className?" "+r.className:""),e.style.position="absolute",e.style.visibility="hidden";var t=r.style instanceof Ui?new oa({stroke:r.style}):r.style;r.style||(t=new oa({stroke:new Ui({width:0})})),Qi.call(this,{element:e,style:t}),this.set("rotateVithView",r.rotateWithView!==!1),this.setVisible(r.visible!==!1),this.setImage(r.image||r.src)};Cr(ul,Qi);ul.prototype.setImage=function(r){if(r instanceof Image)this.img_=r,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this);else if(typeof r=="string")switch(r){case"compact":{this.img_=this.compactCompass_(this.element.clientWidth,this.getStroke().getColor());break}case"default":{this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor());break}default:{this.img_=new Image,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this),this.img_.src=r;break}}else this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor())};ul.prototype.compactCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2;return n.translate(i,i),n.fillStyle=e||"#963",n.lineWidth=5,n.lineJoin=n.lineCap="round",n.font="bold "+i*.4+"px sans-serif",n.textBaseline="bottom",n.textAlign="center",n.strokeStyle="#fff",n.globalAlpha=.75,n.strokeText("N",0,-i/2),n.globalAlpha=1,n.fillText("N",0,-i/2),n.beginPath(),n.moveTo(0,i/4),n.lineTo(i/3,i/2),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.lineWidth=12,n.fillStyle="#fff",n.globalAlpha=.75,n.fill(),n.stroke(),n.globalAlpha=1,n.fillStyle=n.strokeStyle=e||"#963",n.lineWidth=5,n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(i/3,i/2),n.lineTo(0,i/4),n.fill(),n.stroke(),n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.stroke(),t};ul.prototype.defaultCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2,a=.22*i;function o(A,l){n.fillStyle=e||"#963",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,-l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(l,-l),n.moveTo(0,0),n.fill(),n.stroke()}function s(A,l){n.globalCompositeOperation="destination-out",n.fillStyle="#fff",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.fill(),n.globalCompositeOperation="source-over",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.stroke()}return n.translate(i,i),n.strokeStyle=e||"#963",n.lineWidth=1.5,n.beginPath(),n.arc(0,0,r*.41,0,2*Math.PI),n.arc(0,0,r*.44,0,2*Math.PI),n.stroke(),n.rotate(Math.PI/4),o(i*.9,a*.8),s(i*.9,a*.8),n.rotate(-Math.PI/4),o(i,a),s(i,a),t};ul.prototype.getVisible=function(){return ct.getStyle(this.element,"display")==="block"};ul.prototype.setVisible=function(r){r?this.element.classList.add("ol-visible"):this.element.classList.remove("ol-visible"),this.getMap()&&this.getMap().render()};ul.prototype._draw=function(r){var e=this.getContext(r);if(!(!e||!this.getVisible())){var t=e.canvas,n,i=[];for(n=0;n<8;n++)i[n]=[Math.cos(Math.PI*n/8),Math.sin(Math.PI*n/8)];var a=r.frameState.pixelRatio;e.save(),e.scale(a,a);var o=this.element.clientWidth,s=this.element.clientHeight,A={left:this.element.offsetLeft,top:this.element.offsetTop},l=this.img_,u=r.frameState.viewState.rotation;if(e.beginPath(),e.translate(A.left+o/2,A.top+s/2),this.get("rotateVithView")&&e.rotate(u),this.getStroke().getWidth()){e.beginPath(),e.strokeStyle=this.getStroke().getColor(),e.lineWidth=this.getStroke().getWidth();var c=Math.max(t.width,t.height);for(n=0;n<8;n++)e.moveTo(-i[n][0]*c,-i[n][1]*c),e.lineTo(i[n][0]*c,i[n][1]*c);e.stroke()}l.width&&e.drawImage(l,-o/2,-s/2,o,s),e.closePath(),e.restore()}};var In=function(r){r||(r={}),this._lang=r.lang||"en";var e=ct.create("DIV",{className:(r.className||"ol-print")+" ol-unselectable ol-control"});ct.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e}),_r.call(this,{element:e}),r.openWindow&&this.on("print",function(S){S.canvas&&window.open().document.write('')}),r.target=ct.create("DIV");var t=this._printCtrl=new Zu(r);t.on(["print","error","printing"],function(S){i.setAttribute("data-status",S.type),S.clipboard||this.dispatchEvent(S)}.bind(this)),this._compass=new ul({src:r.northImage||"compact",visible:!1,className:"olext-print-compass",style:new Ui({color:"#333",width:0})});var n=this._printDialog=new Ia({target:document.body,closeBox:!0,className:"ol-ext-print-dialog"}),i=n.getContentElement();this._input={};var a=ct.create("DIV",{className:"ol-print-param",parent:i});this._pages=[ct.create("DIV",{className:"ol-page"})];var o=ct.create("DIV",{className:"ol-map",parent:this._pages[0]});ct.create("DIV",{html:this._pages[0],className:"ol-print-map",parent:i}),ct.create("H2",{html:this.i18n("title"),parent:a});var s=ct.create("UL",{parent:a}),A=ct.create("LI",{className:"ol-orientation",parent:s});this._input.orientation={list:A};var l=ct.create("LABEL",{className:"portrait",parent:A});this._input.orientation.portrait=ct.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"portrait",checked:!0,on:{change:function(S){this.setOrientation(S.target.value)}.bind(this)},parent:l}),ct.create("SPAN",{html:this.i18n("portrait"),parent:l}),l=ct.create("LABEL",{className:"landscape",parent:A}),this._input.orientation.landscape=ct.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"landscape",on:{change:function(S){this.setOrientation(S.target.value)}.bind(this)},parent:l}),ct.create("SPAN",{html:this.i18n("landscape"),parent:l});var u;A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("size")}),className:"ol-size",parent:s});var c=this._input.size=ct.create("SELECT",{on:{change:function(){this.setSize(c.value||I)}.bind(this)},parent:A});for(u in this.paperSize)ct.create("OPTION",{html:u+(this.paperSize[u]?" - "+this.paperSize[u][0]+"x"+this.paperSize[u][1]+" mm":this.i18n("custom")),value:u,parent:c});A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("margin")}),className:"ol-margin",parent:s});var h=this._input.margin=ct.create("SELECT",{on:{change:function(){this.setMargin(h.value)}.bind(this)},parent:A});for(u in this.marginSize)ct.create("OPTION",{html:this.i18n(u)+" - "+this.marginSize[u]+" mm",value:this.marginSize[u],parent:h});A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("scale")}),className:"ol-scale",parent:s});var f=this._input.scale=ct.create("SELECT",{on:{change:function(){this.setScale(parseInt(f.value))}.bind(this)},parent:A});Object.keys(this.scales).forEach(function(S){ct.create("OPTION",{html:this.scales[S],value:S,parent:f})}.bind(this)),A=ct.create("LI",{className:"ol-legend",parent:s});var p=ct.createSwitch({html:this.i18n("legend"),checked:!1,on:{change:function(){x.legend.control.setCanvas(p.checked)}.bind(this)},parent:A});A=ct.create("LI",{className:"ol-print-north",parent:s});var v=this._input.north=ct.createSwitch({html:this.i18n("north"),checked:"checked",on:{change:function(){v.checked?this._compass.element.classList.add("ol-print-compass"):this._compass.element.classList.remove("ol-print-compass"),this.getMap().render()}.bind(this)},parent:A});A=ct.create("LI",{className:"ol-print-title",parent:s});var m=ct.createSwitch({html:this.i18n("mapTitle"),checked:!1,on:{change:function(S){x.title.control.setVisible(S.target.checked)}.bind(this)},parent:A}),g=ct.create("INPUT",{type:"text",placeholder:this.i18n("mapTitle"),on:{keydown:function(S){S.keyCode===13&&S.preventDefault()},keyup:function(){x.title.control.setTitle(g.value)},change:function(){x.title.control.setTitle(g.value)}.bind(this)},parent:A}),_=ct.create("DIV",{className:"ol-user-param",parent:a});A=ct.create("LI",{className:"ol-saveas",parent:s});var E=ct.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),B=ct.create("SELECT",{on:{change:function(){if(this.formats[B.value].clipboard)t.copyMap(this.formats[B.value],function(P){P&&(E.classList.add("visible"),setTimeout(function(){E.classList.remove("visible")},1e3))});else{var S=typeof this.getSize()=="string"?this.getSize():null,N=Object.assign({format:S,size:S?this.paperSize[S]:null,orient:this.getOrientation(),margin:this.getMargin()},this.formats[B.value]);t.print(N)}B.value=""}.bind(this)},parent:A});ct.create("OPTION",{html:this.i18n("saveas"),style:{display:"none"},value:"",parent:B}),this.formats.forEach(function(S,N){if(S.pdf){if(r.pdf===!1)return}else if(S.clipboard){if(r.copy===!1)return}else if(r.save===!1)return;ct.create("OPTION",{html:this.i18n(S.title),value:N,parent:B})}.bind(this)),A=ct.create("LI",{className:"ol-savelegend",parent:s});var L=ct.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),O=ct.create("SELECT",{on:{change:function(){var S=x.legend.control.getLegend().getCanvas(),N=document.createElement("CANVAS");N.width=S.width,N.height=S.height;var P=N.getContext("2d");if(P.fillStyle="#fff",P.fillRect(0,0,N.width,N.height),P.drawImage(S,0,0),this.formats[O.value].clipboard)N.toBlob(function(_t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},_t.type,{value:_t,enumerable:!0}))]),L.classList.add("visible"),setTimeout(function(){L.classList.remove("visible")},1e3)}catch{}},"image/png");else{var X;try{X=N.toDataURL(this.formats[O.value].imageType,this.formats[O.value].quality);var z=typeof this.getSize()=="string"?this.getSize():"A4",tt=N.width/96*25.4,J=N.height/96*25.4,nt=this.paperSize[z];this.getOrientation()==="landscape"&&(nt=[nt[1],nt[0]]);var it=[(nt[0]-tt)/2,(nt[1]-J)/2];this.dispatchEvent({type:"print",print:{legend:!0,format:z,orientation:this.getOrientation(),unit:"mm",size:this.paperSize[z],position:it,imageWidth:tt,imageHeight:J},image:X,imageType:this.formats[O.value].imageType,pdf:this.formats[O.value].pdf,quality:this.formats[O.value].quality,canvas:N})}catch{}}O.value=""}.bind(this)},parent:A});ct.create("OPTION",{html:this.i18n("saveLegend"),style:{display:"none"},value:"",parent:O}),this.formats.forEach(function(S,N){ct.create("OPTION",{html:this.i18n(S.title),value:N,parent:O})}.bind(this));var b=ct.create("DIV",{className:"ol-ext-buttons",parent:a});ct.create("BUTTON",{html:this.i18n("printBt"),type:"submit",click:function(S){S.preventDefault(),window.print()},parent:b}),ct.create("BUTTON",{html:this.i18n("cancel"),type:"button",click:function(){n.hide()},parent:b}),ct.create("DIV",{html:this.i18n("errorMsg"),className:"ol-error",parent:a});var T,I,M,x={};n.on("show",function(){this.dispatchEvent({type:"show",userElement:_,dialog:this._printDialog,page:this.getPage()});var S=this.getMap();S&&(document.body.classList.add("ol-print-document"),T=S.getTargetElement(),I=S.getSize(),typeof this.getSize()=="string"?this.setSize(this.getSize()):this.setSize(I),S.setTarget(o),M&&No(M),M=S.on("moveend",function(){this.setScale($S(S))}.bind(this)),this.setScale($S(S)),x={},this.getMap().getControls().forEach(function(N){N instanceof Ms&&(x.legend={control:N}),N instanceof Ju&&(x.title={control:N}),N instanceof ul&&(x.compass?N.element.classList.remove("ol-print-compass"):(this._input.north.checked?N.element.classList.add("ol-print-compass"):N.element.classList.remove("ol-print-compass"),this._compass=N,x.compass={control:N}))}.bind(this)),x.title?(m.checked=x.title.isVisible=x.title.control.getVisible(),g.value=x.title.control.getTitle(),m.parentNode.parentNode.classList.remove("hidden")):m.parentNode.parentNode.classList.add("hidden"),x.legend?(x.legend.ison=x.legend.control.onCanvas(),x.legend.collapsed=x.legend.control.isCollapsed(),x.legend.control.collapse(!1),O.parentNode.classList.remove("hidden"),p.parentNode.parentNode.classList.remove("hidden"),p.checked=!x.legend.collapsed,x.legend.control.setCanvas(!x.legend.collapsed)):(O.parentNode.classList.add("hidden"),p.parentNode.parentNode.classList.add("hidden")))}.bind(this)),n.on("hide",function(){document.body.classList.remove("ol-print-document"),T&&(this.getMap().setTarget(T),T=null,M&&No(M),x.title&&x.title.control.setVisible(x.title.isVisible),x.legend&&(x.legend.control.setCanvas(x.legend.ison),x.legend.control.collapse(x.legend.collapsed)),this.dispatchEvent({type:"hide"}))}.bind(this)),window.addEventListener("resize",function(){this.setSize()}.bind(this)),r.saveAs&&this.on("print",function(S){S.pdf||S.canvas.toBlob(function(N){var P=(S.print.legend?"legend.":"map.")+S.imageType.replace("image/","");r.saveAs(N,P)},S.imageType,S.quality)}),r.jsPDF&&this.on("print",function(S){if(S.pdf){var N=new r.jsPDF({orientation:S.print.orientation,unit:S.print.unit,format:S.print.size});N.addImage(S.image,"JPEG",S.print.position[0],S.print.position[0],S.print.imageWidth,S.print.imageHeight),N.save(S.print.legend?"legend.pdf":"map.pdf")}})};Cr(In,_r);In.prototype.isOpen=function(){return this._printDialog.isOpen()};In.addLang=function(r,e){In.prototype._labels[r]=e};In.prototype.i18n=function(r){var e=this._labels.en[r]||"bad param";return this._labels[this._lang]&&this._labels[this._lang][r]&&(e=this._labels[this._lang][r]),e};In.prototype._labels={en:{title:"Print",orientation:"Orientation",portrait:"Portrait",landscape:"Landscape",size:"Page size",custom:"screen size",margin:"Margin",scale:"Scale",legend:"Legend",north:"North arrow",mapTitle:"Map title",saveas:"Save as...",saveLegend:"Save legend...",copied:"✔ Copied to clipboard",errorMsg:"Can't save map canvas...",printBt:"Print...",clipboardFormat:"copy to clipboard...",jpegFormat:"save as jpeg",pngFormat:"save as png",pdfFormat:"save as pdf",none:"none",small:"small",large:"large",cancel:"cancel"},fr:{title:"Imprimer",orientation:"Orientation",portrait:"Portrait",landscape:"Paysage",size:"Taille du papier",custom:"taille écran",margin:"Marges",scale:"Echelle",legend:"Légende",north:"Flèche du nord",mapTitle:"Titre de la carte",saveas:"Enregistrer sous...",saveLegend:"Enregistrer la légende...",copied:"✔ Carte copiée",errorMsg:"Impossible d'enregistrer la carte",printBt:"Imprimer",clipboardFormat:"copier dans le presse-papier...",jpegFormat:"enregistrer un jpeg",pngFormat:"enregistrer un png",pdfFormat:"enregistrer un pdf",none:"aucune",small:"petites",large:"larges",cancel:"annuler"},de:{title:"Drucken",orientation:"Ausrichtung",portrait:"Hochformat",landscape:"Querformat",size:"Papierformat",custom:"Bildschirmgröße",margin:"Rand",scale:"Maßstab",legend:"Legende",north:"Nordpfeil",mapTitle:"Kartentitel",saveas:"Speichern als...",saveLegend:"Legende speichern...",copied:"✔ In die Zwischenablage kopiert",errorMsg:"Kann Karte nicht speichern...",printBt:"Drucken...",clipboardFormat:"in die Zwischenablage kopieren...",jpegFormat:"speichern als jpeg",pngFormat:"speichern als png",pdfFormat:"speichern als pdf",none:"kein",small:"klein",large:"groß",cancel:"abbrechen"},zh:{title:"打印",orientation:"方向",portrait:"纵向",landscape:"横向",size:"页面大小",custom:"屏幕大小",margin:"外边距",scale:"尺度",legend:"图例",north:"指北针",mapTitle:"地图名字",saveas:"保存为...",saveLegend:"保存图例为...",copied:"✔ 已复制到剪贴板",errorMsg:"无法保存地图...",printBt:"打印...",cancel:"取消"}};In.prototype.paperSize={"":null,A0:[841,1189],A1:[594,841],A2:[420,594],A3:[297,420],A4:[210,297],"US Letter":[215.9,279.4],A5:[148,210],B4:[257,364],B5:[182,257]};In.prototype.marginSize={none:0,small:5,large:10};In.prototype.formats=[{title:"clipboardFormat",imageType:"image/png",clipboard:!0},{title:"jpegFormat",imageType:"image/jpeg",quality:.8},{title:"pngFormat",imageType:"image/png",quality:.8},{title:"pdfFormat",imageType:"image/jpeg",pdf:!0}];In.prototype.scales={" 5000":"1/5.000"," 10000":"1/10.000"," 25000":"1/25.000"," 50000":"1/50.000"," 100000":"1/100.000"," 250000":"1/250.000"," 1000000":"1/1.000.000"};In.prototype.getOrientation=function(){return this._orientation||"portrait"};In.prototype.setOrientation=function(r){this._orientation=r==="landscape"?"landscape":"portrait",this._input.orientation[this._orientation].checked=!0,this.setSize()};In.prototype.getMargin=function(){return this._margin||0};In.prototype.setMargin=function(r){this._margin=r,this._input.margin.value=r,this.setSize()};In.prototype.getSize=function(){return this._size};In.prototype.setSize=function(r){if(this._printDialog.getContentElement().setAttribute("data-status",""),r?this._size=r:r=this._size,!!r){if(typeof r=="string"){for(var e in this.paperSize)e&&new RegExp(e,"i").test(r)&&(r=e);this.paperSize[r]||(r=this._size="A4"),this._input.size.value=r,r=[Math.trunc(this.paperSize[r][0]*96/25.4),Math.trunc(this.paperSize[r][1]*96/25.4)],this.getOrientation()==="landscape"&&(r=[r[1],r[0]]),this.getPage().classList.remove("margin")}else this._input.size.value="",this.getPage().classList.add("margin");var t=this.getPage(),n=t.parentNode.getBoundingClientRect(),i=(n.width-40)/r[0],a=(n.height-40)/r[1],o=Math.min(i,a,1);t.style.width=r[0]+"px",t.style.height=r[1]+"px",t.style["-webkit-transform"]=t.style.transform="translate(-50%,-50%) scale("+o+")";var s=Math.round(5/o);t.style["-webkit-box-shadow"]=t.style["box-shadow"]=s+"px "+s+"px "+s+"px rgba(0,0,0,.6)",t.style.padding=this.getMargin()*96/25.4+"px",this.getMap()&&this.getMap().updateSize(),this.dispatchEvent({type:"dialog:refresh"})}};In.prototype.getContentElement=function(){return this._printDialog.getContentElement()};In.prototype.getUserElement=function(){return this._printDialog.getContentElement().querySelector(".ol-user-param")};In.prototype.getPage=function(){return this._pages[0]};In.prototype.setMap=function(r){this.getMap()&&(this.getMap().removeControl(this._compass),this.getMap().removeControl(this._printCtrl),this.getMap().removeControl(this._printDialog)),_r.prototype.setMap.call(this,r),this.getMap()&&(this.getMap().addControl(this._compass),this.getMap().addControl(this._printCtrl),this.getMap().addControl(this._printDialog))};In.prototype.setScale=function(r){gAt(this.getMap(),r),this._input.scale.value=" "+Math.round(r/100)*100};In.prototype.getScale=function(){return $S(this.getMap())};In.prototype.print=function(r){r=r||{},r.size&&this.setSize(r.size),r.scale&&this.setScale(r.scale),r.orientation&&this.setOrientation(r.orientation),r.margin&&this.setMargin(r.margin),this._printDialog.show()};In.prototype.getrintControl=function(){return this._printCtrl};var LF={exports:{}};(function(r,e){(function(t,n){n()})(Zs,function(){function t(l,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function n(l,u,c){var h=new XMLHttpRequest;h.open("GET",l),h.responseType="blob",h.onload=function(){A(h.response,u,c)},h.onerror=function(){console.error("could not download file")},h.send()}function i(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function a(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Zs=="object"&&Zs.global===Zs?Zs:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),A=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,u,c){var h=o.URL||o.webkitURL,f=document.createElement("a");u=u||l.name||"download",f.download=u,f.rel="noopener",typeof l=="string"?(f.href=l,f.origin===location.origin?a(f):i(f.href)?n(l,u,c):a(f,f.target="_blank")):(f.href=h.createObjectURL(l),setTimeout(function(){h.revokeObjectURL(f.href)},4e4),setTimeout(function(){a(f)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,c){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(t(l,c),u);else if(i(l))n(l,u,c);else{var h=document.createElement("a");h.href=l,h.target="_blank",setTimeout(function(){a(h)})}}:function(l,u,c,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof l=="string")return n(l,u,c);var f=l.type==="application/octet-stream",p=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||f&&p||s)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var E=m.result;E=v?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=E:location=E,h=null},m.readAsDataURL(l)}else{var g=o.URL||o.webkitURL,_=g.createObjectURL(l);h?h.location=_:location.href=_,h=null,setTimeout(function(){g.revokeObjectURL(_)},4e4)}});o.saveAs=A.saveAs=A,r.exports=A})})(LF);function tn(r){return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(r)}var Ga=Uint8Array,ka=Uint16Array,Tg=Uint32Array,_w=new Ga([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ww=new Ga([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),VS=new Ga([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),f8=function(r,e){for(var t=new ka(31),n=0;n<31;++n)t[n]=e+=1<>>1|(Sn&21845)<<1;ql=(ql&52428)>>>2|(ql&13107)<<2,ql=(ql&61680)>>>4|(ql&3855)<<4,KS[Sn]=((ql&65280)>>>8|(ql&255)<<8)>>>1}var oA=function(r,e,t){for(var n=r.length,i=0,a=new ka(e);i>>A]=l}else for(s=new ka(n),i=0;i>>15-r[i];return s},$u=new Ga(288);for(var Sn=0;Sn<144;++Sn)$u[Sn]=8;for(var Sn=144;Sn<256;++Sn)$u[Sn]=9;for(var Sn=256;Sn<280;++Sn)$u[Sn]=7;for(var Sn=280;Sn<288;++Sn)$u[Sn]=8;var Sg=new Ga(32);for(var Sn=0;Sn<32;++Sn)Sg[Sn]=5;var mAt=oA($u,9,0),_At=oA($u,9,1),wAt=oA(Sg,5,0),EAt=oA(Sg,5,1),DC=function(r){for(var e=r[0],t=1;te&&(e=r[t]);return e},ds=function(r,e,t){var n=e/8>>0;return(r[n]|r[n+1]<<8)>>>(e&7)&t},QC=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},OF=function(r){return(r/8>>0)+(r&7&&1)},g8=function(r,e,t){(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length);var n=new(r instanceof ka?ka:r instanceof Tg?Tg:Ga)(t-e);return n.set(r.subarray(e,t)),n},CAt=function(r,e,t){var n=r.length,i=!e||t,a=!t||t.i;t||(t={}),e||(e=new Ga(n*3));var o=function(at){var vt=e.length;if(at>vt){var wt=new Ga(Math.max(vt*2,at));wt.set(e),e=wt}},s=t.f||0,A=t.p||0,l=t.b||0,u=t.l,c=t.d,h=t.m,f=t.n,p=n*8;do{if(!u){t.f=s=ds(r,A,1);var v=ds(r,A+1,3);if(A+=3,v)if(v==1)u=_At,c=EAt,h=9,f=5;else if(v==2){var E=ds(r,A,31)+257,B=ds(r,A+10,15)+4,L=E+ds(r,A+5,31)+1;A+=14;for(var O=new Ga(L),b=new Ga(19),T=0;Tp)break;for(var x=oA(b,I,1),T=0;T>>4;if(m<16)O[T++]=m;else{var N=0,P=0;for(m==16?(P=3+ds(r,A,3),A+=2,N=O[T-1]):m==17?(P=3+ds(r,A,7),A+=3):m==18&&(P=11+ds(r,A,127),A+=7);P--;)O[T++]=N}}var X=O.subarray(0,E),z=O.subarray(E);h=DC(X),f=DC(z),u=oA(X,h,1),c=oA(z,f,1)}else throw"invalid block type";else{var m=OF(A)+4,g=r[m-4]|r[m-3]<<8,_=m+g;if(_>n){if(a)throw"unexpected EOF";break}i&&o(l+g),e.set(r.subarray(m,_),l),t.b=l+=g,t.p=A=_*8;continue}if(A>p)throw"unexpected EOF"}i&&o(l+131072);for(var tt=(1<>>4;if(A+=N&15,A>p)throw"unexpected EOF";if(!N)throw"invalid length/literal";if(it<256)e[l++]=it;else if(it==256){u=null;break}else{var _t=it-254;if(it>264){var T=it-257,R=_w[T];_t=ds(r,A,(1<>>4;if(!$)throw"invalid distance";A+=$&15;var z=yAt[K];if(K>3){var R=ww[K];z+=QC(r,A)&(1<p)throw"unexpected EOF";i&&o(l+131072);for(var q=l+_t;l>0;r[n]|=t,r[n+1]|=t>>>8},Kd=function(r,e,t){t<<=e&7;var n=e/8>>0;r[n]|=t,r[n+1]|=t>>>8,r[n+2]|=t>>>16},HC=function(r,e){for(var t=[],n=0;nh&&(h=a[n].s);var f=new ka(h+1),p=zS(t[u-1],f,0);if(p>e){var n=0,v=0,m=p-e,g=1<e)v+=g-(1<>>=m;v>0;){var E=a[n].s;f[E]=0&&v;--n){var B=a[n].s;f[B]==e&&(--f[B],++v)}p=e}return[new Ga(f),p]},zS=function(r,e,t){return r.s==-1?Math.max(zS(r.l,e,t+1),zS(r.r,e,t+1)):e[r.s]=t},hN=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new ka(++e),n=0,i=r[0],a=1,o=function(A){t[n++]=A},s=1;s<=e;++s)if(r[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=r[s]}return[t.subarray(0,n),e]},zd=function(r,e){for(var t=0,n=0;n>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var a=0;a4&&!M[VS[S-1]];--S);var N=l+5<<3,P=zd(i,$u)+zd(a,Sg)+o,X=zd(i,h)+zd(a,v)+o+14+3*S+zd(b,M)+(2*b[16]+3*b[17]+7*b[18]);if(N<=P&&N<=X)return k0(e,u,r.subarray(A,A+l));var z,tt,J,nt;if(PA(e,u,1+(X15&&(PA(e,u,$[T]>>>5&127),u+=$[T]>>>12)}}else z=mAt,tt=$u,J=wAt,nt=Sg;for(var T=0;T255){var K=n[T]>>>18&31;Kd(e,u,z[K+257]),u+=tt[K+257],K>7&&(PA(e,u,n[T]>>>23&31),u+=_w[K]);var q=n[T]&31;Kd(e,u,J[q]),u+=nt[q],q>3&&(Kd(e,u,n[T]>>>5&8191),u+=ww[q])}else Kd(e,u,z[n[T]]),u+=tt[n[T]];return Kd(e,u,z[256]),u+tt[256]},BAt=new Tg([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),TAt=new Ga(0),SAt=function(r,e,t,n,i,a){var o=r.length,s=new Ga(n+o+5*(1+Math.floor(o/7e3))+i),A=s.subarray(n,s.length-i),l=0;if(!e||o<8)for(var u=0;u<=o;u+=65535){var c=u+65535;c>>13,p=h&8191,v=(1<7e3||M>24576)&&z>423){l=fN(r,A,0,L,O,b,I,M,S,u-S,l),M=T=I=0,S=u;for(var tt=0;tt<286;++tt)O[tt]=0;for(var tt=0;tt<30;++tt)b[tt]=0}var J=2,nt=0,it=p,_t=P-X&32767;if(z>2&&N==B(u-_t))for(var R=Math.min(f,z)-1,$=Math.min(32767,u),K=Math.min(258,z);_t<=$&&--it&&P!=X;){if(r[u+J]==r[u+J-_t]){for(var q=0;qJ){if(J=q,nt=_t,q>R)break;for(var at=Math.min(_t,q-2),vt=0,tt=0;ttvt&&(vt=It,X=wt)}}}P=X,X=m[P],_t+=P-X+32768&32767}if(nt){L[M++]=268435456|jS[J]<<18|cN[nt];var Ot=jS[J]&31,j=cN[nt]&31;I+=_w[Ot]+ww[j],++O[257+Ot],++b[j],x=u+J,++T}else L[M++]=r[u],++O[r[u]]}}l=fN(r,A,a,L,O,b,I,M,S,u-S,l),a||(l=k0(A,l,TAt))}return g8(s,0,n+OF(l)+i)},xAt=function(){var r=1,e=0;return{p:function(t){for(var n=r,i=e,a=t.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o>>8<<16|(e&255)<<8|e>>>8)+((r&255)<<23)*2}}},bAt=function(r,e,t,n,i){return SAt(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,t,n,!i)},IAt=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},FAt=function(r,e){var t=e.level,n=t==0?0:t<6?1:t==9?3:2;r[0]=120,r[1]=n<<6|(n?32-2*n:1)},LAt=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function YS(r,e){e===void 0&&(e={});var t=xAt();t.p(r);var n=bAt(r,e,2,4);return FAt(n,e),IAt(n,n.length-4,t.d()),n}function OAt(r,e){return CAt((LAt(r),r.subarray(2,-4)),e)}/** @license +`);if(t.length===1)return r.measureText(e);var n=r.measureText(t[0]),i=r.measureText(t[1]);return{width:Math.max(n.width,i.width),height:n.height+i.height}};la.prototype.refresh=function(){var r=this._listElement;r.innerHTML="";var e=this.get("margin"),t=this.get("size")[0]+2*e,n=this.get("lineHeight")||this.get("size")[1]+2*e,i=this.getCanvas(),a=i.getContext("2d");a.textAlign="left",a.textBaseline="middle";var o=uh;a.font=this._titleStyle.getFont();var s=this._measureText(a,this.getTitle("title")).width;this._items.forEach(function(A){A.get("feature")||A.get("typeGeom")?(a.font=A.get("textStyle")?A.get("textStyle").getFont():this._textStyle.getFont(),s=Math.max(s,this._measureText(a,A.get("title")).width+t)):(a.font=A.get("textStyle")?A.get("textStyle").getFont():this._titleStyle.getFont(),s=Math.max(s,this._measureText(a,A.get("title")).width))}.bind(this)),i.width=(s+2*e)*o,i.height=(this._items.getLength()+1)*n*o,i.style.height=(this._items.getLength()+1)*n+"px",a.textBaseline="middle",a.fillStyle=tl(this._textStyle.getFill().getColor()),this.getTitle()&&(r.appendChild(this._title.getElement([t,n],function(A){this.dispatchEvent({type:"select",index:-1,symbol:A,item:this._title})}.bind(this))),a.font=this._titleStyle.getFont(),a.textAlign="center",this._drawText(a,this.getTitle(),i.width/o/2,n/2)),this._items.forEach(function(A,l){var u=l+(this.getTitle()?1:0);r.appendChild(A.getElement([t,n],function(h){this.dispatchEvent({type:"select",index:l,symbol:h,item:A})}.bind(this)));var c=A.getProperties();a.textAlign="left",c.feature||c.typeGeom?(i=this.getLegendImage(c,i,u),a.font=A.get("textStyle")?A.get("textStyle").getFont():this._textStyle.getFont(),this._drawText(a,A.get("title"),t+e,(l+1.5)*n)):(a.font=A.get("textStyle")?A.get("textStyle").getFont():this._titleStyle.getFont(),/\bcenter\b/.test(c.className)?(a.textAlign="center",this._drawText(a,A.get("title"),i.width/o/2,(l+1.5)*n)):this._drawText(a,A.get("title"),e,(l+1.5)*n))}.bind(this)),this.dispatchEvent({type:"refresh",width:t,height:(this._items.length+1)*n})};la.prototype.getLegendImage=function(r,e,t){return r=r||{},la.getLegendImage({className:r.className,feature:r.feature,typeGeom:r.typeGeom,style:r.style||this._style,properties:r.properties,margin:r.margin||this.get("margin"),size:r.size||this.get("size"),lineHeight:r.lineHeight||this.get("lineHeight"),onload:function(){this.refresh()}.bind(this)},e,t)};la.getLegendImage=function(r,e,t){r=r||{},typeof r.margin>"u"&&(r.margin=10);var n=r.size||[40,25];r.onload=r.onload||function(){setTimeout(function(){la.getLegendImage(r,e,t)},100)};var i=n[0]+2*r.margin,a=r.lineHeight||n[1]+2*r.margin,o=uh;e||(t=0,e=document.createElement("canvas"),e.width=i*o,e.height=a*o);var s=e.getContext("2d");s.save();var A=gAt(s,{pixelRatio:o}),l=r.typeGeom,u,c=r.feature;!c&&l&&(/Point/.test(l)?c=new or(new fr([0,0])):/LineString/.test(l)?c=new or(new Hr([0,0])):c=new or(new bn([[0,0]])),r.properties&&c.setProperties(r.properties)),c?(u=c.getStyle(),typeof u=="function"&&(u=u(c)),u||(u=typeof r.style=="function"?r.style(c):r.style||[]),l=c.getGeometry().getType()):u=[],u instanceof Array||(u=[u]);var h=i/2,f=a/2,p=n[0]/2,v=n[1]/2,m,g;if(l==="Point"){var _=null;for(m=0;g=u[m];m++){var E=g.getImage();if(E){var B=E.getImage();if(B&&B.complete&&!B.naturalWidth&&(typeof r.onload=="function"&&B.addEventListener("load",function(){setTimeout(function(){r.onload()},100)}),E.load()),E.getAnchor){var L=E.getAnchor();if(L){var O=E.getSize(),b=L[0]-O[0],T=L[1]-O[1];_?Uu(_,[b,T,b+O[0],T+O[1]]):_=[b,T,b+O[0],T+O[1]]}}}}_&&(h=h+(_[2]+_[0])/2,f=f+(_[3]+_[1])/2)}for(f+=t*a||0,m=0;g=u[m];m++)switch(A.setStyle(g),l){case fr:case"Point":case"MultiPoint":A.drawGeometry(new fr([h,f]));break;case Hr:case"LineString":case"MultiLineString":s.save(),s.rect(r.margin*o,0,n[0]*o,e.height),s.clip(),A.drawGeometry(new Hr([[h-p,f],[h+p,f]])),s.restore();break;case bn:case"Polygon":case"MultiPolygon":A.drawGeometry(new bn([[[h-p,f-v],[h+p,f-v],[h+p,f+v],[h-p,f+v],[h-p,f-v]]]));break}return s.restore(),e};var Ms=function(r){r=r||{};var e=document.createElement("div");if(r.target)e.className=r.className||"ol-legend";else{e.className=(r.className||"ol-legend")+" ol-unselectable ol-control"+(r.collapsible===!1?" ol-uncollapsible":" ol-collapsed");var t=document.createElement("button");t.setAttribute("type","button"),t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t),t=document.createElement("button"),t.setAttribute("type","button"),t.className="ol-closebox",t.addEventListener("click",function(){this.toggle()}.bind(this)),e.appendChild(t)}Qi.call(this,{element:e,target:r.target}),this._legend=r.legend,this._legend.getCanvas().className="ol-legendImg",e.appendChild(this._legend.getCanvas()),e.appendChild(this._legend.getListElement()),r.collapsible!==!1&&r.collapsed===!1&&this.show(),this._legend.on("select",function(n){this.dispatchEvent(n)}.bind(this)),this._legend.on("refresh",function(){if(this._onCanvas&&this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this))};Cr(Ms,Qi);Ms.prototype.getLegend=function(){return this._legend};Ms.prototype.setCanvas=function(r){if(this._onCanvas=r,this.element.style.visibility=r?"hidden":"visible",this.getMap())try{this.getMap().renderSync()}catch{}};Ms.prototype.onCanvas=function(){return!!this._onCanvas};Ms.prototype._draw=function(r){if(this._onCanvas&&!this.element.classList.contains("ol-collapsed")){var e=this._legend.getCanvas(),t=this.getContext(r),n=t.canvas.height-e.height;t.save(),t.rect(0,n,e.width,e.height);var i="#fff";this._legend.getTextStyle().getBackgroundFill()&&(i=tl(this._legend.getTextStyle().getBackgroundFill().getColor())),t.fillStyle=t.strokeStyle=i,t.lineWidth=10,t.lineJoin="round",t.stroke(),t.clearRect(0,n,e.width,e.height),t.fill(),t.drawImage(e,0,n),t.restore()}};Ms.prototype.show=function(){if(this.element.classList.contains("ol-collapsed")&&(this.element.classList.remove("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!1}),this.getMap()))try{this.getMap().renderSync()}catch{}};Ms.prototype.hide=function(){if(!this.element.classList.contains("ol-collapsed")&&(this.element.classList.add("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:!0}),this.getMap()))try{this.getMap().renderSync()}catch{}};Ms.prototype.collapse=function(r){r===!1?this.show():this.hide()};Ms.prototype.isCollapsed=function(){return this.element.classList.contains("ol-collapsed")};Ms.prototype.toggle=function(){if(this.element.classList.toggle("ol-collapsed"),this.dispatchEvent({type:"change:collapse",collapsed:this.element.classList.contains("ol-collapsed")}),this.getMap())try{this.getMap().renderSync()}catch{}};var Zu=function(r){r||(r={});var e=ct.create("DIV",{className:r.className||"ol-print"});r.target||(e.classList.add("ol-unselectable","ol-control"),ct.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e})),_r.call(this,{element:e,target:r.target}),this.set("immediate",r.immediate),this.set("imageType",r.imageType||"image/jpeg"),this.set("quality",r.quality||.8),this.set("orientation",r.orientation)};Cr(Zu,_r);Zu.prototype.toClipboard=function(r,e){try{r.canvas.toBlob(function(t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},t.type,{value:t,enumerable:!0}))]),typeof e=="function"&&e(!0)}catch{typeof e=="function"&&e(!1)}})}catch{typeof e=="function"&&e(!1)}};Zu.prototype.copyMap=function(r,e){this.once("print",function(t){this.toClipboard(t,e)}.bind(this)),this.print(r)};Zu.prototype._getCanvas=function(r,e,t){var n;if(r.context)t=r.context.canvas;else{if(t)n=t.getContext("2d");else{t=document.createElement("canvas");var i=this.getMap().getSize();t.width=i[0],t.height=i[1],n=t.getContext("2d"),/jp.*g$/.test(e)&&(n.fillStyle=this.get("bgColor")||"white",n.fillRect(0,0,t.width,t.height))}this.getMap().getViewport().querySelectorAll(".ol-layers canvas, canvas.ol-fixedoverlay").forEach(function(a){if(a.width){if(n.save(),a.parentNode.style.opacity==="0")return;n.globalAlpha=parseFloat(a.parentNode.style.opacity)||1,ct.getStyle(a.parentNode,"mix-blend-mode")==="multiply"&&(n.globalCompositeOperation="multiply");var o=ct.getStyle(a,"transform")||ct.getStyle(a,"-webkit-transform");/^matrix/.test(o)?(o=o.replace(/^matrix\(|\)$/g,"").split(","),o.forEach(function(s,A){o[A]=parseFloat(s)}),n.transform(o[0],o[1],o[2],o[3],o[4],o[5]),n.drawImage(a,0,0)):n.drawImage(a,0,0,ct.getStyle(a,"width"),ct.getStyle(a,"height")),n.restore()}}.bind(this))}return t};Zu.prototype.fastPrint=function(r,e){r=r||{},this._ol6?requestAnimationFrame(function(){e(this._getCanvas({},r.imageType,r.canvas))}.bind(this)):(this.getMap().once("postcompose",function(t){t.context||(this._ol6=!0),e(this._getCanvas(t,r.imageType,r.canvas))}.bind(this)),this.getMap().render())};Zu.prototype.print=function(r){r=r||{};var e=r.imageType||this.get("imageType"),t=r.quality||this.get("quality");if(this.getMap()){if(r.immediate!=="silent"&&this.dispatchEvent(Object.assign({type:"printing"},r)),!r.immediate){setTimeout(function(){r=Object.assign({},r),r.immediate="silent",this.print(r)}.bind(this),200);return}this.getMap().once(this.get("immediate")?"postcompose":"rendercomplete",function(n){var i=this._getCanvas(n,e),a=r.size||[210,297],o=r.format||"a4",s,A,l,u=r.orient||this.get("orientation"),c=typeof r.margin=="number"?r.margin:10;if(i){u!=="landscape"&&u!=="portrait"&&(u=i.width>i.height?"landscape":"portrait"),u==="landscape"&&(a=[a[1],a[0]]);var h=Math.min((a[0]-2*c)/i.width,(a[1]-2*c)/i.height);s=h*i.width,A=h*i.height,l=[(a[0]-s)/2,(a[1]-A)/2]}var f;try{f=i?i.toDataURL(e,t):null}catch{this.dispatchEvent({type:"error",canvas:i});return}var p=Object.assign({type:"print",print:{format:o,orientation:u,unit:"mm",size:a,position:l,imageWidth:s,imageHeight:A},image:f,imageType:e,quality:t,canvas:i},r);this.dispatchEvent(p)}.bind(this)),this.getMap().render()}};var Ju=function(r){r||(r={});var e=ct.create("DIV",{className:(r.className||"")+" ol-control-title ol-unselectable",style:{display:"block",visibility:"hidden"}});Qi.call(this,{element:e,style:r.style}),this.setTitle(r.title||""),this.setVisible(r.visible),this.element.style.font=this.getTextFont()};Cr(Ju,Qi);Ju.prototype.setStyle=function(r){Qi.prototype.setStyle.call(this,r),this.element&&(this.element.style.font=this.getTextFont()),this.getMap()&&this.getMap().render()};Ju.prototype.setTitle=function(r){if(this.element.textContent=r,this.set("title",r),this.getMap())try{this.getMap().renderSync()}catch{}};Ju.prototype.getTitle=function(){return this.get("title")};Ju.prototype.setVisible=function(r){if(this.element.style.display=r?"block":"none",this.getMap())try{this.getMap().renderSync()}catch{}};Ju.prototype.getVisible=function(){return this.element.style.display!=="none"};Ju.prototype._draw=function(r){if(this.getVisible()){var e=this.getContext(r);if(e){var t=r.frameState.pixelRatio;e.save(),e.scale(t,t);var n=this.element.getBoundingClientRect(),i=this.getMap().getViewport().getBoundingClientRect(),a=this.getMap().getSize()[0]/i.width;e.translate(Math.round((n.left-i.left)*a),Math.round((n.top-i.top)*a));var o=this.element.clientHeight,s=this.element.clientWidth,A=s/2;e.beginPath(),e.fillStyle=tl(this.getFill().getColor()),e.rect(0,0,s,o),e.fill(),e.closePath(),e.beginPath(),e.fillStyle=tl(this.getTextFill().getColor()),e.strokeStyle=tl(this.getTextStroke().getColor()),e.lineWidth=this.getTextStroke().getWidth(),e.textAlign="center",e.textBaseline="middle",e.font=this.getTextFont(),e.lineWidth&&e.strokeText(this.getTitle(),A,o/2),e.fillText(this.getTitle(),A,o/2),e.closePath(),e.restore()}}};var $S=function(r,e){var t=r.getView(),n=t.getProjection(),i=t.getCenter(),a=r.getPixelFromCoordinate(i);a[1]+=1;var o=r.getCoordinateFromPixel(a),s=B_(Qu(i,n,"EPSG:4326"),Qu(o,n,"EPSG:4326"));return s*=(e||96)/.0254,s},yAt=function(r,e,t){if(r&&e){var n=e;if(typeof e=="string"&&(n=e.split("/")[1],n||(n=e),n=n.replace(/[^\d]/g,""),n=parseInt(n)),!n)return;var i=r.getView(),a=i.getProjection(),o=i.getCenter(),s=r.getPixelFromCoordinate(o);s[1]+=1;var A=r.getCoordinateFromPixel(s),l=B_(Qu(o,a,"EPSG:4326"),Qu(A,a,"EPSG:4326"));return l*=(t||96)/.0254,i.setResolution(i.getResolution()*n/l),n}},ul=function(r){r||(r={});var e=document.createElement("div");e.className="ol-control ol-compassctrl ol-unselectable ol-hidden"+(r.className?" "+r.className:""),e.style.position="absolute",e.style.visibility="hidden";var t=r.style instanceof Ui?new oa({stroke:r.style}):r.style;r.style||(t=new oa({stroke:new Ui({width:0})})),Qi.call(this,{element:e,style:t}),this.set("rotateVithView",r.rotateWithView!==!1),this.setVisible(r.visible!==!1),this.setImage(r.image||r.src)};Cr(ul,Qi);ul.prototype.setImage=function(r){if(r instanceof Image)this.img_=r,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this);else if(typeof r=="string")switch(r){case"compact":{this.img_=this.compactCompass_(this.element.clientWidth,this.getStroke().getColor());break}case"default":{this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor());break}default:{this.img_=new Image,this.img_.onload=function(){if(this.getMap())try{this.getMap().renderSync()}catch{}}.bind(this),this.img_.src=r;break}}else this.img_=this.defaultCompass_(this.element.clientWidth,this.getStroke().getColor())};ul.prototype.compactCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2;return n.translate(i,i),n.fillStyle=e||"#963",n.lineWidth=5,n.lineJoin=n.lineCap="round",n.font="bold "+i*.4+"px sans-serif",n.textBaseline="bottom",n.textAlign="center",n.strokeStyle="#fff",n.globalAlpha=.75,n.strokeText("N",0,-i/2),n.globalAlpha=1,n.fillText("N",0,-i/2),n.beginPath(),n.moveTo(0,i/4),n.lineTo(i/3,i/2),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.lineWidth=12,n.fillStyle="#fff",n.globalAlpha=.75,n.fill(),n.stroke(),n.globalAlpha=1,n.fillStyle=n.strokeStyle=e||"#963",n.lineWidth=5,n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(i/3,i/2),n.lineTo(0,i/4),n.fill(),n.stroke(),n.beginPath(),n.moveTo(0,i/4),n.lineTo(0,-i/2),n.lineTo(-i/3,i/2),n.lineTo(0,i/4),n.stroke(),t};ul.prototype.defaultCompass_=function(r,e){var t=document.createElement("canvas"),n=t.getContext("2d");r=t.width=t.height=r||150;var i=r/2,a=.22*i;function o(A,l){n.fillStyle=e||"#963",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,-l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(l,-l),n.moveTo(0,0),n.fill(),n.stroke()}function s(A,l){n.globalCompositeOperation="destination-out",n.fillStyle="#fff",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.fill(),n.globalCompositeOperation="source-over",n.beginPath(),n.moveTo(0,0),n.lineTo(A,0),n.lineTo(l,-l),n.moveTo(0,0),n.lineTo(-A,0),n.lineTo(-l,l),n.moveTo(0,0),n.lineTo(0,A),n.lineTo(l,l),n.moveTo(0,0),n.lineTo(0,-A),n.lineTo(-l,-l),n.moveTo(0,0),n.stroke()}return n.translate(i,i),n.strokeStyle=e||"#963",n.lineWidth=1.5,n.beginPath(),n.arc(0,0,r*.41,0,2*Math.PI),n.arc(0,0,r*.44,0,2*Math.PI),n.stroke(),n.rotate(Math.PI/4),o(i*.9,a*.8),s(i*.9,a*.8),n.rotate(-Math.PI/4),o(i,a),s(i,a),t};ul.prototype.getVisible=function(){return ct.getStyle(this.element,"display")==="block"};ul.prototype.setVisible=function(r){r?this.element.classList.add("ol-visible"):this.element.classList.remove("ol-visible"),this.getMap()&&this.getMap().render()};ul.prototype._draw=function(r){var e=this.getContext(r);if(!(!e||!this.getVisible())){var t=e.canvas,n,i=[];for(n=0;n<8;n++)i[n]=[Math.cos(Math.PI*n/8),Math.sin(Math.PI*n/8)];var a=r.frameState.pixelRatio;e.save(),e.scale(a,a);var o=this.element.clientWidth,s=this.element.clientHeight,A={left:this.element.offsetLeft,top:this.element.offsetTop},l=this.img_,u=r.frameState.viewState.rotation;if(e.beginPath(),e.translate(A.left+o/2,A.top+s/2),this.get("rotateVithView")&&e.rotate(u),this.getStroke().getWidth()){e.beginPath(),e.strokeStyle=this.getStroke().getColor(),e.lineWidth=this.getStroke().getWidth();var c=Math.max(t.width,t.height);for(n=0;n<8;n++)e.moveTo(-i[n][0]*c,-i[n][1]*c),e.lineTo(i[n][0]*c,i[n][1]*c);e.stroke()}l.width&&e.drawImage(l,-o/2,-s/2,o,s),e.closePath(),e.restore()}};var In=function(r){r||(r={}),this._lang=r.lang||"en";var e=ct.create("DIV",{className:(r.className||"ol-print")+" ol-unselectable ol-control"});ct.create("BUTTON",{type:"button",title:r.title||"Print",click:function(){this.print()}.bind(this),parent:e}),_r.call(this,{element:e}),r.openWindow&&this.on("print",function(S){S.canvas&&window.open().document.write('')}),r.target=ct.create("DIV");var t=this._printCtrl=new Zu(r);t.on(["print","error","printing"],function(S){i.setAttribute("data-status",S.type),S.clipboard||this.dispatchEvent(S)}.bind(this)),this._compass=new ul({src:r.northImage||"compact",visible:!1,className:"olext-print-compass",style:new Ui({color:"#333",width:0})});var n=this._printDialog=new Ia({target:document.body,closeBox:!0,className:"ol-ext-print-dialog"}),i=n.getContentElement();this._input={};var a=ct.create("DIV",{className:"ol-print-param",parent:i});this._pages=[ct.create("DIV",{className:"ol-page"})];var o=ct.create("DIV",{className:"ol-map",parent:this._pages[0]});ct.create("DIV",{html:this._pages[0],className:"ol-print-map",parent:i}),ct.create("H2",{html:this.i18n("title"),parent:a});var s=ct.create("UL",{parent:a}),A=ct.create("LI",{className:"ol-orientation",parent:s});this._input.orientation={list:A};var l=ct.create("LABEL",{className:"portrait",parent:A});this._input.orientation.portrait=ct.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"portrait",checked:!0,on:{change:function(S){this.setOrientation(S.target.value)}.bind(this)},parent:l}),ct.create("SPAN",{html:this.i18n("portrait"),parent:l}),l=ct.create("LABEL",{className:"landscape",parent:A}),this._input.orientation.landscape=ct.create("INPUT",{type:"radio",name:"ol-print-orientation",value:"landscape",on:{change:function(S){this.setOrientation(S.target.value)}.bind(this)},parent:l}),ct.create("SPAN",{html:this.i18n("landscape"),parent:l});var u;A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("size")}),className:"ol-size",parent:s});var c=this._input.size=ct.create("SELECT",{on:{change:function(){this.setSize(c.value||I)}.bind(this)},parent:A});for(u in this.paperSize)ct.create("OPTION",{html:u+(this.paperSize[u]?" - "+this.paperSize[u][0]+"x"+this.paperSize[u][1]+" mm":this.i18n("custom")),value:u,parent:c});A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("margin")}),className:"ol-margin",parent:s});var h=this._input.margin=ct.create("SELECT",{on:{change:function(){this.setMargin(h.value)}.bind(this)},parent:A});for(u in this.marginSize)ct.create("OPTION",{html:this.i18n(u)+" - "+this.marginSize[u]+" mm",value:this.marginSize[u],parent:h});A=ct.create("LI",{html:ct.create("LABEL",{html:this.i18n("scale")}),className:"ol-scale",parent:s});var f=this._input.scale=ct.create("SELECT",{on:{change:function(){this.setScale(parseInt(f.value))}.bind(this)},parent:A});Object.keys(this.scales).forEach(function(S){ct.create("OPTION",{html:this.scales[S],value:S,parent:f})}.bind(this)),A=ct.create("LI",{className:"ol-legend",parent:s});var p=ct.createSwitch({html:this.i18n("legend"),checked:!1,on:{change:function(){x.legend.control.setCanvas(p.checked)}.bind(this)},parent:A});A=ct.create("LI",{className:"ol-print-north",parent:s});var v=this._input.north=ct.createSwitch({html:this.i18n("north"),checked:"checked",on:{change:function(){v.checked?this._compass.element.classList.add("ol-print-compass"):this._compass.element.classList.remove("ol-print-compass"),this.getMap().render()}.bind(this)},parent:A});A=ct.create("LI",{className:"ol-print-title",parent:s});var m=ct.createSwitch({html:this.i18n("mapTitle"),checked:!1,on:{change:function(S){x.title.control.setVisible(S.target.checked)}.bind(this)},parent:A}),g=ct.create("INPUT",{type:"text",placeholder:this.i18n("mapTitle"),on:{keydown:function(S){S.keyCode===13&&S.preventDefault()},keyup:function(){x.title.control.setTitle(g.value)},change:function(){x.title.control.setTitle(g.value)}.bind(this)},parent:A}),_=ct.create("DIV",{className:"ol-user-param",parent:a});A=ct.create("LI",{className:"ol-saveas",parent:s});var E=ct.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),B=ct.create("SELECT",{on:{change:function(){if(this.formats[B.value].clipboard)t.copyMap(this.formats[B.value],function(P){P&&(E.classList.add("visible"),setTimeout(function(){E.classList.remove("visible")},1e3))});else{var S=typeof this.getSize()=="string"?this.getSize():null,N=Object.assign({format:S,size:S?this.paperSize[S]:null,orient:this.getOrientation(),margin:this.getMargin()},this.formats[B.value]);t.print(N)}B.value=""}.bind(this)},parent:A});ct.create("OPTION",{html:this.i18n("saveas"),style:{display:"none"},value:"",parent:B}),this.formats.forEach(function(S,N){if(S.pdf){if(r.pdf===!1)return}else if(S.clipboard){if(r.copy===!1)return}else if(r.save===!1)return;ct.create("OPTION",{html:this.i18n(S.title),value:N,parent:B})}.bind(this)),A=ct.create("LI",{className:"ol-savelegend",parent:s});var L=ct.create("DIV",{html:this.i18n("copied"),className:"ol-clipboard-copy",parent:A}),O=ct.create("SELECT",{on:{change:function(){var S=x.legend.control.getLegend().getCanvas(),N=document.createElement("CANVAS");N.width=S.width,N.height=S.height;var P=N.getContext("2d");if(P.fillStyle="#fff",P.fillRect(0,0,N.width,N.height),P.drawImage(S,0,0),this.formats[O.value].clipboard)N.toBlob(function(_t){try{navigator.clipboard.write([new window.ClipboardItem(Object.defineProperty({},_t.type,{value:_t,enumerable:!0}))]),L.classList.add("visible"),setTimeout(function(){L.classList.remove("visible")},1e3)}catch{}},"image/png");else{var X;try{X=N.toDataURL(this.formats[O.value].imageType,this.formats[O.value].quality);var z=typeof this.getSize()=="string"?this.getSize():"A4",tt=N.width/96*25.4,J=N.height/96*25.4,nt=this.paperSize[z];this.getOrientation()==="landscape"&&(nt=[nt[1],nt[0]]);var it=[(nt[0]-tt)/2,(nt[1]-J)/2];this.dispatchEvent({type:"print",print:{legend:!0,format:z,orientation:this.getOrientation(),unit:"mm",size:this.paperSize[z],position:it,imageWidth:tt,imageHeight:J},image:X,imageType:this.formats[O.value].imageType,pdf:this.formats[O.value].pdf,quality:this.formats[O.value].quality,canvas:N})}catch{}}O.value=""}.bind(this)},parent:A});ct.create("OPTION",{html:this.i18n("saveLegend"),style:{display:"none"},value:"",parent:O}),this.formats.forEach(function(S,N){ct.create("OPTION",{html:this.i18n(S.title),value:N,parent:O})}.bind(this));var b=ct.create("DIV",{className:"ol-ext-buttons",parent:a});ct.create("BUTTON",{html:this.i18n("printBt"),type:"submit",click:function(S){S.preventDefault(),window.print()},parent:b}),ct.create("BUTTON",{html:this.i18n("cancel"),type:"button",click:function(){n.hide()},parent:b}),ct.create("DIV",{html:this.i18n("errorMsg"),className:"ol-error",parent:a});var T,I,M,x={};n.on("show",function(){this.dispatchEvent({type:"show",userElement:_,dialog:this._printDialog,page:this.getPage()});var S=this.getMap();S&&(document.body.classList.add("ol-print-document"),T=S.getTargetElement(),I=S.getSize(),typeof this.getSize()=="string"?this.setSize(this.getSize()):this.setSize(I),S.setTarget(o),M&&No(M),M=S.on("moveend",function(){this.setScale($S(S))}.bind(this)),this.setScale($S(S)),x={},this.getMap().getControls().forEach(function(N){N instanceof Ms&&(x.legend={control:N}),N instanceof Ju&&(x.title={control:N}),N instanceof ul&&(x.compass?N.element.classList.remove("ol-print-compass"):(this._input.north.checked?N.element.classList.add("ol-print-compass"):N.element.classList.remove("ol-print-compass"),this._compass=N,x.compass={control:N}))}.bind(this)),x.title?(m.checked=x.title.isVisible=x.title.control.getVisible(),g.value=x.title.control.getTitle(),m.parentNode.parentNode.classList.remove("hidden")):m.parentNode.parentNode.classList.add("hidden"),x.legend?(x.legend.ison=x.legend.control.onCanvas(),x.legend.collapsed=x.legend.control.isCollapsed(),x.legend.control.collapse(!1),O.parentNode.classList.remove("hidden"),p.parentNode.parentNode.classList.remove("hidden"),p.checked=!x.legend.collapsed,x.legend.control.setCanvas(!x.legend.collapsed)):(O.parentNode.classList.add("hidden"),p.parentNode.parentNode.classList.add("hidden")))}.bind(this)),n.on("hide",function(){document.body.classList.remove("ol-print-document"),T&&(this.getMap().setTarget(T),T=null,M&&No(M),x.title&&x.title.control.setVisible(x.title.isVisible),x.legend&&(x.legend.control.setCanvas(x.legend.ison),x.legend.control.collapse(x.legend.collapsed)),this.dispatchEvent({type:"hide"}))}.bind(this)),window.addEventListener("resize",function(){this.setSize()}.bind(this)),r.saveAs&&this.on("print",function(S){S.pdf||S.canvas.toBlob(function(N){var P=(S.print.legend?"legend.":"map.")+S.imageType.replace("image/","");r.saveAs(N,P)},S.imageType,S.quality)}),r.jsPDF&&this.on("print",function(S){if(S.pdf){var N=new r.jsPDF({orientation:S.print.orientation,unit:S.print.unit,format:S.print.size});N.addImage(S.image,"JPEG",S.print.position[0],S.print.position[0],S.print.imageWidth,S.print.imageHeight),N.save(S.print.legend?"legend.pdf":"map.pdf")}})};Cr(In,_r);In.prototype.isOpen=function(){return this._printDialog.isOpen()};In.addLang=function(r,e){In.prototype._labels[r]=e};In.prototype.i18n=function(r){var e=this._labels.en[r]||"bad param";return this._labels[this._lang]&&this._labels[this._lang][r]&&(e=this._labels[this._lang][r]),e};In.prototype._labels={en:{title:"Print",orientation:"Orientation",portrait:"Portrait",landscape:"Landscape",size:"Page size",custom:"screen size",margin:"Margin",scale:"Scale",legend:"Legend",north:"North arrow",mapTitle:"Map title",saveas:"Save as...",saveLegend:"Save legend...",copied:"✔ Copied to clipboard",errorMsg:"Can't save map canvas...",printBt:"Print...",clipboardFormat:"copy to clipboard...",jpegFormat:"save as jpeg",pngFormat:"save as png",pdfFormat:"save as pdf",none:"none",small:"small",large:"large",cancel:"cancel"},fr:{title:"Imprimer",orientation:"Orientation",portrait:"Portrait",landscape:"Paysage",size:"Taille du papier",custom:"taille écran",margin:"Marges",scale:"Echelle",legend:"Légende",north:"Flèche du nord",mapTitle:"Titre de la carte",saveas:"Enregistrer sous...",saveLegend:"Enregistrer la légende...",copied:"✔ Carte copiée",errorMsg:"Impossible d'enregistrer la carte",printBt:"Imprimer",clipboardFormat:"copier dans le presse-papier...",jpegFormat:"enregistrer un jpeg",pngFormat:"enregistrer un png",pdfFormat:"enregistrer un pdf",none:"aucune",small:"petites",large:"larges",cancel:"annuler"},de:{title:"Drucken",orientation:"Ausrichtung",portrait:"Hochformat",landscape:"Querformat",size:"Papierformat",custom:"Bildschirmgröße",margin:"Rand",scale:"Maßstab",legend:"Legende",north:"Nordpfeil",mapTitle:"Kartentitel",saveas:"Speichern als...",saveLegend:"Legende speichern...",copied:"✔ In die Zwischenablage kopiert",errorMsg:"Kann Karte nicht speichern...",printBt:"Drucken...",clipboardFormat:"in die Zwischenablage kopieren...",jpegFormat:"speichern als jpeg",pngFormat:"speichern als png",pdfFormat:"speichern als pdf",none:"kein",small:"klein",large:"groß",cancel:"abbrechen"},zh:{title:"打印",orientation:"方向",portrait:"纵向",landscape:"横向",size:"页面大小",custom:"屏幕大小",margin:"外边距",scale:"尺度",legend:"图例",north:"指北针",mapTitle:"地图名字",saveas:"保存为...",saveLegend:"保存图例为...",copied:"✔ 已复制到剪贴板",errorMsg:"无法保存地图...",printBt:"打印...",cancel:"取消"}};In.prototype.paperSize={"":null,A0:[841,1189],A1:[594,841],A2:[420,594],A3:[297,420],A4:[210,297],"US Letter":[215.9,279.4],A5:[148,210],B4:[257,364],B5:[182,257]};In.prototype.marginSize={none:0,small:5,large:10};In.prototype.formats=[{title:"clipboardFormat",imageType:"image/png",clipboard:!0},{title:"jpegFormat",imageType:"image/jpeg",quality:.8},{title:"pngFormat",imageType:"image/png",quality:.8},{title:"pdfFormat",imageType:"image/jpeg",pdf:!0}];In.prototype.scales={" 5000":"1/5.000"," 10000":"1/10.000"," 25000":"1/25.000"," 50000":"1/50.000"," 100000":"1/100.000"," 250000":"1/250.000"," 1000000":"1/1.000.000"};In.prototype.getOrientation=function(){return this._orientation||"portrait"};In.prototype.setOrientation=function(r){this._orientation=r==="landscape"?"landscape":"portrait",this._input.orientation[this._orientation].checked=!0,this.setSize()};In.prototype.getMargin=function(){return this._margin||0};In.prototype.setMargin=function(r){this._margin=r,this._input.margin.value=r,this.setSize()};In.prototype.getSize=function(){return this._size};In.prototype.setSize=function(r){if(this._printDialog.getContentElement().setAttribute("data-status",""),r?this._size=r:r=this._size,!!r){if(typeof r=="string"){for(var e in this.paperSize)e&&new RegExp(e,"i").test(r)&&(r=e);this.paperSize[r]||(r=this._size="A4"),this._input.size.value=r,r=[Math.trunc(this.paperSize[r][0]*96/25.4),Math.trunc(this.paperSize[r][1]*96/25.4)],this.getOrientation()==="landscape"&&(r=[r[1],r[0]]),this.getPage().classList.remove("margin")}else this._input.size.value="",this.getPage().classList.add("margin");var t=this.getPage(),n=t.parentNode.getBoundingClientRect(),i=(n.width-40)/r[0],a=(n.height-40)/r[1],o=Math.min(i,a,1);t.style.width=r[0]+"px",t.style.height=r[1]+"px",t.style["-webkit-transform"]=t.style.transform="translate(-50%,-50%) scale("+o+")";var s=Math.round(5/o);t.style["-webkit-box-shadow"]=t.style["box-shadow"]=s+"px "+s+"px "+s+"px rgba(0,0,0,.6)",t.style.padding=this.getMargin()*96/25.4+"px",this.getMap()&&this.getMap().updateSize(),this.dispatchEvent({type:"dialog:refresh"})}};In.prototype.getContentElement=function(){return this._printDialog.getContentElement()};In.prototype.getUserElement=function(){return this._printDialog.getContentElement().querySelector(".ol-user-param")};In.prototype.getPage=function(){return this._pages[0]};In.prototype.setMap=function(r){this.getMap()&&(this.getMap().removeControl(this._compass),this.getMap().removeControl(this._printCtrl),this.getMap().removeControl(this._printDialog)),_r.prototype.setMap.call(this,r),this.getMap()&&(this.getMap().addControl(this._compass),this.getMap().addControl(this._printCtrl),this.getMap().addControl(this._printDialog))};In.prototype.setScale=function(r){yAt(this.getMap(),r),this._input.scale.value=" "+Math.round(r/100)*100};In.prototype.getScale=function(){return $S(this.getMap())};In.prototype.print=function(r){r=r||{},r.size&&this.setSize(r.size),r.scale&&this.setScale(r.scale),r.orientation&&this.setOrientation(r.orientation),r.margin&&this.setMargin(r.margin),this._printDialog.show()};In.prototype.getrintControl=function(){return this._printCtrl};var LF={exports:{}};(function(r,e){(function(t,n){n()})(Zs,function(){function t(l,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\uFEFF",l],{type:l.type}):l}function n(l,u,c){var h=new XMLHttpRequest;h.open("GET",l),h.responseType="blob",h.onload=function(){A(h.response,u,c)},h.onerror=function(){console.error("could not download file")},h.send()}function i(l){var u=new XMLHttpRequest;u.open("HEAD",l,!1);try{u.send()}catch{}return 200<=u.status&&299>=u.status}function a(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(u)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Zs=="object"&&Zs.global===Zs?Zs:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),A=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(l,u,c){var h=o.URL||o.webkitURL,f=document.createElement("a");u=u||l.name||"download",f.download=u,f.rel="noopener",typeof l=="string"?(f.href=l,f.origin===location.origin?a(f):i(f.href)?n(l,u,c):a(f,f.target="_blank")):(f.href=h.createObjectURL(l),setTimeout(function(){h.revokeObjectURL(f.href)},4e4),setTimeout(function(){a(f)},0))}:"msSaveOrOpenBlob"in navigator?function(l,u,c){if(u=u||l.name||"download",typeof l!="string")navigator.msSaveOrOpenBlob(t(l,c),u);else if(i(l))n(l,u,c);else{var h=document.createElement("a");h.href=l,h.target="_blank",setTimeout(function(){a(h)})}}:function(l,u,c,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof l=="string")return n(l,u,c);var f=l.type==="application/octet-stream",p=/constructor/i.test(o.HTMLElement)||o.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent);if((v||f&&p||s)&&typeof FileReader<"u"){var m=new FileReader;m.onloadend=function(){var E=m.result;E=v?E:E.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=E:location=E,h=null},m.readAsDataURL(l)}else{var g=o.URL||o.webkitURL,_=g.createObjectURL(l);h?h.location=_:location.href=_,h=null,setTimeout(function(){g.revokeObjectURL(_)},4e4)}});o.saveAs=A.saveAs=A,r.exports=A})})(LF);function tn(r){return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(r)}var Ga=Uint8Array,ka=Uint16Array,Tg=Uint32Array,_w=new Ga([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ww=new Ga([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),VS=new Ga([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),p8=function(r,e){for(var t=new ka(31),n=0;n<31;++n)t[n]=e+=1<>>1|(Sn&21845)<<1;ql=(ql&52428)>>>2|(ql&13107)<<2,ql=(ql&61680)>>>4|(ql&3855)<<4,KS[Sn]=((ql&65280)>>>8|(ql&255)<<8)>>>1}var oA=function(r,e,t){for(var n=r.length,i=0,a=new ka(e);i>>A]=l}else for(s=new ka(n),i=0;i>>15-r[i];return s},$u=new Ga(288);for(var Sn=0;Sn<144;++Sn)$u[Sn]=8;for(var Sn=144;Sn<256;++Sn)$u[Sn]=9;for(var Sn=256;Sn<280;++Sn)$u[Sn]=7;for(var Sn=280;Sn<288;++Sn)$u[Sn]=8;var Sg=new Ga(32);for(var Sn=0;Sn<32;++Sn)Sg[Sn]=5;var _At=oA($u,9,0),wAt=oA($u,9,1),EAt=oA(Sg,5,0),CAt=oA(Sg,5,1),DC=function(r){for(var e=r[0],t=1;te&&(e=r[t]);return e},ds=function(r,e,t){var n=e/8>>0;return(r[n]|r[n+1]<<8)>>>(e&7)&t},QC=function(r,e){var t=e/8>>0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>>(e&7)},OF=function(r){return(r/8>>0)+(r&7&&1)},y8=function(r,e,t){(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length);var n=new(r instanceof ka?ka:r instanceof Tg?Tg:Ga)(t-e);return n.set(r.subarray(e,t)),n},BAt=function(r,e,t){var n=r.length,i=!e||t,a=!t||t.i;t||(t={}),e||(e=new Ga(n*3));var o=function(at){var vt=e.length;if(at>vt){var wt=new Ga(Math.max(vt*2,at));wt.set(e),e=wt}},s=t.f||0,A=t.p||0,l=t.b||0,u=t.l,c=t.d,h=t.m,f=t.n,p=n*8;do{if(!u){t.f=s=ds(r,A,1);var v=ds(r,A+1,3);if(A+=3,v)if(v==1)u=wAt,c=CAt,h=9,f=5;else if(v==2){var E=ds(r,A,31)+257,B=ds(r,A+10,15)+4,L=E+ds(r,A+5,31)+1;A+=14;for(var O=new Ga(L),b=new Ga(19),T=0;Tp)break;for(var x=oA(b,I,1),T=0;T>>4;if(m<16)O[T++]=m;else{var N=0,P=0;for(m==16?(P=3+ds(r,A,3),A+=2,N=O[T-1]):m==17?(P=3+ds(r,A,7),A+=3):m==18&&(P=11+ds(r,A,127),A+=7);P--;)O[T++]=N}}var X=O.subarray(0,E),z=O.subarray(E);h=DC(X),f=DC(z),u=oA(X,h,1),c=oA(z,f,1)}else throw"invalid block type";else{var m=OF(A)+4,g=r[m-4]|r[m-3]<<8,_=m+g;if(_>n){if(a)throw"unexpected EOF";break}i&&o(l+g),e.set(r.subarray(m,_),l),t.b=l+=g,t.p=A=_*8;continue}if(A>p)throw"unexpected EOF"}i&&o(l+131072);for(var tt=(1<>>4;if(A+=N&15,A>p)throw"unexpected EOF";if(!N)throw"invalid length/literal";if(it<256)e[l++]=it;else if(it==256){u=null;break}else{var _t=it-254;if(it>264){var T=it-257,R=_w[T];_t=ds(r,A,(1<>>4;if(!$)throw"invalid distance";A+=$&15;var z=mAt[K];if(K>3){var R=ww[K];z+=QC(r,A)&(1<p)throw"unexpected EOF";i&&o(l+131072);for(var q=l+_t;l>0;r[n]|=t,r[n+1]|=t>>>8},Kd=function(r,e,t){t<<=e&7;var n=e/8>>0;r[n]|=t,r[n+1]|=t>>>8,r[n+2]|=t>>>16},HC=function(r,e){for(var t=[],n=0;nh&&(h=a[n].s);var f=new ka(h+1),p=zS(t[u-1],f,0);if(p>e){var n=0,v=0,m=p-e,g=1<e)v+=g-(1<>>=m;v>0;){var E=a[n].s;f[E]=0&&v;--n){var B=a[n].s;f[B]==e&&(--f[B],++v)}p=e}return[new Ga(f),p]},zS=function(r,e,t){return r.s==-1?Math.max(zS(r.l,e,t+1),zS(r.r,e,t+1)):e[r.s]=t},hN=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new ka(++e),n=0,i=r[0],a=1,o=function(A){t[n++]=A},s=1;s<=e;++s)if(r[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=r[s]}return[t.subarray(0,n),e]},zd=function(r,e){for(var t=0,n=0;n>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var a=0;a4&&!M[VS[S-1]];--S);var N=l+5<<3,P=zd(i,$u)+zd(a,Sg)+o,X=zd(i,h)+zd(a,v)+o+14+3*S+zd(b,M)+(2*b[16]+3*b[17]+7*b[18]);if(N<=P&&N<=X)return k0(e,u,r.subarray(A,A+l));var z,tt,J,nt;if(PA(e,u,1+(X15&&(PA(e,u,$[T]>>>5&127),u+=$[T]>>>12)}}else z=_At,tt=$u,J=EAt,nt=Sg;for(var T=0;T255){var K=n[T]>>>18&31;Kd(e,u,z[K+257]),u+=tt[K+257],K>7&&(PA(e,u,n[T]>>>23&31),u+=_w[K]);var q=n[T]&31;Kd(e,u,J[q]),u+=nt[q],q>3&&(Kd(e,u,n[T]>>>5&8191),u+=ww[q])}else Kd(e,u,z[n[T]]),u+=tt[n[T]];return Kd(e,u,z[256]),u+tt[256]},TAt=new Tg([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),SAt=new Ga(0),xAt=function(r,e,t,n,i,a){var o=r.length,s=new Ga(n+o+5*(1+Math.floor(o/7e3))+i),A=s.subarray(n,s.length-i),l=0;if(!e||o<8)for(var u=0;u<=o;u+=65535){var c=u+65535;c>>13,p=h&8191,v=(1<7e3||M>24576)&&z>423){l=fN(r,A,0,L,O,b,I,M,S,u-S,l),M=T=I=0,S=u;for(var tt=0;tt<286;++tt)O[tt]=0;for(var tt=0;tt<30;++tt)b[tt]=0}var J=2,nt=0,it=p,_t=P-X&32767;if(z>2&&N==B(u-_t))for(var R=Math.min(f,z)-1,$=Math.min(32767,u),K=Math.min(258,z);_t<=$&&--it&&P!=X;){if(r[u+J]==r[u+J-_t]){for(var q=0;qJ){if(J=q,nt=_t,q>R)break;for(var at=Math.min(_t,q-2),vt=0,tt=0;ttvt&&(vt=It,X=wt)}}}P=X,X=m[P],_t+=P-X+32768&32767}if(nt){L[M++]=268435456|jS[J]<<18|cN[nt];var Ot=jS[J]&31,j=cN[nt]&31;I+=_w[Ot]+ww[j],++O[257+Ot],++b[j],x=u+J,++T}else L[M++]=r[u],++O[r[u]]}}l=fN(r,A,a,L,O,b,I,M,S,u-S,l),a||(l=k0(A,l,SAt))}return y8(s,0,n+OF(l)+i)},bAt=function(){var r=1,e=0;return{p:function(t){for(var n=r,i=e,a=t.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o>>8<<16|(e&255)<<8|e>>>8)+((r&255)<<23)*2}}},IAt=function(r,e,t,n,i){return xAt(r,e.level==null?6:e.level,e.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):12+e.mem,t,n,!i)},FAt=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},LAt=function(r,e){var t=e.level,n=t==0?0:t<6?1:t==9?3:2;r[0]=120,r[1]=n<<6|(n?32-2*n:1)},OAt=function(r){if((r[0]&15)!=8||r[0]>>>4>7||(r[0]<<8|r[1])%31)throw"invalid zlib data";if(r[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function YS(r,e){e===void 0&&(e={});var t=bAt();t.p(r);var n=IAt(r,e,2,4);return LAt(n,e),FAt(n,n.length-4,t.d()),n}function RAt(r,e){return BAt((OAt(r),r.subarray(2,-4)),e)}/** @license * * jsPDF - PDF Document creation from JavaScript * Version 2.5.0 Built on 2021-12-21T09:44:51.866Z @@ -756,7 +756,7 @@ void main(void) { * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it - */function y8(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),A=this.g.toString(16),l=this.b.toString(16);return s.length==1&&(s="0"+s),A.length==1&&(A="0"+A),l.length==1&&(l="0"+l),"#"+s+A+l}}/** + */function m8(r){var e;r=r||"",this.ok=!1,r.charAt(0)=="#"&&(r=r.substr(1,6)),r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),A=this.g.toString(16),l=this.b.toString(16);return s.length==1&&(s="0"+s),A.length==1&&(A="0"+A),l.length==1&&(l="0"+l),"#"+s+A+l}}/** * @license * Joseph Myers does not specify a particular license for his work. * @@ -764,7 +764,7 @@ void main(void) { * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong - */function $C(r,e){var t=r[0],n=r[1],i=r[2],a=r[3];t=pa(t,n,i,a,e[0],7,-680876936),a=pa(a,t,n,i,e[1],12,-389564586),i=pa(i,a,t,n,e[2],17,606105819),n=pa(n,i,a,t,e[3],22,-1044525330),t=pa(t,n,i,a,e[4],7,-176418897),a=pa(a,t,n,i,e[5],12,1200080426),i=pa(i,a,t,n,e[6],17,-1473231341),n=pa(n,i,a,t,e[7],22,-45705983),t=pa(t,n,i,a,e[8],7,1770035416),a=pa(a,t,n,i,e[9],12,-1958414417),i=pa(i,a,t,n,e[10],17,-42063),n=pa(n,i,a,t,e[11],22,-1990404162),t=pa(t,n,i,a,e[12],7,1804603682),a=pa(a,t,n,i,e[13],12,-40341101),i=pa(i,a,t,n,e[14],17,-1502002290),t=da(t,n=pa(n,i,a,t,e[15],22,1236535329),i,a,e[1],5,-165796510),a=da(a,t,n,i,e[6],9,-1069501632),i=da(i,a,t,n,e[11],14,643717713),n=da(n,i,a,t,e[0],20,-373897302),t=da(t,n,i,a,e[5],5,-701558691),a=da(a,t,n,i,e[10],9,38016083),i=da(i,a,t,n,e[15],14,-660478335),n=da(n,i,a,t,e[4],20,-405537848),t=da(t,n,i,a,e[9],5,568446438),a=da(a,t,n,i,e[14],9,-1019803690),i=da(i,a,t,n,e[3],14,-187363961),n=da(n,i,a,t,e[8],20,1163531501),t=da(t,n,i,a,e[13],5,-1444681467),a=da(a,t,n,i,e[2],9,-51403784),i=da(i,a,t,n,e[7],14,1735328473),t=va(t,n=da(n,i,a,t,e[12],20,-1926607734),i,a,e[5],4,-378558),a=va(a,t,n,i,e[8],11,-2022574463),i=va(i,a,t,n,e[11],16,1839030562),n=va(n,i,a,t,e[14],23,-35309556),t=va(t,n,i,a,e[1],4,-1530992060),a=va(a,t,n,i,e[4],11,1272893353),i=va(i,a,t,n,e[7],16,-155497632),n=va(n,i,a,t,e[10],23,-1094730640),t=va(t,n,i,a,e[13],4,681279174),a=va(a,t,n,i,e[0],11,-358537222),i=va(i,a,t,n,e[3],16,-722521979),n=va(n,i,a,t,e[6],23,76029189),t=va(t,n,i,a,e[9],4,-640364487),a=va(a,t,n,i,e[12],11,-421815835),i=va(i,a,t,n,e[15],16,530742520),t=ga(t,n=va(n,i,a,t,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ga(a,t,n,i,e[7],10,1126891415),i=ga(i,a,t,n,e[14],15,-1416354905),n=ga(n,i,a,t,e[5],21,-57434055),t=ga(t,n,i,a,e[12],6,1700485571),a=ga(a,t,n,i,e[3],10,-1894986606),i=ga(i,a,t,n,e[10],15,-1051523),n=ga(n,i,a,t,e[1],21,-2054922799),t=ga(t,n,i,a,e[8],6,1873313359),a=ga(a,t,n,i,e[15],10,-30611744),i=ga(i,a,t,n,e[6],15,-1560198380),n=ga(n,i,a,t,e[13],21,1309151649),t=ga(t,n,i,a,e[4],6,-145523070),a=ga(a,t,n,i,e[11],10,-1120210379),i=ga(i,a,t,n,e[2],15,718787259),n=ga(n,i,a,t,e[9],21,-343485551),r[0]=pu(t,r[0]),r[1]=pu(n,r[1]),r[2]=pu(i,r[2]),r[3]=pu(a,r[3])}function Ew(r,e,t,n,i,a){return e=pu(pu(e,r),pu(n,a)),pu(e<>>32-i,t)}function pa(r,e,t,n,i,a,o){return Ew(e&t|~e&n,r,e,i,a,o)}function da(r,e,t,n,i,a,o){return Ew(e&n|t&~n,r,e,i,a,o)}function va(r,e,t,n,i,a,o){return Ew(e^t^n,r,e,i,a,o)}function ga(r,e,t,n,i,a,o){return Ew(t^(e|~n),r,e,i,a,o)}function m8(r){var e,t=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)$C(n,RAt(r.substring(e-64,e)));r=r.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=r.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for($C(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,$C(n,i),n}function RAt(r){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return t}Gv=He.atob.bind(He),XS=He.btoa.bind(He);var dN="0123456789abcdef".split("");function MAt(r){for(var e="",t=0;t<4;t++)e+=dN[r>>8*t+4&15]+dN[r>>8*t&15];return e}function NAt(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function WS(r){return m8(r).map(NAt).join("")}var PAt=function(r){for(var e=0;e>16)+(e>>16)+(t>>16)<<16|65535&t}return r+e&4294967295}/** + */function $C(r,e){var t=r[0],n=r[1],i=r[2],a=r[3];t=pa(t,n,i,a,e[0],7,-680876936),a=pa(a,t,n,i,e[1],12,-389564586),i=pa(i,a,t,n,e[2],17,606105819),n=pa(n,i,a,t,e[3],22,-1044525330),t=pa(t,n,i,a,e[4],7,-176418897),a=pa(a,t,n,i,e[5],12,1200080426),i=pa(i,a,t,n,e[6],17,-1473231341),n=pa(n,i,a,t,e[7],22,-45705983),t=pa(t,n,i,a,e[8],7,1770035416),a=pa(a,t,n,i,e[9],12,-1958414417),i=pa(i,a,t,n,e[10],17,-42063),n=pa(n,i,a,t,e[11],22,-1990404162),t=pa(t,n,i,a,e[12],7,1804603682),a=pa(a,t,n,i,e[13],12,-40341101),i=pa(i,a,t,n,e[14],17,-1502002290),t=da(t,n=pa(n,i,a,t,e[15],22,1236535329),i,a,e[1],5,-165796510),a=da(a,t,n,i,e[6],9,-1069501632),i=da(i,a,t,n,e[11],14,643717713),n=da(n,i,a,t,e[0],20,-373897302),t=da(t,n,i,a,e[5],5,-701558691),a=da(a,t,n,i,e[10],9,38016083),i=da(i,a,t,n,e[15],14,-660478335),n=da(n,i,a,t,e[4],20,-405537848),t=da(t,n,i,a,e[9],5,568446438),a=da(a,t,n,i,e[14],9,-1019803690),i=da(i,a,t,n,e[3],14,-187363961),n=da(n,i,a,t,e[8],20,1163531501),t=da(t,n,i,a,e[13],5,-1444681467),a=da(a,t,n,i,e[2],9,-51403784),i=da(i,a,t,n,e[7],14,1735328473),t=va(t,n=da(n,i,a,t,e[12],20,-1926607734),i,a,e[5],4,-378558),a=va(a,t,n,i,e[8],11,-2022574463),i=va(i,a,t,n,e[11],16,1839030562),n=va(n,i,a,t,e[14],23,-35309556),t=va(t,n,i,a,e[1],4,-1530992060),a=va(a,t,n,i,e[4],11,1272893353),i=va(i,a,t,n,e[7],16,-155497632),n=va(n,i,a,t,e[10],23,-1094730640),t=va(t,n,i,a,e[13],4,681279174),a=va(a,t,n,i,e[0],11,-358537222),i=va(i,a,t,n,e[3],16,-722521979),n=va(n,i,a,t,e[6],23,76029189),t=va(t,n,i,a,e[9],4,-640364487),a=va(a,t,n,i,e[12],11,-421815835),i=va(i,a,t,n,e[15],16,530742520),t=ga(t,n=va(n,i,a,t,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ga(a,t,n,i,e[7],10,1126891415),i=ga(i,a,t,n,e[14],15,-1416354905),n=ga(n,i,a,t,e[5],21,-57434055),t=ga(t,n,i,a,e[12],6,1700485571),a=ga(a,t,n,i,e[3],10,-1894986606),i=ga(i,a,t,n,e[10],15,-1051523),n=ga(n,i,a,t,e[1],21,-2054922799),t=ga(t,n,i,a,e[8],6,1873313359),a=ga(a,t,n,i,e[15],10,-30611744),i=ga(i,a,t,n,e[6],15,-1560198380),n=ga(n,i,a,t,e[13],21,1309151649),t=ga(t,n,i,a,e[4],6,-145523070),a=ga(a,t,n,i,e[11],10,-1120210379),i=ga(i,a,t,n,e[2],15,718787259),n=ga(n,i,a,t,e[9],21,-343485551),r[0]=pu(t,r[0]),r[1]=pu(n,r[1]),r[2]=pu(i,r[2]),r[3]=pu(a,r[3])}function Ew(r,e,t,n,i,a){return e=pu(pu(e,r),pu(n,a)),pu(e<>>32-i,t)}function pa(r,e,t,n,i,a,o){return Ew(e&t|~e&n,r,e,i,a,o)}function da(r,e,t,n,i,a,o){return Ew(e&n|t&~n,r,e,i,a,o)}function va(r,e,t,n,i,a,o){return Ew(e^t^n,r,e,i,a,o)}function ga(r,e,t,n,i,a,o){return Ew(t^(e|~n),r,e,i,a,o)}function _8(r){var e,t=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)$C(n,MAt(r.substring(e-64,e)));r=r.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=r.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for($C(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,$C(n,i),n}function MAt(r){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=r.charCodeAt(e)+(r.charCodeAt(e+1)<<8)+(r.charCodeAt(e+2)<<16)+(r.charCodeAt(e+3)<<24);return t}Gv=He.atob.bind(He),XS=He.btoa.bind(He);var dN="0123456789abcdef".split("");function NAt(r){for(var e="",t=0;t<4;t++)e+=dN[r>>8*t+4&15]+dN[r>>8*t&15];return e}function PAt(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function WS(r){return _8(r).map(PAt).join("")}var UAt=function(r){for(var e=0;e>16)+(e>>16)+(t>>16)<<16|65535&t}return r+e&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or @@ -781,8 +781,8 @@ void main(void) { * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt * https://github.com/foliojs/pdfkit/blob/master/lib/security.js * http://www.fpdf.org/en/script/script37.php - */var vN={print:4,modify:8,copy:16,"annot-forms":32};function Uf(r,e,t,n){this.v=1,this.r=2;var i=192;r.forEach(function(s){if(vN.perm!==void 0)throw new Error("Invalid permission: "+s);i+=vN[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=WS(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=qS(this.encryptionKey,this.padding)}function Df(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,n=0;n126?e+="#"+("0"+i.toString(16)).slice(-2):e+=r[n]}return e}function gN(r){if(tn(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,i){if(i=i||!1,typeof t!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var a=Math.random().toString(35);return e[t][a]=[n,!!i],a},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[t]){var o=e[t][a];try{o[0].apply(r,n)}catch(s){He.console&&ln.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function z_(r){if(!(this instanceof z_))return new z_(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function _8(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Oc(r,e,t,n,i){if(!(this instanceof Oc))return new Oc(r,e,t,n,i);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,_8.call(this,n,i)}function Wf(r,e,t,n,i){if(!(this instanceof Wf))return new Wf(r,e,t,n,i);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,_8.call(this,n,i)}function Ue(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,A=16,l="S",u=null;tn(r=r||{})==="object"&&(t=r.orientation,n=r.unit||n,i=r.format||i,a=r.compress||r.compressPdf||a,(u=r.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(A=r.floatPrecision),l=r.defaultPathOperation||"S"),o=r.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",t=(""+(t||"P")).toLowerCase();var c=r.putOnlyUsedFonts||!1,h={},f={internal:{},__private__:{}};f.__private__.PubSub=gN;var p="1.3",v=f.__private__.getPdfVersion=function(){return p};f.__private__.setPdfVersion=function(w){p=w};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return m};var g=f.__private__.getPageFormat=function(w){return m[w]};i=i||"a4";var _={COMPAT:"compat",ADVANCED:"advanced"},E=_.COMPAT;function B(){this.saveGraphicsState(),G(new be(Kt,0,0,-Kt,0,Fl()*Kt).toString()+" cm"),this.setFontSize(this.getFontSize()/Kt),l="n",E=_.ADVANCED}function L(){this.restoreGraphicsState(),l="S",E=_.COMPAT}var O=f.__private__.combineFontStyleAndFontWeight=function(w,D){if(w=="bold"&&D=="normal"||w=="bold"&&D==400||w=="normal"&&D=="italic"||w=="bold"&&D=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return D&&(w=D==400||D==="normal"?w==="italic"?"italic":"normal":D!=700&&D!=="bold"||w!=="normal"?(D==700?"bold":D)+""+w:"bold"),w};f.advancedAPI=function(w){var D=E===_.COMPAT;return D&&B.call(this),typeof w!="function"||(w(this),D&&L.call(this)),this},f.compatAPI=function(w){var D=E===_.ADVANCED;return D&&L.call(this),typeof w!="function"||(w(this),D&&B.call(this)),this},f.isAdvancedAPI=function(){return E===_.ADVANCED};var b,T=function(w){if(E!==_.ADVANCED)throw new Error(w+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=f.roundToPrecision=f.__private__.roundToPrecision=function(w,D){var et=e||D;if(isNaN(w)||isNaN(et))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return w.toFixed(et).replace(/0+$/,"")};b=f.hpf=f.__private__.hpf=typeof A=="number"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,A)}:A==="smart"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,w>-1&&w<1?16:5)}:function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,16)};var M=f.f2=f.__private__.f2=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f2");return I(w,2)},x=f.__private__.f3=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f3");return I(w,3)},S=f.scale=f.__private__.scale=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.scale");return E===_.COMPAT?w*Kt:E===_.ADVANCED?w:void 0},N=function(w){return E===_.COMPAT?Fl()-w:E===_.ADVANCED?w:void 0},P=function(w){return S(N(w))};f.__private__.setPrecision=f.setPrecision=function(w){typeof parseInt(w,10)=="number"&&(e=parseInt(w,10))};var X,z="00000000000000000000000000000000",tt=f.__private__.getFileId=function(){return z},J=f.__private__.setFileId=function(w){return z=w!==void 0&&/^[a-fA-F0-9]{32}$/.test(w)?w.toUpperCase():z.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(ca=new Uf(u.userPermissions,u.userPassword,u.ownerPassword,z)),z};f.setFileId=function(w){return J(w),this},f.getFileId=function(){return tt()};var nt=f.__private__.convertDateToPDFDate=function(w){var D=w.getTimezoneOffset(),et=D<0?"+":"-",lt=Math.floor(Math.abs(D/60)),Ct=Math.abs(D%60),Rt=[et,K(lt),"'",K(Ct),"'"].join("");return["D:",w.getFullYear(),K(w.getMonth()+1),K(w.getDate()),K(w.getHours()),K(w.getMinutes()),K(w.getSeconds()),Rt].join("")},it=f.__private__.convertPDFDateToDate=function(w){var D=parseInt(w.substr(2,4),10),et=parseInt(w.substr(6,2),10)-1,lt=parseInt(w.substr(8,2),10),Ct=parseInt(w.substr(10,2),10),Rt=parseInt(w.substr(12,2),10),jt=parseInt(w.substr(14,2),10);return new Date(D,et,lt,Ct,Rt,jt,0)},_t=f.__private__.setCreationDate=function(w){var D;if(w===void 0&&(w=new Date),w instanceof Date)D=nt(w);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(w))throw new Error("Invalid argument passed to jsPDF.setCreationDate");D=w}return X=D},R=f.__private__.getCreationDate=function(w){var D=X;return w==="jsDate"&&(D=it(X)),D};f.setCreationDate=function(w){return _t(w),this},f.getCreationDate=function(w){return R(w)};var $,K=f.__private__.padd2=function(w){return("0"+parseInt(w)).slice(-2)},q=f.__private__.padd2Hex=function(w){return("00"+(w=w.toString())).substr(w.length)},at=0,vt=[],wt=[],W=0,It=[],Ot=[],j=!1,Z=wt,ut=function(){at=0,W=0,wt=[],vt=[],It=[],se=qr(),ht=qr()};f.__private__.setCustomOutputDestination=function(w){j=!0,Z=w};var rt=function(w){j||(Z=w)};f.__private__.resetCustomOutputDestination=function(){j=!1,Z=wt};var G=f.__private__.out=function(w){return w=w.toString(),W+=w.length+1,Z.push(w),Z},xt=f.__private__.write=function(w){return G(arguments.length===1?w.toString():Array.prototype.join.call(arguments," "))},bt=f.__private__.getArrayBuffer=function(w){for(var D=w.length,et=new ArrayBuffer(D),lt=new Uint8Array(et);D--;)lt[D]=w.charCodeAt(D);return et},dt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return dt};var Et=r.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(w){return Et=E===_.ADVANCED?w/Kt:w,this};var yt,St=f.__private__.getFontSize=f.getFontSize=function(){return E===_.COMPAT?Et:Et*Kt},Ft=r.R2L||!1;f.__private__.setR2L=f.setR2L=function(w){return Ft=w,this},f.__private__.getR2L=f.getR2L=function(){return Ft};var Mt,Vt=f.__private__.setZoomMode=function(w){var D=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(w))yt=w;else if(isNaN(w)){if(D.indexOf(w)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+w+'" is not recognized.');yt=w}else yt=parseInt(w,10)};f.__private__.getZoomMode=function(){return yt};var Yt,ie=f.__private__.setPageMode=function(w){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(w)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+w+'" is not recognized.');Mt=w};f.__private__.getPageMode=function(){return Mt};var ee=f.__private__.setLayoutMode=function(w){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(w)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+w+'" is not recognized.');Yt=w};f.__private__.getLayoutMode=function(){return Yt},f.__private__.setDisplayMode=f.setDisplayMode=function(w,D,et){return Vt(w),ee(D),ie(et),this};var Xt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(w){if(Object.keys(Xt).indexOf(w)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Xt[w]},f.__private__.getDocumentProperties=function(){return Xt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(w){for(var D in Xt)Xt.hasOwnProperty(D)&&w[D]&&(Xt[D]=w[D]);return this},f.__private__.setDocumentProperty=function(w,D){if(Object.keys(Xt).indexOf(w)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Xt[w]=D};var oe,Kt,Xe,Re,pr,Ie={},xe={},on=[],sr={},Ti={},Br={},ci={},$r=null,Vr=0,Me=[],wr=new gN(f),Yn=r.hotfixes||[],fn={},Si={},xi=[],be=function w(D,et,lt,Ct,Rt,jt){if(!(this instanceof w))return new w(D,et,lt,Ct,Rt,jt);isNaN(D)&&(D=1),isNaN(et)&&(et=0),isNaN(lt)&&(lt=0),isNaN(Ct)&&(Ct=1),isNaN(Rt)&&(Rt=0),isNaN(jt)&&(jt=0),this._matrix=[D,et,lt,Ct,Rt,jt]};Object.defineProperty(be.prototype,"sx",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(be.prototype,"shy",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(be.prototype,"shx",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(be.prototype,"sy",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(be.prototype,"tx",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(be.prototype,"ty",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(be.prototype,"a",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(be.prototype,"b",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(be.prototype,"c",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(be.prototype,"d",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(be.prototype,"e",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(be.prototype,"f",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(be.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(be.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(be.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(be.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),be.prototype.join=function(w){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(b).join(w)},be.prototype.multiply=function(w){var D=w.sx*this.sx+w.shy*this.shx,et=w.sx*this.shy+w.shy*this.sy,lt=w.shx*this.sx+w.sy*this.shx,Ct=w.shx*this.shy+w.sy*this.sy,Rt=w.tx*this.sx+w.ty*this.shx+this.tx,jt=w.tx*this.shy+w.ty*this.sy+this.ty;return new be(D,et,lt,Ct,Rt,jt)},be.prototype.decompose=function(){var w=this.sx,D=this.shy,et=this.shx,lt=this.sy,Ct=this.tx,Rt=this.ty,jt=Math.sqrt(w*w+D*D),re=(w/=jt)*et+(D/=jt)*lt;et-=w*re,lt-=D*re;var Fe=Math.sqrt(et*et+lt*lt);return re/=Fe,w*(lt/=Fe)>16&255,lt=Fe>>8&255,Ct=255&Fe}if(lt===void 0||Rt===void 0&&et===lt&<===Ct)if(typeof et=="string")D=et+" "+jt[0];else switch(w.precision){case 2:D=M(et/255)+" "+jt[0];break;case 3:default:D=x(et/255)+" "+jt[0]}else if(Rt===void 0||tn(Rt)==="object"){if(Rt&&!isNaN(Rt.a)&&Rt.a===0)return D=["1.","1.","1.",jt[1]].join(" ");if(typeof et=="string")D=[et,lt,Ct,jt[1]].join(" ");else switch(w.precision){case 2:D=[M(et/255),M(lt/255),M(Ct/255),jt[1]].join(" ");break;default:case 3:D=[x(et/255),x(lt/255),x(Ct/255),jt[1]].join(" ")}}else if(typeof et=="string")D=[et,lt,Ct,Rt,jt[2]].join(" ");else switch(w.precision){case 2:D=[M(et),M(lt),M(Ct),M(Rt),jt[2]].join(" ");break;case 3:default:D=[x(et),x(lt),x(Ct),x(Rt),jt[2]].join(" ")}return D},er=f.__private__.getFilters=function(){return o},Or=f.__private__.putStream=function(w){var D=(w=w||{}).data||"",et=w.filters||er(),lt=w.alreadyAppliedFilters||[],Ct=w.addLength1||!1,Rt=D.length,jt=w.objectId,re=function(ha){return ha};if(u!==null&&jt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(re=ca.encryptor(jt,0));var Fe={};et===!0&&(et=["FlateEncode"]);var ur=w.additionalKeyValues||[],Ke=(Fe=Ue.API.processDataByFilters!==void 0?Ue.API.processDataByFilters(D,et):{data:D,reverseChain:[]}).reverseChain+(Array.isArray(lt)?lt.join(" "):lt.toString());if(Fe.data.length!==0&&(ur.push({key:"Length",value:Fe.data.length}),Ct===!0&&ur.push({key:"Length1",value:Rt})),Ke.length!=0)if(Ke.split("/").length-1==1)ur.push({key:"Filter",value:Ke});else{ur.push({key:"Filter",value:"["+Ke+"]"});for(var Tr=0;Tr>"),Fe.data.length!==0&&(G("stream"),G(re(Fe.data)),G("endstream"))},sn=f.__private__.putPage=function(w){var D=w.number,et=w.data,lt=w.objId,Ct=w.contentsObjId;En(lt,!0),G("<>"),G("endobj");var Rt=et.join(` + */var vN={print:4,modify:8,copy:16,"annot-forms":32};function Uf(r,e,t,n){this.v=1,this.r=2;var i=192;r.forEach(function(s){if(vN.perm!==void 0)throw new Error("Invalid permission: "+s);i+=vN[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=WS(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=qS(this.encryptionKey,this.padding)}function Df(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var e="",t=r.length,n=0;n126?e+="#"+("0"+i.toString(16)).slice(-2):e+=r[n]}return e}function gN(r){if(tn(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,i){if(i=i||!1,typeof t!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var a=Math.random().toString(35);return e[t][a]=[n,!!i],a},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[t]){var o=e[t][a];try{o[0].apply(r,n)}catch(s){He.console&&ln.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function z_(r){if(!(this instanceof z_))return new z_(r);var e="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function w8(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function Oc(r,e,t,n,i){if(!(this instanceof Oc))return new Oc(r,e,t,n,i);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,w8.call(this,n,i)}function Wf(r,e,t,n,i){if(!(this instanceof Wf))return new Wf(r,e,t,n,i);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,w8.call(this,n,i)}function Ue(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,A=16,l="S",u=null;tn(r=r||{})==="object"&&(t=r.orientation,n=r.unit||n,i=r.format||i,a=r.compress||r.compressPdf||a,(u=r.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof r.userUnit=="number"?Math.abs(r.userUnit):1,r.precision!==void 0&&(e=r.precision),r.floatPrecision!==void 0&&(A=r.floatPrecision),l=r.defaultPathOperation||"S"),o=r.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",t=(""+(t||"P")).toLowerCase();var c=r.putOnlyUsedFonts||!1,h={},f={internal:{},__private__:{}};f.__private__.PubSub=gN;var p="1.3",v=f.__private__.getPdfVersion=function(){return p};f.__private__.setPdfVersion=function(w){p=w};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return m};var g=f.__private__.getPageFormat=function(w){return m[w]};i=i||"a4";var _={COMPAT:"compat",ADVANCED:"advanced"},E=_.COMPAT;function B(){this.saveGraphicsState(),G(new be(Kt,0,0,-Kt,0,Fl()*Kt).toString()+" cm"),this.setFontSize(this.getFontSize()/Kt),l="n",E=_.ADVANCED}function L(){this.restoreGraphicsState(),l="S",E=_.COMPAT}var O=f.__private__.combineFontStyleAndFontWeight=function(w,D){if(w=="bold"&&D=="normal"||w=="bold"&&D==400||w=="normal"&&D=="italic"||w=="bold"&&D=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return D&&(w=D==400||D==="normal"?w==="italic"?"italic":"normal":D!=700&&D!=="bold"||w!=="normal"?(D==700?"bold":D)+""+w:"bold"),w};f.advancedAPI=function(w){var D=E===_.COMPAT;return D&&B.call(this),typeof w!="function"||(w(this),D&&L.call(this)),this},f.compatAPI=function(w){var D=E===_.ADVANCED;return D&&L.call(this),typeof w!="function"||(w(this),D&&B.call(this)),this},f.isAdvancedAPI=function(){return E===_.ADVANCED};var b,T=function(w){if(E!==_.ADVANCED)throw new Error(w+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=f.roundToPrecision=f.__private__.roundToPrecision=function(w,D){var et=e||D;if(isNaN(w)||isNaN(et))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return w.toFixed(et).replace(/0+$/,"")};b=f.hpf=f.__private__.hpf=typeof A=="number"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,A)}:A==="smart"?function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,w>-1&&w<1?16:5)}:function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.hpf");return I(w,16)};var M=f.f2=f.__private__.f2=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f2");return I(w,2)},x=f.__private__.f3=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.f3");return I(w,3)},S=f.scale=f.__private__.scale=function(w){if(isNaN(w))throw new Error("Invalid argument passed to jsPDF.scale");return E===_.COMPAT?w*Kt:E===_.ADVANCED?w:void 0},N=function(w){return E===_.COMPAT?Fl()-w:E===_.ADVANCED?w:void 0},P=function(w){return S(N(w))};f.__private__.setPrecision=f.setPrecision=function(w){typeof parseInt(w,10)=="number"&&(e=parseInt(w,10))};var X,z="00000000000000000000000000000000",tt=f.__private__.getFileId=function(){return z},J=f.__private__.setFileId=function(w){return z=w!==void 0&&/^[a-fA-F0-9]{32}$/.test(w)?w.toUpperCase():z.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(ca=new Uf(u.userPermissions,u.userPassword,u.ownerPassword,z)),z};f.setFileId=function(w){return J(w),this},f.getFileId=function(){return tt()};var nt=f.__private__.convertDateToPDFDate=function(w){var D=w.getTimezoneOffset(),et=D<0?"+":"-",lt=Math.floor(Math.abs(D/60)),Ct=Math.abs(D%60),Rt=[et,K(lt),"'",K(Ct),"'"].join("");return["D:",w.getFullYear(),K(w.getMonth()+1),K(w.getDate()),K(w.getHours()),K(w.getMinutes()),K(w.getSeconds()),Rt].join("")},it=f.__private__.convertPDFDateToDate=function(w){var D=parseInt(w.substr(2,4),10),et=parseInt(w.substr(6,2),10)-1,lt=parseInt(w.substr(8,2),10),Ct=parseInt(w.substr(10,2),10),Rt=parseInt(w.substr(12,2),10),jt=parseInt(w.substr(14,2),10);return new Date(D,et,lt,Ct,Rt,jt,0)},_t=f.__private__.setCreationDate=function(w){var D;if(w===void 0&&(w=new Date),w instanceof Date)D=nt(w);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(w))throw new Error("Invalid argument passed to jsPDF.setCreationDate");D=w}return X=D},R=f.__private__.getCreationDate=function(w){var D=X;return w==="jsDate"&&(D=it(X)),D};f.setCreationDate=function(w){return _t(w),this},f.getCreationDate=function(w){return R(w)};var $,K=f.__private__.padd2=function(w){return("0"+parseInt(w)).slice(-2)},q=f.__private__.padd2Hex=function(w){return("00"+(w=w.toString())).substr(w.length)},at=0,vt=[],wt=[],W=0,It=[],Ot=[],j=!1,Z=wt,ut=function(){at=0,W=0,wt=[],vt=[],It=[],se=qr(),ht=qr()};f.__private__.setCustomOutputDestination=function(w){j=!0,Z=w};var rt=function(w){j||(Z=w)};f.__private__.resetCustomOutputDestination=function(){j=!1,Z=wt};var G=f.__private__.out=function(w){return w=w.toString(),W+=w.length+1,Z.push(w),Z},xt=f.__private__.write=function(w){return G(arguments.length===1?w.toString():Array.prototype.join.call(arguments," "))},bt=f.__private__.getArrayBuffer=function(w){for(var D=w.length,et=new ArrayBuffer(D),lt=new Uint8Array(et);D--;)lt[D]=w.charCodeAt(D);return et},dt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return dt};var Et=r.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(w){return Et=E===_.ADVANCED?w/Kt:w,this};var yt,St=f.__private__.getFontSize=f.getFontSize=function(){return E===_.COMPAT?Et:Et*Kt},Ft=r.R2L||!1;f.__private__.setR2L=f.setR2L=function(w){return Ft=w,this},f.__private__.getR2L=f.getR2L=function(){return Ft};var Mt,Vt=f.__private__.setZoomMode=function(w){var D=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(w))yt=w;else if(isNaN(w)){if(D.indexOf(w)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+w+'" is not recognized.');yt=w}else yt=parseInt(w,10)};f.__private__.getZoomMode=function(){return yt};var Yt,ie=f.__private__.setPageMode=function(w){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(w)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+w+'" is not recognized.');Mt=w};f.__private__.getPageMode=function(){return Mt};var ee=f.__private__.setLayoutMode=function(w){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(w)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+w+'" is not recognized.');Yt=w};f.__private__.getLayoutMode=function(){return Yt},f.__private__.setDisplayMode=f.setDisplayMode=function(w,D,et){return Vt(w),ee(D),ie(et),this};var Xt={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(w){if(Object.keys(Xt).indexOf(w)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Xt[w]},f.__private__.getDocumentProperties=function(){return Xt},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(w){for(var D in Xt)Xt.hasOwnProperty(D)&&w[D]&&(Xt[D]=w[D]);return this},f.__private__.setDocumentProperty=function(w,D){if(Object.keys(Xt).indexOf(w)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Xt[w]=D};var oe,Kt,Xe,Re,pr,Ie={},xe={},on=[],sr={},Ti={},Br={},ci={},$r=null,Vr=0,Me=[],wr=new gN(f),Yn=r.hotfixes||[],fn={},Si={},xi=[],be=function w(D,et,lt,Ct,Rt,jt){if(!(this instanceof w))return new w(D,et,lt,Ct,Rt,jt);isNaN(D)&&(D=1),isNaN(et)&&(et=0),isNaN(lt)&&(lt=0),isNaN(Ct)&&(Ct=1),isNaN(Rt)&&(Rt=0),isNaN(jt)&&(jt=0),this._matrix=[D,et,lt,Ct,Rt,jt]};Object.defineProperty(be.prototype,"sx",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(be.prototype,"shy",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(be.prototype,"shx",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(be.prototype,"sy",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(be.prototype,"tx",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(be.prototype,"ty",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(be.prototype,"a",{get:function(){return this._matrix[0]},set:function(w){this._matrix[0]=w}}),Object.defineProperty(be.prototype,"b",{get:function(){return this._matrix[1]},set:function(w){this._matrix[1]=w}}),Object.defineProperty(be.prototype,"c",{get:function(){return this._matrix[2]},set:function(w){this._matrix[2]=w}}),Object.defineProperty(be.prototype,"d",{get:function(){return this._matrix[3]},set:function(w){this._matrix[3]=w}}),Object.defineProperty(be.prototype,"e",{get:function(){return this._matrix[4]},set:function(w){this._matrix[4]=w}}),Object.defineProperty(be.prototype,"f",{get:function(){return this._matrix[5]},set:function(w){this._matrix[5]=w}}),Object.defineProperty(be.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(be.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(be.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(be.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),be.prototype.join=function(w){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(b).join(w)},be.prototype.multiply=function(w){var D=w.sx*this.sx+w.shy*this.shx,et=w.sx*this.shy+w.shy*this.sy,lt=w.shx*this.sx+w.sy*this.shx,Ct=w.shx*this.shy+w.sy*this.sy,Rt=w.tx*this.sx+w.ty*this.shx+this.tx,jt=w.tx*this.shy+w.ty*this.sy+this.ty;return new be(D,et,lt,Ct,Rt,jt)},be.prototype.decompose=function(){var w=this.sx,D=this.shy,et=this.shx,lt=this.sy,Ct=this.tx,Rt=this.ty,jt=Math.sqrt(w*w+D*D),re=(w/=jt)*et+(D/=jt)*lt;et-=w*re,lt-=D*re;var Fe=Math.sqrt(et*et+lt*lt);return re/=Fe,w*(lt/=Fe)>16&255,lt=Fe>>8&255,Ct=255&Fe}if(lt===void 0||Rt===void 0&&et===lt&<===Ct)if(typeof et=="string")D=et+" "+jt[0];else switch(w.precision){case 2:D=M(et/255)+" "+jt[0];break;case 3:default:D=x(et/255)+" "+jt[0]}else if(Rt===void 0||tn(Rt)==="object"){if(Rt&&!isNaN(Rt.a)&&Rt.a===0)return D=["1.","1.","1.",jt[1]].join(" ");if(typeof et=="string")D=[et,lt,Ct,jt[1]].join(" ");else switch(w.precision){case 2:D=[M(et/255),M(lt/255),M(Ct/255),jt[1]].join(" ");break;default:case 3:D=[x(et/255),x(lt/255),x(Ct/255),jt[1]].join(" ")}}else if(typeof et=="string")D=[et,lt,Ct,Rt,jt[2]].join(" ");else switch(w.precision){case 2:D=[M(et),M(lt),M(Ct),M(Rt),jt[2]].join(" ");break;case 3:default:D=[x(et),x(lt),x(Ct),x(Rt),jt[2]].join(" ")}return D},er=f.__private__.getFilters=function(){return o},Or=f.__private__.putStream=function(w){var D=(w=w||{}).data||"",et=w.filters||er(),lt=w.alreadyAppliedFilters||[],Ct=w.addLength1||!1,Rt=D.length,jt=w.objectId,re=function(ha){return ha};if(u!==null&&jt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(re=ca.encryptor(jt,0));var Fe={};et===!0&&(et=["FlateEncode"]);var ur=w.additionalKeyValues||[],Ke=(Fe=Ue.API.processDataByFilters!==void 0?Ue.API.processDataByFilters(D,et):{data:D,reverseChain:[]}).reverseChain+(Array.isArray(lt)?lt.join(" "):lt.toString());if(Fe.data.length!==0&&(ur.push({key:"Length",value:Fe.data.length}),Ct===!0&&ur.push({key:"Length1",value:Rt})),Ke.length!=0)if(Ke.split("/").length-1==1)ur.push({key:"Filter",value:Ke});else{ur.push({key:"Filter",value:"["+Ke+"]"});for(var Tr=0;Tr>"),Fe.data.length!==0&&(G("stream"),G(re(Fe.data)),G("endstream"))},sn=f.__private__.putPage=function(w){var D=w.number,et=w.data,lt=w.objId,Ct=w.contentsObjId;En(lt,!0),G("<>"),G("endobj");var Rt=et.join(` `);return E===_.ADVANCED&&(Rt+=` Q`),En(Ct,!0),Or({data:Rt,filters:er(),objectId:Ct}),G("endobj"),lt},Cn=f.__private__.putPages=function(){var w,D,et=[];for(w=1;w<=Vr;w++)Me[w].objId=qr(),Me[w].contentsObjId=qr();for(w=1;w<=Vr;w++)et.push(sn({number:w,data:Ot[w],objId:Me[w].objId,contentsObjId:Me[w].contentsObjId,mediaBox:Me[w].mediaBox,cropBox:Me[w].cropBox,bleedBox:Me[w].bleedBox,trimBox:Me[w].trimBox,artBox:Me[w].artBox,userUnit:Me[w].userUnit,rootDictionaryObjId:se,resourceDictionaryObjId:ht}));En(se,!0),G("<>"),G("endobj"),wr.publish("postPutPages")},is=function(w){wr.publish("putFont",{font:w,out:G,newObject:en,putStream:Or}),w.isAlreadyPutted!==!0&&(w.objectNumber=en(),G("<<"),G("/Type /Font"),G("/BaseFont /"+Df(w.postScriptName)),G("/Subtype /Type1"),typeof w.encoding=="string"&&G("/Encoding /"+w.encoding),G("/FirstChar 32"),G("/LastChar 255"),G(">>"),G("endobj"))},Ii=function(){for(var w in Ie)Ie.hasOwnProperty(w)&&(c===!1||c===!0&&h.hasOwnProperty(w))&&is(Ie[w])},EA=function(w){w.objectNumber=en();var D=[];D.push({key:"Type",value:"/XObject"}),D.push({key:"Subtype",value:"/Form"}),D.push({key:"BBox",value:"["+[b(w.x),b(w.y),b(w.x+w.width),b(w.y+w.height)].join(" ")+"]"}),D.push({key:"Matrix",value:"["+w.matrix.toString()+"]"});var et=w.pages[1].join(` `);Or({data:et,additionalKeyValues:D,objectId:w.objectNumber}),G("endobj")},Sl=function(){for(var w in fn)fn.hasOwnProperty(w)&&EA(fn[w])},ld=function(w,D){var et,lt=[],Ct=1/(D-1);for(et=0;et<1;et+=Ct)lt.push(et);if(lt.push(1),w[0].offset!=0){var Rt={offset:0,color:w[0].color};w.unshift(Rt)}if(w[w.length-1].offset!=1){var jt={offset:1,color:w[w.length-1].color};w.push(jt)}for(var re="",Fe=0,ur=0;urw[Fe+1].offset;)Fe++;var Ke=w[Fe].offset,Tr=(et-Ke)/(w[Fe+1].offset-Ke),Ji=w[Fe].color,Wn=w[Fe+1].color;re+=q(Math.round((1-Tr)*Ji[0]+Tr*Wn[0]).toString(16))+q(Math.round((1-Tr)*Ji[1]+Tr*Wn[1]).toString(16))+q(Math.round((1-Tr)*Ji[2]+Tr*Wn[2]).toString(16))}return re.trim()},AE=function(w,D){D||(D=21);var et=en(),lt=ld(w.colors,D),Ct=[];Ct.push({key:"FunctionType",value:"0"}),Ct.push({key:"Domain",value:"[0.0 1.0]"}),Ct.push({key:"Size",value:"["+D+"]"}),Ct.push({key:"BitsPerSample",value:"8"}),Ct.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ct.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Or({data:lt,additionalKeyValues:Ct,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:et}),G("endobj"),w.objectNumber=en(),G("<< /ShadingType "+w.type),G("/ColorSpace /DeviceRGB");var Rt="/Coords ["+b(parseFloat(w.coords[0]))+" "+b(parseFloat(w.coords[1]))+" ";w.type===2?Rt+=b(parseFloat(w.coords[2]))+" "+b(parseFloat(w.coords[3])):Rt+=b(parseFloat(w.coords[2]))+" "+b(parseFloat(w.coords[3]))+" "+b(parseFloat(w.coords[4]))+" "+b(parseFloat(w.coords[5])),G(Rt+="]"),w.matrix&&G("/Matrix ["+w.matrix.toString()+"]"),G("/Function "+et+" 0 R"),G("/Extend [true true]"),G(">>"),G("endobj")},lE=function(w,D){var et=qr(),lt=en();D.push({resourcesOid:et,objectOid:lt}),w.objectNumber=lt;var Ct=[];Ct.push({key:"Type",value:"/Pattern"}),Ct.push({key:"PatternType",value:"1"}),Ct.push({key:"PaintType",value:"1"}),Ct.push({key:"TilingType",value:"1"}),Ct.push({key:"BBox",value:"["+w.boundingBox.map(b).join(" ")+"]"}),Ct.push({key:"XStep",value:b(w.xStep)}),Ct.push({key:"YStep",value:b(w.yStep)}),Ct.push({key:"Resources",value:et+" 0 R"}),w.matrix&&Ct.push({key:"Matrix",value:"["+w.matrix.toString()+"]"}),Or({data:w.stream,additionalKeyValues:Ct,objectId:w.objectNumber}),G("endobj")},Hh=function(w){var D;for(D in sr)sr.hasOwnProperty(D)&&(sr[D]instanceof Oc?AE(sr[D]):sr[D]instanceof Wf&&lE(sr[D],w))},Cy=function(w){for(var D in w.objectNumber=en(),G("<<"),w)switch(D){case"opacity":G("/ca "+M(w[D]));break;case"stroke-opacity":G("/CA "+M(w[D]))}G(">>"),G("endobj")},uE=function(){var w;for(w in Br)Br.hasOwnProperty(w)&&Cy(Br[w])},ud=function(){for(var w in G("/XObject <<"),fn)fn.hasOwnProperty(w)&&fn[w].objectNumber>=0&&G("/"+w+" "+fn[w].objectNumber+" 0 R");wr.publish("putXobjectDict"),G(">>")},cE=function(){ca.oid=en(),G("<<"),G("/Filter /Standard"),G("/V "+ca.v),G("/R "+ca.r),G("/U <"+ca.toHexString(ca.U)+">"),G("/O <"+ca.toHexString(ca.O)+">"),G("/P "+ca.P),G(">>"),G("endobj")},By=function(){for(var w in G("/Font <<"),Ie)Ie.hasOwnProperty(w)&&(c===!1||c===!0&&h.hasOwnProperty(w))&&G("/"+w+" "+Ie[w].objectNumber+" 0 R");G(">>")},hE=function(){if(Object.keys(sr).length>0){for(var w in G("/Shading <<"),sr)sr.hasOwnProperty(w)&&sr[w]instanceof Oc&&sr[w].objectNumber>=0&&G("/"+w+" "+sr[w].objectNumber+" 0 R");wr.publish("putShadingPatternDict"),G(">>")}},Gh=function(w){if(Object.keys(sr).length>0){for(var D in G("/Pattern <<"),sr)sr.hasOwnProperty(D)&&sr[D]instanceof f.TilingPattern&&sr[D].objectNumber>=0&&sr[D].objectNumber>")}},fE=function(){if(Object.keys(Br).length>0){var w;for(w in G("/ExtGState <<"),Br)Br.hasOwnProperty(w)&&Br[w].objectNumber>=0&&G("/"+w+" "+Br[w].objectNumber+" 0 R");wr.publish("putGStateDict"),G(">>")}},Xn=function(w){En(w.resourcesOid,!0),G("<<"),G("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),By(),hE(),Gh(w.objectOid),fE(),ud(),G(">>"),G("endobj")},Ty=function(){var w=[];Ii(),uE(),Sl(),Hh(w),wr.publish("putResources"),w.forEach(Xn),Xn({resourcesOid:ht,objectOid:Number.MAX_SAFE_INTEGER}),wr.publish("postPutResources")},Sy=function(){wr.publish("putAdditionalObjects");for(var w=0;w>0&255,r>>8&255,r>>16&255,r>>24&255)},Uf.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Uf.prototype.hexToBytes=function(r){for(var e=[],t=0;t>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(n){return qS(t,n)}},z_.prototype.equals=function(r){var e,t="id,objectNumber,equals";if(!r||tn(r)!==tn(this))return!1;var n=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!r.hasOwnProperty(e)||this[e]!==r[e])return!1;n++}for(e in r)r.hasOwnProperty(e)&&t.indexOf(e)<0&&n--;return n===0},Ue.API={events:[]},Ue.version="2.5.0";var Hn=Ue.API,RF=1,Rh=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},df=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ze=function(r){return r.toFixed(2)},Zl=function(r){return r.toFixed(5)};Hn.__acroform__={};var go=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},yN=function(r){return r*RF},Vs=function(r){var e=new E8,t=ve.internal.getHeight(r)||0,n=ve.internal.getWidth(r)||0;return e.BBox=[0,0,Number(ze(n)),Number(ze(t))],e},UAt=Hn.__acroform__.setBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<>0&255,r>>8&255,r>>16&255,r>>24&255)},Uf.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Uf.prototype.hexToBytes=function(r){for(var e=[],t=0;t>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(n){return qS(t,n)}},z_.prototype.equals=function(r){var e,t="id,objectNumber,equals";if(!r||tn(r)!==tn(this))return!1;var n=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!r.hasOwnProperty(e)||this[e]!==r[e])return!1;n++}for(e in r)r.hasOwnProperty(e)&&t.indexOf(e)<0&&n--;return n===0},Ue.API={events:[]},Ue.version="2.5.0";var Hn=Ue.API,RF=1,Rh=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},df=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ze=function(r){return r.toFixed(2)},Zl=function(r){return r.toFixed(5)};Hn.__acroform__={};var go=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},yN=function(r){return r*RF},Vs=function(r){var e=new C8,t=ve.internal.getHeight(r)||0,n=ve.internal.getWidth(r)||0;return e.BBox=[0,0,Number(ze(n)),Number(ze(t))],e},DAt=Hn.__acroform__.setBit=function(r,e){if(r=r||0,e=e||0,isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|=1<0;){e="",a--;var l,u,c=Dm("3",r,a).height,h=r.multiline?o-a:(o-c)/2,f=h+=2,p=0,v=0,m=0;if(a<=0){e=`(...) Tj `,e+="% Width of Text: "+Dm(e,r,a=12).width+", FieldWidth:"+s+` `;break}for(var g="",_=0,E=0;Eo)continue t;g+=i[E][m],B=!0,v=E,E--}else{g=(g+=i[E][m]+" ").substr(g.length-1)==" "?g.substr(0,g.length-1):g;var L=parseInt(E),O=A(L,g,a),b=E>=i.length-1;if(O&&!b){g+=" ",m=0;continue}if(O||b){if(b)v=L;else if(r.multiline&&(c+2)*(_+2)+2>o)continue t}else{if(!r.multiline||(c+2)*(_+2)+2>o)continue t;v=L}}for(var T="",I=p;I<=v;I++){var M=i[I];if(r.multiline){if(I===v){T+=M[m]+" ",m=(m+1)%M.length;continue}if(I===p){T+=M[M.length-1]+" ";continue}}T+=M[0]+" "}switch(T=T.substr(T.length-1)==" "?T.substr(0,T.length-1):T,u=Dm(T,r,a).width,r.textAlign){case"right":l=s-u-2;break;case"center":l=(s-u)/2;break;case"left":default:l=2}e+=ze(l)+" "+ze(f)+` Td `,e+="("+Rh(T)+`) Tj `,e+=-ze(l)+` 0 Td -`,f=-(a+2),u=0,p=B?v:v+1,_++,g=""}break}return n.text=e,n.fontSize=a,n},Dm=function(r,e,t){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(r,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},kAt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},$At=function(r,e){var t={type:"reference",object:r};e.internal.getPageInfo(r.page).pageContext.annotations.find(function(n){return n.type===t.type&&n.object===t.object})===void 0&&e.internal.getPageInfo(r.page).pageContext.annotations.push(t)},VAt=function(r,e){for(var t in r)if(r.hasOwnProperty(t)){var n=t,i=r[t];e.internal.newObjectDeferredBegin(i.objId,!0),tn(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete r[n]}},jAt=function(r,e){if(e.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(Ns.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(kAt)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");RF=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new C8,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&$At(a,t)}})(r)}),r.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(r)}),r.internal.events.subscribe("postPutPages",function(t){(function(n,i){var a=!n;for(var o in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],A=[],l=s.Rect;if(s.Rect&&(s.Rect=HAt(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ve.createDefaultAppearanceStream(s),tn(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(A=s.getKeyValueListForStream()),s.Rect=l,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=GAt(s);A.push({key:"AP",value:"<>"}),i.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var c="";for(var h in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(h)){var f=s.appearanceStreamContent[h];if(c+="/"+h+" ",c+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var p=f[o];typeof p=="function"&&(p=p.call(i,s)),c+="/"+o+" "+p+" ",i.internal.acroformPlugin.xForms.indexOf(p)>=0||i.internal.acroformPlugin.xForms.push(p)}}else typeof(p=f)=="function"&&(p=p.call(i,s)),c+="/"+o+" "+p,i.internal.acroformPlugin.xForms.indexOf(p)>=0||i.internal.acroformPlugin.xForms.push(p);c+=">>"}A.push({key:"AP",value:`<< -`+c+">>"})}i.internal.putStream({additionalKeyValues:A,objectId:s.objId}),i.internal.out("endobj")}a&&VAt(i.internal.acroformPlugin.xForms,i)})(t,r)}),r.internal.acroformPlugin.isInitialized=!0}},w8=Hn.__acroform__.arrayToPdfArray=function(r,e,t){var n=function(o){return o};if(Array.isArray(r)){for(var i="[",a=0;a0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var t=function(n){return n};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Rh(t(r))+")"}},set:function(t){r=t}})};go(C8,eA);var Ns=function r(){eA.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(g){if(isNaN(g))throw new Error('Invalid value "'+g+'" for attribute F supplied.');e=g}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(e,3))},set:function(g){Boolean(g)===!0?this.F=ni(e,3):this.F=ii(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(g){if(isNaN(g))throw new Error('Invalid value "'+g+'" for attribute Ff supplied.');t=g}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(g){n=g!==void 0?g:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(g){n[0]=g}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(g){n[1]=g}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(g){n[2]=g}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(g){n[3]=g}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(g){switch(g){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=g;break;default:throw new Error('Invalid value "'+g+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Y_)return;a="FieldObject"+r.FieldNum++}var g=function(_){return _};return this.scope&&(g=this.scope.internal.getEncryptor(this.objId)),"("+Rh(g(a))+")"},set:function(g){a=g.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(g){a=g}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(g){o=g}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(g){s=g}});var A=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return A},set:function(g){A=g}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/RF:l},set:function(g){l=g}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(g){u=g}});var c="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!c||this instanceof Y_||this instanceof Zc))return VC(c,this.objId,this.scope)},set:function(g){g=g.toString(),c=g}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Xi?h:VC(h,this.objId,this.scope)},set:function(g){g=g.toString(),h=this instanceof Xi?g:g.substr(0,1)==="("?df(g.substr(1,g.length-2)):df(g)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xi?df(h.substr(1,h.length-1)):h},set:function(g){g=g.toString(),h=this instanceof Xi?"/"+g:g}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(g){this.V=g}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Xi?f:VC(f,this.objId,this.scope)},set:function(g){g=g.toString(),f=this instanceof Xi?g:g.substr(0,1)==="("?df(g.substr(1,g.length-2)):df(g)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xi?df(f.substr(1,f.length-1)):f},set:function(g){g=g.toString(),f=this instanceof Xi?"/"+g:g}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(g){g=Boolean(g),v=g}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(g){p=g}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,1))},set:function(g){Boolean(g)===!0?this.Ff=ni(this.Ff,1):this.Ff=ii(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,2))},set:function(g){Boolean(g)===!0?this.Ff=ni(this.Ff,2):this.Ff=ii(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,3))},set:function(g){Boolean(g)===!0?this.Ff=ni(this.Ff,3):this.Ff=ii(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(m!==null)return m},set:function(g){if([0,1,2].indexOf(g)===-1)throw new Error('Invalid value "'+g+'" for attribute Q supplied.');m=g}}),Object.defineProperty(this,"textAlign",{get:function(){var g;switch(m){case 0:default:g="left";break;case 1:g="center";break;case 2:g="right"}return g},configurable:!0,enumerable:!0,set:function(g){switch(g){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};go(Ns,eA);var cp=function(){Ns.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){r=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return w8(e,this.objId,this.scope)},set:function(t){var n,i;i=[],typeof(n=t)=="string"&&(i=function(a,o,s){s||(s=1);for(var A,l=[];A=o.exec(a);)l.push(A[s]);return l}(n,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,18))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,18):this.Ff=ii(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,19))},set:function(t){this.combo===!0&&(Boolean(t)===!0?this.Ff=ni(this.Ff,19):this.Ff=ii(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,20))},set:function(t){Boolean(t)===!0?(this.Ff=ni(this.Ff,20),e.sort()):this.Ff=ii(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,22))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,22):this.Ff=ii(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,23))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,23):this.Ff=ii(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,27))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,27):this.Ff=ii(this.Ff,27)}}),this.hasAppearanceStream=!1};go(cp,Ns);var hp=function(){cp.call(this),this.fontName="helvetica",this.combo=!1};go(hp,cp);var fp=function(){hp.call(this),this.combo=!0};go(fp,hp);var $0=function(){fp.call(this),this.edit=!0};go($0,fp);var Xi=function(){Ns.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,15))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,15):this.Ff=ii(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,16))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,16):this.Ff=ii(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,17))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,17):this.Ff=ii(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,26))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,26):this.Ff=ii(this.Ff,26)}});var r,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(a){return a};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var n,i=[];for(n in i.push("<<"),e)i.push("/"+n+" ("+Rh(t(e[n]))+")");return i.push(">>"),i.join(` +`,f=-(a+2),u=0,p=B?v:v+1,_++,g=""}break}return n.text=e,n.fontSize=a,n},Dm=function(r,e,t){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(r,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},$At={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},VAt=function(r,e){var t={type:"reference",object:r};e.internal.getPageInfo(r.page).pageContext.annotations.find(function(n){return n.type===t.type&&n.object===t.object})===void 0&&e.internal.getPageInfo(r.page).pageContext.annotations.push(t)},jAt=function(r,e){for(var t in r)if(r.hasOwnProperty(t)){var n=t,i=r[t];e.internal.newObjectDeferredBegin(i.objId,!0),tn(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete r[n]}},KAt=function(r,e){if(e.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(Ns.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify($At)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");RF=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new B8,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(r)}),r.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&VAt(a,t)}})(r)}),r.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(r)}),r.internal.events.subscribe("postPutPages",function(t){(function(n,i){var a=!n;for(var o in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],A=[],l=s.Rect;if(s.Rect&&(s.Rect=GAt(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ve.createDefaultAppearanceStream(s),tn(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(A=s.getKeyValueListForStream()),s.Rect=l,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=kAt(s);A.push({key:"AP",value:"<>"}),i.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var c="";for(var h in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(h)){var f=s.appearanceStreamContent[h];if(c+="/"+h+" ",c+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var p=f[o];typeof p=="function"&&(p=p.call(i,s)),c+="/"+o+" "+p+" ",i.internal.acroformPlugin.xForms.indexOf(p)>=0||i.internal.acroformPlugin.xForms.push(p)}}else typeof(p=f)=="function"&&(p=p.call(i,s)),c+="/"+o+" "+p,i.internal.acroformPlugin.xForms.indexOf(p)>=0||i.internal.acroformPlugin.xForms.push(p);c+=">>"}A.push({key:"AP",value:`<< +`+c+">>"})}i.internal.putStream({additionalKeyValues:A,objectId:s.objId}),i.internal.out("endobj")}a&&jAt(i.internal.acroformPlugin.xForms,i)})(t,r)}),r.internal.acroformPlugin.isInitialized=!0}},E8=Hn.__acroform__.arrayToPdfArray=function(r,e,t){var n=function(o){return o};if(Array.isArray(r)){for(var i="[",a=0;a0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var t=function(n){return n};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Rh(t(r))+")"}},set:function(t){r=t}})};go(B8,eA);var Ns=function r(){eA.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(g){if(isNaN(g))throw new Error('Invalid value "'+g+'" for attribute F supplied.');e=g}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(e,3))},set:function(g){Boolean(g)===!0?this.F=ni(e,3):this.F=ii(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(g){if(isNaN(g))throw new Error('Invalid value "'+g+'" for attribute Ff supplied.');t=g}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(g){n=g!==void 0?g:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(g){n[0]=g}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(g){n[1]=g}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(g){n[2]=g}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(g){n[3]=g}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(g){switch(g){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=g;break;default:throw new Error('Invalid value "'+g+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Y_)return;a="FieldObject"+r.FieldNum++}var g=function(_){return _};return this.scope&&(g=this.scope.internal.getEncryptor(this.objId)),"("+Rh(g(a))+")"},set:function(g){a=g.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(g){a=g}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(g){o=g}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(g){s=g}});var A=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return A},set:function(g){A=g}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/RF:l},set:function(g){l=g}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(g){u=g}});var c="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!c||this instanceof Y_||this instanceof Zc))return VC(c,this.objId,this.scope)},set:function(g){g=g.toString(),c=g}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Xi?h:VC(h,this.objId,this.scope)},set:function(g){g=g.toString(),h=this instanceof Xi?g:g.substr(0,1)==="("?df(g.substr(1,g.length-2)):df(g)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xi?df(h.substr(1,h.length-1)):h},set:function(g){g=g.toString(),h=this instanceof Xi?"/"+g:g}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(g){this.V=g}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Xi?f:VC(f,this.objId,this.scope)},set:function(g){g=g.toString(),f=this instanceof Xi?g:g.substr(0,1)==="("?df(g.substr(1,g.length-2)):df(g)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Xi?df(f.substr(1,f.length-1)):f},set:function(g){g=g.toString(),f=this instanceof Xi?"/"+g:g}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(g){g=Boolean(g),v=g}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(g){p=g}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,1))},set:function(g){Boolean(g)===!0?this.Ff=ni(this.Ff,1):this.Ff=ii(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,2))},set:function(g){Boolean(g)===!0?this.Ff=ni(this.Ff,2):this.Ff=ii(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,3))},set:function(g){Boolean(g)===!0?this.Ff=ni(this.Ff,3):this.Ff=ii(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(m!==null)return m},set:function(g){if([0,1,2].indexOf(g)===-1)throw new Error('Invalid value "'+g+'" for attribute Q supplied.');m=g}}),Object.defineProperty(this,"textAlign",{get:function(){var g;switch(m){case 0:default:g="left";break;case 1:g="center";break;case 2:g="right"}return g},configurable:!0,enumerable:!0,set:function(g){switch(g){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};go(Ns,eA);var cp=function(){Ns.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){r=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return E8(e,this.objId,this.scope)},set:function(t){var n,i;i=[],typeof(n=t)=="string"&&(i=function(a,o,s){s||(s=1);for(var A,l=[];A=o.exec(a);)l.push(A[s]);return l}(n,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,18))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,18):this.Ff=ii(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,19))},set:function(t){this.combo===!0&&(Boolean(t)===!0?this.Ff=ni(this.Ff,19):this.Ff=ii(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,20))},set:function(t){Boolean(t)===!0?(this.Ff=ni(this.Ff,20),e.sort()):this.Ff=ii(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,22))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,22):this.Ff=ii(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,23))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,23):this.Ff=ii(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,27))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,27):this.Ff=ii(this.Ff,27)}}),this.hasAppearanceStream=!1};go(cp,Ns);var hp=function(){cp.call(this),this.fontName="helvetica",this.combo=!1};go(hp,cp);var fp=function(){hp.call(this),this.combo=!0};go(fp,hp);var $0=function(){fp.call(this),this.edit=!0};go($0,fp);var Xi=function(){Ns.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,15))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,15):this.Ff=ii(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,16))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,16):this.Ff=ii(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,17))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,17):this.Ff=ii(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,26))},set:function(t){Boolean(t)===!0?this.Ff=ni(this.Ff,26):this.Ff=ii(this.Ff,26)}});var r,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(a){return a};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var n,i=[];for(n in i.push("<<"),e)i.push("/"+n+" ("+Rh(t(e[n]))+")");return i.push(">>"),i.join(` `)}},set:function(t){tn(t)==="object"&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){typeof t=="string"&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}})};go(Xi,Ns);var V0=function(){Xi.call(this),this.pushButton=!0};go(V0,Xi);var pp=function(){Xi.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e!==void 0?e:[]}})};go(pp,Xi);var Y_=function(){var r,e;Ns.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(i){e=i}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),n)o.push("/"+a+" ("+Rh(i(n[a]))+")");return o.push(">>"),o.join(` -`)},set:function(i){tn(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){t="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ve.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};go(Y_,Ns),pp.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=r.createAppearanceStream(t.optionName),t.caption=r.getCA()}},pp.prototype.createOption=function(r){var e=new Y_;return e.Parent=this,e.optionName=r,this.Kids.push(e),KAt.call(this.scope,e),e};var j0=function(){Xi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ve.CheckBox.createAppearanceStream()};go(j0,Xi);var Zc=function(){Ns.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,13))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,13):this.Ff=ii(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,21))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,21):this.Ff=ii(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,23))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,23):this.Ff=ii(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,24))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,24):this.Ff=ii(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,25))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,25):this.Ff=ii(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,26))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,26):this.Ff=ii(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){Number.isInteger(e)&&(r=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};go(Zc,Ns);var K0=function(){Zc.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,14))},set:function(r){Boolean(r)===!0?this.Ff=ni(this.Ff,14):this.Ff=ii(this.Ff,14)}}),this.password=!0};go(K0,Zc);var ve={CheckBox:{createAppearanceStream:function(){return{N:{On:ve.CheckBox.YesNormal},D:{On:ve.CheckBox.YesPushDown,Off:ve.CheckBox.OffPushDown}}},YesPushDown:function(r){var e=Vs(r);e.scope=r.scope;var t=[],n=r.scope.internal.getFont(r.fontName,r.fontStyle).id,i=r.scope.__private__.encodeColorString(r.color),a=ZS(r,r.caption);return t.push("0.749023 g"),t.push("0 0 "+ze(ve.internal.getWidth(r))+" "+ze(ve.internal.getHeight(r))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+ze(a.fontSize)+" Tf "+i),t.push("BT"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(` +`)},set:function(i){tn(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){t="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ve.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};go(Y_,Ns),pp.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=r.createAppearanceStream(t.optionName),t.caption=r.getCA()}},pp.prototype.createOption=function(r){var e=new Y_;return e.Parent=this,e.optionName=r,this.Kids.push(e),zAt.call(this.scope,e),e};var j0=function(){Xi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ve.CheckBox.createAppearanceStream()};go(j0,Xi);var Zc=function(){Ns.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,13))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,13):this.Ff=ii(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,21))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,21):this.Ff=ii(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,23))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,23):this.Ff=ii(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,24))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,24):this.Ff=ii(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,25))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,25):this.Ff=ii(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,26))},set:function(e){Boolean(e)===!0?this.Ff=ni(this.Ff,26):this.Ff=ii(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){Number.isInteger(e)&&(r=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};go(Zc,Ns);var K0=function(){Zc.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ri(this.Ff,14))},set:function(r){Boolean(r)===!0?this.Ff=ni(this.Ff,14):this.Ff=ii(this.Ff,14)}}),this.password=!0};go(K0,Zc);var ve={CheckBox:{createAppearanceStream:function(){return{N:{On:ve.CheckBox.YesNormal},D:{On:ve.CheckBox.YesPushDown,Off:ve.CheckBox.OffPushDown}}},YesPushDown:function(r){var e=Vs(r);e.scope=r.scope;var t=[],n=r.scope.internal.getFont(r.fontName,r.fontStyle).id,i=r.scope.__private__.encodeColorString(r.color),a=ZS(r,r.caption);return t.push("0.749023 g"),t.push("0 0 "+ze(ve.internal.getWidth(r))+" "+ze(ve.internal.getHeight(r))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+ze(a.fontSize)+" Tf "+i),t.push("BT"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(` `),e},YesNormal:function(r){var e=Vs(r);e.scope=r.scope;var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color),i=[],a=ve.internal.getHeight(r),o=ve.internal.getWidth(r),s=ZS(r,r.caption);return i.push("1 g"),i.push("0 0 "+ze(o)+" "+ze(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+ze(o-1)+" "+ze(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+t+" "+ze(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join(` `),e},OffPushDown:function(r){var e=Vs(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ze(ve.internal.getWidth(r))+" "+ze(ve.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(` `),e}},RadioButton:{Circle:{createAppearanceStream:function(r){var e={D:{Off:ve.RadioButton.Circle.OffPushDown},N:{}};return e.N[r]=ve.RadioButton.Circle.YesNormal,e.D[r]=ve.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(r){var e=Vs(r);e.scope=r.scope;var t=[],n=ve.internal.getWidth(r)<=ve.internal.getHeight(r)?ve.internal.getWidth(r)/4:ve.internal.getHeight(r)/4;n=Number((.9*n).toFixed(5));var i=ve.internal.Bezier_C,a=Number((n*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Zl(ve.internal.getWidth(r)/2)+" "+Zl(ve.internal.getHeight(r)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),t.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),t.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),t.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(` @@ -820,13 +820,13 @@ T* `):w.join(` Tj `),e}},Cross:{createAppearanceStream:function(r){var e={D:{Off:ve.RadioButton.Cross.OffPushDown},N:{}};return e.N[r]=ve.RadioButton.Cross.YesNormal,e.D[r]=ve.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(r){var e=Vs(r);e.scope=r.scope;var t=[],n=ve.internal.calculateCross(r);return t.push("q"),t.push("1 1 "+ze(ve.internal.getWidth(r)-2)+" "+ze(ve.internal.getHeight(r)-2)+" re"),t.push("W"),t.push("n"),t.push(ze(n.x1.x)+" "+ze(n.x1.y)+" m"),t.push(ze(n.x2.x)+" "+ze(n.x2.y)+" l"),t.push(ze(n.x4.x)+" "+ze(n.x4.y)+" m"),t.push(ze(n.x3.x)+" "+ze(n.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(` `),e},YesPushDown:function(r){var e=Vs(r);e.scope=r.scope;var t=ve.internal.calculateCross(r),n=[];return n.push("0.749023 g"),n.push("0 0 "+ze(ve.internal.getWidth(r))+" "+ze(ve.internal.getHeight(r))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+ze(ve.internal.getWidth(r)-2)+" "+ze(ve.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push(ze(t.x1.x)+" "+ze(t.x1.y)+" m"),n.push(ze(t.x2.x)+" "+ze(t.x2.y)+" l"),n.push(ze(t.x4.x)+" "+ze(t.x4.y)+" m"),n.push(ze(t.x3.x)+" "+ze(t.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(` `),e},OffPushDown:function(r){var e=Vs(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ze(ve.internal.getWidth(r))+" "+ze(ve.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(` -`),e}}},createDefaultAppearanceStream:function(r){var e=r.scope.internal.getFont(r.fontName,r.fontStyle).id,t=r.scope.__private__.encodeColorString(r.color);return"/"+e+" "+r.fontSize+" Tf "+t}};ve.internal={Bezier_C:.551915024494,calculateCross:function(r){var e=ve.internal.getWidth(r),t=ve.internal.getHeight(r),n=Math.min(e,t);return{x1:{x:(e-n)/2,y:(t-n)/2+n},x2:{x:(e-n)/2+n,y:(t-n)/2},x3:{x:(e-n)/2,y:(t-n)/2},x4:{x:(e-n)/2+n,y:(t-n)/2+n}}}},ve.internal.getWidth=function(r){var e=0;return tn(r)==="object"&&(e=yN(r.Rect[2])),e},ve.internal.getHeight=function(r){var e=0;return tn(r)==="object"&&(e=yN(r.Rect[3])),e};var KAt=Hn.addField=function(r){if(jAt(this,r),!(r instanceof Ns))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=r).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};Hn.AcroFormChoiceField=cp,Hn.AcroFormListBox=hp,Hn.AcroFormComboBox=fp,Hn.AcroFormEditBox=$0,Hn.AcroFormButton=Xi,Hn.AcroFormPushButton=V0,Hn.AcroFormRadioButton=pp,Hn.AcroFormCheckBox=j0,Hn.AcroFormTextField=Zc,Hn.AcroFormPasswordField=K0,Hn.AcroFormAppearance=ve,Hn.AcroForm={ChoiceField:cp,ListBox:hp,ComboBox:fp,EditBox:$0,Button:Xi,PushButton:V0,RadioButton:pp,CheckBox:j0,TextField:Zc,PasswordField:K0,Appearance:ve},Ue.AcroForm={ChoiceField:cp,ListBox:hp,ComboBox:fp,EditBox:$0,Button:Xi,PushButton:V0,RadioButton:pp,CheckBox:j0,TextField:Zc,PasswordField:K0,Appearance:ve};Ue.AcroForm;function B8(r){return r.reduce(function(e,t,n){return e[t]=n,e},{})}(function(r){r.__addimage__={};var e="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=r.__addimage__.getImageFileTypeByImageData=function(x,S){var N,P,X,z,tt,J=e;if((S=S||e)==="RGBA"||x.data!==void 0&&x.data instanceof Uint8ClampedArray&&"height"in x&&"width"in x)return"RGBA";if(O(x))for(tt in t)for(X=t[tt],N=0;N>"}),"transparency"in S&&Array.isArray(S.transparency)){for(var tt="",J=0,nt=S.transparency.length;J>",v.content=a;var E=v.objId+" 0 R";a="<>";else if(n.options.pageNumber)switch(a="<=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=1};var l=r.__arabicParser__.arabicLetterHasFinalForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=3};var u=r.__arabicParser__.arabicLetterHasMedialForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length==4},c=r.__arabicParser__.resolveLigatures=function(v){var m=0,g=t,_="",E=0;for(m=0;m>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(r){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(s){t=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,n){var i;if((t=t||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Ue.API),function(r){var e={left:0,top:0,bottom:0,right:0},t=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(v){A=v}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var c=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var h=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var p=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return p},set:function(v){p=v}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(A){return n.call(this),this.internal.__cell__.headerFunction=typeof A=="function"?A:void 0,this},r.getTextDimensions=function(A,l){n.call(this);var u=(l=l||{}).fontSize||this.getFontSize(),c=l.font||this.getFont(),h=l.scaleFactor||this.internal.scaleFactor,f=0,p=0,v=0,m=this;if(!Array.isArray(A)&&typeof A!="string"){if(typeof A!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var g=l.maxWidth;g>0?typeof A=="string"?A=this.splitTextToSize(A,g):Object.prototype.toString.call(A)==="[object Array]"&&(A=A.reduce(function(E,B){return E.concat(m.splitTextToSize(B,g))},[])):A=Array.isArray(A)?A:[A];for(var _=0;_this.getPageHeight()?(this.cellAddPage(),A.y=c.top,f&&h&&(this.printHeaderRow(A.lineNumber,!0),A.y+=h[0].height)):A.y=l.y+l.height||A.y),A.text[0]!==void 0&&(this.rect(A.x,A.y,A.width,A.height,t===!0?"FD":void 0),A.align==="right"?this.text(A.text,A.x+A.width-u,A.y+u,{align:"right",baseline:"top"}):A.align==="center"?this.text(A.text,A.x+A.width/2,A.y+u,{align:"center",baseline:"top",maxWidth:A.width-u-u}):this.text(A.text,A.x+u,A.y+u,{align:"left",baseline:"top",maxWidth:A.width-u-u})),this.internal.__cell__.lastCell=A,this};r.table=function(A,l,u,c,h){if(n.call(this),!u)throw new Error("No data for PDF table.");var f,p,v,m,g=[],_=[],E=[],B={},L={},O=[],b=[],T=(h=h||{}).autoSize||!1,I=h.printHeaders!==!1,M=h.css&&h.css["font-size"]!==void 0?16*h.css["font-size"]:h.fontSize||12,x=h.margins||Object.assign({width:this.getPageWidth()},e),S=typeof h.padding=="number"?h.padding:3,N=h.headerBackgroundColor||"#c8c8c8",P=h.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=I,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=M,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=N,this.internal.__cell__.headerTextColor=P,this.setFontSize(M),c==null)_=g=Object.keys(u[0]),E=g.map(function(){return"left"});else if(Array.isArray(c)&&tn(c[0])==="object")for(g=c.map(function(it){return it.name}),_=c.map(function(it){return it.prompt||it.name||""}),E=c.map(function(it){return it.align||"left"}),f=0;f0&&this.setTableHeaderRow(h),this.setFont(void 0,"normal"),t=!1}}(Ue.API);var T8={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},S8=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],JS=B8(S8),x8=[100,200,300,400,500,600,700,800,900],zAt=B8(x8);function tx(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),t=function(a){return T8[a=a||"normal"]?a:"normal"}(r.style),n=function(a){if(!a)return 400;if(typeof a=="number")return a>=100&&a<=900&&a%100==0?a:400;if(/^\d00$/.test(a))return parseInt(a);switch(a){case"bold":return 700;case"normal":default:return 400}}(r.weight),i=function(a){return typeof JS[a=a||"normal"]=="number"?a:"normal"}(r.stretch);return{family:e,style:t,weight:n,stretch:i,src:r.src||[],ref:r.ref||{name:e,style:[i,t,n].join(" ")}}}function mN(r,e,t,n){var i;for(i=t;i>=0&&i=0&&i=2?rt[1]:G[0],G[2]=rt.length>=3?rt[2]:G[0],G[3]=rt.length>=4?rt[3]:G[1]),l.margin=G}});var wt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return wt},set:function(rt){wt=rt}});var W=0;Object.defineProperty(this,"lastBreak",{get:function(){return W},set:function(rt){W=rt}});var It=[];Object.defineProperty(this,"pageBreaks",{get:function(){return It},set:function(rt){It=rt}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(rt){rt instanceof u&&(l=rt)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(rt){l.path=rt}});var Ot=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ot},set:function(rt){Ot=rt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(rt){var G;G=h(rt),this.ctx.fillStyle=G.style,this.ctx.isFillTransparent=G.a===0,this.ctx.fillOpacity=G.a,this.pdf.setFillColor(G.r,G.g,G.b,{a:G.a}),this.pdf.setTextColor(G.r,G.g,G.b,{a:G.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(rt){var G=h(rt);this.ctx.strokeStyle=G.style,this.ctx.isStrokeTransparent=G.a===0,this.ctx.strokeOpacity=G.a,G.a===0?this.pdf.setDrawColor(255,255,255):(G.a,this.pdf.setDrawColor(G.r,G.g,G.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(rt){["butt","round","square"].indexOf(rt)!==-1&&(this.ctx.lineCap=rt,this.pdf.setLineCap(rt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(rt){isNaN(rt)||(this.ctx.lineWidth=rt,this.pdf.setLineWidth(rt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(rt){["bevel","round","miter"].indexOf(rt)!==-1&&(this.ctx.lineJoin=rt,this.pdf.setLineJoin(rt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(rt){isNaN(rt)||(this.ctx.miterLimit=rt,this.pdf.setMiterLimit(rt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(rt){this.ctx.textBaseline=rt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(rt){["right","end","center","left","start"].indexOf(rt)!==-1&&(this.ctx.textAlign=rt)}});var j=null;function Z(rt,G){if(j===null){var xt=function(bt){var dt=[];return Object.keys(bt).forEach(function(Et){bt[Et].forEach(function(yt){var St=null;switch(yt){case"bold":St={family:Et,weight:"bold"};break;case"italic":St={family:Et,style:"italic"};break;case"bolditalic":St={family:Et,weight:"bold",style:"italic"};break;case"":case"normal":St={family:Et}}St!==null&&(St.ref={name:Et,style:yt},dt.push(St))})}),dt}(rt.getFontList());j=function(bt){for(var dt={},Et=0;Et=700||xt==="bold")&&(Mt="bold"),xt==="italic"&&(Mt+="italic"),Mt.length===0&&(Mt="normal");for(var Vt="",Yt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ie=0;ie=2*Math.PI&&(q=0,at=2*Math.PI),this.path.push({type:"arc",x:R,y:$,radius:K,startAngle:q,endAngle:at,counterclockwise:vt})},c.prototype.arcTo=function(R,$,K,q,at){throw new Error("arcTo not implemented.")},c.prototype.rect=function(R,$,K,q){if(isNaN(R)||isNaN($)||isNaN(K)||isNaN(q))throw ln.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(R,$),this.lineTo(R+K,$),this.lineTo(R+K,$+q),this.lineTo(R,$+q),this.lineTo(R,$),this.lineTo(R+K,$),this.lineTo(R,$)},c.prototype.fillRect=function(R,$,K,q){if(isNaN(R)||isNaN($)||isNaN(K)||isNaN(q))throw ln.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var at={};this.lineCap!=="butt"&&(at.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(at.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(R,$,K,q),this.fill(),at.hasOwnProperty("lineCap")&&(this.lineCap=at.lineCap),at.hasOwnProperty("lineJoin")&&(this.lineJoin=at.lineJoin)}},c.prototype.strokeRect=function(R,$,K,q){if(isNaN(R)||isNaN($)||isNaN(K)||isNaN(q))throw ln.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(R,$,K,q),this.stroke())},c.prototype.clearRect=function(R,$,K,q){if(isNaN(R)||isNaN($)||isNaN(K)||isNaN(q))throw ln.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(R,$,K,q))},c.prototype.save=function(R){R=typeof R!="boolean"||R;for(var $=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};c.prototype.drawImage=function(R,$,K,q,at,vt,wt,W,It){var Ot=this.pdf.getImageProperties(R),j=1,Z=1,ut=1,rt=1;q!==void 0&&W!==void 0&&(ut=W/q,rt=It/at,j=Ot.width/q*W/q,Z=Ot.height/at*It/at),vt===void 0&&(vt=$,wt=K,$=0,K=0),q!==void 0&&W===void 0&&(W=q,It=at),q===void 0&&W===void 0&&(W=Ot.width,It=Ot.height);for(var G,xt=this.ctx.transform.decompose(),bt=J(xt.rotate.shx),dt=new A,Et=(dt=(dt=(dt=dt.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale)).applyToRectangle(new s(vt-$*ut,wt-K*rt,q*j,at*Z)),yt=m.call(this,Et),St=[],Ft=0;FtMt||Ytdt||yt0)){for(;It>=0;It--)if(at[It-1].close!==!0&&at[It-1].begin!==!0){at[It-1].deltas.push(K),at[It-1].abs.push(W);break}}break;case"bct":K=[W.x1-vt[wt-1].x,W.y1-vt[wt-1].y,W.x2-vt[wt-1].x,W.y2-vt[wt-1].y,W.x-vt[wt-1].x,W.y-vt[wt-1].y],at[at.length-1].deltas.push(K);break;case"qct":var Ot=vt[wt-1].x+2/3*(W.x1-vt[wt-1].x),j=vt[wt-1].y+2/3*(W.y1-vt[wt-1].y),Z=W.x+2/3*(W.x1-W.x),ut=W.y+2/3*(W.y1-W.y),rt=W.x,G=W.y;K=[Ot-vt[wt-1].x,j-vt[wt-1].y,Z-vt[wt-1].x,ut-vt[wt-1].y,rt-vt[wt-1].x,G-vt[wt-1].y],at[at.length-1].deltas.push(K);break;case"arc":at.push({deltas:[],abs:[],arc:!0}),Array.isArray(at[at.length-1].abs)&&at[at.length-1].abs.push(W)}}q=$?null:R==="stroke"?"stroke":"fill";for(var xt=!1,bt=0;bt=.01&&(Ot=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ot*R.scale),j=this.lineWidth,this.lineWidth=j*R.scale);var oe=this.autoPaging!=="text";if(oe||Xt.y+Xt.h<=Ft){if(oe||Xt.y>=yt&&Xt.x<=Vt){var Kt=oe?R.text:this.pdf.splitTextToSize(R.text,R.maxWidth||Vt-Xt.x)[0],Xe=_([JSON.parse(JSON.stringify(Z))],this.posX+this.margin[3],-ie+yt+this.ctx.prevPageLastElemOffset)[0],Re=oe&&(Et>bt||Et=.01&&(this.pdf.setFontSize(Ot),this.lineWidth=j)}else R.scale>=.01&&(Ot=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ot*R.scale),j=this.lineWidth,this.lineWidth=j*R.scale),this.pdf.text(R.text,vt.x+this.posX,vt.y+this.posY,{angle:R.angle,align:$,renderingMode:R.renderingMode,maxWidth:R.maxWidth}),R.scale>=.01&&(this.pdf.setFontSize(Ot),this.lineWidth=j)},N=function(R,$,K,q){K=K||0,q=q||0,this.pdf.internal.out(t(R+K)+" "+n($+q)+" l")},P=function(R,$,K){return this.pdf.lines(R,$,K,null,null)},X=function(R,$,K,q,at,vt,wt,W){this.pdf.internal.out([e(i(K+R)),e(a(q+$)),e(i(at+R)),e(a(vt+$)),e(i(wt+R)),e(a(W+$)),"c"].join(" "))},z=function(R,$,K,q){for(var at=2*Math.PI,vt=Math.PI/2;$>K;)$-=at;var wt=Math.abs(K-$);wt1e-5;){var j=Ot+It*Math.min(wt,vt);W.push(tt.call(this,R,Ot,j)),wt-=Math.abs(j-Ot),Ot=j}return W},tt=function(R,$,K){var q=(K-$)/2,at=R*Math.cos(q),vt=R*Math.sin(q),wt=at,W=-vt,It=wt*wt+W*W,Ot=It+wt*at+W*vt,j=4/3*(Math.sqrt(2*It*Ot)-Ot)/(wt*vt-W*at),Z=wt-j*W,ut=W+j*wt,rt=Z,G=-ut,xt=q+$,bt=Math.cos(xt),dt=Math.sin(xt);return{x1:R*Math.cos($),y1:R*Math.sin($),x2:Z*bt-ut*dt,y2:Z*dt+ut*bt,x3:rt*bt-G*dt,y3:rt*dt+G*bt,x4:R*Math.cos(K),y4:R*Math.sin(K)}},J=function(R){return 180*R/Math.PI},nt=function(R,$,K,q,at,vt){var wt=R+.5*(K-R),W=$+.5*(q-$),It=at+.5*(K-at),Ot=vt+.5*(q-vt),j=Math.min(R,at,wt,It),Z=Math.max(R,at,wt,It),ut=Math.min($,vt,W,Ot),rt=Math.max($,vt,W,Ot);return new s(j,ut,Z-j,rt-ut)},it=function(R,$,K,q,at,vt,wt,W){var It,Ot,j,Z,ut,rt,G,xt,bt,dt,Et,yt,St,Ft,Mt=K-R,Vt=q-$,Yt=at-K,ie=vt-q,ee=wt-at,Xt=W-vt;for(Ot=0;Ot<41;Ot++)bt=(G=(j=R+(It=Ot/40)*Mt)+It*((ut=K+It*Yt)-j))+It*(ut+It*(at+It*ee-ut)-G),dt=(xt=(Z=$+It*Vt)+It*((rt=q+It*ie)-Z))+It*(rt+It*(vt+It*Xt-rt)-xt),Ot==0?(Et=bt,yt=dt,St=bt,Ft=dt):(Et=Math.min(Et,bt),yt=Math.min(yt,dt),St=Math.max(St,bt),Ft=Math.max(Ft,dt));return new s(Math.round(Et),Math.round(yt),Math.round(St-Et),Math.round(Ft-yt))},_t=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var R,$,K=(R=this.ctx.lineDash,$=this.ctx.lineDashOffset,JSON.stringify({lineDash:R,lineDashOffset:$}));this.prevLineDash!==K&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=K)}}})(Ue.API),function(r){var e=function(a){var o,s,A,l,u,c,h,f,p,v;for(s=[],A=0,l=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;l>A;A+=4)(u=(a.charCodeAt(A)<<24)+(a.charCodeAt(A+1)<<16)+(a.charCodeAt(A+2)<<8)+a.charCodeAt(A+3))!==0?(c=(u=((u=((u=((u=(u-(v=u%85))/85)-(p=u%85))/85)-(f=u%85))/85)-(h=u%85))/85)%85,s.push(c+33,h+33,f+33,p+33,v+33)):s.push(122);return function(m,g){for(var _=g;_>0;_--)m.pop()}(s,o.length),String.fromCharCode.apply(String,s)+"~>"},t=function(a){var o,s,A,l,u,c=String,h="length",f=255,p="charCodeAt",v="slice",m="replace";for(a[v](-2),a=a[v](0,-2)[m](/\s/g,"")[m]("z","!!!!!"),A=[],l=0,u=(a+=o="uuuuu"[v](a[h]%5||5))[h];u>l;l+=5)s=52200625*(a[p](l)-33)+614125*(a[p](l+1)-33)+7225*(a[p](l+2)-33)+85*(a[p](l+3)-33)+(a[p](l+4)-33),A.push(f&s>>24,f&s>>16,f&s>>8,f&s);return function(g,_){for(var E=_;E>0;E--)g.pop()}(A,o[h]),c.fromCharCode.apply(c,A)},n=function(a){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),o.test(a)===!1)return"";for(var s="",A=0;A",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":A=i(A),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:A,reverseChain:l.reverse().join(" ")}}}(Ue.API),function(r){r.loadFile=function(e,t,n){return function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=function(A,l,u){var c=new XMLHttpRequest,h=0,f=function(p){var v=p.length,m=[],g=String.fromCharCode;for(h=0;hp&&(f=v,v=p,p=f);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",p>v&&(f=v,v=p,p=f)}return{width:v,height:p,unit:s,k:u,orientation:o}},r.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(tx):null;var A=new a(s);return s.worker?A:A.from(o).doCallback()}}(Ue.API),Ue.API.addJS=function(r){return BN=r,this.internal.events.subscribe("postPutResources",function(){Qm=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Qm+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),CN=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+BN+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Qm!==void 0&&CN!==void 0&&this.internal.out("/Names <>")}),this},function(r){var e;r.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),a=0;a> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),a=0;a>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),r.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(n,i,a){var o={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(o),o},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(n){n.id=t.internal.newObjectDeferred();for(var i=0;i0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},t.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var A=t.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+A.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var l=0;l>"}),"transparency"in S&&Array.isArray(S.transparency)){for(var tt="",J=0,nt=S.transparency.length;J>",v.content=a;var E=v.objId+" 0 R";a="<>";else if(n.options.pageNumber)switch(a="<=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=1};var l=r.__arabicParser__.arabicLetterHasFinalForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length>=3};var u=r.__arabicParser__.arabicLetterHasMedialForm=function(v){return o(v)&&a(v)&&e[v.charCodeAt(0)].length==4},c=r.__arabicParser__.resolveLigatures=function(v){var m=0,g=t,_="",E=0;for(m=0;m>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(r){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(s){t=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,n){var i;if((t=t||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Ue.API),function(r){var e={left:0,top:0,bottom:0,right:0},t=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(v){A=v}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var c=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var h=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(v){f=v}});var p=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return p},set:function(v){p=v}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},r.setHeaderFunction=function(A){return n.call(this),this.internal.__cell__.headerFunction=typeof A=="function"?A:void 0,this},r.getTextDimensions=function(A,l){n.call(this);var u=(l=l||{}).fontSize||this.getFontSize(),c=l.font||this.getFont(),h=l.scaleFactor||this.internal.scaleFactor,f=0,p=0,v=0,m=this;if(!Array.isArray(A)&&typeof A!="string"){if(typeof A!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var g=l.maxWidth;g>0?typeof A=="string"?A=this.splitTextToSize(A,g):Object.prototype.toString.call(A)==="[object Array]"&&(A=A.reduce(function(E,B){return E.concat(m.splitTextToSize(B,g))},[])):A=Array.isArray(A)?A:[A];for(var _=0;_this.getPageHeight()?(this.cellAddPage(),A.y=c.top,f&&h&&(this.printHeaderRow(A.lineNumber,!0),A.y+=h[0].height)):A.y=l.y+l.height||A.y),A.text[0]!==void 0&&(this.rect(A.x,A.y,A.width,A.height,t===!0?"FD":void 0),A.align==="right"?this.text(A.text,A.x+A.width-u,A.y+u,{align:"right",baseline:"top"}):A.align==="center"?this.text(A.text,A.x+A.width/2,A.y+u,{align:"center",baseline:"top",maxWidth:A.width-u-u}):this.text(A.text,A.x+u,A.y+u,{align:"left",baseline:"top",maxWidth:A.width-u-u})),this.internal.__cell__.lastCell=A,this};r.table=function(A,l,u,c,h){if(n.call(this),!u)throw new Error("No data for PDF table.");var f,p,v,m,g=[],_=[],E=[],B={},L={},O=[],b=[],T=(h=h||{}).autoSize||!1,I=h.printHeaders!==!1,M=h.css&&h.css["font-size"]!==void 0?16*h.css["font-size"]:h.fontSize||12,x=h.margins||Object.assign({width:this.getPageWidth()},e),S=typeof h.padding=="number"?h.padding:3,N=h.headerBackgroundColor||"#c8c8c8",P=h.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=I,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=M,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=N,this.internal.__cell__.headerTextColor=P,this.setFontSize(M),c==null)_=g=Object.keys(u[0]),E=g.map(function(){return"left"});else if(Array.isArray(c)&&tn(c[0])==="object")for(g=c.map(function(it){return it.name}),_=c.map(function(it){return it.prompt||it.name||""}),E=c.map(function(it){return it.align||"left"}),f=0;f0&&this.setTableHeaderRow(h),this.setFont(void 0,"normal"),t=!1}}(Ue.API);var S8={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},x8=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],JS=T8(x8),b8=[100,200,300,400,500,600,700,800,900],YAt=T8(b8);function tx(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),t=function(a){return S8[a=a||"normal"]?a:"normal"}(r.style),n=function(a){if(!a)return 400;if(typeof a=="number")return a>=100&&a<=900&&a%100==0?a:400;if(/^\d00$/.test(a))return parseInt(a);switch(a){case"bold":return 700;case"normal":default:return 400}}(r.weight),i=function(a){return typeof JS[a=a||"normal"]=="number"?a:"normal"}(r.stretch);return{family:e,style:t,weight:n,stretch:i,src:r.src||[],ref:r.ref||{name:e,style:[i,t,n].join(" ")}}}function mN(r,e,t,n){var i;for(i=t;i>=0&&i=0&&i=2?rt[1]:G[0],G[2]=rt.length>=3?rt[2]:G[0],G[3]=rt.length>=4?rt[3]:G[1]),l.margin=G}});var wt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return wt},set:function(rt){wt=rt}});var W=0;Object.defineProperty(this,"lastBreak",{get:function(){return W},set:function(rt){W=rt}});var It=[];Object.defineProperty(this,"pageBreaks",{get:function(){return It},set:function(rt){It=rt}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(rt){rt instanceof u&&(l=rt)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(rt){l.path=rt}});var Ot=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ot},set:function(rt){Ot=rt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(rt){var G;G=h(rt),this.ctx.fillStyle=G.style,this.ctx.isFillTransparent=G.a===0,this.ctx.fillOpacity=G.a,this.pdf.setFillColor(G.r,G.g,G.b,{a:G.a}),this.pdf.setTextColor(G.r,G.g,G.b,{a:G.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(rt){var G=h(rt);this.ctx.strokeStyle=G.style,this.ctx.isStrokeTransparent=G.a===0,this.ctx.strokeOpacity=G.a,G.a===0?this.pdf.setDrawColor(255,255,255):(G.a,this.pdf.setDrawColor(G.r,G.g,G.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(rt){["butt","round","square"].indexOf(rt)!==-1&&(this.ctx.lineCap=rt,this.pdf.setLineCap(rt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(rt){isNaN(rt)||(this.ctx.lineWidth=rt,this.pdf.setLineWidth(rt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(rt){["bevel","round","miter"].indexOf(rt)!==-1&&(this.ctx.lineJoin=rt,this.pdf.setLineJoin(rt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(rt){isNaN(rt)||(this.ctx.miterLimit=rt,this.pdf.setMiterLimit(rt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(rt){this.ctx.textBaseline=rt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(rt){["right","end","center","left","start"].indexOf(rt)!==-1&&(this.ctx.textAlign=rt)}});var j=null;function Z(rt,G){if(j===null){var xt=function(bt){var dt=[];return Object.keys(bt).forEach(function(Et){bt[Et].forEach(function(yt){var St=null;switch(yt){case"bold":St={family:Et,weight:"bold"};break;case"italic":St={family:Et,style:"italic"};break;case"bolditalic":St={family:Et,weight:"bold",style:"italic"};break;case"":case"normal":St={family:Et}}St!==null&&(St.ref={name:Et,style:yt},dt.push(St))})}),dt}(rt.getFontList());j=function(bt){for(var dt={},Et=0;Et=700||xt==="bold")&&(Mt="bold"),xt==="italic"&&(Mt+="italic"),Mt.length===0&&(Mt="normal");for(var Vt="",Yt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ie=0;ie=2*Math.PI&&(q=0,at=2*Math.PI),this.path.push({type:"arc",x:R,y:$,radius:K,startAngle:q,endAngle:at,counterclockwise:vt})},c.prototype.arcTo=function(R,$,K,q,at){throw new Error("arcTo not implemented.")},c.prototype.rect=function(R,$,K,q){if(isNaN(R)||isNaN($)||isNaN(K)||isNaN(q))throw ln.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(R,$),this.lineTo(R+K,$),this.lineTo(R+K,$+q),this.lineTo(R,$+q),this.lineTo(R,$),this.lineTo(R+K,$),this.lineTo(R,$)},c.prototype.fillRect=function(R,$,K,q){if(isNaN(R)||isNaN($)||isNaN(K)||isNaN(q))throw ln.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var at={};this.lineCap!=="butt"&&(at.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(at.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(R,$,K,q),this.fill(),at.hasOwnProperty("lineCap")&&(this.lineCap=at.lineCap),at.hasOwnProperty("lineJoin")&&(this.lineJoin=at.lineJoin)}},c.prototype.strokeRect=function(R,$,K,q){if(isNaN(R)||isNaN($)||isNaN(K)||isNaN(q))throw ln.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");p.call(this)||(this.beginPath(),this.rect(R,$,K,q),this.stroke())},c.prototype.clearRect=function(R,$,K,q){if(isNaN(R)||isNaN($)||isNaN(K)||isNaN(q))throw ln.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(R,$,K,q))},c.prototype.save=function(R){R=typeof R!="boolean"||R;for(var $=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};c.prototype.drawImage=function(R,$,K,q,at,vt,wt,W,It){var Ot=this.pdf.getImageProperties(R),j=1,Z=1,ut=1,rt=1;q!==void 0&&W!==void 0&&(ut=W/q,rt=It/at,j=Ot.width/q*W/q,Z=Ot.height/at*It/at),vt===void 0&&(vt=$,wt=K,$=0,K=0),q!==void 0&&W===void 0&&(W=q,It=at),q===void 0&&W===void 0&&(W=Ot.width,It=Ot.height);for(var G,xt=this.ctx.transform.decompose(),bt=J(xt.rotate.shx),dt=new A,Et=(dt=(dt=(dt=dt.multiply(xt.translate)).multiply(xt.skew)).multiply(xt.scale)).applyToRectangle(new s(vt-$*ut,wt-K*rt,q*j,at*Z)),yt=m.call(this,Et),St=[],Ft=0;FtMt||Ytdt||yt0)){for(;It>=0;It--)if(at[It-1].close!==!0&&at[It-1].begin!==!0){at[It-1].deltas.push(K),at[It-1].abs.push(W);break}}break;case"bct":K=[W.x1-vt[wt-1].x,W.y1-vt[wt-1].y,W.x2-vt[wt-1].x,W.y2-vt[wt-1].y,W.x-vt[wt-1].x,W.y-vt[wt-1].y],at[at.length-1].deltas.push(K);break;case"qct":var Ot=vt[wt-1].x+2/3*(W.x1-vt[wt-1].x),j=vt[wt-1].y+2/3*(W.y1-vt[wt-1].y),Z=W.x+2/3*(W.x1-W.x),ut=W.y+2/3*(W.y1-W.y),rt=W.x,G=W.y;K=[Ot-vt[wt-1].x,j-vt[wt-1].y,Z-vt[wt-1].x,ut-vt[wt-1].y,rt-vt[wt-1].x,G-vt[wt-1].y],at[at.length-1].deltas.push(K);break;case"arc":at.push({deltas:[],abs:[],arc:!0}),Array.isArray(at[at.length-1].abs)&&at[at.length-1].abs.push(W)}}q=$?null:R==="stroke"?"stroke":"fill";for(var xt=!1,bt=0;bt=.01&&(Ot=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ot*R.scale),j=this.lineWidth,this.lineWidth=j*R.scale);var oe=this.autoPaging!=="text";if(oe||Xt.y+Xt.h<=Ft){if(oe||Xt.y>=yt&&Xt.x<=Vt){var Kt=oe?R.text:this.pdf.splitTextToSize(R.text,R.maxWidth||Vt-Xt.x)[0],Xe=_([JSON.parse(JSON.stringify(Z))],this.posX+this.margin[3],-ie+yt+this.ctx.prevPageLastElemOffset)[0],Re=oe&&(Et>bt||Et=.01&&(this.pdf.setFontSize(Ot),this.lineWidth=j)}else R.scale>=.01&&(Ot=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ot*R.scale),j=this.lineWidth,this.lineWidth=j*R.scale),this.pdf.text(R.text,vt.x+this.posX,vt.y+this.posY,{angle:R.angle,align:$,renderingMode:R.renderingMode,maxWidth:R.maxWidth}),R.scale>=.01&&(this.pdf.setFontSize(Ot),this.lineWidth=j)},N=function(R,$,K,q){K=K||0,q=q||0,this.pdf.internal.out(t(R+K)+" "+n($+q)+" l")},P=function(R,$,K){return this.pdf.lines(R,$,K,null,null)},X=function(R,$,K,q,at,vt,wt,W){this.pdf.internal.out([e(i(K+R)),e(a(q+$)),e(i(at+R)),e(a(vt+$)),e(i(wt+R)),e(a(W+$)),"c"].join(" "))},z=function(R,$,K,q){for(var at=2*Math.PI,vt=Math.PI/2;$>K;)$-=at;var wt=Math.abs(K-$);wt1e-5;){var j=Ot+It*Math.min(wt,vt);W.push(tt.call(this,R,Ot,j)),wt-=Math.abs(j-Ot),Ot=j}return W},tt=function(R,$,K){var q=(K-$)/2,at=R*Math.cos(q),vt=R*Math.sin(q),wt=at,W=-vt,It=wt*wt+W*W,Ot=It+wt*at+W*vt,j=4/3*(Math.sqrt(2*It*Ot)-Ot)/(wt*vt-W*at),Z=wt-j*W,ut=W+j*wt,rt=Z,G=-ut,xt=q+$,bt=Math.cos(xt),dt=Math.sin(xt);return{x1:R*Math.cos($),y1:R*Math.sin($),x2:Z*bt-ut*dt,y2:Z*dt+ut*bt,x3:rt*bt-G*dt,y3:rt*dt+G*bt,x4:R*Math.cos(K),y4:R*Math.sin(K)}},J=function(R){return 180*R/Math.PI},nt=function(R,$,K,q,at,vt){var wt=R+.5*(K-R),W=$+.5*(q-$),It=at+.5*(K-at),Ot=vt+.5*(q-vt),j=Math.min(R,at,wt,It),Z=Math.max(R,at,wt,It),ut=Math.min($,vt,W,Ot),rt=Math.max($,vt,W,Ot);return new s(j,ut,Z-j,rt-ut)},it=function(R,$,K,q,at,vt,wt,W){var It,Ot,j,Z,ut,rt,G,xt,bt,dt,Et,yt,St,Ft,Mt=K-R,Vt=q-$,Yt=at-K,ie=vt-q,ee=wt-at,Xt=W-vt;for(Ot=0;Ot<41;Ot++)bt=(G=(j=R+(It=Ot/40)*Mt)+It*((ut=K+It*Yt)-j))+It*(ut+It*(at+It*ee-ut)-G),dt=(xt=(Z=$+It*Vt)+It*((rt=q+It*ie)-Z))+It*(rt+It*(vt+It*Xt-rt)-xt),Ot==0?(Et=bt,yt=dt,St=bt,Ft=dt):(Et=Math.min(Et,bt),yt=Math.min(yt,dt),St=Math.max(St,bt),Ft=Math.max(Ft,dt));return new s(Math.round(Et),Math.round(yt),Math.round(St-Et),Math.round(Ft-yt))},_t=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var R,$,K=(R=this.ctx.lineDash,$=this.ctx.lineDashOffset,JSON.stringify({lineDash:R,lineDashOffset:$}));this.prevLineDash!==K&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=K)}}})(Ue.API),function(r){var e=function(a){var o,s,A,l,u,c,h,f,p,v;for(s=[],A=0,l=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;l>A;A+=4)(u=(a.charCodeAt(A)<<24)+(a.charCodeAt(A+1)<<16)+(a.charCodeAt(A+2)<<8)+a.charCodeAt(A+3))!==0?(c=(u=((u=((u=((u=(u-(v=u%85))/85)-(p=u%85))/85)-(f=u%85))/85)-(h=u%85))/85)%85,s.push(c+33,h+33,f+33,p+33,v+33)):s.push(122);return function(m,g){for(var _=g;_>0;_--)m.pop()}(s,o.length),String.fromCharCode.apply(String,s)+"~>"},t=function(a){var o,s,A,l,u,c=String,h="length",f=255,p="charCodeAt",v="slice",m="replace";for(a[v](-2),a=a[v](0,-2)[m](/\s/g,"")[m]("z","!!!!!"),A=[],l=0,u=(a+=o="uuuuu"[v](a[h]%5||5))[h];u>l;l+=5)s=52200625*(a[p](l)-33)+614125*(a[p](l+1)-33)+7225*(a[p](l+2)-33)+85*(a[p](l+3)-33)+(a[p](l+4)-33),A.push(f&s>>24,f&s>>16,f&s>>8,f&s);return function(g,_){for(var E=_;E>0;E--)g.pop()}(A,o[h]),c.fromCharCode.apply(c,A)},n=function(a){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),o.test(a)===!1)return"";for(var s="",A=0;A",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":A=i(A),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:A,reverseChain:l.reverse().join(" ")}}}(Ue.API),function(r){r.loadFile=function(e,t,n){return function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=function(A,l,u){var c=new XMLHttpRequest,h=0,f=function(p){var v=p.length,m=[],g=String.fromCharCode;for(h=0;hp&&(f=v,v=p,p=f);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",p>v&&(f=v,v=p,p=f)}return{width:v,height:p,unit:s,k:u,orientation:o}},r.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(tx):null;var A=new a(s);return s.worker?A:A.from(o).doCallback()}}(Ue.API),Ue.API.addJS=function(r){return BN=r,this.internal.events.subscribe("postPutResources",function(){Qm=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Qm+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),CN=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+BN+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Qm!==void 0&&CN!==void 0&&this.internal.out("/Names <>")}),this},function(r){var e;r.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),a=0;a> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),a=0;a>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),r.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(n,i,a){var o={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(o),o},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(n){n.id=t.internal.newObjectDeferred();for(var i=0;i0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},t.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var A=t.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+A.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var l=0;l> \r endobj\r -`},t.outline.count_r=function(n,i){for(var a=0;ao;0<=o?++g:--g)a.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(A=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>A)throw new Error("More transparent colors than palette size");if((v=A-this.transparency.indexed.length)>0)for(_=0;0<=v?_v;0<=v?++_:--_)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":h=(m=this.read(o)).indexOf(0),f=String.fromCharCode.apply(String,m.slice(0,h)),this.text[f]=String.fromCharCode.apply(String,m.slice(h+1));break;case"IEND":return c&&this.animation.frames.push(c),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(E=this.colorType)===4||E===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(a){var o,s;for(s=[],o=0;0<=a?oa;0<=a?++o:--o)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(a){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),A=0,l=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function u(c,h,f,p){var v,m,g,_,E,B,L,O,b,T,I,M,x,S,N,P,X,z,tt,J,nt,it=Math.ceil((l.width-c)/f),_t=Math.ceil((l.height-h)/p),R=l.width==it&&l.height==_t;for(S=o*it,M=R?s:new Uint8Array(S*_t),B=a.length,x=0,m=0;x<_t&&A1&&s/lo;0<=o?++g:--g)a.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(A=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>A)throw new Error("More transparent colors than palette size");if((v=A-this.transparency.indexed.length)>0)for(_=0;0<=v?_v;0<=v?++_:--_)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":h=(m=this.read(o)).indexOf(0),f=String.fromCharCode.apply(String,m.slice(0,h)),this.text[f]=String.fromCharCode.apply(String,m.slice(h+1));break;case"IEND":return c&&this.animation.frames.push(c),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(E=this.colorType)===4||E===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(a){var o,s;for(s=[],o=0;0<=a?oa;0<=a?++o:--o)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(a){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),A=0,l=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function u(c,h,f,p){var v,m,g,_,E,B,L,O,b,T,I,M,x,S,N,P,X,z,tt,J,nt,it=Math.ceil((l.width-c)/f),_t=Math.ceil((l.height-h)/p),R=l.width==it&&l.height==_t;for(S=o*it,M=R?s:new Uint8Array(S*_t),B=a.length,x=0,m=0;x<_t&&A1&&s/l>7,o=1<<(7&i)+1;r[e++],r[e++];var s=null,A=null;a&&(s=e,A=o,e+=3*o);var l=!0,u=[],c=0,h=null,f=0,p=null;for(this.width=t,this.height=n;l&&e=0))throw Error("Invalid block size");if(x===0)break;e+=x}break;case 249:if(r[e++]!==4||r[e+4]!==0)throw new Error("Invalid graphics extension block.");var v=r[e++];c=r[e++]|r[e++]<<8,h=r[e++],!(1&v)&&(h=null),f=v>>2&7,e++;break;case 254:for(;;){if(!((x=r[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}break;default:throw new Error("Unknown graphic control label: 0x"+r[e-1].toString(16))}break;case 44:var m=r[e++]|r[e++]<<8,g=r[e++]|r[e++]<<8,_=r[e++]|r[e++]<<8,E=r[e++]|r[e++]<<8,B=r[e++],L=B>>6&1,O=1<<(7&B)+1,b=s,T=A,I=!1;B>>7&&(I=!0,b=e,T=O,e+=3*O);var M=e;for(e++;;){var x;if(!((x=r[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}u.push({x:m,y:g,width:_,height:E,has_local_palette:I,palette_offset:b,palette_size:T,data_offset:M,data_length:e-M,transparent_index:h,interlaced:!!L,delay:c,disposal:f});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+r[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(S){if(S<0||S>=u.length)throw new Error("Frame index out of range.");return u[S]},this.decodeAndBlitFrameBGRA=function(S,N){var P=this.frameInfo(S),X=P.width*P.height,z=new Uint8Array(X);bN(r,P.data_offset,z,X);var tt=P.palette_offset,J=P.transparent_index;J===null&&(J=256);var nt=P.width,it=t-nt,_t=nt,R=4*(P.y*t+P.x),$=4*((P.y+P.height)*t+P.x),K=R,q=4*it;P.interlaced===!0&&(q+=4*t*7);for(var at=8,vt=0,wt=z.length;vt=$&&(q=4*it+4*t*(at-1),K=R+(nt+it)*(at<<1),at>>=1)),W===J)K+=4;else{var It=r[tt+3*W],Ot=r[tt+3*W+1],j=r[tt+3*W+2];N[K++]=j,N[K++]=Ot,N[K++]=It,N[K++]=255}--_t}},this.decodeAndBlitFrameRGBA=function(S,N){var P=this.frameInfo(S),X=P.width*P.height,z=new Uint8Array(X);bN(r,P.data_offset,z,X);var tt=P.palette_offset,J=P.transparent_index;J===null&&(J=256);var nt=P.width,it=t-nt,_t=nt,R=4*(P.y*t+P.x),$=4*((P.y+P.height)*t+P.x),K=R,q=4*it;P.interlaced===!0&&(q+=4*t*7);for(var at=8,vt=0,wt=z.length;vt=$&&(q=4*it+4*t*(at-1),K=R+(nt+it)*(at<<1),at>>=1)),W===J)K+=4;else{var It=r[tt+3*W],Ot=r[tt+3*W+1],j=r[tt+3*W+2];N[K++]=It,N[K++]=Ot,N[K++]=j,N[K++]=255}--_t}}}function bN(r,e,t,n){for(var i=r[e++],a=1<>=A,u-=A,m!==a){if(m===o)break;for(var g=ma;)E=p[E]>>8,++_;var B=E;if(h+_+(g!==m?1:0)>n)return void ln.log("Warning, gif stream longer than expected.");t[h++]=B;var L=h+=_;for(g!==m&&(t[h++]=B),E=g;_--;)E=p[E],t[--L]=255&E,E>>=8;v!==null&&s<4096&&(p[s++]=v<<8|B,s>=l+1&&A<12&&(++A,l=l<<1|1)),v=m}else s=o+1,l=(1<<(A=i+1))-1,v=null}return h!==n&&ln.log("Warning, gif stream shorter than expected."),t}/** + */function tlt(r){var e=0;if(r[e++]!==71||r[e++]!==73||r[e++]!==70||r[e++]!==56||(r[e++]+1&253)!=56||r[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=r[e++]|r[e++]<<8,n=r[e++]|r[e++]<<8,i=r[e++],a=i>>7,o=1<<(7&i)+1;r[e++],r[e++];var s=null,A=null;a&&(s=e,A=o,e+=3*o);var l=!0,u=[],c=0,h=null,f=0,p=null;for(this.width=t,this.height=n;l&&e=0))throw Error("Invalid block size");if(x===0)break;e+=x}break;case 249:if(r[e++]!==4||r[e+4]!==0)throw new Error("Invalid graphics extension block.");var v=r[e++];c=r[e++]|r[e++]<<8,h=r[e++],!(1&v)&&(h=null),f=v>>2&7,e++;break;case 254:for(;;){if(!((x=r[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}break;default:throw new Error("Unknown graphic control label: 0x"+r[e-1].toString(16))}break;case 44:var m=r[e++]|r[e++]<<8,g=r[e++]|r[e++]<<8,_=r[e++]|r[e++]<<8,E=r[e++]|r[e++]<<8,B=r[e++],L=B>>6&1,O=1<<(7&B)+1,b=s,T=A,I=!1;B>>7&&(I=!0,b=e,T=O,e+=3*O);var M=e;for(e++;;){var x;if(!((x=r[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}u.push({x:m,y:g,width:_,height:E,has_local_palette:I,palette_offset:b,palette_size:T,data_offset:M,data_length:e-M,transparent_index:h,interlaced:!!L,delay:c,disposal:f});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+r[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(S){if(S<0||S>=u.length)throw new Error("Frame index out of range.");return u[S]},this.decodeAndBlitFrameBGRA=function(S,N){var P=this.frameInfo(S),X=P.width*P.height,z=new Uint8Array(X);bN(r,P.data_offset,z,X);var tt=P.palette_offset,J=P.transparent_index;J===null&&(J=256);var nt=P.width,it=t-nt,_t=nt,R=4*(P.y*t+P.x),$=4*((P.y+P.height)*t+P.x),K=R,q=4*it;P.interlaced===!0&&(q+=4*t*7);for(var at=8,vt=0,wt=z.length;vt=$&&(q=4*it+4*t*(at-1),K=R+(nt+it)*(at<<1),at>>=1)),W===J)K+=4;else{var It=r[tt+3*W],Ot=r[tt+3*W+1],j=r[tt+3*W+2];N[K++]=j,N[K++]=Ot,N[K++]=It,N[K++]=255}--_t}},this.decodeAndBlitFrameRGBA=function(S,N){var P=this.frameInfo(S),X=P.width*P.height,z=new Uint8Array(X);bN(r,P.data_offset,z,X);var tt=P.palette_offset,J=P.transparent_index;J===null&&(J=256);var nt=P.width,it=t-nt,_t=nt,R=4*(P.y*t+P.x),$=4*((P.y+P.height)*t+P.x),K=R,q=4*it;P.interlaced===!0&&(q+=4*t*7);for(var at=8,vt=0,wt=z.length;vt=$&&(q=4*it+4*t*(at-1),K=R+(nt+it)*(at<<1),at>>=1)),W===J)K+=4;else{var It=r[tt+3*W],Ot=r[tt+3*W+1],j=r[tt+3*W+2];N[K++]=It,N[K++]=Ot,N[K++]=j,N[K++]=255}--_t}}}function bN(r,e,t,n){for(var i=r[e++],a=1<>=A,u-=A,m!==a){if(m===o)break;for(var g=ma;)E=p[E]>>8,++_;var B=E;if(h+_+(g!==m?1:0)>n)return void ln.log("Warning, gif stream longer than expected.");t[h++]=B;var L=h+=_;for(g!==m&&(t[h++]=B),E=g;_--;)E=p[E],t[--L]=255&E,E>>=8;v!==null&&s<4096&&(p[s++]=v<<8|B,s>=l+1&&A<12&&(++A,l=l<<1|1)),v=m}else s=o+1,l=(1<<(A=i+1))-1,v=null}return h!==n&&ln.log("Warning, gif stream shorter than expected."),t}/** * @license Copyright (c) 2008, Adobe Systems Incorporated All rights reserved. @@ -914,9 +914,9 @@ endobj\r * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license - */function vs(r,e){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function IN(r){function e(T){if(!T)throw Error("assert :P")}function t(T,I,M){for(var x=0;4>x;x++)if(T[I+x]!=M.charCodeAt(x))return!0;return!1}function n(T,I,M,x,S){for(var N=0;NN+1?[]:new I),!(P.length>>0;d&C;)C>>>=1;return C?(d&C-1)+C:d}function M(d,y,C,F,U){e(!(F%C));do d[y+(F-=C)]=U;while(0=U),512>=U)var Q=a(512);else if((Q=a(U))==null)return 0;return function(H,k,V,Y,ft,Bt){var Tt,mt,Dt=k,Lt=1<Tt;++Tt){if(pt[Tt]>1<(Ne-=pt[Tt]))return 0;for(;0=Tt;++Tt,ft<<=1){if(Zt+=Ne<<=1,0>(Ne-=pt[Tt]))return 0;for(;0Ht&&!(0>=(Pt-=pt[Ht]));)++Ht,Pt<<=1;Lt+=te=1<<(Pt=Ht-V),H[k+(Ht=ue&Ut)].g=Pt+V,H[k+Ht].value=Dt-k-Ht}Y.g=Tt-V,Y.value=Bt[mt++],M(H,Dt+(ue>>V),ft,te,Y),ue=I(ue,Tt)}}return Zt!=2*gt[15]-1?0:Lt}(d,y,C,F,U,Q)}function S(){this.value=this.g=0}function N(){this.value=this.g=0}function P(){this.G=o(5,S),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Xa,N)}function X(d,y,C,F){e(d!=null),e(y!=null),e(2147483648>F),d.Ca=254,d.I=0,d.b=-8,d.Ka=0,d.oa=y,d.pa=C,d.Jd=y,d.Yc=C+F,d.Zc=4<=F?C+F-4+1:C,vt(d)}function z(d,y){for(var C=0;0F),d.Sb=F,d.Ra=0,d.u=0,d.h=0,4>>=8,d.Ra+=d.oa[d.pa+d.bb]<>>0,++d.bb,d.u-=8;K(d)&&(d.h=1,d.u=0)}function it(d,y){if(e(0<=y),!d.h&&y<=Jh){var C=$(d)&Zh[y];return d.u+=y,nt(d),C}return d.h=1,d.u=0}function _t(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function $(d){return d.Ra>>>(d.u&tf-1)>>>0}function K(d){return e(d.bb<=d.Sb),d.h||d.bb==d.Sb&&d.u>tf}function q(d,y){d.u=y,d.h=K(d)}function at(d){d.u>=bd&&(e(d.u>=bd),nt(d))}function vt(d){e(d!=null&&d.oa!=null),d.pa>>0,d.b+=8):(e(d!=null&&d.oa!=null),d.pad.b&&vt(d);var F=d.b,U=C*y>>>8,Q=(d.I>>>F>U)+0;for(Q?(C-=U,d.I-=U+1<>>0):C=U+1,F=C,U=0;256<=F;)U+=8,F>>=8;return F=7^U+Wa[F],d.b-=F,d.Ca=(C<>24&255,d[y+1]=C>>16&255,d[y+2]=C>>8&255,d[y+3]=C>>0&255}function Ot(d,y){return d[y+0]<<0|d[y+1]<<8}function j(d,y){return Ot(d,y)|d[y+2]<<16}function Z(d,y){return Ot(d,y)|Ot(d,y+2)<<16}function ut(d,y){var C=1<=U||0>=Q?0:(C[0]=U,F[0]=Q,1)}function bt(d,y){return d+(1<>>y}function dt(d,y){return((4278255360&d)+(4278255360&y)>>>0&4278255360)+((16711935&d)+(16711935&y)>>>0&16711935)>>>0}function Et(d,y){T[y]=function(C,F,U,Q,H,k,V){var Y;for(Y=0;Y>>1)+(d&y)>>>0}function Ft(d){return 0<=d&&256>d?d:0>d?0:255>1))}function Vt(d,y,C){return Math.abs(y-C)-Math.abs(d-C)}function Yt(d,y,C,F,U,Q,H){for(F=Q[H-1],C=0;C>8&255,V=16711935&(V=(V=16711935&H)+((k<<16)+k));F[U+Q]=(4278255360&H)+V>>>0}}function ee(d,y){y.jd=d>>0&255,y.hd=d>>8&255,y.ud=d>>16&255}function Xt(d,y,C,F,U,Q){var H;for(H=0;H>>8,Y=k,ft=255&(ft=(ft=k>>>16)+((d.jd<<24>>24)*(V<<24>>24)>>>5));Y=255&(Y=(Y=Y+((d.hd<<24>>24)*(V<<24>>24)>>>5))+((d.ud<<24>>24)*(ft<<24>>24)>>>5)),U[Q+H]=(4278255360&k)+(ft<<16)+Y}}function oe(d,y,C,F,U){T[y]=function(Q,H,k,V,Y,ft,Bt,Tt,mt){for(V=Bt;V>Q.b,mt=Q.Ea,Dt=Q.K[0],Lt=Q.w;if(8>Tt)for(Q=(1<>=Tt}else T["VP8LMapColor"+C](V,Y,Dt,Lt,ft,Bt,H,k,mt)}}function Kt(d,y,C,F,U){for(C=y+C;y>16&255,F[U++]=Q>>8&255,F[U++]=Q>>0&255}}function Xe(d,y,C,F,U){for(C=y+C;y>16&255,F[U++]=Q>>8&255,F[U++]=Q>>0&255,F[U++]=Q>>24&255}}function Re(d,y,C,F,U){for(C=y+C;y>16&240|H>>12&15,H=H>>0&240|H>>28&15;F[U++]=Q,F[U++]=H}}function pr(d,y,C,F,U){for(C=y+C;y>16&248|H>>13&7,H=H>>5&224|H>>3&31;F[U++]=Q,F[U++]=H}}function Ie(d,y,C,F,U){for(C=y+C;y>0&255,F[U++]=Q>>8&255,F[U++]=Q>>16&255}}function xe(d,y,C,F,U,Q){if(Q==0)for(C=y+C;y>24|Q[1]>>8&65280|Q[2]<<8&16711680|Q[3]<<24)>>>0),U+=32;else n(F,U,d,y,C)}function on(d,y){T[y][0]=T[d+"0"],T[y][1]=T[d+"1"],T[y][2]=T[d+"2"],T[y][3]=T[d+"3"],T[y][4]=T[d+"4"],T[y][5]=T[d+"5"],T[y][6]=T[d+"6"],T[y][7]=T[d+"7"],T[y][8]=T[d+"8"],T[y][9]=T[d+"9"],T[y][10]=T[d+"10"],T[y][11]=T[d+"11"],T[y][12]=T[d+"12"],T[y][13]=T[d+"13"],T[y][14]=T[d+"0"],T[y][15]=T[d+"0"]}function sr(d){return d==UE||d==DE||d==Xy||d==QE}function Ti(){this.eb=[],this.size=this.A=this.fb=0}function Br(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ci(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ti,this.f.kb=new Br,this.sd=null}function $r(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Vr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Me(d){return alert("todo:WebPSamplerProcessPlane"),d.T}function wr(d,y){var C=d.T,F=y.ba.f.RGBA,U=F.eb,Q=F.fb+d.ka*F.A,H=ko[y.ba.S],k=d.y,V=d.O,Y=d.f,ft=d.N,Bt=d.ea,Tt=d.W,mt=y.cc,Dt=y.dc,Lt=y.Mc,pt=y.Nc,gt=d.ka,Pt=d.ka+d.T,Ht=d.U,Ut=Ht+1>>1;for(gt==0?H(k,V,null,null,Y,ft,Bt,Tt,Y,ft,Bt,Tt,U,Q,null,null,Ht):(H(y.ec,y.fc,k,V,mt,Dt,Lt,pt,Y,ft,Bt,Tt,U,Q-F.A,U,Q,Ht),++C);gt+2C,U=C==Ky||C==zy||C==Yy||C==PE||C==12||sr(C);if(y.memory=null,y.Ib=null,y.Jb=null,y.Nd=null,!Sd(y.Oa,d,U?11:12))return 0;if(U&&sr(C)&&jt(),d.da)alert("todo:use_scaling");else{if(F){if(y.Ib=Me,d.Kb){if(C=d.U+1>>1,y.memory=a(d.U+2*C),y.memory==null)return 0;y.ec=y.memory,y.fc=0,y.cc=y.ec,y.dc=y.fc+d.U,y.Mc=y.cc,y.Nc=y.dc+C,y.Ib=wr,jt()}}else alert("todo:EmitYUV");U&&(y.Jb=Yn,F&&Ct())}if(F&&!CO){for(d=0;256>d;++d)u9[d]=89858*(d-128)+qy>>Wy,f9[d]=-22014*(d-128)+qy,h9[d]=-45773*(d-128),c9[d]=113618*(d-128)+qy>>Wy;for(d=Md;d>Wy,p9[d-Md]=_o(y,255),d9[d-Md]=_o(y+8>>4,15);CO=1}return 1}function Si(d){var y=d.ma,C=d.U,F=d.T;return e(!(1&d.ka)),0>=C||0>=F?0:(C=y.Ib(d,y),y.Jb!=null&&y.Jb(d,y,C),y.Dc+=C,1)}function xi(d){d.ma.memory=null}function be(d,y,C,F){return it(d,8)!=47?0:(y[0]=it(d,14)+1,C[0]=it(d,14)+1,F[0]=it(d,1),it(d,3)!=0?0:!d.h)}function hi(d,y){if(4>d)return d+1;var C=d-2>>1;return(2+(1&d)<>4)*d+(8-(15&C)))?C:1;var C}function bi(d,y,C){var F=$(C),U=d[y+=255&F].g-8;return 0>>0,e(8>=C.g),d.g}function qr(d,y,C){var F=d.xc;return e((y=F==0?0:d.vc[d.md*(C>>F)+(y>>F)])>te.b)*Zt;LtHt&&(gr=Ht),(0,Ll[Nr[Zr++]>>8&15])(Tt,mt+ +Sr,gt,Pt+Sr-Ht,gr-Sr,gt,Pt+Sr),Sr=gr}mt+=Ht,Pt+=Ht,++Lt&ue||(te+=Zt)}Bt!=Y.nc&&n(V,k-Dt,V,k+(Bt-ft-1)*Dt,Dt);break;case 1:for(Dt=Tt,pt=mt,Ht=(Tt=Y.Ea)-(Pt=Tt&~(gt=(mt=1<>Y.b)*Lt;ft=U),0Q.o&&(F=Q.o),C=F?C=0:(U[0]+=4*Q.v,Q.ka=C-Q.j,Q.U=Q.va-Q.v,Q.T=F-C,C=1),C){if(k=k[0],11>(C=d.ca).S){var ft=C.f.RGBA,Bt=(F=C.S,U=Q.U,Q=Q.T,Y=ft.eb,ft.A),Tt=Q;for(ft=ft.fb+d.Ma*ft.A;0F){var U=d.l.width,Q=C.ca,H=C.tb+U*F,k=d.V,V=d.Ba+d.c*F,Y=d.gc;e(d.ab==1),e(Y[0].hc==3),RE(Y[0],F,y,k,V,Q,H),ht(C,F,y,Q,H,U)}d.C=d.Ma=y}function qt(d,y,C,F,U,Q,H){var k=d.$/F,V=d.$%F,Y=d.m,ft=d.s,Bt=C+d.$,Tt=Bt;U=C+F*U;var mt=C+F*Q,Dt=280+ft.ua,Lt=d.Pb?k:16777216,pt=0=Lt){var ue=Bt-C;e((Lt=d).Pb),Lt.wd=Lt.m,Lt.xd=ue,0Ne.g?(q(Ut,Ut.u+Ne.g),ue[Zt]=Ne.value,Ut=0):(q(Ut,Ut.u+Ne.g-256),e(256<=Ne.value),Ut=Ne.value),Ut==0&&(Ht=!0)}else Ut=bi(Pt.G[0],Pt.H[0],Y);if(Y.h)break;if(Ht||256>Ut){if(!Ht)if(Pt.nd)y[Bt]=(Pt.qb|Ut<<8)>>>0;else{if(at(Y),Ht=bi(Pt.G[1],Pt.H[1],Y),at(Y),ue=bi(Pt.G[2],Pt.H[2],Y),Zt=bi(Pt.G[3],Pt.H[3],Y),Y.h)break;y[Bt]=(Zt<<24|Ht<<16|Ut<<8|ue)>>>0}if(Ht=!1,++Bt,++V>=F&&(V=0,++k,H!=null&&k<=Q&&!(k%16)&&H(d,k),pt!=null))for(;Tt>>pt.Mb]=Ut}else if(280>Ut){if(Ut=hi(Ut-256,Y),ue=bi(Pt.G[4],Pt.H[4],Y),at(Y),ue=Dn(F,ue=hi(ue,Y)),Y.h)break;if(Bt-C=F;)V-=F,++k,H!=null&&k<=Q&&!(k%16)&&H(d,k);if(e(Bt<=U),V>&&(Pt=qr(ft,V,k)),pt!=null)for(;Tt>>pt.Mb]=Ut}else{if(!(Ut>>pt.Mb]=Ut;Ut=Bt,e(!(Ht>>>(ue=pt).Xa)),y[Ut]=ue.X[Ht],Ht=!0}Ht||e(Y.h==K(Y))}if(d.Pb&&Y.h&&BtQ?Q:k),d.a=0,d.$=Bt-C}return 1}return d.a=3,0}function er(d){e(d!=null),d.vc=null,d.yc=null,d.Ya=null;var y=d.Wa;y!=null&&(y.X=null),d.vb=null,e(d!=null)}function Or(){var d=new LE;return d==null?null:(d.a=0,d.xb=gO,on("Predictor","VP8LPredictors"),on("Predictor","VP8LPredictors_C"),on("PredictorAdd","VP8LPredictorsAdd"),on("PredictorAdd","VP8LPredictorsAdd_C"),ky=ie,Qo=Xt,ls=Kt,Ol=Xe,Qs=Re,SA=pr,ef=Ie,T.VP8LMapColor32b=Fd,T.VP8LMapColor8b=ME,d)}function sn(d,y,C,F,U){var Q=1,H=[d],k=[y],V=F.m,Y=F.s,ft=null,Bt=0;t:for(;;){if(C)for(;Q&&it(V,1);){var Tt=H,mt=k,Dt=F,Lt=1,pt=Dt.m,gt=Dt.gc[Dt.ab],Pt=it(pt,2);if(Dt.Oc&1<=Dt.ab),Pt){case 0:case 1:gt.b=it(pt,3)+2,Lt=sn(bt(gt.Ea,gt.b),bt(gt.nc,gt.b),0,Dt,gt.K),gt.K=gt.K[0];break;case 3:var Ht,Ut=it(pt,8)+1,ue=16>te.b),Zr=a(Nr);if(Zr==null)Ht=0;else{var Sr=te.K[0],gr=te.w;for(Zr[0]=te.K[0][0],Zt=1;Zt<1*Ne;++Zt)Zr[Zt]=dt(Sr[gr+Zt],Zr[Zt-1]);for(;Zt<4*Nr;++Zt)Zr[Zt]=0;te.K[0]=null,te.K[0]=Zr,Ht=1}}Lt=Ht;break;case 2:break;default:e(0)}Q=Lt}}if(H=H[0],k=k[0],Q&&it(V,1)&&!(Q=1<=(Bt=it(V,4))&&11>=Bt)){F.a=3;break t}var An;if(An=Q)e:{var rn,tr,pi,qa=F,di=H,Za=k,Jr=Bt,Eo=C,Co=qa.m,$i=qa.s,ta=[null],La=1,$o=0,Hs=qk[Jr];r:for(;;){if(Eo&&it(Co,1)){var Vi=it(Co,3)+2,LA=bt(di,Vi),cc=bt(Za,Vi),of=LA*cc;if(!sn(LA,cc,0,qa,ta))break r;for(ta=ta[0],$i.xc=Vi,rn=0;rn>8&65535;ta[rn]=Dl,Dl>=La&&(La=Dl+1)}}if(Co.h)break r;for(tr=0;5>tr;++tr){var Qn=dO[tr];!tr&&0=SO),Jy=xO;var Nd=a($o);if(Jy==null||Nd==null||$E==null){qa.a=1;break r}var tm=$E;for(rn=pi=0;rntr;++tr){Qn=dO[tr],sf[tr]=tm,Af[tr]=pi,!tr&&0om)break n}else KE=om;for(Ud=0;Udlf)MO[Ud++]=lf,lf!=0&&(NO=lf);else{var T9=lf==16,DO=lf-16,S9=zk[DO],QO=it(Hl,Kk[DO])+S9;if(Ud+QO>om)break n;for(var x9=T9?NO:0;0=tr){var Dd,YE=Nd[0];for(Dd=1;DdYE&&(YE=Nd[Dd]);IO+=YE}}if(fs.nd=em,fs.Qb=0,em&&(fs.qb=(sf[3][Af[3]+0].value<<24|sf[1][Af[1]+0].value<<16|sf[2][Af[2]+0].value)>>>0,bO==0&&256>sf[0][Af[0]+0].value&&(fs.Qb=1,fs.qb+=sf[0][Af[0]+0].value<<8)),fs.jc=!fs.Qb&&6>IO,fs.jc){var sm,OA=fs;for(sm=0;sm>=en(Am,8,kl),Gl>>=en(OA.G[1][OA.H[1]+Gl],16,kl),Gl>>=en(OA.G[2][OA.H[2]+Gl],0,kl),en(OA.G[3][OA.H[3]+Gl],24,kl))}}}$i.vc=ta,$i.Wb=La,$i.Ya=Jy,$i.yc=$E,An=1;break e}An=0}if(!(Q=An)){F.a=3;break t}if(0F+1?[]:0),!(U.lengthU)return Xn(d,7,"Truncated header.");var Q=C[F+0]|C[F+1]<<8|C[F+2]<<16,H=d.Od;if(H.Rb=!(1&Q),H.td=Q>>1&7,H.yd=Q>>4&1,H.ub=Q>>5,3U)return Xn(d,7,"cannot parse picture header");if(!Ty(C,F,U))return Xn(d,3,"Bad code word");k.c=16383&(C[F+4]<<8|C[F+3]),k.Td=C[F+4]>>6,k.i=16383&(C[F+6]<<8|C[F+5]),k.Ud=C[F+6]>>6,F+=7,U-=7,d.za=k.c+15>>4,d.Ub=k.i+15>>4,y.width=k.c,y.height=k.i,y.Da=0,y.j=0,y.v=0,y.va=y.width,y.o=y.height,y.da=0,y.ib=y.width,y.hb=y.height,y.U=y.width,y.T=y.height,i((Q=d.Pa).jb,0,255,Q.jb.length),e((Q=d.Qa)!=null),Q.Cb=0,Q.Bb=0,Q.Fb=1,i(Q.Zb,0,0,Q.Zb.length),i(Q.Lb,0,0,Q.Lb)}if(H.ub>U)return Xn(d,7,"bad partition length");X(Q=d.m,C,F,H.ub),F+=H.ub,U-=H.ub,H.Rb&&(k.Ld=wt(Q),k.Kd=wt(Q)),k=d.Qa;var V,Y=d.Pa;if(e(Q!=null),e(k!=null),k.Cb=wt(Q),k.Cb){if(k.Bb=wt(Q),wt(Q)){for(k.Fb=wt(Q),V=0;4>V;++V)k.Zb[V]=wt(Q)?tt(Q,7):0;for(V=0;4>V;++V)k.Lb[V]=wt(Q)?tt(Q,6):0}if(k.Bb)for(V=0;3>V;++V)Y.jb[V]=wt(Q)?z(Q,8):255}else k.Bb=0;if(Q.Ka)return Xn(d,3,"cannot parse segment header");if((k=d.ed).zd=wt(Q),k.Tb=z(Q,6),k.wb=z(Q,3),k.Pc=wt(Q),k.Pc&&wt(Q)){for(Y=0;4>Y;++Y)wt(Q)&&(k.vd[Y]=tt(Q,6));for(Y=0;4>Y;++Y)wt(Q)&&(k.od[Y]=tt(Q,6))}if(d.L=k.Tb==0?0:k.zd?1:2,Q.Ka)return Xn(d,3,"cannot parse filter header");var ft=U;if(U=V=F,F=V+ft,k=ft,d.Xb=(1<k&&(Bt=k),X(d.Jc[+ft],C,V,Bt),V+=Bt,k-=Bt,U+=3}X(d.Jc[+Y],C,V,k),C=VBt;++Bt){if(ft.Cb){var Tt=ft.Zb[Bt];ft.Fb||(Tt+=C)}else{if(0>16,8>mt.Eb[1]&&(mt.Eb[1]=8),mt.Qc[0]=HE[_o(Tt+Y,117)],mt.Qc[1]=GE[_o(Tt+V,127)],mt.lc=Tt+V}if(!H.Rb)return Xn(d,4,"Not a key frame.");for(wt(Q),H=d.Pa,C=0;4>C;++C){for(U=0;8>U;++U)for(F=0;3>F;++F)for(k=0;11>k;++k)Y=W(Q,n9[C][U][F][k])?z(Q,8):e9[C][U][F][k],H.Wc[C][U].Yb[F][k]=Y;for(U=0;17>U;++U)H.Xc[C][U]=H.Wc[C][i9[U]]}return d.kc=wt(Q),d.kc&&(d.Bd=z(Q,8)),d.cb=1}function xy(d,y,C,F,U,Q,H){var k=y[U].Yb[C];for(C=0;16>U;++U){if(!W(d,k[C+0]))return U;for(;!W(d,k[C+1]);)if(k=y[++U].Yb[0],C=0,U==16)return 16;var V=y[U+1].Yb;if(W(d,k[C+2])){var Y=d,ft=0;if(W(Y,(Tt=k)[(Bt=C)+3]))if(W(Y,Tt[Bt+6])){for(k=0,Bt=2*(ft=W(Y,Tt[Bt+8]))+(Tt=W(Y,Tt[Bt+9+ft])),ft=0,Tt=Jk[Bt];Tt[k];++k)ft+=ft+W(Y,Tt[k]);ft+=3+(8<(Y=d).b&&vt(Y);var Bt,Tt=Y.b,mt=(Bt=Y.Ca>>1)-(Y.I>>Tt)>>31;--Y.b,Y.Ca+=mt,Y.Ca|=1,Y.I-=(Bt+1&mt)<>4,d.zb=y.j-C>>4,0>d.yb&&(d.yb=0),0>d.zb&&(d.zb=0)),d.Va=y.o+15+C>>4,d.Hb=y.va+15+C>>4,d.Hb>d.za&&(d.Hb=d.za),d.Va>d.Ub&&(d.Va=d.Ub),0C;++C){var U;if(d.Qa.Cb){var Q=d.Qa.Lb[C];d.Qa.Fb||(Q+=F.Tb)}else Q=F.Tb;for(U=0;1>=U;++U){var H=d.gd[C][U],k=Q;if(F.Pc&&(k+=F.vd[0],U&&(k+=F.od[0])),0<(k=0>k?0:63>2:V>>1)>9-F.wb&&(V=9-F.wb),1>V&&(V=1),H.dd=V,H.tc=2*k+V,H.ld=40<=k?2:15<=k?1:0}else H.tc=0;H.La=U}}}C=0}else Xn(d,6,"Frame setup failed"),C=d.a;if(C=C==0){if(C){d.$c=0,0d.Vb){if(d.Vb=0,d.Ec=a(H),d.Fc=0,d.Ec==null){C=Xn(d,1,"no memory during frame initialization.");break t}d.Vb=H}H=d.Ec,k=d.Fc,d.Ac=H,d.Bc=k,k+=F,d.Gd=o(Y,By),d.Hd=0,d.rb=o(ft+1,Cy),d.sb=1,d.wa=Bt?o(Bt,Hh):null,d.Y=0,d.D.Nb=0,d.D.wa=d.wa,d.D.Y=d.Y,0=C;++C)AO[255+C]=0>C?-C:C;for(C=-1020;1020>=C;++C)lO[1020+C]=-128>C?-128:127=C;++C)uO[112+C]=-16>C?-16:15=C;++C)cO[255+C]=0>C?0:255Ut;++Ut){var Sr,gr=Ne[0+Ut];for(Sr=0;4>Sr;++Sr){gr=r9[ue[Zt+Sr]][gr];for(var An=vO[W(Ht,gr[0])];0>3;for(An=0;256>An;An+=16)Ut[Nr+An]=Za}pi=1,qa=Zt[0]}var Jr=15&Ht.la,Eo=15&Zr.la;for(An=0;4>An;++An){var Co=1&Eo;for(Za=tr=0;4>Za;++Za)Jr=Jr>>1|(Co=(di=Rd(ue,qa,di=Co+(1&Jr),te.Sc,pi,Ut,Nr))>pi)<<7,tr=tr<<2|(3>=4,Eo=Eo>>1|Co<<7,Sr=(Sr<<8|tr)>>>0}for(qa=Jr,pi=Eo>>4,rn=0;4>rn;rn+=2){for(tr=0,Jr=Ht.la>>4+rn,Eo=Zr.la>>4+rn,An=0;2>An;++An){for(Co=1&Eo,Za=0;2>Za;++Za)di=Co+(1&Jr),Jr=Jr>>1|(Co=0<(di=Rd(ue,Zt[2],di,te.Qc,0,Ut,Nr)))<<3,tr=tr<<2|(3>=2,Eo=Eo>>1|Co<<5}gr|=tr<<4*rn,qa|=Jr<<4<=pt.zb&&pt.M<=pt.Va,pt.Aa==0)t:{if(Lt.M=pt.M,Lt.uc=Ht,Td(pt,Lt),Pt=1,Lt=(tr=pt.D).Nb,Ht=(gr=Zy[pt.L])*pt.R,ue=gr/2*pt.B,An=16*Lt*pt.R,Za=8*Lt*pt.B,Zt=pt.sa,Ne=pt.ta-Ht+An,te=pt.qa,Ut=pt.ra-ue+Za,Nr=pt.Ha,Zr=pt.Ia-ue+Za,Eo=(Jr=tr.M)==0,Sr=Jr>=pt.Va-1,pt.Aa==2&&Td(pt,tr),tr.uc)for(Co=(di=pt).D.M,e(di.D.uc),tr=di.yb;trgt.o&&(Jr=gt.o),gt.F=null,gt.J=null,pt.Fa!=null&&0>1),gt.W+=pt.B*(gr>>1),gt.F!=null&&(gt.J+=gt.width*gr)),tr>1,gt.W+=gt.v>>1,gt.F!=null&&(gt.J+=gt.v),gt.ka=tr-gt.j,gt.U=gt.va-gt.v,gt.T=Jr-tr,Pt=gt.put(gt))}Lt+1!=pt.Ic||Sr||(n(pt.sa,pt.ta-Ht,Zt,Ne+16*pt.R,Ht),n(pt.qa,pt.ra-ue,te,Ut+8*pt.B,ue),n(pt.Ha,pt.Ia-ue,Nr,Zr+8*pt.B,ue))}if(!Pt)return Xn(mt,6,"Output aborted.")}return 1}(d,y)),y.bc!=null&&y.bc(y),C&=1}return C?(d.cb=0,C):0}function as(d,y,C,F,U){U=d[y+C+32*F]+(U>>3),d[y+C+32*F]=-256&U?0>U?0:255:U}function kh(d,y,C,F,U,Q){as(d,y,0,C,F+U),as(d,y,1,C,F+Q),as(d,y,2,C,F-Q),as(d,y,3,C,F-U)}function Ya(d){return(20091*d>>16)+d}function hd(d,y,C,F){var U,Q=0,H=a(16);for(U=0;4>U;++U){var k=d[y+0]+d[y+8],V=d[y+0]-d[y+8],Y=(35468*d[y+4]>>16)-Ya(d[y+12]),ft=Ya(d[y+4])+(35468*d[y+12]>>16);H[Q+0]=k+ft,H[Q+1]=V+Y,H[Q+2]=V-Y,H[Q+3]=k-ft,Q+=4,y++}for(U=Q=0;4>U;++U)k=(d=H[Q+0]+4)+H[Q+8],V=d-H[Q+8],Y=(35468*H[Q+4]>>16)-Ya(H[Q+12]),as(C,F,0,0,k+(ft=Ya(H[Q+4])+(35468*H[Q+12]>>16))),as(C,F,1,0,V+Y),as(C,F,2,0,V-Y),as(C,F,3,0,k-ft),Q++,F+=32}function by(d,y,C,F){var U=d[y+0]+4,Q=35468*d[y+4]>>16,H=Ya(d[y+4]),k=35468*d[y+1]>>16;kh(C,F,0,U+H,d=Ya(d[y+1]),k),kh(C,F,1,U+Q,d,k),kh(C,F,2,U-Q,d,k),kh(C,F,3,U-H,d,k)}function dE(d,y,C,F,U){hd(d,y,C,F),U&&hd(d,y+16,C,F+4)}function Iy(d,y,C,F){rf(d,y+0,C,F,1),rf(d,y+32,C,F+128,1)}function vE(d,y,C,F){var U;for(d=d[y+0]+4,U=0;4>U;++U)for(y=0;4>y;++y)as(C,F,y,U,d)}function Fy(d,y,C,F){d[y+0]&&cs(d,y+0,C,F),d[y+16]&&cs(d,y+16,C,F+4),d[y+32]&&cs(d,y+32,C,F+128),d[y+48]&&cs(d,y+48,C,F+128+4)}function gE(d,y,C,F){var U,Q=a(16);for(U=0;4>U;++U){var H=d[y+0+U]+d[y+12+U],k=d[y+4+U]+d[y+8+U],V=d[y+4+U]-d[y+8+U],Y=d[y+0+U]-d[y+12+U];Q[0+U]=H+k,Q[8+U]=H-k,Q[4+U]=Y+V,Q[12+U]=Y-V}for(U=0;4>U;++U)H=(d=Q[0+4*U]+3)+Q[3+4*U],k=Q[1+4*U]+Q[2+4*U],V=Q[1+4*U]-Q[2+4*U],Y=d-Q[3+4*U],C[F+0]=H+k>>3,C[F+16]=Y+V>>3,C[F+32]=H-k>>3,C[F+48]=Y-V>>3,F+=64}function fd(d,y,C){var F,U=y-32,Q=wo,H=255-d[U-1];for(F=0;FC;++C)n(d,y+32*C,d,y-32,16)}function $h(d,y){var C;for(C=16;0F;++F)i(y,C+32*F,d,16)}function Ly(d,y){var C,F=16;for(C=0;16>C;++C)F+=d[y-1+32*C]+d[y+C-32];Vh(F>>5,d,y)}function ca(d,y){var C,F=8;for(C=0;16>C;++C)F+=d[y-1+32*C];Vh(F>>4,d,y)}function wE(d,y){var C,F=8;for(C=0;16>C;++C)F+=d[y+C-32];Vh(F>>4,d,y)}function Oy(d,y){Vh(128,d,y)}function Ve(d,y,C){return d+2*y+C+2>>2}function EE(d,y){var C,F=y-32;for(F=new Uint8Array([Ve(d[F-1],d[F+0],d[F+1]),Ve(d[F+0],d[F+1],d[F+2]),Ve(d[F+1],d[F+2],d[F+3]),Ve(d[F+2],d[F+3],d[F+4])]),C=0;4>C;++C)n(d,y+32*C,F,0,F.length)}function CE(d,y){var C=d[y-1],F=d[y-1+32],U=d[y-1+64],Q=d[y-1+96];It(d,y+0,16843009*Ve(d[y-1-32],C,F)),It(d,y+32,16843009*Ve(C,F,U)),It(d,y+64,16843009*Ve(F,U,Q)),It(d,y+96,16843009*Ve(U,Q,Q))}function Ds(d,y){var C,F=4;for(C=0;4>C;++C)F+=d[y+C-32]+d[y-1+32*C];for(F>>=3,C=0;4>C;++C)i(d,y+32*C,F,4)}function Ry(d,y){var C=d[y-1+0],F=d[y-1+32],U=d[y-1+64],Q=d[y-1-32],H=d[y+0-32],k=d[y+1-32],V=d[y+2-32],Y=d[y+3-32];d[y+0+96]=Ve(F,U,d[y-1+96]),d[y+1+96]=d[y+0+64]=Ve(C,F,U),d[y+2+96]=d[y+1+64]=d[y+0+32]=Ve(Q,C,F),d[y+3+96]=d[y+2+64]=d[y+1+32]=d[y+0+0]=Ve(H,Q,C),d[y+3+64]=d[y+2+32]=d[y+1+0]=Ve(k,H,Q),d[y+3+32]=d[y+2+0]=Ve(V,k,H),d[y+3+0]=Ve(Y,V,k)}function My(d,y){var C=d[y+1-32],F=d[y+2-32],U=d[y+3-32],Q=d[y+4-32],H=d[y+5-32],k=d[y+6-32],V=d[y+7-32];d[y+0+0]=Ve(d[y+0-32],C,F),d[y+1+0]=d[y+0+32]=Ve(C,F,U),d[y+2+0]=d[y+1+32]=d[y+0+64]=Ve(F,U,Q),d[y+3+0]=d[y+2+32]=d[y+1+64]=d[y+0+96]=Ve(U,Q,H),d[y+3+32]=d[y+2+64]=d[y+1+96]=Ve(Q,H,k),d[y+3+64]=d[y+2+96]=Ve(H,k,V),d[y+3+96]=Ve(k,V,V)}function jh(d,y){var C=d[y-1+0],F=d[y-1+32],U=d[y-1+64],Q=d[y-1-32],H=d[y+0-32],k=d[y+1-32],V=d[y+2-32],Y=d[y+3-32];d[y+0+0]=d[y+1+64]=Q+H+1>>1,d[y+1+0]=d[y+2+64]=H+k+1>>1,d[y+2+0]=d[y+3+64]=k+V+1>>1,d[y+3+0]=V+Y+1>>1,d[y+0+96]=Ve(U,F,C),d[y+0+64]=Ve(F,C,Q),d[y+0+32]=d[y+1+96]=Ve(C,Q,H),d[y+1+32]=d[y+2+96]=Ve(Q,H,k),d[y+2+32]=d[y+3+96]=Ve(H,k,V),d[y+3+32]=Ve(k,V,Y)}function pd(d,y){var C=d[y+0-32],F=d[y+1-32],U=d[y+2-32],Q=d[y+3-32],H=d[y+4-32],k=d[y+5-32],V=d[y+6-32],Y=d[y+7-32];d[y+0+0]=C+F+1>>1,d[y+1+0]=d[y+0+64]=F+U+1>>1,d[y+2+0]=d[y+1+64]=U+Q+1>>1,d[y+3+0]=d[y+2+64]=Q+H+1>>1,d[y+0+32]=Ve(C,F,U),d[y+1+32]=d[y+0+96]=Ve(F,U,Q),d[y+2+32]=d[y+1+96]=Ve(U,Q,H),d[y+3+32]=d[y+2+96]=Ve(Q,H,k),d[y+3+64]=Ve(H,k,V),d[y+3+96]=Ve(k,V,Y)}function BE(d,y){var C=d[y-1+0],F=d[y-1+32],U=d[y-1+64],Q=d[y-1+96];d[y+0+0]=C+F+1>>1,d[y+2+0]=d[y+0+32]=F+U+1>>1,d[y+2+32]=d[y+0+64]=U+Q+1>>1,d[y+1+0]=Ve(C,F,U),d[y+3+0]=d[y+1+32]=Ve(F,U,Q),d[y+3+32]=d[y+1+64]=Ve(U,Q,Q),d[y+3+64]=d[y+2+64]=d[y+0+96]=d[y+1+96]=d[y+2+96]=d[y+3+96]=Q}function TE(d,y){var C=d[y-1+0],F=d[y-1+32],U=d[y-1+64],Q=d[y-1+96],H=d[y-1-32],k=d[y+0-32],V=d[y+1-32],Y=d[y+2-32];d[y+0+0]=d[y+2+32]=C+H+1>>1,d[y+0+32]=d[y+2+64]=F+C+1>>1,d[y+0+64]=d[y+2+96]=U+F+1>>1,d[y+0+96]=Q+U+1>>1,d[y+3+0]=Ve(k,V,Y),d[y+2+0]=Ve(H,k,V),d[y+1+0]=d[y+3+32]=Ve(C,H,k),d[y+1+32]=d[y+3+64]=Ve(F,C,H),d[y+1+64]=d[y+3+96]=Ve(U,F,C),d[y+1+96]=Ve(Q,U,F)}function SE(d,y){var C;for(C=0;8>C;++C)n(d,y+32*C,d,y-32,8)}function dd(d,y){var C;for(C=0;8>C;++C)i(d,y,d[y-1],8),y+=32}function ac(d,y,C){var F;for(F=0;8>F;++F)i(y,C+32*F,d,8)}function xl(d,y){var C,F=8;for(C=0;8>C;++C)F+=d[y+C-32]+d[y-1+32*C];ac(F>>4,d,y)}function xE(d,y){var C,F=4;for(C=0;8>C;++C)F+=d[y+C-32];ac(F>>3,d,y)}function oc(d,y){var C,F=4;for(C=0;8>C;++C)F+=d[y-1+32*C];ac(F>>3,d,y)}function vd(d,y){ac(128,d,y)}function Kh(d,y,C){var F=d[y-C],U=d[y+0],Q=3*(U-F)+NE[1020+d[y-2*C]-d[y+C]],H=Vy[112+(Q+4>>3)];d[y-C]=wo[255+F+Vy[112+(Q+3>>3)]],d[y+0]=wo[255+U-H]}function Ny(d,y,C,F){var U=d[y+0],Q=d[y+C];return Go[255+d[y-2*C]-d[y-C]]>F||Go[255+Q-U]>F}function Py(d,y,C,F){return 4*Go[255+d[y-C]-d[y+0]]+Go[255+d[y-2*C]-d[y+C]]<=F}function Uy(d,y,C,F,U){var Q=d[y-3*C],H=d[y-2*C],k=d[y-C],V=d[y+0],Y=d[y+C],ft=d[y+2*C],Bt=d[y+3*C];return 4*Go[255+k-V]+Go[255+H-Y]>F?0:Go[255+d[y-4*C]-Q]<=U&&Go[255+Q-H]<=U&&Go[255+H-k]<=U&&Go[255+Bt-ft]<=U&&Go[255+ft-Y]<=U&&Go[255+Y-V]<=U}function Dy(d,y,C,F){var U=2*F+1;for(F=0;16>F;++F)Py(d,y+F,C,U)&&Kh(d,y+F,C)}function BA(d,y,C,F){var U=2*F+1;for(F=0;16>F;++F)Py(d,y+F*C,1,U)&&Kh(d,y+F*C,1)}function bl(d,y,C,F){var U;for(U=3;0>7,gt=18*Pt+63>>7,Pt=9*Pt+63>>7;V[Y-3*ft]=wo[255+V[Y-3*ft]+Pt],V[Y-2*ft]=wo[255+Bt+gt],V[Y-ft]=wo[255+Tt+pt],V[Y+0]=wo[255+mt-pt],V[Y+ft]=wo[255+Dt-gt],V[Y+2*ft]=wo[255+Lt-Pt]}y+=F}}function os(d,y,C,F,U,Q,H,k){for(Q=2*Q+1;0>3)],Lt=Vy[112+(Lt+3>>3)],pt=Dt+1>>1;V[Y-2*ft]=wo[255+V[Y-2*ft]+pt],V[Y-ft]=wo[255+Bt+Lt],V[Y+0]=wo[255+Tt-Dt],V[Y+ft]=wo[255+mt-pt]}y+=F}}function gd(d,y,C,F,U,Q){Il(d,y,C,1,16,F,U,Q)}function sc(d,y,C,F,U,Q){Il(d,y,1,C,16,F,U,Q)}function IE(d,y,C,F,U,Q){var H;for(H=3;0Y?0:255:Y)&255,Y=V,U[Q+k]=ft}}function Cd(d,y,C,F){var U=y.width,Q=y.o;if(e(d!=null&&y!=null),0>C||0>=F||C+F>Q)return null;if(!d.Cc){if(d.ga==null){var H;if(d.ga=new Xh,(H=d.ga==null)||(H=y.width*y.o,e(d.Gb.length==0),d.Gb=a(H),d.Uc=0,d.Gb==null?H=0:(d.mb=d.Gb,d.nb=d.Uc,d.rc=null,H=1),H=!H),!H){H=d.ga;var k=d.Fa,V=d.P,Y=d.qc,ft=d.mb,Bt=d.nb,Tt=V+1,mt=Y-1,Dt=H.l;if(e(k!=null&&ft!=null&&y!=null),Ul[0]=null,Ul[1]=Ac,Ul[2]=Ed,Ul[3]=Fl,H.ca=ft,H.tb=Bt,H.c=y.width,H.i=y.height,e(0=Y)y=0;else if(H.$a=k[V+0]>>0&3,H.Z=k[V+0]>>2&3,H.Lc=k[V+0]>>4&3,V=k[V+0]>>6&3,0>H.$a||1=H.c*H.i;H=!y}if(H)return null;d.ga.Lc!=1?d.Ga=0:F=Q-C}e(d.ga!=null),e(C+F<=Q);t:{if(y=(k=d.ga).c,Q=k.l.o,k.$a==0){if(Tt=d.rc,mt=d.Vc,Dt=d.Fa,V=d.P+1+C*y,Y=d.mb,ft=d.nb+C*y,e(V<=d.P+d.qc),k.Z!=0)for(e(Ul[k.Z]!=null),H=0;H=y)y=1;else if(k.ic||Ct(),k.ic){k=H.V,Tt=H.Ba,mt=H.c;var Lt=H.i,pt=(Dt=1,V=H.$/mt,Y=H.$%mt,ft=H.m,Bt=H.s,H.$),gt=mt*Lt,Pt=mt*y,Ht=Bt.wc,Ut=pt(Lt=bi(Ut.G[0],Ut.H[0],ft)))k[Tt+pt]=Lt,++pt,++Y>=mt&&(Y=0,++V<=y&&!(V%16)&&Qt(H,V));else{if(!(280>Lt)){Dt=0;break e}Lt=hi(Lt-256,ft);var ue,Zt=bi(Ut.G[4],Ut.H[4],ft);if(at(ft),!(pt>=(Zt=Dn(mt,Zt=hi(Zt,ft)))&>-pt>=Lt)){Dt=0;break e}for(ue=0;ue=mt;)Y-=mt,++V<=y&&!(V%16)&&Qt(H,V);pty?y:V);break e}!Dt||ft.h&&pt=Q&&(d.Cc=1),F=1}if(!F)return null;if(d.Cc&&((F=d.ga)!=null&&(F.mc=null),d.ga=null,0>23,k[V+4*H+1]=k[V+4*H+1]*Bt>>23,k[V+4*H+2]=k[V+4*H+2]*Bt>>23)}y+=Q}}function D(d,y,C,F,U){for(;0>4)*V>>16;d[y+2*Q+0]=(240&H|H>>4)*V>>16&240|(15&H|H<<4)*V>>16>>4&15,d[y+2*Q+1]=240&Y|k}y+=U}}function et(d,y,C,F,U,Q,H,k){var V,Y,ft=255;for(Y=0;Y>8}function Ct(){Nl=w,af=D,$y=et,sO=lt}function Rt(d,y,C){T[d]=function(F,U,Q,H,k,V,Y,ft,Bt,Tt,mt,Dt,Lt,pt,gt,Pt,Ht){var Ut,ue=Ht-1>>1,Zt=k[V+0]|Y[ft+0]<<16,Ne=Bt[Tt+0]|mt[Dt+0]<<16;e(F!=null);var te=3*Zt+Ne+131074>>2;for(y(F[U+0],255&te,te>>16,Lt,pt),Q!=null&&(te=3*Ne+Zt+131074>>2,y(Q[H+0],255&te,te>>16,gt,Pt)),Ut=1;Ut<=ue;++Ut){var Nr=k[V+Ut]|Y[ft+Ut]<<16,Zr=Bt[Tt+Ut]|mt[Dt+Ut]<<16,Sr=Zt+Nr+Ne+Zr+524296,gr=Sr+2*(Nr+Ne)>>3;te=gr+Zt>>1,Zt=(Sr=Sr+2*(Zt+Zr)>>3)+Nr>>1,y(F[U+2*Ut-1],255&te,te>>16,Lt,pt+(2*Ut-1)*C),y(F[U+2*Ut-0],255&Zt,Zt>>16,Lt,pt+(2*Ut-0)*C),Q!=null&&(te=Sr+Ne>>1,Zt=gr+Zr>>1,y(Q[H+2*Ut-1],255&te,te>>16,gt,Pt+(2*Ut-1)*C),y(Q[H+2*Ut+0],255&Zt,Zt>>16,gt,Pt+(2*Ut+0)*C)),Zt=Nr,Ne=Zr}1&Ht||(te=3*Zt+Ne+131074>>2,y(F[U+Ht-1],255&te,te>>16,Lt,pt+(Ht-1)*C),Q!=null&&(te=3*Ne+Zt+131074>>2,y(Q[H+Ht-1],255&te,te>>16,gt,Pt+(Ht-1)*C)))}}function jt(){ko[jy]=o9,ko[Ky]=yO,ko[fO]=s9,ko[zy]=mO,ko[Yy]=_O,ko[PE]=wO,ko[pO]=A9,ko[UE]=yO,ko[DE]=mO,ko[Xy]=_O,ko[QE]=wO}function re(d){return d&~l9?0>d?0:255:d>>EO}function Fe(d,y){return re((19077*d>>8)+(26149*y>>8)-14234)}function ur(d,y,C){return re((19077*d>>8)-(6419*y>>8)-(13320*C>>8)+8708)}function Ke(d,y){return re((19077*d>>8)+(33050*y>>8)-17685)}function Tr(d,y,C,F,U){F[U+0]=Fe(d,C),F[U+1]=ur(d,y,C),F[U+2]=Ke(d,y)}function Ji(d,y,C,F,U){F[U+0]=Ke(d,y),F[U+1]=ur(d,y,C),F[U+2]=Fe(d,C)}function Wn(d,y,C,F,U){var Q=ur(d,y,C);y=Q<<3&224|Ke(d,y)>>3,F[U+0]=248&Fe(d,C)|Q>>5,F[U+1]=y}function fi(d,y,C,F,U){var Q=240&Ke(d,y)|15;F[U+0]=240&Fe(d,C)|ur(d,y,C)>>4,F[U+1]=Q}function ha(d,y,C,F,U){F[U+0]=255,Tr(d,y,C,F,U+1)}function ki(d,y,C,F,U){Ji(d,y,C,F,U),F[U+3]=255}function ss(d,y,C,F,U){Tr(d,y,C,F,U),F[U+3]=255}function _o(d,y){return 0>d?0:d>y?y:d}function TA(d,y,C){T[d]=function(F,U,Q,H,k,V,Y,ft,Bt){for(var Tt=ft+(-2&Bt)*C;ft!=Tt;)y(F[U+0],Q[H+0],k[V+0],Y,ft),y(F[U+1],Q[H+0],k[V+0],Y,ft+C),U+=2,++H,++V,ft+=2*C;1&Bt&&y(F[U+0],Q[H+0],k[V+0],Y,ft)}}function Gy(d,y,C){return C==0?d==0?y==0?6:5:y==0?4:0:C}function Bd(d,y,C,F,U){switch(d>>>30){case 3:rf(y,C,F,U,0);break;case 2:Ld(y,C,F,U);break;case 1:cs(y,C,F,U)}}function Td(d,y){var C,F,U=y.M,Q=y.Nb,H=d.oc,k=d.pc+40,V=d.oc,Y=d.pc+584,ft=d.oc,Bt=d.pc+600;for(C=0;16>C;++C)H[k+32*C-1]=129;for(C=0;8>C;++C)V[Y+32*C-1]=129,ft[Bt+32*C-1]=129;for(0C;++C)n(H,k+32*C-4,H,k+32*C+12,4);for(C=-1;8>C;++C)n(V,Y+32*C-4,V,Y+32*C+4,4),n(ft,Bt+32*C-4,ft,Bt+32*C+4,4)}var mt=d.Gd,Dt=d.Hd+F,Lt=Tt.ad,pt=Tt.Hc;if(0=d.za-1?i(gt,Pt,mt[Dt].y[15],4):n(gt,Pt,mt[Dt+1].y,0,4)),C=0;4>C;C++)gt[Pt+128+C]=gt[Pt+256+C]=gt[Pt+384+C]=gt[Pt+0+C];for(C=0;16>C;++C,pt<<=2)gt=H,Pt=k+BO[C],hs[Tt.Ob[C]](gt,Pt),Bd(pt,Lt,16*+C,gt,Pt)}else if(gt=Gy(F,U,Tt.Ob[0]),Pl[gt](H,k),pt!=0)for(C=0;16>C;++C,pt<<=2)Bd(pt,Lt,16*+C,H,k+BO[C]);for(C=Tt.Gc,gt=Gy(F,U,Tt.Dd),FA[gt](V,Y),FA[gt](ft,Bt),pt=Lt,gt=V,Pt=Y,255&(Tt=C>>0)&&(170&Tt?Rl(pt,256,gt,Pt):xA(pt,256,gt,Pt)),Tt=ft,pt=Bt,255&(C>>=8)&&(170&C?Rl(Lt,320,Tt,pt):xA(Lt,320,Tt,pt)),UC;++C)n(mt,Dt+C*d.R,H,k+32*C,16);for(C=0;8>C;++C)n(Lt,Tt+C*d.B,V,Y+32*C,8),n(pt,gt+C*d.B,ft,Bt+32*C,8)}}function Wh(d,y,C,F,U,Q,H,k,V){var Y=[0],ft=[0],Bt=0,Tt=V!=null?V.kd:0,mt=V??new _d;if(d==null||12>C)return 7;mt.data=d,mt.w=y,mt.ha=C,y=[y],C=[C],mt.gb=[mt.gb];t:{var Dt=y,Lt=C,pt=mt.gb;if(e(d!=null),e(Lt!=null),e(pt!=null),pt[0]=0,12<=Lt[0]&&!t(d,Dt[0],"RIFF")){if(t(d,Dt[0]+8,"WEBP")){pt=3;break t}var gt=Z(d,Dt[0]+4);if(12>gt||4294967286Lt[0]-8){pt=7;break t}pt[0]=gt,Dt[0]+=12,Lt[0]-=12}pt=0}if(pt!=0)return pt;for(gt=0pt[0])pt=7;else{if(!t(Pt,Lt[0],"VP8X")){if(Z(Pt,Lt[0]+4)!=10){pt=3;break t}if(18>pt[0]){pt=7;break t}var Zt=Z(Pt,Lt[0]+8),Ne=1+j(Pt,Lt[0]+12);if(2147483648<=Ne*(Pt=1+j(Pt,Lt[0]+15))){pt=3;break t}ue!=null&&(ue[0]=Zt),Ht!=null&&(Ht[0]=Ne),Ut!=null&&(Ut[0]=Pt),Lt[0]+=18,pt[0]-=18,te[0]=1}pt=0}}if(Bt=Bt[0],Dt=Dt[0],pt!=0)return pt;if(Lt=!!(2&Dt),!gt&&Bt)return 3;if(Q!=null&&(Q[0]=!!(16&Dt)),H!=null&&(H[0]=Lt),k!=null&&(k[0]=0),H=Y[0],Dt=ft[0],Bt&&Lt&&V==null){pt=0;break}if(4>C){pt=7;break}if(gt&&Bt||!gt&&!Bt&&!t(d,y[0],"ALPH")){C=[C],mt.na=[mt.na],mt.P=[mt.P],mt.Sa=[mt.Sa];t:{Zt=d,pt=y,gt=C;var te=mt.gb;Ht=mt.na,Ut=mt.P,ue=mt.Sa,Ne=22,e(Zt!=null),e(gt!=null),Pt=pt[0];var Nr=gt[0];for(e(Ht!=null),e(ue!=null),Ht[0]=null,Ut[0]=null,ue[0]=0;;){if(pt[0]=Pt,gt[0]=Nr,8>Nr){pt=7;break t}var Zr=Z(Zt,Pt+4);if(4294967286te){pt=3;break t}if(!t(Zt,Pt,"VP8 ")||!t(Zt,Pt,"VP8L")){pt=0;break t}if(Nr[0]gt[0])pt=7;else{if(Pt||Ne){if(te=Z(te,Zt+4),12<=Ht&&te>Ht-12){pt=3;break t}if(Tt&&te>gt[0]-8){pt=7;break t}Ut[0]=te,pt[0]+=8,gt[0]-=8,ue[0]=Ne}else ue[0]=5<=gt[0]&&te[Zt+0]==47&&!(te[Zt+4]>>5),Ut[0]=gt[0];pt=0}if(C=C[0],mt.Ja=mt.Ja[0],mt.xa=mt.xa[0],y=y[0],pt!=0)break;if(4294967286C){pt=7;break}k=H,Tt=Dt,Lt=Q,d==null||5>C?d=0:5<=C&&d[y+0]==47&&!(d[y+4]>>5)?(gt=[0],te=[0],Ht=[0],J(Ut=new R,d,y,C),be(Ut,gt,te,Ht)?(k!=null&&(k[0]=gt[0]),Tt!=null&&(Tt[0]=te[0]),Lt!=null&&(Lt[0]=Ht[0]),d=1):d=0):d=0}else{if(10>C){pt=7;break}k=Dt,d==null||10>C||!Ty(d,y+3,C-3)?d=0:(Tt=d[y+0]|d[y+1]<<8|d[y+2]<<16,Lt=16383&(d[y+7]<<8|d[y+6]),d=16383&(d[y+9]<<8|d[y+8]),1&Tt||3<(Tt>>1&7)||!(Tt>>4&1)||Tt>>5>=mt.Ja||!Lt||!d?d=0:(H&&(H[0]=Lt),k&&(k[0]=d),d=1))}if(!d||(H=H[0],Dt=Dt[0],Bt&&(Y[0]!=H||ft[0]!=Dt)))return 3;V!=null&&(V[0]=mt,V.offset=y-V.w,e(4294967286>y-V.w),e(V.offset==V.ha-C));break}return pt==0||pt==7&&Bt&&V==null?(Q!=null&&(Q[0]|=mt.na!=null&&0C||(Q&=-2,H&=-2),0>Q||0>H||0>=k||0>=V||Q+k>F||H+V>U))return 0;if(y.v=Q,y.j=H,y.va=Q+k,y.o=H+V,y.U=k,y.T=V,y.da=d!=null&&0d.S){var y=d.f.RGBA;y.fb+=(d.height-1)*y.A,y.A=-y.A}else y=d.f.kb,d=d.height,y.O+=(d-1)*y.fa,y.fa=-y.fa,y.N+=(d-1>>1)*y.Ab,y.Ab=-y.Ab,y.W+=(d-1>>1)*y.Db,y.Db=-y.Db,y.F!=null&&(y.J+=(d-1)*y.lb,y.lb=-y.lb);return 0}function qh(d,y,C,F){if(F==null||0>=d||0>=y)return 2;if(C!=null){if(C.Da){var U=C.cd,Q=C.bd,H=-2&C.v,k=-2&C.j;if(0>H||0>k||0>=U||0>=Q||H+U>d||k+Q>y)return 2;d=U,y=Q}if(C.da){if(!xt(d,y,U=[C.ib],Q=[C.hb]))return 2;d=U[0],y=Q[0]}}F.width=d,F.height=y;t:{var V=F.width,Y=F.height;if(d=F.S,0>=V||0>=Y||!(d>=jy&&13>d))d=2;else{if(0>=F.Rd&&F.sd==null){H=Q=U=y=0;var ft=(k=V*TO[d])*Y;if(11>d||(Q=(Y+1)/2*(y=(V+1)/2),d==12&&(H=(U=V)*Y)),(Y=a(ft+2*Q+H))==null){d=1;break t}F.sd=Y,11>d?((V=F.f.RGBA).eb=Y,V.fb=0,V.A=k,V.size=ft):((V=F.f.kb).y=Y,V.O=0,V.fa=k,V.Fd=ft,V.f=Y,V.N=0+ft,V.Ab=y,V.Cd=Q,V.ea=Y,V.W=0+ft+Q,V.Db=y,V.Ed=Q,d==12&&(V.F=Y,V.J=0+ft+2*Q),V.Tc=H,V.lb=U)}if(y=1,U=F.S,Q=F.width,H=F.height,U>=jy&&13>U)if(11>U)d=F.f.RGBA,y&=(k=Math.abs(d.A))*(H-1)+Q<=d.size,y&=k>=Q*TO[U],y&=d.eb!=null;else{d=F.f.kb,k=(Q+1)/2,ft=(H+1)/2,V=Math.abs(d.fa),Y=Math.abs(d.Ab);var Bt=Math.abs(d.Db),Tt=Math.abs(d.lb),mt=Tt*(H-1)+Q;y&=V*(H-1)+Q<=d.Fd,y&=Y*(ft-1)+k<=d.Cd,y=(y&=Bt*(ft-1)+k<=d.Ed)&V>=Q&Y>=k&Bt>=k,y&=d.y!=null,y&=d.f!=null,y&=d.ea!=null,U==12&&(y&=Tt>=Q,y&=mt<=d.Tc,y&=d.F!=null)}else y=0;d=y?0:2}}return d!=0||C!=null&&C.fd&&(d=xd(F)),d}var Xa=64,Zh=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Jh=24,tf=32,bd=8,Wa=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Et("Predictor0","PredictorAdd0"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(d){return d},T.Predictor2=function(d,y,C){return y[C+0]},T.Predictor3=function(d,y,C){return y[C+1]},T.Predictor4=function(d,y,C){return y[C-1]},T.Predictor5=function(d,y,C){return St(St(d,y[C+1]),y[C+0])},T.Predictor6=function(d,y,C){return St(d,y[C-1])},T.Predictor7=function(d,y,C){return St(d,y[C+0])},T.Predictor8=function(d,y,C){return St(y[C-1],y[C+0])},T.Predictor9=function(d,y,C){return St(y[C+0],y[C+1])},T.Predictor10=function(d,y,C){return St(St(d,y[C-1]),St(y[C+0],y[C+1]))},T.Predictor11=function(d,y,C){var F=y[C+0];return 0>=Vt(F>>24&255,d>>24&255,(y=y[C-1])>>24&255)+Vt(F>>16&255,d>>16&255,y>>16&255)+Vt(F>>8&255,d>>8&255,y>>8&255)+Vt(255&F,255&d,255&y)?F:d},T.Predictor12=function(d,y,C){var F=y[C+0];return(Ft((d>>24&255)+(F>>24&255)-((y=y[C-1])>>24&255))<<24|Ft((d>>16&255)+(F>>16&255)-(y>>16&255))<<16|Ft((d>>8&255)+(F>>8&255)-(y>>8&255))<<8|Ft((255&d)+(255&F)-(255&y)))>>>0},T.Predictor13=function(d,y,C){var F=y[C-1];return(Mt((d=St(d,y[C+0]))>>24&255,F>>24&255)<<24|Mt(d>>16&255,F>>16&255)<<16|Mt(d>>8&255,F>>8&255)<<8|Mt(d>>0&255,F>>0&255))>>>0};var OE=T.PredictorAdd0;T.PredictorAdd1=Yt,Et("Predictor2","PredictorAdd2"),Et("Predictor3","PredictorAdd3"),Et("Predictor4","PredictorAdd4"),Et("Predictor5","PredictorAdd5"),Et("Predictor6","PredictorAdd6"),Et("Predictor7","PredictorAdd7"),Et("Predictor8","PredictorAdd8"),Et("Predictor9","PredictorAdd9"),Et("Predictor10","PredictorAdd10"),Et("Predictor11","PredictorAdd11"),Et("Predictor12","PredictorAdd12"),Et("Predictor13","PredictorAdd13");var Id=T.PredictorAdd2;oe("ColorIndexInverseTransform","MapARGB","32b",function(d){return d>>8&255},function(d){return d}),oe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(d){return d},function(d){return d>>8&255});var ky,As=T.ColorIndexInverseTransform,Fd=T.MapARGB,RE=T.VP8LColorIndexInverseTransformAlpha,ME=T.MapAlpha,Ll=T.VP8LPredictorsAdd=[];Ll.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var Qo,ls,Ol,Qs,SA,ef,us,rf,Ld,Rl,cs,xA,lc,nf,uc,Ml,Od,Ho,bA,pn,dn,qn,Fi,IA,Nl,af,$y,sO,AO=a(511),lO=a(2041),uO=a(225),cO=a(767),hO=0,NE=lO,Vy=uO,wo=cO,Go=AO,jy=0,Ky=1,fO=2,zy=3,Yy=4,PE=5,pO=6,UE=7,DE=8,Xy=9,QE=10,Kk=[2,3,7],zk=[3,3,11],dO=[280,256,256,256,40],Yk=[0,1,1,1,0],Xk=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Wk=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],qk=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Zk=8,HE=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],GE=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Rd=null,Jk=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],t9=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],vO=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],e9=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],r9=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],n9=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],i9=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Pl=[],hs=[],FA=[],a9=1,gO=2,Ul=[],ko=[];Rt("UpsampleRgbLinePair",Tr,3),Rt("UpsampleBgrLinePair",Ji,3),Rt("UpsampleRgbaLinePair",ss,4),Rt("UpsampleBgraLinePair",ki,4),Rt("UpsampleArgbLinePair",ha,4),Rt("UpsampleRgba4444LinePair",fi,2),Rt("UpsampleRgb565LinePair",Wn,2);var o9=T.UpsampleRgbLinePair,s9=T.UpsampleBgrLinePair,yO=T.UpsampleRgbaLinePair,mO=T.UpsampleBgraLinePair,_O=T.UpsampleArgbLinePair,wO=T.UpsampleRgba4444LinePair,A9=T.UpsampleRgb565LinePair,Wy=16,qy=1<F.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),F.ca.f.kb.F!=null&&Ct()),F.Pb&&0(V=C.Md)?0:100Y;++Y)12>(Bt=U.pb[Y]).lc&&(Bt.ia=V*v9[0>Bt.lc?0:Bt.lc]>>3),ft|=Bt.ia;ft&&(alert("todo:VP8InitRandom"),U.ia=1)}U.Ga=C.Id,100U.Ga&&(U.Ga=0)}pE(d,F)||(y=d.a)}}else y=d.a}y==0&&H.Oa!=null&&H.Oa.fd&&(y=xd(H.ba))}H=y}Q=H!=0?null:11>Q?k.f.RGBA.eb:k.f.kb.y}else Q=null;return Q};var TO=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(T,I){for(var M="",x=0;x<4;x++)M+=String.fromCharCode(T[I++]);return M}function u(T,I){return(T[I+0]<<0|T[I+1]<<8|T[I+2]<<16)>>>0}function c(T,I){return(T[I+0]<<0|T[I+1]<<8|T[I+2]<<16|T[I+3]<<24)>>>0}new A;var h=[0],f=[0],p=[],v=new A,m=r,g=function(T,I){var M={},x=0,S=!1,N=0,P=0;if(M.frames=[],!function($,K,q,at){for(var vt=0;vt>1&1}tt!="ANMF"&&(I+=nt)}return M}}(m,0);g.response=m,g.rgbaoutput=!0,g.dataurl=!1;var _=g.header?g.header:null,E=g.frames?g.frames:null;if(_){_.loop_counter=_.loop_count,h=[_.canvas_height],f=[_.canvas_width];for(var B=0;B>>1)&255;return g},A=function(h,f,p){var v,m,g,_,E=[],B=h.length;E[0]=4;for(var L=0;L>>tt&255,tt+=_.bits;I[N]=S>>>tt&255}}if(_.bits===16){T=(b=new Uint32Array(_.decodePixels().buffer)).length,M=new Uint8Array(T*(32/_.pixelBitlength)*_.colors),I=new Uint8Array(T*(32/_.pixelBitlength)),x=_.colors>1,N=0,P=0;for(var nt=0;N>>0&255,x&&(M[P++]=S>>>16&255,S=b[N++],M[P++]=S>>>0&255),I[nt++]=S>>>16&255;g=8}v!==r.image_compression.NONE&&e()?(h=t(M,_.width*_.colors,_.colors,v),O=t(I,_.width,1,v)):(h=M,O=I,X=void 0)}if(_.colorType===3&&(m=this.color_spaces.INDEXED,L=_.palette,_.transparency.indexed)){var it=_.transparency.indexed,_t=0;for(N=0,T=it.length;N=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i>7-s&1];this.data[o+4*s]=A.blue,this.data[o+4*s+1]=A.green,this.data[o+4*s+2]=A.red,this.data[o+4*s+3]=255}t!==0&&(this.pos+=4-t)}},vs.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),e=r%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i>4,A=15&a,l=this.palette[s];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*i+1>=this.width)break;l=this.palette[A],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}e!==0&&(this.pos+=4-e)}},vs.prototype.bit8=function(){for(var r=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i>5&e)/e*255|0,A=(a>>10&e)/e*255|0,l=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=A,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=l}this.pos+=r}},vs.prototype.bit16=function(){for(var r=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a>5&t)/t*255|0,l=(o>>11)/e*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=A,this.data[u+2]=s,this.data[u+3]=255}this.pos+=r}},vs.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var e=this.bottom_up?r:this.height-1-r,t=0;t=0;r--)for(var e=this.bottom_up?r:this.height-1-r,t=0;tn&&(i.push(r.slice(A,a)),s=0,A=a),s+=e[a],a++;return A!==a&&i.push(r.slice(A,a)),i},xN=function(r,e,t){t||(t={});var n,i,a,o,s,A,l,u=[],c=[u],h=t.textIndent||0,f=0,p=0,v=r.split(" "),m=Hm.apply(this,[" ",t])[0];if(A=t.lineIndent===-1?v[0].length+2:t.lineIndent||0){var g=Array(A).join(" "),_=[];v.map(function(B){(B=B.split(/\s*\n/)).length>1?_=_.concat(B.map(function(L,O){return(O&&L.length?` + */function vs(r,e){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function IN(r){function e(T){if(!T)throw Error("assert :P")}function t(T,I,M){for(var x=0;4>x;x++)if(T[I+x]!=M.charCodeAt(x))return!0;return!1}function n(T,I,M,x,S){for(var N=0;NN+1?[]:new I),!(P.length>>0;d&C;)C>>>=1;return C?(d&C-1)+C:d}function M(d,y,C,F,U){e(!(F%C));do d[y+(F-=C)]=U;while(0=U),512>=U)var Q=a(512);else if((Q=a(U))==null)return 0;return function(H,k,V,Y,ft,Bt){var Tt,mt,Dt=k,Lt=1<Tt;++Tt){if(pt[Tt]>1<(Ne-=pt[Tt]))return 0;for(;0=Tt;++Tt,ft<<=1){if(Zt+=Ne<<=1,0>(Ne-=pt[Tt]))return 0;for(;0Ht&&!(0>=(Pt-=pt[Ht]));)++Ht,Pt<<=1;Lt+=te=1<<(Pt=Ht-V),H[k+(Ht=ue&Ut)].g=Pt+V,H[k+Ht].value=Dt-k-Ht}Y.g=Tt-V,Y.value=Bt[mt++],M(H,Dt+(ue>>V),ft,te,Y),ue=I(ue,Tt)}}return Zt!=2*gt[15]-1?0:Lt}(d,y,C,F,U,Q)}function S(){this.value=this.g=0}function N(){this.value=this.g=0}function P(){this.G=o(5,S),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Xa,N)}function X(d,y,C,F){e(d!=null),e(y!=null),e(2147483648>F),d.Ca=254,d.I=0,d.b=-8,d.Ka=0,d.oa=y,d.pa=C,d.Jd=y,d.Yc=C+F,d.Zc=4<=F?C+F-4+1:C,vt(d)}function z(d,y){for(var C=0;0F),d.Sb=F,d.Ra=0,d.u=0,d.h=0,4>>=8,d.Ra+=d.oa[d.pa+d.bb]<>>0,++d.bb,d.u-=8;K(d)&&(d.h=1,d.u=0)}function it(d,y){if(e(0<=y),!d.h&&y<=Jh){var C=$(d)&Zh[y];return d.u+=y,nt(d),C}return d.h=1,d.u=0}function _t(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function $(d){return d.Ra>>>(d.u&tf-1)>>>0}function K(d){return e(d.bb<=d.Sb),d.h||d.bb==d.Sb&&d.u>tf}function q(d,y){d.u=y,d.h=K(d)}function at(d){d.u>=bd&&(e(d.u>=bd),nt(d))}function vt(d){e(d!=null&&d.oa!=null),d.pa>>0,d.b+=8):(e(d!=null&&d.oa!=null),d.pad.b&&vt(d);var F=d.b,U=C*y>>>8,Q=(d.I>>>F>U)+0;for(Q?(C-=U,d.I-=U+1<>>0):C=U+1,F=C,U=0;256<=F;)U+=8,F>>=8;return F=7^U+Wa[F],d.b-=F,d.Ca=(C<>24&255,d[y+1]=C>>16&255,d[y+2]=C>>8&255,d[y+3]=C>>0&255}function Ot(d,y){return d[y+0]<<0|d[y+1]<<8}function j(d,y){return Ot(d,y)|d[y+2]<<16}function Z(d,y){return Ot(d,y)|Ot(d,y+2)<<16}function ut(d,y){var C=1<=U||0>=Q?0:(C[0]=U,F[0]=Q,1)}function bt(d,y){return d+(1<>>y}function dt(d,y){return((4278255360&d)+(4278255360&y)>>>0&4278255360)+((16711935&d)+(16711935&y)>>>0&16711935)>>>0}function Et(d,y){T[y]=function(C,F,U,Q,H,k,V){var Y;for(Y=0;Y>>1)+(d&y)>>>0}function Ft(d){return 0<=d&&256>d?d:0>d?0:255>1))}function Vt(d,y,C){return Math.abs(y-C)-Math.abs(d-C)}function Yt(d,y,C,F,U,Q,H){for(F=Q[H-1],C=0;C>8&255,V=16711935&(V=(V=16711935&H)+((k<<16)+k));F[U+Q]=(4278255360&H)+V>>>0}}function ee(d,y){y.jd=d>>0&255,y.hd=d>>8&255,y.ud=d>>16&255}function Xt(d,y,C,F,U,Q){var H;for(H=0;H>>8,Y=k,ft=255&(ft=(ft=k>>>16)+((d.jd<<24>>24)*(V<<24>>24)>>>5));Y=255&(Y=(Y=Y+((d.hd<<24>>24)*(V<<24>>24)>>>5))+((d.ud<<24>>24)*(ft<<24>>24)>>>5)),U[Q+H]=(4278255360&k)+(ft<<16)+Y}}function oe(d,y,C,F,U){T[y]=function(Q,H,k,V,Y,ft,Bt,Tt,mt){for(V=Bt;V>Q.b,mt=Q.Ea,Dt=Q.K[0],Lt=Q.w;if(8>Tt)for(Q=(1<>=Tt}else T["VP8LMapColor"+C](V,Y,Dt,Lt,ft,Bt,H,k,mt)}}function Kt(d,y,C,F,U){for(C=y+C;y>16&255,F[U++]=Q>>8&255,F[U++]=Q>>0&255}}function Xe(d,y,C,F,U){for(C=y+C;y>16&255,F[U++]=Q>>8&255,F[U++]=Q>>0&255,F[U++]=Q>>24&255}}function Re(d,y,C,F,U){for(C=y+C;y>16&240|H>>12&15,H=H>>0&240|H>>28&15;F[U++]=Q,F[U++]=H}}function pr(d,y,C,F,U){for(C=y+C;y>16&248|H>>13&7,H=H>>5&224|H>>3&31;F[U++]=Q,F[U++]=H}}function Ie(d,y,C,F,U){for(C=y+C;y>0&255,F[U++]=Q>>8&255,F[U++]=Q>>16&255}}function xe(d,y,C,F,U,Q){if(Q==0)for(C=y+C;y>24|Q[1]>>8&65280|Q[2]<<8&16711680|Q[3]<<24)>>>0),U+=32;else n(F,U,d,y,C)}function on(d,y){T[y][0]=T[d+"0"],T[y][1]=T[d+"1"],T[y][2]=T[d+"2"],T[y][3]=T[d+"3"],T[y][4]=T[d+"4"],T[y][5]=T[d+"5"],T[y][6]=T[d+"6"],T[y][7]=T[d+"7"],T[y][8]=T[d+"8"],T[y][9]=T[d+"9"],T[y][10]=T[d+"10"],T[y][11]=T[d+"11"],T[y][12]=T[d+"12"],T[y][13]=T[d+"13"],T[y][14]=T[d+"0"],T[y][15]=T[d+"0"]}function sr(d){return d==UE||d==DE||d==Xy||d==QE}function Ti(){this.eb=[],this.size=this.A=this.fb=0}function Br(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ci(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ti,this.f.kb=new Br,this.sd=null}function $r(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Vr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Me(d){return alert("todo:WebPSamplerProcessPlane"),d.T}function wr(d,y){var C=d.T,F=y.ba.f.RGBA,U=F.eb,Q=F.fb+d.ka*F.A,H=ko[y.ba.S],k=d.y,V=d.O,Y=d.f,ft=d.N,Bt=d.ea,Tt=d.W,mt=y.cc,Dt=y.dc,Lt=y.Mc,pt=y.Nc,gt=d.ka,Pt=d.ka+d.T,Ht=d.U,Ut=Ht+1>>1;for(gt==0?H(k,V,null,null,Y,ft,Bt,Tt,Y,ft,Bt,Tt,U,Q,null,null,Ht):(H(y.ec,y.fc,k,V,mt,Dt,Lt,pt,Y,ft,Bt,Tt,U,Q-F.A,U,Q,Ht),++C);gt+2C,U=C==Ky||C==zy||C==Yy||C==PE||C==12||sr(C);if(y.memory=null,y.Ib=null,y.Jb=null,y.Nd=null,!Sd(y.Oa,d,U?11:12))return 0;if(U&&sr(C)&&jt(),d.da)alert("todo:use_scaling");else{if(F){if(y.Ib=Me,d.Kb){if(C=d.U+1>>1,y.memory=a(d.U+2*C),y.memory==null)return 0;y.ec=y.memory,y.fc=0,y.cc=y.ec,y.dc=y.fc+d.U,y.Mc=y.cc,y.Nc=y.dc+C,y.Ib=wr,jt()}}else alert("todo:EmitYUV");U&&(y.Jb=Yn,F&&Ct())}if(F&&!CO){for(d=0;256>d;++d)c9[d]=89858*(d-128)+qy>>Wy,p9[d]=-22014*(d-128)+qy,f9[d]=-45773*(d-128),h9[d]=113618*(d-128)+qy>>Wy;for(d=Md;d>Wy,d9[d-Md]=_o(y,255),v9[d-Md]=_o(y+8>>4,15);CO=1}return 1}function Si(d){var y=d.ma,C=d.U,F=d.T;return e(!(1&d.ka)),0>=C||0>=F?0:(C=y.Ib(d,y),y.Jb!=null&&y.Jb(d,y,C),y.Dc+=C,1)}function xi(d){d.ma.memory=null}function be(d,y,C,F){return it(d,8)!=47?0:(y[0]=it(d,14)+1,C[0]=it(d,14)+1,F[0]=it(d,1),it(d,3)!=0?0:!d.h)}function hi(d,y){if(4>d)return d+1;var C=d-2>>1;return(2+(1&d)<>4)*d+(8-(15&C)))?C:1;var C}function bi(d,y,C){var F=$(C),U=d[y+=255&F].g-8;return 0>>0,e(8>=C.g),d.g}function qr(d,y,C){var F=d.xc;return e((y=F==0?0:d.vc[d.md*(C>>F)+(y>>F)])>te.b)*Zt;LtHt&&(gr=Ht),(0,Ll[Nr[Zr++]>>8&15])(Tt,mt+ +Sr,gt,Pt+Sr-Ht,gr-Sr,gt,Pt+Sr),Sr=gr}mt+=Ht,Pt+=Ht,++Lt&ue||(te+=Zt)}Bt!=Y.nc&&n(V,k-Dt,V,k+(Bt-ft-1)*Dt,Dt);break;case 1:for(Dt=Tt,pt=mt,Ht=(Tt=Y.Ea)-(Pt=Tt&~(gt=(mt=1<>Y.b)*Lt;ft=U),0Q.o&&(F=Q.o),C=F?C=0:(U[0]+=4*Q.v,Q.ka=C-Q.j,Q.U=Q.va-Q.v,Q.T=F-C,C=1),C){if(k=k[0],11>(C=d.ca).S){var ft=C.f.RGBA,Bt=(F=C.S,U=Q.U,Q=Q.T,Y=ft.eb,ft.A),Tt=Q;for(ft=ft.fb+d.Ma*ft.A;0F){var U=d.l.width,Q=C.ca,H=C.tb+U*F,k=d.V,V=d.Ba+d.c*F,Y=d.gc;e(d.ab==1),e(Y[0].hc==3),RE(Y[0],F,y,k,V,Q,H),ht(C,F,y,Q,H,U)}d.C=d.Ma=y}function qt(d,y,C,F,U,Q,H){var k=d.$/F,V=d.$%F,Y=d.m,ft=d.s,Bt=C+d.$,Tt=Bt;U=C+F*U;var mt=C+F*Q,Dt=280+ft.ua,Lt=d.Pb?k:16777216,pt=0=Lt){var ue=Bt-C;e((Lt=d).Pb),Lt.wd=Lt.m,Lt.xd=ue,0Ne.g?(q(Ut,Ut.u+Ne.g),ue[Zt]=Ne.value,Ut=0):(q(Ut,Ut.u+Ne.g-256),e(256<=Ne.value),Ut=Ne.value),Ut==0&&(Ht=!0)}else Ut=bi(Pt.G[0],Pt.H[0],Y);if(Y.h)break;if(Ht||256>Ut){if(!Ht)if(Pt.nd)y[Bt]=(Pt.qb|Ut<<8)>>>0;else{if(at(Y),Ht=bi(Pt.G[1],Pt.H[1],Y),at(Y),ue=bi(Pt.G[2],Pt.H[2],Y),Zt=bi(Pt.G[3],Pt.H[3],Y),Y.h)break;y[Bt]=(Zt<<24|Ht<<16|Ut<<8|ue)>>>0}if(Ht=!1,++Bt,++V>=F&&(V=0,++k,H!=null&&k<=Q&&!(k%16)&&H(d,k),pt!=null))for(;Tt>>pt.Mb]=Ut}else if(280>Ut){if(Ut=hi(Ut-256,Y),ue=bi(Pt.G[4],Pt.H[4],Y),at(Y),ue=Dn(F,ue=hi(ue,Y)),Y.h)break;if(Bt-C=F;)V-=F,++k,H!=null&&k<=Q&&!(k%16)&&H(d,k);if(e(Bt<=U),V>&&(Pt=qr(ft,V,k)),pt!=null)for(;Tt>>pt.Mb]=Ut}else{if(!(Ut>>pt.Mb]=Ut;Ut=Bt,e(!(Ht>>>(ue=pt).Xa)),y[Ut]=ue.X[Ht],Ht=!0}Ht||e(Y.h==K(Y))}if(d.Pb&&Y.h&&BtQ?Q:k),d.a=0,d.$=Bt-C}return 1}return d.a=3,0}function er(d){e(d!=null),d.vc=null,d.yc=null,d.Ya=null;var y=d.Wa;y!=null&&(y.X=null),d.vb=null,e(d!=null)}function Or(){var d=new LE;return d==null?null:(d.a=0,d.xb=gO,on("Predictor","VP8LPredictors"),on("Predictor","VP8LPredictors_C"),on("PredictorAdd","VP8LPredictorsAdd"),on("PredictorAdd","VP8LPredictorsAdd_C"),ky=ie,Qo=Xt,ls=Kt,Ol=Xe,Qs=Re,SA=pr,ef=Ie,T.VP8LMapColor32b=Fd,T.VP8LMapColor8b=ME,d)}function sn(d,y,C,F,U){var Q=1,H=[d],k=[y],V=F.m,Y=F.s,ft=null,Bt=0;t:for(;;){if(C)for(;Q&&it(V,1);){var Tt=H,mt=k,Dt=F,Lt=1,pt=Dt.m,gt=Dt.gc[Dt.ab],Pt=it(pt,2);if(Dt.Oc&1<=Dt.ab),Pt){case 0:case 1:gt.b=it(pt,3)+2,Lt=sn(bt(gt.Ea,gt.b),bt(gt.nc,gt.b),0,Dt,gt.K),gt.K=gt.K[0];break;case 3:var Ht,Ut=it(pt,8)+1,ue=16>te.b),Zr=a(Nr);if(Zr==null)Ht=0;else{var Sr=te.K[0],gr=te.w;for(Zr[0]=te.K[0][0],Zt=1;Zt<1*Ne;++Zt)Zr[Zt]=dt(Sr[gr+Zt],Zr[Zt-1]);for(;Zt<4*Nr;++Zt)Zr[Zt]=0;te.K[0]=null,te.K[0]=Zr,Ht=1}}Lt=Ht;break;case 2:break;default:e(0)}Q=Lt}}if(H=H[0],k=k[0],Q&&it(V,1)&&!(Q=1<=(Bt=it(V,4))&&11>=Bt)){F.a=3;break t}var An;if(An=Q)e:{var rn,tr,pi,qa=F,di=H,Za=k,Jr=Bt,Eo=C,Co=qa.m,$i=qa.s,ta=[null],La=1,$o=0,Hs=Zk[Jr];r:for(;;){if(Eo&&it(Co,1)){var Vi=it(Co,3)+2,LA=bt(di,Vi),cc=bt(Za,Vi),of=LA*cc;if(!sn(LA,cc,0,qa,ta))break r;for(ta=ta[0],$i.xc=Vi,rn=0;rn>8&65535;ta[rn]=Dl,Dl>=La&&(La=Dl+1)}}if(Co.h)break r;for(tr=0;5>tr;++tr){var Qn=dO[tr];!tr&&0=SO),Jy=xO;var Nd=a($o);if(Jy==null||Nd==null||$E==null){qa.a=1;break r}var tm=$E;for(rn=pi=0;rntr;++tr){Qn=dO[tr],sf[tr]=tm,Af[tr]=pi,!tr&&0om)break n}else KE=om;for(Ud=0;Udlf)MO[Ud++]=lf,lf!=0&&(NO=lf);else{var S9=lf==16,DO=lf-16,x9=Yk[DO],QO=it(Hl,zk[DO])+x9;if(Ud+QO>om)break n;for(var b9=S9?NO:0;0=tr){var Dd,YE=Nd[0];for(Dd=1;DdYE&&(YE=Nd[Dd]);IO+=YE}}if(fs.nd=em,fs.Qb=0,em&&(fs.qb=(sf[3][Af[3]+0].value<<24|sf[1][Af[1]+0].value<<16|sf[2][Af[2]+0].value)>>>0,bO==0&&256>sf[0][Af[0]+0].value&&(fs.Qb=1,fs.qb+=sf[0][Af[0]+0].value<<8)),fs.jc=!fs.Qb&&6>IO,fs.jc){var sm,OA=fs;for(sm=0;sm>=en(Am,8,kl),Gl>>=en(OA.G[1][OA.H[1]+Gl],16,kl),Gl>>=en(OA.G[2][OA.H[2]+Gl],0,kl),en(OA.G[3][OA.H[3]+Gl],24,kl))}}}$i.vc=ta,$i.Wb=La,$i.Ya=Jy,$i.yc=$E,An=1;break e}An=0}if(!(Q=An)){F.a=3;break t}if(0F+1?[]:0),!(U.lengthU)return Xn(d,7,"Truncated header.");var Q=C[F+0]|C[F+1]<<8|C[F+2]<<16,H=d.Od;if(H.Rb=!(1&Q),H.td=Q>>1&7,H.yd=Q>>4&1,H.ub=Q>>5,3U)return Xn(d,7,"cannot parse picture header");if(!Ty(C,F,U))return Xn(d,3,"Bad code word");k.c=16383&(C[F+4]<<8|C[F+3]),k.Td=C[F+4]>>6,k.i=16383&(C[F+6]<<8|C[F+5]),k.Ud=C[F+6]>>6,F+=7,U-=7,d.za=k.c+15>>4,d.Ub=k.i+15>>4,y.width=k.c,y.height=k.i,y.Da=0,y.j=0,y.v=0,y.va=y.width,y.o=y.height,y.da=0,y.ib=y.width,y.hb=y.height,y.U=y.width,y.T=y.height,i((Q=d.Pa).jb,0,255,Q.jb.length),e((Q=d.Qa)!=null),Q.Cb=0,Q.Bb=0,Q.Fb=1,i(Q.Zb,0,0,Q.Zb.length),i(Q.Lb,0,0,Q.Lb)}if(H.ub>U)return Xn(d,7,"bad partition length");X(Q=d.m,C,F,H.ub),F+=H.ub,U-=H.ub,H.Rb&&(k.Ld=wt(Q),k.Kd=wt(Q)),k=d.Qa;var V,Y=d.Pa;if(e(Q!=null),e(k!=null),k.Cb=wt(Q),k.Cb){if(k.Bb=wt(Q),wt(Q)){for(k.Fb=wt(Q),V=0;4>V;++V)k.Zb[V]=wt(Q)?tt(Q,7):0;for(V=0;4>V;++V)k.Lb[V]=wt(Q)?tt(Q,6):0}if(k.Bb)for(V=0;3>V;++V)Y.jb[V]=wt(Q)?z(Q,8):255}else k.Bb=0;if(Q.Ka)return Xn(d,3,"cannot parse segment header");if((k=d.ed).zd=wt(Q),k.Tb=z(Q,6),k.wb=z(Q,3),k.Pc=wt(Q),k.Pc&&wt(Q)){for(Y=0;4>Y;++Y)wt(Q)&&(k.vd[Y]=tt(Q,6));for(Y=0;4>Y;++Y)wt(Q)&&(k.od[Y]=tt(Q,6))}if(d.L=k.Tb==0?0:k.zd?1:2,Q.Ka)return Xn(d,3,"cannot parse filter header");var ft=U;if(U=V=F,F=V+ft,k=ft,d.Xb=(1<k&&(Bt=k),X(d.Jc[+ft],C,V,Bt),V+=Bt,k-=Bt,U+=3}X(d.Jc[+Y],C,V,k),C=VBt;++Bt){if(ft.Cb){var Tt=ft.Zb[Bt];ft.Fb||(Tt+=C)}else{if(0>16,8>mt.Eb[1]&&(mt.Eb[1]=8),mt.Qc[0]=HE[_o(Tt+Y,117)],mt.Qc[1]=GE[_o(Tt+V,127)],mt.lc=Tt+V}if(!H.Rb)return Xn(d,4,"Not a key frame.");for(wt(Q),H=d.Pa,C=0;4>C;++C){for(U=0;8>U;++U)for(F=0;3>F;++F)for(k=0;11>k;++k)Y=W(Q,i9[C][U][F][k])?z(Q,8):r9[C][U][F][k],H.Wc[C][U].Yb[F][k]=Y;for(U=0;17>U;++U)H.Xc[C][U]=H.Wc[C][a9[U]]}return d.kc=wt(Q),d.kc&&(d.Bd=z(Q,8)),d.cb=1}function xy(d,y,C,F,U,Q,H){var k=y[U].Yb[C];for(C=0;16>U;++U){if(!W(d,k[C+0]))return U;for(;!W(d,k[C+1]);)if(k=y[++U].Yb[0],C=0,U==16)return 16;var V=y[U+1].Yb;if(W(d,k[C+2])){var Y=d,ft=0;if(W(Y,(Tt=k)[(Bt=C)+3]))if(W(Y,Tt[Bt+6])){for(k=0,Bt=2*(ft=W(Y,Tt[Bt+8]))+(Tt=W(Y,Tt[Bt+9+ft])),ft=0,Tt=t9[Bt];Tt[k];++k)ft+=ft+W(Y,Tt[k]);ft+=3+(8<(Y=d).b&&vt(Y);var Bt,Tt=Y.b,mt=(Bt=Y.Ca>>1)-(Y.I>>Tt)>>31;--Y.b,Y.Ca+=mt,Y.Ca|=1,Y.I-=(Bt+1&mt)<>4,d.zb=y.j-C>>4,0>d.yb&&(d.yb=0),0>d.zb&&(d.zb=0)),d.Va=y.o+15+C>>4,d.Hb=y.va+15+C>>4,d.Hb>d.za&&(d.Hb=d.za),d.Va>d.Ub&&(d.Va=d.Ub),0C;++C){var U;if(d.Qa.Cb){var Q=d.Qa.Lb[C];d.Qa.Fb||(Q+=F.Tb)}else Q=F.Tb;for(U=0;1>=U;++U){var H=d.gd[C][U],k=Q;if(F.Pc&&(k+=F.vd[0],U&&(k+=F.od[0])),0<(k=0>k?0:63>2:V>>1)>9-F.wb&&(V=9-F.wb),1>V&&(V=1),H.dd=V,H.tc=2*k+V,H.ld=40<=k?2:15<=k?1:0}else H.tc=0;H.La=U}}}C=0}else Xn(d,6,"Frame setup failed"),C=d.a;if(C=C==0){if(C){d.$c=0,0d.Vb){if(d.Vb=0,d.Ec=a(H),d.Fc=0,d.Ec==null){C=Xn(d,1,"no memory during frame initialization.");break t}d.Vb=H}H=d.Ec,k=d.Fc,d.Ac=H,d.Bc=k,k+=F,d.Gd=o(Y,By),d.Hd=0,d.rb=o(ft+1,Cy),d.sb=1,d.wa=Bt?o(Bt,Hh):null,d.Y=0,d.D.Nb=0,d.D.wa=d.wa,d.D.Y=d.Y,0=C;++C)AO[255+C]=0>C?-C:C;for(C=-1020;1020>=C;++C)lO[1020+C]=-128>C?-128:127=C;++C)uO[112+C]=-16>C?-16:15=C;++C)cO[255+C]=0>C?0:255Ut;++Ut){var Sr,gr=Ne[0+Ut];for(Sr=0;4>Sr;++Sr){gr=n9[ue[Zt+Sr]][gr];for(var An=vO[W(Ht,gr[0])];0>3;for(An=0;256>An;An+=16)Ut[Nr+An]=Za}pi=1,qa=Zt[0]}var Jr=15&Ht.la,Eo=15&Zr.la;for(An=0;4>An;++An){var Co=1&Eo;for(Za=tr=0;4>Za;++Za)Jr=Jr>>1|(Co=(di=Rd(ue,qa,di=Co+(1&Jr),te.Sc,pi,Ut,Nr))>pi)<<7,tr=tr<<2|(3>=4,Eo=Eo>>1|Co<<7,Sr=(Sr<<8|tr)>>>0}for(qa=Jr,pi=Eo>>4,rn=0;4>rn;rn+=2){for(tr=0,Jr=Ht.la>>4+rn,Eo=Zr.la>>4+rn,An=0;2>An;++An){for(Co=1&Eo,Za=0;2>Za;++Za)di=Co+(1&Jr),Jr=Jr>>1|(Co=0<(di=Rd(ue,Zt[2],di,te.Qc,0,Ut,Nr)))<<3,tr=tr<<2|(3>=2,Eo=Eo>>1|Co<<5}gr|=tr<<4*rn,qa|=Jr<<4<=pt.zb&&pt.M<=pt.Va,pt.Aa==0)t:{if(Lt.M=pt.M,Lt.uc=Ht,Td(pt,Lt),Pt=1,Lt=(tr=pt.D).Nb,Ht=(gr=Zy[pt.L])*pt.R,ue=gr/2*pt.B,An=16*Lt*pt.R,Za=8*Lt*pt.B,Zt=pt.sa,Ne=pt.ta-Ht+An,te=pt.qa,Ut=pt.ra-ue+Za,Nr=pt.Ha,Zr=pt.Ia-ue+Za,Eo=(Jr=tr.M)==0,Sr=Jr>=pt.Va-1,pt.Aa==2&&Td(pt,tr),tr.uc)for(Co=(di=pt).D.M,e(di.D.uc),tr=di.yb;trgt.o&&(Jr=gt.o),gt.F=null,gt.J=null,pt.Fa!=null&&0>1),gt.W+=pt.B*(gr>>1),gt.F!=null&&(gt.J+=gt.width*gr)),tr>1,gt.W+=gt.v>>1,gt.F!=null&&(gt.J+=gt.v),gt.ka=tr-gt.j,gt.U=gt.va-gt.v,gt.T=Jr-tr,Pt=gt.put(gt))}Lt+1!=pt.Ic||Sr||(n(pt.sa,pt.ta-Ht,Zt,Ne+16*pt.R,Ht),n(pt.qa,pt.ra-ue,te,Ut+8*pt.B,ue),n(pt.Ha,pt.Ia-ue,Nr,Zr+8*pt.B,ue))}if(!Pt)return Xn(mt,6,"Output aborted.")}return 1}(d,y)),y.bc!=null&&y.bc(y),C&=1}return C?(d.cb=0,C):0}function as(d,y,C,F,U){U=d[y+C+32*F]+(U>>3),d[y+C+32*F]=-256&U?0>U?0:255:U}function kh(d,y,C,F,U,Q){as(d,y,0,C,F+U),as(d,y,1,C,F+Q),as(d,y,2,C,F-Q),as(d,y,3,C,F-U)}function Ya(d){return(20091*d>>16)+d}function hd(d,y,C,F){var U,Q=0,H=a(16);for(U=0;4>U;++U){var k=d[y+0]+d[y+8],V=d[y+0]-d[y+8],Y=(35468*d[y+4]>>16)-Ya(d[y+12]),ft=Ya(d[y+4])+(35468*d[y+12]>>16);H[Q+0]=k+ft,H[Q+1]=V+Y,H[Q+2]=V-Y,H[Q+3]=k-ft,Q+=4,y++}for(U=Q=0;4>U;++U)k=(d=H[Q+0]+4)+H[Q+8],V=d-H[Q+8],Y=(35468*H[Q+4]>>16)-Ya(H[Q+12]),as(C,F,0,0,k+(ft=Ya(H[Q+4])+(35468*H[Q+12]>>16))),as(C,F,1,0,V+Y),as(C,F,2,0,V-Y),as(C,F,3,0,k-ft),Q++,F+=32}function by(d,y,C,F){var U=d[y+0]+4,Q=35468*d[y+4]>>16,H=Ya(d[y+4]),k=35468*d[y+1]>>16;kh(C,F,0,U+H,d=Ya(d[y+1]),k),kh(C,F,1,U+Q,d,k),kh(C,F,2,U-Q,d,k),kh(C,F,3,U-H,d,k)}function dE(d,y,C,F,U){hd(d,y,C,F),U&&hd(d,y+16,C,F+4)}function Iy(d,y,C,F){rf(d,y+0,C,F,1),rf(d,y+32,C,F+128,1)}function vE(d,y,C,F){var U;for(d=d[y+0]+4,U=0;4>U;++U)for(y=0;4>y;++y)as(C,F,y,U,d)}function Fy(d,y,C,F){d[y+0]&&cs(d,y+0,C,F),d[y+16]&&cs(d,y+16,C,F+4),d[y+32]&&cs(d,y+32,C,F+128),d[y+48]&&cs(d,y+48,C,F+128+4)}function gE(d,y,C,F){var U,Q=a(16);for(U=0;4>U;++U){var H=d[y+0+U]+d[y+12+U],k=d[y+4+U]+d[y+8+U],V=d[y+4+U]-d[y+8+U],Y=d[y+0+U]-d[y+12+U];Q[0+U]=H+k,Q[8+U]=H-k,Q[4+U]=Y+V,Q[12+U]=Y-V}for(U=0;4>U;++U)H=(d=Q[0+4*U]+3)+Q[3+4*U],k=Q[1+4*U]+Q[2+4*U],V=Q[1+4*U]-Q[2+4*U],Y=d-Q[3+4*U],C[F+0]=H+k>>3,C[F+16]=Y+V>>3,C[F+32]=H-k>>3,C[F+48]=Y-V>>3,F+=64}function fd(d,y,C){var F,U=y-32,Q=wo,H=255-d[U-1];for(F=0;FC;++C)n(d,y+32*C,d,y-32,16)}function $h(d,y){var C;for(C=16;0F;++F)i(y,C+32*F,d,16)}function Ly(d,y){var C,F=16;for(C=0;16>C;++C)F+=d[y-1+32*C]+d[y+C-32];Vh(F>>5,d,y)}function ca(d,y){var C,F=8;for(C=0;16>C;++C)F+=d[y-1+32*C];Vh(F>>4,d,y)}function wE(d,y){var C,F=8;for(C=0;16>C;++C)F+=d[y+C-32];Vh(F>>4,d,y)}function Oy(d,y){Vh(128,d,y)}function Ve(d,y,C){return d+2*y+C+2>>2}function EE(d,y){var C,F=y-32;for(F=new Uint8Array([Ve(d[F-1],d[F+0],d[F+1]),Ve(d[F+0],d[F+1],d[F+2]),Ve(d[F+1],d[F+2],d[F+3]),Ve(d[F+2],d[F+3],d[F+4])]),C=0;4>C;++C)n(d,y+32*C,F,0,F.length)}function CE(d,y){var C=d[y-1],F=d[y-1+32],U=d[y-1+64],Q=d[y-1+96];It(d,y+0,16843009*Ve(d[y-1-32],C,F)),It(d,y+32,16843009*Ve(C,F,U)),It(d,y+64,16843009*Ve(F,U,Q)),It(d,y+96,16843009*Ve(U,Q,Q))}function Ds(d,y){var C,F=4;for(C=0;4>C;++C)F+=d[y+C-32]+d[y-1+32*C];for(F>>=3,C=0;4>C;++C)i(d,y+32*C,F,4)}function Ry(d,y){var C=d[y-1+0],F=d[y-1+32],U=d[y-1+64],Q=d[y-1-32],H=d[y+0-32],k=d[y+1-32],V=d[y+2-32],Y=d[y+3-32];d[y+0+96]=Ve(F,U,d[y-1+96]),d[y+1+96]=d[y+0+64]=Ve(C,F,U),d[y+2+96]=d[y+1+64]=d[y+0+32]=Ve(Q,C,F),d[y+3+96]=d[y+2+64]=d[y+1+32]=d[y+0+0]=Ve(H,Q,C),d[y+3+64]=d[y+2+32]=d[y+1+0]=Ve(k,H,Q),d[y+3+32]=d[y+2+0]=Ve(V,k,H),d[y+3+0]=Ve(Y,V,k)}function My(d,y){var C=d[y+1-32],F=d[y+2-32],U=d[y+3-32],Q=d[y+4-32],H=d[y+5-32],k=d[y+6-32],V=d[y+7-32];d[y+0+0]=Ve(d[y+0-32],C,F),d[y+1+0]=d[y+0+32]=Ve(C,F,U),d[y+2+0]=d[y+1+32]=d[y+0+64]=Ve(F,U,Q),d[y+3+0]=d[y+2+32]=d[y+1+64]=d[y+0+96]=Ve(U,Q,H),d[y+3+32]=d[y+2+64]=d[y+1+96]=Ve(Q,H,k),d[y+3+64]=d[y+2+96]=Ve(H,k,V),d[y+3+96]=Ve(k,V,V)}function jh(d,y){var C=d[y-1+0],F=d[y-1+32],U=d[y-1+64],Q=d[y-1-32],H=d[y+0-32],k=d[y+1-32],V=d[y+2-32],Y=d[y+3-32];d[y+0+0]=d[y+1+64]=Q+H+1>>1,d[y+1+0]=d[y+2+64]=H+k+1>>1,d[y+2+0]=d[y+3+64]=k+V+1>>1,d[y+3+0]=V+Y+1>>1,d[y+0+96]=Ve(U,F,C),d[y+0+64]=Ve(F,C,Q),d[y+0+32]=d[y+1+96]=Ve(C,Q,H),d[y+1+32]=d[y+2+96]=Ve(Q,H,k),d[y+2+32]=d[y+3+96]=Ve(H,k,V),d[y+3+32]=Ve(k,V,Y)}function pd(d,y){var C=d[y+0-32],F=d[y+1-32],U=d[y+2-32],Q=d[y+3-32],H=d[y+4-32],k=d[y+5-32],V=d[y+6-32],Y=d[y+7-32];d[y+0+0]=C+F+1>>1,d[y+1+0]=d[y+0+64]=F+U+1>>1,d[y+2+0]=d[y+1+64]=U+Q+1>>1,d[y+3+0]=d[y+2+64]=Q+H+1>>1,d[y+0+32]=Ve(C,F,U),d[y+1+32]=d[y+0+96]=Ve(F,U,Q),d[y+2+32]=d[y+1+96]=Ve(U,Q,H),d[y+3+32]=d[y+2+96]=Ve(Q,H,k),d[y+3+64]=Ve(H,k,V),d[y+3+96]=Ve(k,V,Y)}function BE(d,y){var C=d[y-1+0],F=d[y-1+32],U=d[y-1+64],Q=d[y-1+96];d[y+0+0]=C+F+1>>1,d[y+2+0]=d[y+0+32]=F+U+1>>1,d[y+2+32]=d[y+0+64]=U+Q+1>>1,d[y+1+0]=Ve(C,F,U),d[y+3+0]=d[y+1+32]=Ve(F,U,Q),d[y+3+32]=d[y+1+64]=Ve(U,Q,Q),d[y+3+64]=d[y+2+64]=d[y+0+96]=d[y+1+96]=d[y+2+96]=d[y+3+96]=Q}function TE(d,y){var C=d[y-1+0],F=d[y-1+32],U=d[y-1+64],Q=d[y-1+96],H=d[y-1-32],k=d[y+0-32],V=d[y+1-32],Y=d[y+2-32];d[y+0+0]=d[y+2+32]=C+H+1>>1,d[y+0+32]=d[y+2+64]=F+C+1>>1,d[y+0+64]=d[y+2+96]=U+F+1>>1,d[y+0+96]=Q+U+1>>1,d[y+3+0]=Ve(k,V,Y),d[y+2+0]=Ve(H,k,V),d[y+1+0]=d[y+3+32]=Ve(C,H,k),d[y+1+32]=d[y+3+64]=Ve(F,C,H),d[y+1+64]=d[y+3+96]=Ve(U,F,C),d[y+1+96]=Ve(Q,U,F)}function SE(d,y){var C;for(C=0;8>C;++C)n(d,y+32*C,d,y-32,8)}function dd(d,y){var C;for(C=0;8>C;++C)i(d,y,d[y-1],8),y+=32}function ac(d,y,C){var F;for(F=0;8>F;++F)i(y,C+32*F,d,8)}function xl(d,y){var C,F=8;for(C=0;8>C;++C)F+=d[y+C-32]+d[y-1+32*C];ac(F>>4,d,y)}function xE(d,y){var C,F=4;for(C=0;8>C;++C)F+=d[y+C-32];ac(F>>3,d,y)}function oc(d,y){var C,F=4;for(C=0;8>C;++C)F+=d[y-1+32*C];ac(F>>3,d,y)}function vd(d,y){ac(128,d,y)}function Kh(d,y,C){var F=d[y-C],U=d[y+0],Q=3*(U-F)+NE[1020+d[y-2*C]-d[y+C]],H=Vy[112+(Q+4>>3)];d[y-C]=wo[255+F+Vy[112+(Q+3>>3)]],d[y+0]=wo[255+U-H]}function Ny(d,y,C,F){var U=d[y+0],Q=d[y+C];return Go[255+d[y-2*C]-d[y-C]]>F||Go[255+Q-U]>F}function Py(d,y,C,F){return 4*Go[255+d[y-C]-d[y+0]]+Go[255+d[y-2*C]-d[y+C]]<=F}function Uy(d,y,C,F,U){var Q=d[y-3*C],H=d[y-2*C],k=d[y-C],V=d[y+0],Y=d[y+C],ft=d[y+2*C],Bt=d[y+3*C];return 4*Go[255+k-V]+Go[255+H-Y]>F?0:Go[255+d[y-4*C]-Q]<=U&&Go[255+Q-H]<=U&&Go[255+H-k]<=U&&Go[255+Bt-ft]<=U&&Go[255+ft-Y]<=U&&Go[255+Y-V]<=U}function Dy(d,y,C,F){var U=2*F+1;for(F=0;16>F;++F)Py(d,y+F,C,U)&&Kh(d,y+F,C)}function BA(d,y,C,F){var U=2*F+1;for(F=0;16>F;++F)Py(d,y+F*C,1,U)&&Kh(d,y+F*C,1)}function bl(d,y,C,F){var U;for(U=3;0>7,gt=18*Pt+63>>7,Pt=9*Pt+63>>7;V[Y-3*ft]=wo[255+V[Y-3*ft]+Pt],V[Y-2*ft]=wo[255+Bt+gt],V[Y-ft]=wo[255+Tt+pt],V[Y+0]=wo[255+mt-pt],V[Y+ft]=wo[255+Dt-gt],V[Y+2*ft]=wo[255+Lt-Pt]}y+=F}}function os(d,y,C,F,U,Q,H,k){for(Q=2*Q+1;0>3)],Lt=Vy[112+(Lt+3>>3)],pt=Dt+1>>1;V[Y-2*ft]=wo[255+V[Y-2*ft]+pt],V[Y-ft]=wo[255+Bt+Lt],V[Y+0]=wo[255+Tt-Dt],V[Y+ft]=wo[255+mt-pt]}y+=F}}function gd(d,y,C,F,U,Q){Il(d,y,C,1,16,F,U,Q)}function sc(d,y,C,F,U,Q){Il(d,y,1,C,16,F,U,Q)}function IE(d,y,C,F,U,Q){var H;for(H=3;0Y?0:255:Y)&255,Y=V,U[Q+k]=ft}}function Cd(d,y,C,F){var U=y.width,Q=y.o;if(e(d!=null&&y!=null),0>C||0>=F||C+F>Q)return null;if(!d.Cc){if(d.ga==null){var H;if(d.ga=new Xh,(H=d.ga==null)||(H=y.width*y.o,e(d.Gb.length==0),d.Gb=a(H),d.Uc=0,d.Gb==null?H=0:(d.mb=d.Gb,d.nb=d.Uc,d.rc=null,H=1),H=!H),!H){H=d.ga;var k=d.Fa,V=d.P,Y=d.qc,ft=d.mb,Bt=d.nb,Tt=V+1,mt=Y-1,Dt=H.l;if(e(k!=null&&ft!=null&&y!=null),Ul[0]=null,Ul[1]=Ac,Ul[2]=Ed,Ul[3]=Fl,H.ca=ft,H.tb=Bt,H.c=y.width,H.i=y.height,e(0=Y)y=0;else if(H.$a=k[V+0]>>0&3,H.Z=k[V+0]>>2&3,H.Lc=k[V+0]>>4&3,V=k[V+0]>>6&3,0>H.$a||1=H.c*H.i;H=!y}if(H)return null;d.ga.Lc!=1?d.Ga=0:F=Q-C}e(d.ga!=null),e(C+F<=Q);t:{if(y=(k=d.ga).c,Q=k.l.o,k.$a==0){if(Tt=d.rc,mt=d.Vc,Dt=d.Fa,V=d.P+1+C*y,Y=d.mb,ft=d.nb+C*y,e(V<=d.P+d.qc),k.Z!=0)for(e(Ul[k.Z]!=null),H=0;H=y)y=1;else if(k.ic||Ct(),k.ic){k=H.V,Tt=H.Ba,mt=H.c;var Lt=H.i,pt=(Dt=1,V=H.$/mt,Y=H.$%mt,ft=H.m,Bt=H.s,H.$),gt=mt*Lt,Pt=mt*y,Ht=Bt.wc,Ut=pt(Lt=bi(Ut.G[0],Ut.H[0],ft)))k[Tt+pt]=Lt,++pt,++Y>=mt&&(Y=0,++V<=y&&!(V%16)&&Qt(H,V));else{if(!(280>Lt)){Dt=0;break e}Lt=hi(Lt-256,ft);var ue,Zt=bi(Ut.G[4],Ut.H[4],ft);if(at(ft),!(pt>=(Zt=Dn(mt,Zt=hi(Zt,ft)))&>-pt>=Lt)){Dt=0;break e}for(ue=0;ue=mt;)Y-=mt,++V<=y&&!(V%16)&&Qt(H,V);pty?y:V);break e}!Dt||ft.h&&pt=Q&&(d.Cc=1),F=1}if(!F)return null;if(d.Cc&&((F=d.ga)!=null&&(F.mc=null),d.ga=null,0>23,k[V+4*H+1]=k[V+4*H+1]*Bt>>23,k[V+4*H+2]=k[V+4*H+2]*Bt>>23)}y+=Q}}function D(d,y,C,F,U){for(;0>4)*V>>16;d[y+2*Q+0]=(240&H|H>>4)*V>>16&240|(15&H|H<<4)*V>>16>>4&15,d[y+2*Q+1]=240&Y|k}y+=U}}function et(d,y,C,F,U,Q,H,k){var V,Y,ft=255;for(Y=0;Y>8}function Ct(){Nl=w,af=D,$y=et,sO=lt}function Rt(d,y,C){T[d]=function(F,U,Q,H,k,V,Y,ft,Bt,Tt,mt,Dt,Lt,pt,gt,Pt,Ht){var Ut,ue=Ht-1>>1,Zt=k[V+0]|Y[ft+0]<<16,Ne=Bt[Tt+0]|mt[Dt+0]<<16;e(F!=null);var te=3*Zt+Ne+131074>>2;for(y(F[U+0],255&te,te>>16,Lt,pt),Q!=null&&(te=3*Ne+Zt+131074>>2,y(Q[H+0],255&te,te>>16,gt,Pt)),Ut=1;Ut<=ue;++Ut){var Nr=k[V+Ut]|Y[ft+Ut]<<16,Zr=Bt[Tt+Ut]|mt[Dt+Ut]<<16,Sr=Zt+Nr+Ne+Zr+524296,gr=Sr+2*(Nr+Ne)>>3;te=gr+Zt>>1,Zt=(Sr=Sr+2*(Zt+Zr)>>3)+Nr>>1,y(F[U+2*Ut-1],255&te,te>>16,Lt,pt+(2*Ut-1)*C),y(F[U+2*Ut-0],255&Zt,Zt>>16,Lt,pt+(2*Ut-0)*C),Q!=null&&(te=Sr+Ne>>1,Zt=gr+Zr>>1,y(Q[H+2*Ut-1],255&te,te>>16,gt,Pt+(2*Ut-1)*C),y(Q[H+2*Ut+0],255&Zt,Zt>>16,gt,Pt+(2*Ut+0)*C)),Zt=Nr,Ne=Zr}1&Ht||(te=3*Zt+Ne+131074>>2,y(F[U+Ht-1],255&te,te>>16,Lt,pt+(Ht-1)*C),Q!=null&&(te=3*Ne+Zt+131074>>2,y(Q[H+Ht-1],255&te,te>>16,gt,Pt+(Ht-1)*C)))}}function jt(){ko[jy]=s9,ko[Ky]=yO,ko[fO]=A9,ko[zy]=mO,ko[Yy]=_O,ko[PE]=wO,ko[pO]=l9,ko[UE]=yO,ko[DE]=mO,ko[Xy]=_O,ko[QE]=wO}function re(d){return d&~u9?0>d?0:255:d>>EO}function Fe(d,y){return re((19077*d>>8)+(26149*y>>8)-14234)}function ur(d,y,C){return re((19077*d>>8)-(6419*y>>8)-(13320*C>>8)+8708)}function Ke(d,y){return re((19077*d>>8)+(33050*y>>8)-17685)}function Tr(d,y,C,F,U){F[U+0]=Fe(d,C),F[U+1]=ur(d,y,C),F[U+2]=Ke(d,y)}function Ji(d,y,C,F,U){F[U+0]=Ke(d,y),F[U+1]=ur(d,y,C),F[U+2]=Fe(d,C)}function Wn(d,y,C,F,U){var Q=ur(d,y,C);y=Q<<3&224|Ke(d,y)>>3,F[U+0]=248&Fe(d,C)|Q>>5,F[U+1]=y}function fi(d,y,C,F,U){var Q=240&Ke(d,y)|15;F[U+0]=240&Fe(d,C)|ur(d,y,C)>>4,F[U+1]=Q}function ha(d,y,C,F,U){F[U+0]=255,Tr(d,y,C,F,U+1)}function ki(d,y,C,F,U){Ji(d,y,C,F,U),F[U+3]=255}function ss(d,y,C,F,U){Tr(d,y,C,F,U),F[U+3]=255}function _o(d,y){return 0>d?0:d>y?y:d}function TA(d,y,C){T[d]=function(F,U,Q,H,k,V,Y,ft,Bt){for(var Tt=ft+(-2&Bt)*C;ft!=Tt;)y(F[U+0],Q[H+0],k[V+0],Y,ft),y(F[U+1],Q[H+0],k[V+0],Y,ft+C),U+=2,++H,++V,ft+=2*C;1&Bt&&y(F[U+0],Q[H+0],k[V+0],Y,ft)}}function Gy(d,y,C){return C==0?d==0?y==0?6:5:y==0?4:0:C}function Bd(d,y,C,F,U){switch(d>>>30){case 3:rf(y,C,F,U,0);break;case 2:Ld(y,C,F,U);break;case 1:cs(y,C,F,U)}}function Td(d,y){var C,F,U=y.M,Q=y.Nb,H=d.oc,k=d.pc+40,V=d.oc,Y=d.pc+584,ft=d.oc,Bt=d.pc+600;for(C=0;16>C;++C)H[k+32*C-1]=129;for(C=0;8>C;++C)V[Y+32*C-1]=129,ft[Bt+32*C-1]=129;for(0C;++C)n(H,k+32*C-4,H,k+32*C+12,4);for(C=-1;8>C;++C)n(V,Y+32*C-4,V,Y+32*C+4,4),n(ft,Bt+32*C-4,ft,Bt+32*C+4,4)}var mt=d.Gd,Dt=d.Hd+F,Lt=Tt.ad,pt=Tt.Hc;if(0=d.za-1?i(gt,Pt,mt[Dt].y[15],4):n(gt,Pt,mt[Dt+1].y,0,4)),C=0;4>C;C++)gt[Pt+128+C]=gt[Pt+256+C]=gt[Pt+384+C]=gt[Pt+0+C];for(C=0;16>C;++C,pt<<=2)gt=H,Pt=k+BO[C],hs[Tt.Ob[C]](gt,Pt),Bd(pt,Lt,16*+C,gt,Pt)}else if(gt=Gy(F,U,Tt.Ob[0]),Pl[gt](H,k),pt!=0)for(C=0;16>C;++C,pt<<=2)Bd(pt,Lt,16*+C,H,k+BO[C]);for(C=Tt.Gc,gt=Gy(F,U,Tt.Dd),FA[gt](V,Y),FA[gt](ft,Bt),pt=Lt,gt=V,Pt=Y,255&(Tt=C>>0)&&(170&Tt?Rl(pt,256,gt,Pt):xA(pt,256,gt,Pt)),Tt=ft,pt=Bt,255&(C>>=8)&&(170&C?Rl(Lt,320,Tt,pt):xA(Lt,320,Tt,pt)),UC;++C)n(mt,Dt+C*d.R,H,k+32*C,16);for(C=0;8>C;++C)n(Lt,Tt+C*d.B,V,Y+32*C,8),n(pt,gt+C*d.B,ft,Bt+32*C,8)}}function Wh(d,y,C,F,U,Q,H,k,V){var Y=[0],ft=[0],Bt=0,Tt=V!=null?V.kd:0,mt=V??new _d;if(d==null||12>C)return 7;mt.data=d,mt.w=y,mt.ha=C,y=[y],C=[C],mt.gb=[mt.gb];t:{var Dt=y,Lt=C,pt=mt.gb;if(e(d!=null),e(Lt!=null),e(pt!=null),pt[0]=0,12<=Lt[0]&&!t(d,Dt[0],"RIFF")){if(t(d,Dt[0]+8,"WEBP")){pt=3;break t}var gt=Z(d,Dt[0]+4);if(12>gt||4294967286Lt[0]-8){pt=7;break t}pt[0]=gt,Dt[0]+=12,Lt[0]-=12}pt=0}if(pt!=0)return pt;for(gt=0pt[0])pt=7;else{if(!t(Pt,Lt[0],"VP8X")){if(Z(Pt,Lt[0]+4)!=10){pt=3;break t}if(18>pt[0]){pt=7;break t}var Zt=Z(Pt,Lt[0]+8),Ne=1+j(Pt,Lt[0]+12);if(2147483648<=Ne*(Pt=1+j(Pt,Lt[0]+15))){pt=3;break t}ue!=null&&(ue[0]=Zt),Ht!=null&&(Ht[0]=Ne),Ut!=null&&(Ut[0]=Pt),Lt[0]+=18,pt[0]-=18,te[0]=1}pt=0}}if(Bt=Bt[0],Dt=Dt[0],pt!=0)return pt;if(Lt=!!(2&Dt),!gt&&Bt)return 3;if(Q!=null&&(Q[0]=!!(16&Dt)),H!=null&&(H[0]=Lt),k!=null&&(k[0]=0),H=Y[0],Dt=ft[0],Bt&&Lt&&V==null){pt=0;break}if(4>C){pt=7;break}if(gt&&Bt||!gt&&!Bt&&!t(d,y[0],"ALPH")){C=[C],mt.na=[mt.na],mt.P=[mt.P],mt.Sa=[mt.Sa];t:{Zt=d,pt=y,gt=C;var te=mt.gb;Ht=mt.na,Ut=mt.P,ue=mt.Sa,Ne=22,e(Zt!=null),e(gt!=null),Pt=pt[0];var Nr=gt[0];for(e(Ht!=null),e(ue!=null),Ht[0]=null,Ut[0]=null,ue[0]=0;;){if(pt[0]=Pt,gt[0]=Nr,8>Nr){pt=7;break t}var Zr=Z(Zt,Pt+4);if(4294967286te){pt=3;break t}if(!t(Zt,Pt,"VP8 ")||!t(Zt,Pt,"VP8L")){pt=0;break t}if(Nr[0]gt[0])pt=7;else{if(Pt||Ne){if(te=Z(te,Zt+4),12<=Ht&&te>Ht-12){pt=3;break t}if(Tt&&te>gt[0]-8){pt=7;break t}Ut[0]=te,pt[0]+=8,gt[0]-=8,ue[0]=Ne}else ue[0]=5<=gt[0]&&te[Zt+0]==47&&!(te[Zt+4]>>5),Ut[0]=gt[0];pt=0}if(C=C[0],mt.Ja=mt.Ja[0],mt.xa=mt.xa[0],y=y[0],pt!=0)break;if(4294967286C){pt=7;break}k=H,Tt=Dt,Lt=Q,d==null||5>C?d=0:5<=C&&d[y+0]==47&&!(d[y+4]>>5)?(gt=[0],te=[0],Ht=[0],J(Ut=new R,d,y,C),be(Ut,gt,te,Ht)?(k!=null&&(k[0]=gt[0]),Tt!=null&&(Tt[0]=te[0]),Lt!=null&&(Lt[0]=Ht[0]),d=1):d=0):d=0}else{if(10>C){pt=7;break}k=Dt,d==null||10>C||!Ty(d,y+3,C-3)?d=0:(Tt=d[y+0]|d[y+1]<<8|d[y+2]<<16,Lt=16383&(d[y+7]<<8|d[y+6]),d=16383&(d[y+9]<<8|d[y+8]),1&Tt||3<(Tt>>1&7)||!(Tt>>4&1)||Tt>>5>=mt.Ja||!Lt||!d?d=0:(H&&(H[0]=Lt),k&&(k[0]=d),d=1))}if(!d||(H=H[0],Dt=Dt[0],Bt&&(Y[0]!=H||ft[0]!=Dt)))return 3;V!=null&&(V[0]=mt,V.offset=y-V.w,e(4294967286>y-V.w),e(V.offset==V.ha-C));break}return pt==0||pt==7&&Bt&&V==null?(Q!=null&&(Q[0]|=mt.na!=null&&0C||(Q&=-2,H&=-2),0>Q||0>H||0>=k||0>=V||Q+k>F||H+V>U))return 0;if(y.v=Q,y.j=H,y.va=Q+k,y.o=H+V,y.U=k,y.T=V,y.da=d!=null&&0d.S){var y=d.f.RGBA;y.fb+=(d.height-1)*y.A,y.A=-y.A}else y=d.f.kb,d=d.height,y.O+=(d-1)*y.fa,y.fa=-y.fa,y.N+=(d-1>>1)*y.Ab,y.Ab=-y.Ab,y.W+=(d-1>>1)*y.Db,y.Db=-y.Db,y.F!=null&&(y.J+=(d-1)*y.lb,y.lb=-y.lb);return 0}function qh(d,y,C,F){if(F==null||0>=d||0>=y)return 2;if(C!=null){if(C.Da){var U=C.cd,Q=C.bd,H=-2&C.v,k=-2&C.j;if(0>H||0>k||0>=U||0>=Q||H+U>d||k+Q>y)return 2;d=U,y=Q}if(C.da){if(!xt(d,y,U=[C.ib],Q=[C.hb]))return 2;d=U[0],y=Q[0]}}F.width=d,F.height=y;t:{var V=F.width,Y=F.height;if(d=F.S,0>=V||0>=Y||!(d>=jy&&13>d))d=2;else{if(0>=F.Rd&&F.sd==null){H=Q=U=y=0;var ft=(k=V*TO[d])*Y;if(11>d||(Q=(Y+1)/2*(y=(V+1)/2),d==12&&(H=(U=V)*Y)),(Y=a(ft+2*Q+H))==null){d=1;break t}F.sd=Y,11>d?((V=F.f.RGBA).eb=Y,V.fb=0,V.A=k,V.size=ft):((V=F.f.kb).y=Y,V.O=0,V.fa=k,V.Fd=ft,V.f=Y,V.N=0+ft,V.Ab=y,V.Cd=Q,V.ea=Y,V.W=0+ft+Q,V.Db=y,V.Ed=Q,d==12&&(V.F=Y,V.J=0+ft+2*Q),V.Tc=H,V.lb=U)}if(y=1,U=F.S,Q=F.width,H=F.height,U>=jy&&13>U)if(11>U)d=F.f.RGBA,y&=(k=Math.abs(d.A))*(H-1)+Q<=d.size,y&=k>=Q*TO[U],y&=d.eb!=null;else{d=F.f.kb,k=(Q+1)/2,ft=(H+1)/2,V=Math.abs(d.fa),Y=Math.abs(d.Ab);var Bt=Math.abs(d.Db),Tt=Math.abs(d.lb),mt=Tt*(H-1)+Q;y&=V*(H-1)+Q<=d.Fd,y&=Y*(ft-1)+k<=d.Cd,y=(y&=Bt*(ft-1)+k<=d.Ed)&V>=Q&Y>=k&Bt>=k,y&=d.y!=null,y&=d.f!=null,y&=d.ea!=null,U==12&&(y&=Tt>=Q,y&=mt<=d.Tc,y&=d.F!=null)}else y=0;d=y?0:2}}return d!=0||C!=null&&C.fd&&(d=xd(F)),d}var Xa=64,Zh=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Jh=24,tf=32,bd=8,Wa=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Et("Predictor0","PredictorAdd0"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(d){return d},T.Predictor2=function(d,y,C){return y[C+0]},T.Predictor3=function(d,y,C){return y[C+1]},T.Predictor4=function(d,y,C){return y[C-1]},T.Predictor5=function(d,y,C){return St(St(d,y[C+1]),y[C+0])},T.Predictor6=function(d,y,C){return St(d,y[C-1])},T.Predictor7=function(d,y,C){return St(d,y[C+0])},T.Predictor8=function(d,y,C){return St(y[C-1],y[C+0])},T.Predictor9=function(d,y,C){return St(y[C+0],y[C+1])},T.Predictor10=function(d,y,C){return St(St(d,y[C-1]),St(y[C+0],y[C+1]))},T.Predictor11=function(d,y,C){var F=y[C+0];return 0>=Vt(F>>24&255,d>>24&255,(y=y[C-1])>>24&255)+Vt(F>>16&255,d>>16&255,y>>16&255)+Vt(F>>8&255,d>>8&255,y>>8&255)+Vt(255&F,255&d,255&y)?F:d},T.Predictor12=function(d,y,C){var F=y[C+0];return(Ft((d>>24&255)+(F>>24&255)-((y=y[C-1])>>24&255))<<24|Ft((d>>16&255)+(F>>16&255)-(y>>16&255))<<16|Ft((d>>8&255)+(F>>8&255)-(y>>8&255))<<8|Ft((255&d)+(255&F)-(255&y)))>>>0},T.Predictor13=function(d,y,C){var F=y[C-1];return(Mt((d=St(d,y[C+0]))>>24&255,F>>24&255)<<24|Mt(d>>16&255,F>>16&255)<<16|Mt(d>>8&255,F>>8&255)<<8|Mt(d>>0&255,F>>0&255))>>>0};var OE=T.PredictorAdd0;T.PredictorAdd1=Yt,Et("Predictor2","PredictorAdd2"),Et("Predictor3","PredictorAdd3"),Et("Predictor4","PredictorAdd4"),Et("Predictor5","PredictorAdd5"),Et("Predictor6","PredictorAdd6"),Et("Predictor7","PredictorAdd7"),Et("Predictor8","PredictorAdd8"),Et("Predictor9","PredictorAdd9"),Et("Predictor10","PredictorAdd10"),Et("Predictor11","PredictorAdd11"),Et("Predictor12","PredictorAdd12"),Et("Predictor13","PredictorAdd13");var Id=T.PredictorAdd2;oe("ColorIndexInverseTransform","MapARGB","32b",function(d){return d>>8&255},function(d){return d}),oe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(d){return d},function(d){return d>>8&255});var ky,As=T.ColorIndexInverseTransform,Fd=T.MapARGB,RE=T.VP8LColorIndexInverseTransformAlpha,ME=T.MapAlpha,Ll=T.VP8LPredictorsAdd=[];Ll.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var Qo,ls,Ol,Qs,SA,ef,us,rf,Ld,Rl,cs,xA,lc,nf,uc,Ml,Od,Ho,bA,pn,dn,qn,Fi,IA,Nl,af,$y,sO,AO=a(511),lO=a(2041),uO=a(225),cO=a(767),hO=0,NE=lO,Vy=uO,wo=cO,Go=AO,jy=0,Ky=1,fO=2,zy=3,Yy=4,PE=5,pO=6,UE=7,DE=8,Xy=9,QE=10,zk=[2,3,7],Yk=[3,3,11],dO=[280,256,256,256,40],Xk=[0,1,1,1,0],Wk=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],qk=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Zk=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Jk=8,HE=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],GE=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Rd=null,t9=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],e9=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],vO=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],r9=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],n9=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],i9=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],a9=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Pl=[],hs=[],FA=[],o9=1,gO=2,Ul=[],ko=[];Rt("UpsampleRgbLinePair",Tr,3),Rt("UpsampleBgrLinePair",Ji,3),Rt("UpsampleRgbaLinePair",ss,4),Rt("UpsampleBgraLinePair",ki,4),Rt("UpsampleArgbLinePair",ha,4),Rt("UpsampleRgba4444LinePair",fi,2),Rt("UpsampleRgb565LinePair",Wn,2);var s9=T.UpsampleRgbLinePair,A9=T.UpsampleBgrLinePair,yO=T.UpsampleRgbaLinePair,mO=T.UpsampleBgraLinePair,_O=T.UpsampleArgbLinePair,wO=T.UpsampleRgba4444LinePair,l9=T.UpsampleRgb565LinePair,Wy=16,qy=1<F.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),F.ca.f.kb.F!=null&&Ct()),F.Pb&&0(V=C.Md)?0:100Y;++Y)12>(Bt=U.pb[Y]).lc&&(Bt.ia=V*g9[0>Bt.lc?0:Bt.lc]>>3),ft|=Bt.ia;ft&&(alert("todo:VP8InitRandom"),U.ia=1)}U.Ga=C.Id,100U.Ga&&(U.Ga=0)}pE(d,F)||(y=d.a)}}else y=d.a}y==0&&H.Oa!=null&&H.Oa.fd&&(y=xd(H.ba))}H=y}Q=H!=0?null:11>Q?k.f.RGBA.eb:k.f.kb.y}else Q=null;return Q};var TO=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(T,I){for(var M="",x=0;x<4;x++)M+=String.fromCharCode(T[I++]);return M}function u(T,I){return(T[I+0]<<0|T[I+1]<<8|T[I+2]<<16)>>>0}function c(T,I){return(T[I+0]<<0|T[I+1]<<8|T[I+2]<<16|T[I+3]<<24)>>>0}new A;var h=[0],f=[0],p=[],v=new A,m=r,g=function(T,I){var M={},x=0,S=!1,N=0,P=0;if(M.frames=[],!function($,K,q,at){for(var vt=0;vt>1&1}tt!="ANMF"&&(I+=nt)}return M}}(m,0);g.response=m,g.rgbaoutput=!0,g.dataurl=!1;var _=g.header?g.header:null,E=g.frames?g.frames:null;if(_){_.loop_counter=_.loop_count,h=[_.canvas_height],f=[_.canvas_width];for(var B=0;B>>1)&255;return g},A=function(h,f,p){var v,m,g,_,E=[],B=h.length;E[0]=4;for(var L=0;L>>tt&255,tt+=_.bits;I[N]=S>>>tt&255}}if(_.bits===16){T=(b=new Uint32Array(_.decodePixels().buffer)).length,M=new Uint8Array(T*(32/_.pixelBitlength)*_.colors),I=new Uint8Array(T*(32/_.pixelBitlength)),x=_.colors>1,N=0,P=0;for(var nt=0;N>>0&255,x&&(M[P++]=S>>>16&255,S=b[N++],M[P++]=S>>>0&255),I[nt++]=S>>>16&255;g=8}v!==r.image_compression.NONE&&e()?(h=t(M,_.width*_.colors,_.colors,v),O=t(I,_.width,1,v)):(h=M,O=I,X=void 0)}if(_.colorType===3&&(m=this.color_spaces.INDEXED,L=_.palette,_.transparency.indexed)){var it=_.transparency.indexed,_t=0;for(N=0,T=it.length;N=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i>7-s&1];this.data[o+4*s]=A.blue,this.data[o+4*s+1]=A.green,this.data[o+4*s+2]=A.red,this.data[o+4*s+3]=255}t!==0&&(this.pos+=4-t)}},vs.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),e=r%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i>4,A=15&a,l=this.palette[s];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*i+1>=this.width)break;l=this.palette[A],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}e!==0&&(this.pos+=4-e)}},vs.prototype.bit8=function(){for(var r=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i>5&e)/e*255|0,A=(a>>10&e)/e*255|0,l=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=A,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=l}this.pos+=r}},vs.prototype.bit16=function(){for(var r=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a>5&t)/t*255|0,l=(o>>11)/e*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=A,this.data[u+2]=s,this.data[u+3]=255}this.pos+=r}},vs.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var e=this.bottom_up?r:this.height-1-r,t=0;t=0;r--)for(var e=this.bottom_up?r:this.height-1-r,t=0;tn&&(i.push(r.slice(A,a)),s=0,A=a),s+=e[a],a++;return A!==a&&i.push(r.slice(A,a)),i},xN=function(r,e,t){t||(t={});var n,i,a,o,s,A,l,u=[],c=[u],h=t.textIndent||0,f=0,p=0,v=r.split(" "),m=Hm.apply(this,[" ",t])[0];if(A=t.lineIndent===-1?v[0].length+2:t.lineIndent||0){var g=Array(A).join(" "),_=[];v.map(function(B){(B=B.split(/\s*\n/)).length>1?_=_.concat(B.map(function(L,O){return(O&&L.length?` `:"")+L})):_.push(B[0])}),v=_,A=TN.apply(this,[g,t])}for(a=0,o=v.length;ae||E){if(p>e){for(s=SN.apply(this,[n,i,e-(h+f),e]),u.push(s.shift()),u=[s.pop()];s.length;)c.push([s.shift()]);p=i.slice(n.length-(u[0]?u[0].length:0)).reduce(function(B,L){return B+L},0)}else u=[n];c.push(u),h=p+A,f=m}else u.push(n),h+=f+p,f=m}return l=A?function(B,L){return(L?g:"")+B.join(" ")}:function(B){return B.join(" ")},c.map(l)},vf.splitTextToSize=function(r,e,t){var n,i=(t=t||{}).fontSize||this.internal.getFontSize(),a=function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var c=this.internal.getFont(u.fontName,u.fontStyle);return c.metadata.Unicode?{widths:c.metadata.Unicode.widths||{0:1},kerning:c.metadata.Unicode.kerning||{}}:{font:c.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);n=Array.isArray(r)?r:String(r).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=t.lineIndent;var s,A,l=[];for(s=0,A=n.length;s1){for(u=0;ue||E){if(p>e){for(s=SN.apply(this,[n,i,e-(h+f),e]),u.push(s.shift()),u=[s.pop()];s.length;)c.push([s.shift()]);p=i.slice(n.length-(u[0]?u[0].length:0)).reduce(function(B,L){return B+L},0)}else u=[n];c.push(u),h=p+A,f=m}else u.push(n),h+=f+p,f=m}return l=A?function(B,L){return(L?g:"")+B.join(" ")}:function(B){return B.join(" ")},c.map(l)},vf.splitTextToSize=function(r,e,t){var n,i=(t=t||{}).fontSize||this.internal.getFontSize(),a=function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var c=this.internal.getFont(u.fontName,u.fontStyle);return c.metadata.Unicode?{widths:c.metadata.Unicode.widths||{0:1},kerning:c.metadata.Unicode.kerning||{}}:{font:c.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);n=Array.isArray(r)?r:String(r).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=t.lineIndent;var s,A,l=[];for(s=0,A=n.length;s1){for(u=0;u>"),A("endobj");var _=l();A("<<"),A("/Type /Font"),A("/BaseFont /"+Df(s.fontName)),A("/FontDescriptor "+g+" 0 R"),A("/W "+r.API.PDFObject.convert(c)),A("/CIDToGIDMap /Identity"),A("/DW 1000"),A("/Subtype /CIDFontType2"),A("/CIDSystemInfo"),A("<<"),A("/Supplement 0"),A("/Registry (Adobe)"),A("/Ordering ("+s.encoding+")"),A(">>"),A(">>"),A("endobj"),s.objectNumber=l(),A("<<"),A("/Type /Font"),A("/Subtype /Type0"),A("/ToUnicode "+m+" 0 R"),A("/BaseFont /"+Df(s.fontName)),A("/Encoding /"+s.encoding),A("/DescendantFonts ["+_+" 0 R]"),A(">>"),A("endobj"),s.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(o){var s=o.font,A=o.out,l=o.newObject,u=o.putStream;if(s.metadata instanceof r.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var c=s.metadata.rawData,h="",f=0;f>"),A("endobj"),s.objectNumber=l();for(var g=0;g>"),A("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var o,s=a.text||"",A=a.x,l=a.y,u=a.options||{},c=a.mutex||{},h=c.pdfEscape,f=c.activeFontKey,p=c.fonts,v=f,m="",g=0,_="",E=p[v].encoding;if(p[v].encoding!=="Identity-H")return{text:s,x:A,y:l,options:u,mutex:c};for(_=s,v=f,Array.isArray(s)&&(_=s[0]),g=0;g<_.length;g+=1)p[v].metadata.hasOwnProperty("cmap")&&(o=p[v].metadata.cmap.unicode.codeMap[_[g].charCodeAt(0)]),o||_[g].charCodeAt(0)<256&&p[v].metadata.hasOwnProperty("Unicode")?m+=_[g]:m+="";var B="";return parseInt(v.slice(1))<14||E==="WinAnsiEncoding"?B=h(m,v).split("").map(function(L){return L.charCodeAt(0).toString(16)}).join(""):E==="Identity-H"&&(B=t(m,p[v])),c.isHex=!0,{text:B,x:A,y:l,options:u,mutex:c}};e.events.push(["postProcessText",function(a){var o=a.text||"",s=[],A={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var l=0;for(l=0;l","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),_=!1,E=0;this.__bidiEngine__={};var B=function(x){var S=x.charCodeAt(),N=S>>8,P=v[N];return P!==void 0?c[256*P+(255&S)]:N===252||N===253?"AL":g.test(N)?"L":N===8?"R":"N"},L=function(x){for(var S,N=0;N=S.length||(X=N[P-1])!=="EN"&&X!=="AN"||(z=S[P+1])!=="EN"&&z!=="AN"?nt="N":_&&(z="AN"),nt=z===X?z:"N";break;case"ES":nt=(X=P>0?N[P-1]:"B")==="EN"&&P+10&&N[P-1]==="EN"){nt="EN";break}if(_){nt="N";break}for(tt=P+1,J=S.length;tt=1425&&it<=2303||it===64286;if(X=S[tt],_t&&(X==="R"||X==="AL")){nt="R";break}}}nt=P<1||(X=S[P-1])==="B"?"N":N[P-1];break;case"B":_=!1,i=!0,nt=E;break;case"S":a=!0,nt="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":_=!1;break;case"BN":nt="N"}return nt},b=function(x,S,N){var P=x.split("");return N&&T(P,N,{hiLevel:E}),P.reverse(),S&&S.reverse(),P.join("")},T=function(x,S,N){var P,X,z,tt,J,nt=-1,it=x.length,_t=0,R=[],$=E?f:h,K=[];for(_=!1,i=!1,a=!1,X=0;X0)if(P===16){for(X=nt;X-1){for(X=nt;X=0&&q[W]==="WS";W--)at[W]=E}}(K,S,it)},I=function(x,S,N,P,X){if(!(X.hiLevel=x){for(J=_t+1;J=x;)J++;for(nt=_t,tt=J-1;nt=0&&(z[it]=m[nt+1])}(P,N,X),I(2,P,S,N,X),I(1,P,S,N,X),P.join("")};return this.__bidiEngine__.doBidiReorder=function(x,S,N){if(function(X,z){if(z)for(var tt=0;tt>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},r.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},r.prototype.widthOfString=function(e,t,n){var i,a,o,s;for(o=0,a=0,s=(e=""+e).length;0<=s?as;a=0<=s?++a:--a)i=e.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/t)||0;return o*(t/1e3)},r.prototype.lineHeight=function(e,t){var n;return t==null&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},r}();var Ps,Vu=function(){function r(e){this.data=e??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(e){return this.data[this.pos++]=e},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},r.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},r.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},r.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?te;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},r.prototype.writeString=function(e){var t,n,i;for(i=[],t=0,n=e.length;0<=n?tn;t=0<=n?++t:--t)i.push(this.writeByte(e.charCodeAt(t)));return i},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(e){return this.writeInt16(e)},r.prototype.readLongLong=function(){var e,t,n,i,a,o,s,A;return e=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),A=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^A)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*i+16777216*a+65536*o+256*s+A},r.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(e){return this.writeInt32(e)},r.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?ne;n=0<=e?++n:--n)t.push(this.readByte());return t},r.prototype.write=function(e){var t,n,i,a;for(a=[],n=0,i=e.length;na;i=0<=a?++i:--i)n={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[n.tag]=n}return e.prototype.encode=function(t){var n,i,a,o,s,A,l,u,c,h,f,p,v;for(v in f=Object.keys(t).length,A=Math.log(2),c=16*Math.floor(Math.log(f)/A),o=Math.floor(c/A),u=16*f-c,(i=new Vu).writeInt(this.scalarType),i.writeShort(f),i.writeShort(c),i.writeShort(o),i.writeShort(u),a=16*f,l=i.pos+a,s=null,p=[],t)for(h=t[v],i.writeString(v),i.writeInt(r(h)),i.writeInt(l),i.writeInt(h.length),p=p.concat(h),v==="head"&&(s=l),l+=h.length;l%4;)p.push(0),l++;return i.write(p),n=2981146554-r(i.data),i.pos=s+8,i.writeUInt32(n),i.data},r=function(t){var n,i,a,o;for(t=I8.call(t);t.length%4;)t.push(0);for(a=new Vu(t),i=0,n=0,o=t.length;nh;A=0<=h?++B:--B)L.push(e.readUInt16());return L}(),e.pos+=2,v=function(){var B,L;for(L=[],A=B=0;0<=h?Bh;A=0<=h?++B:--B)L.push(e.readUInt16());return L}(),l=function(){var B,L;for(L=[],A=B=0;0<=h?Bh;A=0<=h?++B:--B)L.push(e.readUInt16());return L}(),u=function(){var B,L;for(L=[],A=B=0;0<=h?Bh;A=0<=h?++B:--B)L.push(e.readUInt16());return L}(),i=(this.length-e.pos+this.offset)/2,s=function(){var B,L;for(L=[],A=B=0;0<=i?Bi;A=0<=i?++B:--B)L.push(e.readUInt16());return L}(),A=g=0,E=a.length;g=m;n=p<=m?++_:--_)u[A]===0?o=n+l[A]:(o=s[u[A]/2+(n-p)-(h-A)]||0)!==0&&(o+=l[A]),this.codeMap[n]=65535&o}e.pos=c}return r.encode=function(e,t){var n,i,a,o,s,A,l,u,c,h,f,p,v,m,g,_,E,B,L,O,b,T,I,M,x,S,N,P,X,z,tt,J,nt,it,_t,R,$,K,q,at,vt,wt,W,It,Ot,j;switch(P=new Vu,o=Object.keys(e).sort(function(Z,ut){return Z-ut}),t){case"macroman":for(v=0,m=function(){var Z=[];for(p=0;p<256;++p)Z.push(0);return Z}(),_={0:0},a={},X=0,nt=o.length;X=32768)for(A.push(0),O.push(2*(f.length+I-p)),i=J=x;x<=u?J<=u:J>=u;i=x<=u?++J:--J)f.push(n[i].new);else A.push(N-x),O.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*I+2*f.length),P.writeUInt16(0),P.writeUInt16(M),P.writeUInt16(T),P.writeUInt16(h),P.writeUInt16(b),vt=0,R=c.length;vta;i=0<=a?++i:--i)n=new FN(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var i,a;return n==null&&(n="macroman"),i=FN.encode(t,n),(a=new Vu).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},e}(),nlt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),ilt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,i;for(i=[],n=0;n<10;++n)i.push(t.readByte());return i}(),this.charRange=function(){var n,i;for(i=[],n=0;n<4;++n)i.push(t.readInt());return i}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(t.readInt());return i}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),alt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="post",e.prototype.parse=function(t){var n,i,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var o;for(i=t.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?oi;o=0<=i?++o:--o)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.posA;o=0<=A?++s:--s)l.push(t.readUInt32());return l}.call(this)}},e}(),olt=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},slt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="name",e.prototype.parse=function(t){var n,i,a,o,s,A,l,u,c,h,f;for(t.pos=this.offset,t.readShort(),n=t.readShort(),A=t.readShort(),i=[],o=0;0<=n?on;o=0<=n?++o:--o)i.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+A+t.readShort()});for(l={},o=c=0,h=i.length;cA;n=0<=A?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,c;for(c=[],n=u=0;0<=a?ua;n=0<=a?++u:--u)c.push(t.readInt16());return c}(),this.widths=function(){var u,c,h,f;for(f=[],u=0,c=(h=this.metrics).length;ua;n=0<=a?++s:--s)l.push(this.widths.push(i));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),I8=[].slice,ult=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,i,a,o,s,A,l,u,c,h;return t in this.cache?this.cache[t]:(o=this.file.loca,n=this.file.contents,i=o.indexOf(t),(a=o.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+i,s=(A=new Vu(n.read(a))).readShort(),u=A.readShort(),h=A.readShort(),l=A.readShort(),c=A.readShort(),this.cache[t]=s===-1?new hlt(A,u,h,l,c):new clt(A,s,u,h,l,c),this.cache[t]))},e.prototype.encode=function(t,n,i){var a,o,s,A,l;for(s=[],o=[],A=0,l=n.length;A0&&(a+=l)}for(var u=new Array(4*i.length),c=0;c>8,u[4*c+1]=(16711680&i[c])>>16,u[4*c]=(4278190080&i[c])>>24;return u},e}(),plt=function(){function r(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var e,t,n,i,a;for(t in i=this.font.cmap.tables[0].codeMap,e={},a=this.subset)n=a[t],e[t]=i[n];return e},r.prototype.glyphsFor=function(e){var t,n,i,a,o,s,A;for(i={},o=0,s=e.length;o0)for(a in A=this.glyphsFor(t))n=A[a],i[a]=n;return i},r.prototype.encode=function(e,t){var n,i,a,o,s,A,l,u,c,h,f,p,v,m,g;for(i in n=b8.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),f={0:0},g=n.charMap)f[(A=g[i]).old]=A.new;for(p in h=n.maxGlyphID,o)p in f||(f[p]=h++);return u=function(_){var E,B;for(E in B={},_)B[_[E]]=E;return B}(f),c=Object.keys(u).sort(function(_,E){return _-E}),v=function(){var _,E,B;for(B=[],_=0,E=c.length;_>"),a.join(` -`)}return""+t},e}();const dlt={name:"ol-control-printdialog",setup(r,e){const{control:t}=Di(In,r,e);return t.value.on(["print","error"],function(n){if(n.image)if(n.pdf){var i=new Ue({orientation:n.print.orientation,unit:n.print.unit,format:n.print.size});i.addImage(n.image,"JPEG",n.print.position[0],n.print.position[0],n.print.imageWidth,n.print.imageHeight),i.save(n.print.legend?"legend.pdf":"map.pdf")}else n.canvas.toBlob(function(a){var o=(n.print.legend?"legend.":"map.")+n.imageType.replace("image/","");LF.exports.saveAs(a,o)},n.imageType,n.quality);else console.warn("No canvas to export")}),{control:t}},props:{lang:{type:String}}};function vlt(r,e,t,n,i,a){return dr("",!0)}var ex=le(dlt,[["render",vlt]]),Mh=function(r){r||(r={});var e=ct.create("DIV",{className:(r.className||"ol-videorec")+" ol-unselectable ol-control"});ct.create("BUTTON",{type:"button",className:"ol-start",title:"start",click:function(){this.start()}.bind(this),parent:e}),ct.create("BUTTON",{type:"button",className:"ol-stop",title:"stop",click:function(){this.stop()}.bind(this),parent:e}),ct.create("BUTTON",{type:"button",className:"ol-pause",title:"pause",click:function(){this.pause()}.bind(this),parent:e}),ct.create("BUTTON",{type:"button",className:"ol-resume",title:"resume",click:function(){this.resume()}.bind(this),parent:e}),_r.call(this,{element:e,target:r.target}),this.set("framerate",30),this.set("videoBitsPerSecond",5e6),r.videoTarget==="DIALOG"?(this._dialog=new Ia({className:"ol-fullscreen-dialog",target:document.body,closeBox:!0}),this._videoTarget=this._dialog.getContentElement()):this._videoTarget=r.videoTarget,this._printCtrl=new Zu({target:ct.create("DIV")})};Cr(Mh,_r);Mh.prototype.setMap=function(r){this.getMap()&&(this.getMap().removeControl(this._printCtrl),this._dialog&&this.getMap().removeControl(this._dialog)),_r.prototype.setMap.call(this,r),this.getMap()&&(this.getMap().addControl(this._printCtrl),this._dialog&&this.getMap().addControl(this._dialog))};Mh.prototype.start=function(){var r=this._printCtrl,e=!1;function t(n){e||r.fastPrint({canvas:n},t)}r.fastPrint({},function(n){var i;try{i=n.captureStream(this.get("framerate")||30)}catch(o){this.dispatchEvent({type:"error",error:o});return}this._mediaRecorder=new MediaRecorder(i,{videoBitsPerSecond:this.get("videoBitsPerSecond")||5e6});var a=[];this._mediaRecorder.ondataavailable=function(o){a.push(o.data)},this._mediaRecorder.onstop=function(){e=!0;var o=new Blob(a,{type:"video/mp4"});if(a=[],this._videoTarget instanceof Element){var s;this._videoTarget.tagName==="VIDEO"?s=this._videoTarget:(s=this._videoTarget.querySelector("video"),s||(s=ct.create("VIDEO",{controls:"",parent:this._videoTarget}))),this._dialog&&this._dialog.show(),s.src=URL.createObjectURL(o),this.dispatchEvent({type:"stop",videoURL:s.src})}else this.dispatchEvent({type:"stop",videoURL:URL.createObjectURL(o)})}.bind(this),this._mediaRecorder.onpause=function(){e=!0,this.dispatchEvent({type:"pause"})}.bind(this),this._mediaRecorder.onresume=function(){e=!1,t(n),this.dispatchEvent({type:"resume"})}.bind(this),this._mediaRecorder.onerror=function(o){this.dispatchEvent({type:"error",error:o})}.bind(this),e=!1,t(n),this._mediaRecorder.start(),this.dispatchEvent({type:"start",canvas:n}),this.element.setAttribute("data-state","rec")}.bind(this))};Mh.prototype.stop=function(){this._mediaRecorder&&(this._mediaRecorder.stop(),this._mediaRecorder=null,this.element.setAttribute("data-state","inactive"))};Mh.prototype.pause=function(){this._mediaRecorder&&(this._mediaRecorder.pause(),this.element.setAttribute("data-state","pause"))};Mh.prototype.resume=function(){this._mediaRecorder&&(this._mediaRecorder.resume(),this.element.setAttribute("data-state","rec"))};const glt={name:"ol-control-videorecorder",emits:["start","stop"],setup(r,e){const{control:t}=Di(Mh,r,e),{downloadName:n}=Lu(r);return t.value.on("start",i=>{e.emit("start",i)}),t.value.on("stop",i=>{e.emit("stop",i),LF.exports.saveAs(i.videoURL,n.value)}),{control:t}},props:{className:{type:String},framerate:{type:Number,default:30},videoBitsPerSecond:{type:Number,default:5e6},videoTarget:{type:String},downloadName:{type:String,default:"mapVideo.mp4"}}};function ylt(r,e,t,n,i,a){return dr("",!0)}var rx=le(glt,[["render",ylt]]),du={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},mlt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),_lt={image:[Ar.POLYGON,Ar.CIRCLE,Ar.LINE_STRING,Ar.IMAGE,Ar.TEXT],hybrid:[Ar.POLYGON,Ar.LINE_STRING],vector:[]},wlt={hybrid:[Ar.IMAGE,Ar.TEXT,Ar.DEFAULT],vector:[Ar.POLYGON,Ar.CIRCLE,Ar.LINE_STRING,Ar.IMAGE,Ar.TEXT,Ar.DEFAULT]},Elt=function(r){mlt(e,r);function e(t){var n=r.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.dirty_=!1,n.renderedLayerRevision_,n.renderedPixelToCoordinateTransform_=null,n.renderedRotation_,n.tmpTransform_=oi(),n}return e.prototype.prepareTile=function(t,n,i){var a,o=t.getState();return(o===ge.LOADED||o===ge.ERROR)&&(this.updateExecutorGroup_(t,n,i),this.tileImageNeedsRender_(t)&&(a=!0)),a},e.prototype.getTile=function(t,n,i,a){var o=a.pixelRatio,s=a.viewState,A=s.resolution,l=s.projection,u=this.getLayer(),c=u.getSource().getTile(t,n,i,o,l),h=a.viewHints,f=!(h[gn.ANIMATING]||h[gn.INTERACTING]);(f||!c.wantedResolution)&&(c.wantedResolution=A);var p=this.prepareTile(c,o,l);return p&&(f||Date.now()-a.time<8)&&u.getRenderMode()!==du.VECTOR&&this.renderTileImage_(c,a),r.prototype.getTile.call(this,t,n,i,a)},e.prototype.isDrawableTile=function(t){var n=this.getLayer();return r.prototype.isDrawableTile.call(this,t)&&(n.getRenderMode()===du.VECTOR?pe(n)in t.executorGroups:t.hasContext(n))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(t){var n=this.getLayer().getRevision();return this.renderedLayerRevision_!=n&&(this.renderedTiles.length=0),this.renderedLayerRevision_=n,r.prototype.prepareFrame.call(this,t)},e.prototype.updateExecutorGroup_=function(t,n,i){var a=this.getLayer(),o=a.getRevision(),s=a.getRenderOrder()||null,A=t.wantedResolution,l=t.getReplayState(a);if(!(!l.dirty&&l.renderedResolution===A&&l.renderedRevision==o&&l.renderedRenderOrder==s)){var u=a.getSource(),c=a.getDeclutter(),h=u.getTileGrid(),f=u.getTileGridForProjection(i),p=f.getTileCoordExtent(t.wrappedTileCoord),v=u.getSourceTiles(n,i,t),m=pe(a);delete t.hitDetectionImageData[m],t.executorGroups[m]=[],c&&(t.declutterExecutorGroups[m]=[]);for(var g=function(L,O){var b=v[L];if(b.getState()!=ge.LOADED)return"continue";var T=b.tileCoord,I=h.getTileCoordExtent(T),M=Jo(p,I),x=Va(M,a.getRenderBuffer()*A,_.tmpExtent),S=AA(I,M)?null:x;l.dirty=!1;var N=new L_(0,x,A,n),P=c?new L_(0,M,A,n):void 0,X=zQ(A,n),z=function(q){var at,vt=q.getStyleFunction()||a.getStyleFunction();if(vt&&(at=vt(q,A)),at){var wt=this.renderFeature(q,X,at,N,P);this.dirty_=this.dirty_||wt,l.dirty=l.dirty||wt}},tt=b.getFeatures();s&&s!==l.renderedRenderOrder&&tt.sort(s);for(var J=0,nt=tt.length;J0){n([]);return}var _=c.getTileCoordExtent(p.wrappedTileCoord),E=Rs(_),B=[(h[0]-E[0])/u,(E[1]-h[1])/u],L=p.getSourceTiles().reduce(function(M,x){return M.concat(x.getFeatures())},[]),O=p.hitDetectionImageData[o];if(!O&&!this.animatingOrInteracting_){var b=Pi(c.getTileSize(c.getZForResolution(u))),T=this.renderedRotation_,I=[this.getRenderTransform(c.getTileCoordCenter(p.wrappedTileCoord),u,0,Io,b[0]*Io,b[1]*Io,0)];O=VQ(b,I,L,a.getStyleFunction(),c.getTileCoordExtent(p.wrappedTileCoord),p.getReplayState(a).renderedResolution,T),p.hitDetectionImageData[o]=O}n(jQ(B,L,O))}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.renderedLayerRevision_!==void 0&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var n=this.context,i=n.globalAlpha;n.globalAlpha=this.getLayer().getOpacity();for(var a=t.viewHints,o=!(a[gn.ANIMATING]||a[gn.INTERACTING]),s=this.renderedTiles,A=0,l=s.length;A=0;--h)c[h].execute(this.context,1,this.getTileRenderTransform(u,t),t.viewState.rotation,o,void 0,t.declutterTree)}n.globalAlpha=i},e.prototype.getTileRenderTransform=function(t,n){var i=n.pixelRatio,a=n.viewState,o=a.center,s=a.resolution,A=a.rotation,l=n.size,u=Math.round(l[0]*i),c=Math.round(l[1]*i),h=this.getLayer().getSource(),f=h.getTileGridForProjection(n.viewState.projection),p=t.tileCoord,v=f.getTileCoordExtent(t.wrappedTileCoord),m=f.getTileCoordExtent(p,this.tmpExtent)[0]-v[0],g=kp(Pv(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(o,s,A,i,u,c,m));return g},e.prototype.renderFrame=function(t,n){var i=t.viewHints,a=!(i[gn.ANIMATING]||i[gn.INTERACTING]);r.prototype.renderFrame.call(this,t,n),this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation;var o=this.getLayer(),s=o.getRenderMode(),A=this.context,l=A.globalAlpha;A.globalAlpha=o.getOpacity();for(var u=wlt[s],c=t.viewState,h=c.rotation,f=o.getSource(),p=f.getTileGridForProjection(c.projection),v=p.getZForResolution(c.resolution,f.zDirection),m=this.renderedTiles,g=[],_=[],E=m.length-1;E>=0;--E){var B=m[E],L=B.executorGroups[pe(o)].filter(function(z){return z.hasExecutors(u)});if(L.length!==0){for(var O=this.getTileRenderTransform(B,t),b=B.tileCoord[0],T=!1,I=L[0].getClipCoords(O),M=0,x=g.length;Me-n){ct.setStyle(this.element,{height:"100%"});var a=this.panel_.querySelectorAll("li.visible .li-content")[0],o=a?2*ct.getStyle(a,"height"):0;switch(r){case 1:i+=o;break;case-1:i-=o;break;case"+50%":i+=Math.round(e/2);break;case"-50%":i-=Math.round(e/2);break}return i+t<=e-3*n/2?(i=e-3*n/2-t,ct.hide(this.botv)):ct.show(this.botv),i>=0?(i=0,ct.hide(this.topv)):ct.show(this.topv),ct.setStyle(this.panel_,{top:i+"px"}),!0}else return ct.setStyle(this.element,{height:"auto"}),ct.setStyle(this.panel_,{top:0}),ct.hide(this.botv),ct.hide(this.topv),!1}else return!1};kr.prototype._setLayerForLI=function(r,e){var t=[];e.getLayers&&t.push(e.getLayers().on("change:length",this.drawPanel.bind(this))),r&&(t.push(e.on("change:opacity",function(){this.setLayerOpacity(e,r)}.bind(this))),t.push(e.on("change:visible",function(){this.setLayerVisibility(e,r)}.bind(this)))),t.push(e.on("propertychange",function(n){(n.key==="displayInLayerSwitcher"||n.key==="openInLayerSwitcher")&&this.drawPanel(n)}.bind(this))),this._layers.push({li:r,layer:e,listeners:t})};kr.prototype.setLayerOpacity=function(r,e){var t=e.querySelector(".layerswitcher-opacity-cursor");t&&(t.style.left=r.getOpacity()*100+"%"),this.dispatchEvent({type:"layer:opacity",layer:r})};kr.prototype.setLayerVisibility=function(r,e){var t=e.querySelector(".ol-visibility");t&&(t.checked=r.getVisible()),r.getVisible()?e.classList.add("ol-visible"):e.classList.remove("ol-visible"),this.dispatchEvent({type:"layer:visible",layer:r})};kr.prototype._clearLayerForLI=function(){this._layers.forEach(function(r){r.listeners.forEach(function(e){No(e)})}),this._layers=[]};kr.prototype._getLayerForLI=function(r){for(var e=0,t;t=this._layers[e];e++)if(t.li===r)return t.layer;return null};kr.prototype.viewChange=function(){this.panel_.querySelectorAll("li").forEach(function(r){var e=this._getLayerForLI(r);e&&(this.testLayerVisibility(e)?r.classList.remove("ol-layer-hidden"):r.classList.add("ol-layer-hidden"))}.bind(this))};kr.prototype.getPanel=function(){return this.panelContainer_};kr.prototype.drawPanel=function(){if(this.getMap()){var r=this;this.dcount++,setTimeout(function(){r.drawPanel_()},this.get("drawDelay")||0)}};kr.prototype.drawPanel_=function(){if(!(--this.dcount||this.dragging_)){var r=this.panelContainer_.scrollTop;this._clearLayerForLI(),this.panel_.querySelectorAll("li").forEach(function(e){e.classList.contains("ol-header")||e.remove()}.bind(this)),this._layerGroup?this.drawList(this.panel_,this._layerGroup.getLayers()):this.getMap()&&this.drawList(this.panel_,this.getMap().getLayers()),this.panelContainer_.scrollTop=r}};kr.prototype.switchLayerVisibility=function(r,e){r.get("baseLayer")?(r.getVisible()||r.setVisible(!0),e.forEach(function(t){r!==t&&t.get("baseLayer")&&t.getVisible()&&t.setVisible(!1)})):r.setVisible(!r.getVisible())};kr.prototype.testLayerVisibility=function(r){if(!this.getMap())return!0;var e=this.getMap().getView().getResolution(),t=this.getMap().getView().getZoom();if(r.getMaxResolution()<=e||r.getMinResolution()>=e)return!1;if(r.getMinZoom&&(r.getMinZoom()>=t||r.getMaxZoom()_?v.insertAt(_,f):v.insertAt(_+1,f);break}}p&&e.selectLayer(f),e.dispatchEvent({type:"reorder-end",layer:f,group:u})}t.parentNode.querySelectorAll("li").forEach(function(E){E.classList.remove("dropover"),E.classList.remove("dropover-after"),E.classList.remove("dropover-before")}),t.classList.remove("drag"),t.parentNode.classList.remove("drag"),e.element.classList.remove("drag"),A&&A.remove(),ct.removeListener(document,"mousemove touchmove",h),ct.removeListener(document,"mouseup touchend touchcancel",c)}function h(f){if(a=f.pageY||f.touches&&f.touches.length&&f.touches[0].pageY||f.changedTouches&&f.changedTouches.length&&f.changedTouches[0].pageY,n&&Math.abs(o-a)>2&&(n=!1,t.classList.add("drag"),l=e._getLayerForLI(t),s=!1,u=e._getLayerForLI(t.parentNode.parentNode),A=ct.create("LI",{className:"ol-dragover",html:t.innerHTML,style:{position:"absolute","z-index":1e4,left:t.offsetLeft,opacity:.5,width:ct.outerWidth(t),height:ct.getStyle(t,"height")},parent:i}),e.element.classList.add("drag"),e.dispatchEvent({type:"reorder-start",layer:l,group:u})),!n){f.preventDefault(),f.stopPropagation(),ct.setStyle(A,{top:a-ct.offsetRect(i).top+i.scrollTop+5});var p;for(f.touches?p=document.elementFromPoint(f.touches[0].clientX,f.touches[0].clientY):p=f.target,p.classList.contains("ol-switcherbottomdiv")?e.overflow(-1):p.classList.contains("ol-switchertopdiv")&&e.overflow(1);p&&p.tagName!=="LI";)p=p.parentNode;(!p||!p.classList.contains("dropover"))&&t.parentNode.querySelectorAll("li").forEach(function(v){v.classList.remove("dropover"),v.classList.remove("dropover-after"),v.classList.remove("dropover-before")}),p&&p.parentNode.classList.contains("drag")&&p!==t?(s=e._getLayerForLI(p),s&&!s.get("allwaysOnTop")==!l.get("allwaysOnTop")?(p.classList.add("dropover"),p.classList.add(t.offsetTop0&&(!u.get("allwaysOnTop")||n[l-1].get("allwaysOnTop")))&&ct.create("DIV",{className:"layerup ol-noscroll",title:this.tip.up,on:{"mousedown touchstart":function(B){t.dragOrdering_(B)}},parent:h}),u.getLayers){var v=0;u.getLayers().forEach(function(B){t.displayInLayerSwitcher(B)&&v++}),v&&ct.create("DIV",{className:u.get("openInLayerSwitcher")?"collapse-layers":"expend-layers",title:this.tip.plus,click:function(){var B=t._getLayerForLI(this.parentNode.parentNode);B.set("openInLayerSwitcher",!B.get("openInLayerSwitcher"))},parent:h})}if(this.oninfo&&ct.create("DIV",{className:"layerInfo",title:this.tip.info,click:a,parent:h}),this.hastrash&&!u.get("noSwitcherDelete")&&ct.create("DIV",{className:"layerTrash",title:this.tip.trash,click:s,parent:h}),this.hasextent&&n[l].getExtent()){var m=n[l].getExtent();m.length==4&&m[0]=0;l--)A.call(this,n[l]);this.viewChange(),r===this.panel_&&this.overflow()};kr.prototype.getLayerClass=function(r){return r?r.getLayers?"ol-layer-group":r instanceof hA?"ol-layer-vector":r instanceof Slt?"ol-layer-vectortile":r instanceof TF?"ol-layer-tile":r instanceof z4?"ol-layer-image":r instanceof l8?"ol-layer-heatmap":r.getFeatures?"ol-layer-vectorimage":"unknown":"none"};kr.prototype.selectLayer=function(r,e){if(!r){if(!this.getMap())return;r=this.getMap().getLayers().item(this.getMap().getLayers().getLength()-1)}this._selectedLayer=r,this.drawPanel(),e||this.dispatchEvent({type:"select",layer:r})};kr.prototype.getSelection=function(){return this._selectedLayer};kr.prototype.setprogress_=function(r){if(!r.layerswitcher_progress){var e=0,t=0,n=function(){t===e?(t=e=0,ct.setStyle(r.layerswitcher_progress,{width:0})):ct.setStyle(r.layerswitcher_progress,{width:(e/t*100).toFixed(1)+"%"})};r.getSource().on("tileloadstart",function(){t++,n()}),r.getSource().on("tileloadend",function(){e++,n()}),r.getSource().on("tileloaderror",function(){e++,n()})}};const xlt={name:"ol-layerswitcher-control",setup(r,e){const{control:t}=Di(kr,r,e);return{control:t}},props:{selection:{type:Boolean},displayInLayerSwitcher:{type:Function},show_progress:{type:Boolean,default:!1},mouseover:{type:Boolean,default:!1},reordering:{type:Boolean,default:!0},trash:{type:Boolean,default:!1},oninfo:{type:Function},extent:{type:Boolean},onextent:{type:Function},drawDelay:{type:Number},collapsed:{type:Boolean,default:!0},layerGroup:{type:Object},noScroll:{type:Boolean,default:!1}}};function blt(r,e,t,n,i,a){return dr("",!0)}var X_=le(xlt,[["render",blt]]);ow.prototype.getPreview=function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAk6QAAJOkBUCTn+AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANeSURBVHic7ZpPiE1RHMc/780MBhkik79JSUlIUbOxI+wkI2yRhYSUlJLNpJF/xcpiJBmZGBZsNM1CkmhKITGkGbH0/BuPmXnP4rxbb/TOn3fvOffeec6nfqvb/b7f93fveeec37ng8Xg8Ho/nf6Uu4d+fDswFssCvhHOJhaXAMeApMAQUyyIPPAdOAiuTStAVy4EHjDWsix5gdRLJ2mY34ulWYz6IEeA4kIk9awtkgTOEM/5vdAKT4k0/Ou3YMR/ELcbRm9AKFLBbgCJwNE4TYZkJfMG++SIwDCyLz0o4bI17WdyJz0r1TAZ+oDcxCBwAFgIzEIuhvcBbg3sLwOK4DFXLFvQGniCGSSUagS4DjUPOHESkA3XiOWCORqMR6Nfo9DjI3QqPUSd+ylBnv0Zn0GrWFvmIOvGNhjqrNDp/EAutyFgRKUM2tgO+Gur81FxvAKYZaimxXYBvmuuLDHWWaK4X0RfJCNsF6NdcbzXU2a65PohYFKWOc+jn8PUajbWIXaBKp9NB7lZYh34OzwFbFfd/NtDYYSth27urLGIm0M31AL3APWAAmIooymaDnPIl/Vz4NN1yHrd7gcvxWQnHAuA3bsyPop8hUsE13BSgK04TUViBeFo2zedJ8S6wElexW4D2eNOPTjNi6WvD/DtEr8E6tk6GGoAmxFY2iFHE9NZiQf8gogiB9gTEH23izAZuE77vHyU+ANucO1QwD3hD/MbLowAcdm20EmkwXx4n3NodS9rMB2HabYpEWs0HcRqHp0fNwAvJD+eBTZr7p6BvmQVxUaEzEbiruNfJekH15L8jtrEm7JJolEcOmKXRqQOuKDQuY7HZY8s8iNfzkSLxIuI43FTrkkLnOlBfRW4VsWk+oAX5weknxFAxJQNckGgVgZuIRVoomoGXEmGTMa+iQ6K7M4SW7k24QYgiuDQPYinbhugiF4H3RGtzZYCzyIvQXfpNI1ybLyeLpf5+iTbkRbiP2EcocTHm4+YI8iI8RFHwWjAfsA95Q+YZFU6wasl8wB7kReijtNbIILa0vcg/PRlGfPQwHmlCviDqAzaA+OREtzqr1ejOIDorxlNEjTGUBV4nnUWCvAJxGDlA8q9j3DEArAn2zvXAfOwfl6eVAmJrPpJ0Ih6Px+PxeJLjLwPul3vj5d0eAAAAAElFTkSuQmCC"};J4.prototype.getPreview=function(r,e){r||(r=[21020,6355964]),e||(e=150);var t=this.getTileGrid().getTileCoordForCoordAndResolution(r,e),n=this.getTileUrlFunction();return n.call(this,t,this.getProjection())};Kot.prototype.getPreview=function(r,e){r||(r=[21020,6355964]),e||(e=150);var t=this.getTileUrlFunction();if(t){var n=this.getTileGrid()||this.getTileGridForProjection(this.getProjection()),i=n.getTileCoordForCoordAndResolution(r,e);return t.call(this,i,1,this.getProjection())}var a=this.getGetFeatureInfoUrl?this.getGetFeatureInfoUrl(r,e,this.getProjection()||"EPSG:3857",{}):this.getFeatureInfoUrl(r,e,this.getProjection()||"EPSG:3857",{});return a=a.replace(/getfeatureinfo/i,"GetMap"),a};Sh.prototype.getPreview=function(r,e,t){if(this.get("preview"))return[this.get("preview")];if(e||(e=150),ethis.getMaxResolution()){var n=this.getMinResolution(),i=this.getMaxResolution();for(i>1e5&&(i=156543),n<.15&&(n=.15),e=i;i>n;)n*=2,i/=2,e=n}var a=this.getExtent();return r||(r=[21020,6355964]),a&&!xs(a,r)&&(r=[(a[0]+a[2])/2,(a[1]+a[3])/2]),t&&(r=Qu(r,t,this.getSource().getProjection())),this.getSource&&this.getSource()?[this.getSource().getPreview(r,e)]:[]};Wg.prototype.getPreview=function(r,e){if(this.get("preview"))return[this.get("preview")];var t=[];if(this.getLayers)for(var n=this.getLayers().getArray(),i=0;inew r(...Object.values(n)));return he(n,()=>{t.value.setGeometry(i.value),t.value.changed()}),he(t,()=>{t.value.setGeometry(i.value)}),Ze(()=>{t.value.setGeometry(i.value)}),ir(()=>{t.value.setGeometry(null)}),{geometry:i}}const Mlt={name:"ol-geom-point",setup(r){const{geometry:e}=Yp(fr,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Nlt(r,e,t,n,i,a){return dr("",!0)}var ax=le(Mlt,[["render",Nlt]]);const Plt={name:"ol-geom-line-string",setup(r){const{geometry:e}=Yp(Hr,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Ult(r,e,t,n,i,a){return dr("",!0)}var ox=le(Plt,[["render",Ult]]);const Dlt={name:"ol-geom-polygon",setup(r){const{geometry:e}=Yp(bn,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Qlt(r,e,t,n,i,a){return dr("",!0)}var sx=le(Dlt,[["render",Qlt]]);const Hlt={name:"ol-geom-multi-point",setup(r){const{geometry:e}=Yp(es,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Glt(r,e,t,n,i,a){return dr("",!0)}var Ax=le(Hlt,[["render",Glt]]);const klt={name:"ol-geom-multi-line-string",setup(r){const{geometry:e}=Yp(xa,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function $lt(r,e,t,n,i,a){return dr("",!0)}var lx=le(klt,[["render",$lt]]);const Vlt={name:"ol-geom-multi-polygon",setup(r){const{geometry:e}=Yp(ba,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function jlt(r,e,t,n,i,a){return dr("",!0)}var ux=le(Vlt,[["render",jlt]]);function q_(r){q_.installed||(q_.installed=!0,r.component(ax.name,ax),r.component(ox.name,ox),r.component(sx.name,sx),r.component(Ax.name,Ax),r.component(lx.name,lx),r.component(ux.name,ux))}var Klt=Object.freeze(Object.defineProperty({__proto__:null,default:q_,install:q_,Point:ax,LineString:ox,Polygon:sx,MultiPoint:Ax,MultiLineString:lx,MultiPolygon:ux},Symbol.toStringTag,{value:"Module"}));const zlt={name:"ol-style",setup(r){const e=Ce("stylable",null),{properties:t}=vr(r);let n=hr(()=>new oa(t));const i=o=>{if(e instanceof dF||e instanceof vF){e.getOverlay().setStyle(o),e.value.dispatchEvent("styleChanged");return}try{e.value.setStyle(o),e.value.changed(),e.value.dispatchEvent("styleChanged")}catch{e.value.style_=o,e.value.values_.style=o,e.value.changed(),e.value.dispatchEvent("styleChanged")}},a=hr(()=>o=>(t.overrideStyleFunction!=null&&t.overrideStyleFunction(o,n.value),n.value));return he(t,()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),Ze(()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),ir(()=>{i(null)}),Mr("style",n),Mr("styledObj",e),{style:n}},props:{zIndex:{type:Number},overrideStyleFunction:{type:Function}}};function Ylt(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var cx=le(zlt,[["render",Ylt]]);const Xlt={name:"ol-style-circle",setup(r){const e=Ce("style",null),t=Ce("styledObj",null),{properties:n}=vr(r),i=s=>new ty(Os(Un({},s),{fill:new Aa,stroke:new Ui}));let a=hr(()=>i(n));const o=()=>{e.value.setImage(null),e.value.setImage(a.value),t.value.changed()};he(n,()=>{o()}),he(e,()=>{o()}),Ze(()=>{e.value.setImage(a.value)}),ir(()=>{e.value.setImage(null)}),Mr("circle",a),Mr("styledObj",t)},props:{radius:{type:Number},scale:{type:Number}}};function Wlt(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var hx=le(Xlt,[["render",Wlt]]);const qlt={name:"ol-style-stroke",setup(r){const e=Ce("style",null),t=Ce("circle",null),n=Ce("styledObj",null),{properties:i}=vr(r);if(e!=null&&t==null){let a=new Ui(i);e.value.setStroke(a);const o=()=>{e.value.setStroke(null),a=new Ui(i),e.value.setStroke(a)};he(i,()=>{o()}),he(e,()=>{o()}),Ze(()=>{e.value.setStroke(a)}),ir(()=>{e.value.setStroke(null)})}else if(t!=null){const a=o=>{t.value.getStroke().setColor(o.color),t.value.getStroke().setLineCap(o.lineCap),t.value.getStroke().setLineDash(o.lineDash),t.value.getStroke().setLineDashOffset(o.lineDashOffset),t.value.getStroke().setLineJoin(o.lineJoin),t.value.getStroke().setMiterLimit(o.miterLimit),t.value.getStroke().setWidth(o.width),t.value.setRadius(t.value.getRadius());try{n.value.changed()}catch{n.changed()}};a(i),he(i,o=>{a(o)}),he(t,()=>{a(i)})}},props:{color:{type:String},lineCap:{type:String,default:"round"},lineJoin:{type:String,default:"round"},lineDash:{type:Array},lineDashOffset:{type:Number,default:0},miterLimit:{type:Number,default:10},width:{type:Number,default:1}}};function Zlt(r,e,t,n,i,a){return dr("",!0)}var fx=le(qlt,[["render",Zlt]]);const Jlt={name:"ol-style-fill",setup(r){const e=Ce("style",null),t=Ce("circle",null),n=Ce("styledObj",null),{properties:i}=vr(r);if(e!=null&&t==null){let a=new Aa(i);e.value.setFill(a);const o=()=>{e.value.setFill(null),a=new Aa(i),e.value.setFill(a)};he(i,()=>{o()}),he(e,()=>{o()}),Ze(()=>{e.value.setFill(a)}),ir(()=>{e.value.setFill(null)})}else if(t!=null){const a=o=>{t.value.getFill().setColor(o),t.value.setRadius(t.value.getRadius());try{n.value.changed()}catch{n.changed()}};a(i.color),he(i,()=>{a(i.color)}),he(t,()=>{a(i.color)})}},props:{color:{type:String}}};function tut(r,e,t,n,i,a){return dr("",!0)}var px=le(Jlt,[["render",tut]]);const eut={name:"ol-style-icon",setup(r){const e=Ce("style",null),t=Ce("styledObj",null),{properties:n}=vr(r);let i=hr(()=>{let o=new ny(n);return o.load(),o});const a=()=>{e.value.setImage(null),e.value.setImage(i.value),t.value.changed()};he(n,()=>{a()}),he(e,()=>{a()}),Ze(()=>{e.value.setImage(i.value)}),ir(()=>{e.value.setImage(null)})},props:{anchor:{type:Array},anchorOrigin:{type:String,default:"top-left"},anchorXUnits:{type:String,default:"fraction"},color:{type:String},crossOrigin:{type:String},img:{type:[HTMLImageElement,HTMLCanvasElement]},offset:{type:Array,default:()=>[0,0]},displacement:{type:Array,default:()=>[0,0]},offsetOrigin:{type:String,default:"top-left"},opacity:{type:Number,default:1},scale:{type:Number,default:1},rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0},size:{type:Array},imgSize:{type:Array},src:{type:String}}};function rut(r,e,t,n,i,a){return dr("",!0)}var dx=le(eut,[["render",rut]]);const nut={name:"ol-style-text",setup(r){const e=Ce("style",null),t=Ce("styledObj",null),{properties:n}=vr(r),i=s=>new bh(Os(Un({},s),{fill:new Aa,stroke:new Ui}));let a=hr(()=>i(n));const o=()=>{e.value.setText(null),e.value.setText(a.value),t.value.changed()};he(n,()=>{o()}),he(e,()=>{o()}),Ze(()=>{e.value.setText(a.value)}),ir(()=>{e.value.setText(null)}),Mr("style",a),Mr("styledObj",t)},props:{font:{type:String},maxAngle:{type:Number,default:Math.PI/4},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},overflow:{type:Boolean,default:!1},placement:{type:String,default:"point"},scale:{type:Number},rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0},text:{type:String},textAlign:{type:String},textBaseline:{type:String,default:"middle"},padding:{type:Array,default:()=>[0,0,0,0]}}};function iut(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var vx=le(nut,[["render",iut]]),Mp=function(r,e){var t=r[0]-e[0],n=r[1]-e[1];return Math.sqrt(t*t+n*n)},Yd=function(r,e){return r[0]==e[0]&&r[1]==e[1]},F8;(function(){function r(t,n){var i;for(let a=t.length-1;a>0;a--)(t[a][0]>n&&t[a-1][0]n)&&(i=[n,(n-t[a][0])/(t[a-1][0]-t[a][0])*(t[a-1][1]-t[a][1])+t[a][1]],t.splice(a,0,i))}function e(t,n){var i;for(let a=t.length-1;a>0;a--)(t[a][1]>n&&t[a-1][1]n)&&(i=[(n-t[a][1])/(t[a-1][1]-t[a][1])*(t[a-1][0]-t[a][0])+t[a][0],n],t.splice(a,0,i))}F8=function(t,n){var i=n.getType()==="Polygon";if(!i&&n.getType()!=="MultiPolygon")return null;var a=n.getCoordinates();return i&&(a=[a]),a.forEach(function(o){o.forEach(function(s){r(s,t[0]),r(s,t[2]),e(s,t[1]),e(s,t[3])})}),a.forEach(function(o){o.forEach(function(s){s.forEach(function(A){A[0]t[2]&&(A[0]=t[2]),A[1]t[3]&&(A[1]=t[3])})})}),i?new bn(a[0]):new ba(a)}})();var Bw=function(r,e,t,n){var i=[];n!==!1&&i.push(r);var a=Mp(r,e);if(a){var o=Math.round(a/t);if(o>1)for(var s=(e[0]-r[0])/o,A=(e[1]-r[1])/o,l=1;li?(o=!0,c.push([n[0]+i/f*(h[0]-n[0]),n[1]+i/f*(h[1]-n[1])])):c.push(h)})})}),o?r.getType()==="Polygon"?new bn(s[0]):new ba(s):r}}}else console.warn("[ol/geom/Circle~intersection] Unsupported geometry type: "+r.getType());return r};Hr.prototype.splitAt=function(r,e){var t;if(!r)return[this];if(e||(e=1e-10),r.length&&r[0].length){var n=[this];for(t=0;t1&&l.push(new Hr(A)),l.length?l:[this]};var Ci=function(r){r||(r={}),oa.call(this,{renderer:this._render.bind(this),stroke:r.stroke,text:r.text,zIndex:r.zIndex,geometry:r.geometry}),this._visible=r.visible!==!1,typeof r.width=="function"?this._widthFn=r.width:this.setWidth(r.width),this.setWidth2(r.width2),typeof r.color=="function"?this._colorFn=r.color:this.setColor(r.color),this.setColor2(r.color2),this.setLineCap(r.lineCap),this.setArrow(r.arrow),this.setArrowSize(r.arrowSize),this.setArrowColor(r.arrowColor),this._offset=[0,0],this.setOffset(r.offset0,0),this.setOffset(r.offset1,1),this._noOverlap=r.noOverlap};Cr(Ci,oa);Ci.prototype.setWidth=function(r){this._width=r||0};Ci.prototype.setWidth2=function(r){this._width2=r};Ci.prototype.getOffset=function(r){return this._offset[r]};Ci.prototype.setOffset=function(r,e){switch(r=Math.max(0,parseFloat(r)),e){case 0:{this._offset[0]=r;break}case 1:{this._offset[1]=r;break}}};Ci.prototype.setLineCap=function(r){this._lineCap=r==="round"?"round":"butt"};Ci.prototype.getWidth=function(r,e){if(this._widthFn)return this._widthFn(r,e);var t=typeof this._width2=="number"?this._width2:this._width;return this._width+(t-this._width)*e};Ci.prototype.setColor=function(r){try{this._color=Du(r)}catch{this._color=[0,0,0,1]}};Ci.prototype.setColor2=function(r){try{this._color2=Du(r)}catch{this._color2=null}};Ci.prototype.setArrowColor=function(r){try{this._acolor=tl(r)}catch{this._acolor=null}};Ci.prototype.getColor=function(r,e){if(this._colorFn)return tl(this._colorFn(r,e));var t=this._color,n=this._color2||this._color;return"rgba("+ +Math.round(t[0]+(n[0]-t[0])*e)+","+Math.round(t[1]+(n[1]-t[1])*e)+","+Math.round(t[2]+(n[2]-t[2])*e)+","+(t[3]+(n[3]-t[3])*e)+")"};Ci.prototype.getArrow=function(){return this._arrow};Ci.prototype.setArrow=function(r){this._arrow=parseInt(r),(this._arrow<-1||this._arrow>2)&&(this._arrow=0)};Ci.prototype.getArrowSize=function(){return this._arrowSize||[16,16]};Ci.prototype.setArrowSize=function(r){Array.isArray(r)?this._arrowSize=r:typeof r=="number"&&(this._arrowSize=[r,r])};Ci.prototype.drawArrow=function(r,e,t,n,i){var a=this.getArrowSize()[0]*i,o=Mp(e,t),s=(e[0]-t[0])/o,A=(e[1]-t[1])/o;n=Math.max(this.getArrowSize()[1]/2,n/2)*i,r.beginPath(),r.moveTo(e[0],e[1]),r.lineTo(e[0]-a*s+n*A,e[1]-a*A-n*s),r.lineTo(e[0]-a*s-n*A,e[1]-a*A+n*s),r.lineTo(e[0],e[1]),r.fill()};Ci.prototype._render=function(r,e){if(e.geometry.getType()==="LineString"){var t,n,i,a=e.context;if(!this._visible){var o=e.pixelRatio/e.resolution,s=Math.cos(e.rotation),A=Math.sin(e.rotation);n=e.geometry.getCoordinates();var l=r[0][0]-n[0][0]*o*s-n[0][1]*o*A,u=r[0][1]-n[0][0]*o*A+n[0][1]*o*s;for(r=[],t=0;i=n[t];t++)r[t]=[l+i[0]*o*s+i[1]*o*A,u+i[0]*o*A-i[1]*o*s,i[2]]}var c=this.getArrowSize()[0]*e.pixelRatio;a.save(),this.getOffset(0)&&this._splitAsize(r,this.getOffset(0)*e.pixelRatio),this.getOffset(1)&&this._splitAsize(r,this.getOffset(1)*e.pixelRatio,!0),r.length>1&&(this.getArrow()===-1||this.getArrow()===2)&&(i=this._splitAsize(r,c),this._acolor?a.fillStyle=this._acolor:a.fillStyle=this.getColor(e.feature,0),this.drawArrow(a,i[0],i[1],this.getWidth(e.feature,0),e.pixelRatio)),r.length>1&&this.getArrow()>0&&(i=this._splitAsize(r,c,!0),this._acolor?a.fillStyle=this._acolor:a.fillStyle=this.getColor(e.feature,1),this.drawArrow(a,i[0],i[1],this.getWidth(e.feature,1),e.pixelRatio));var h=this._splitInto(r,255,2),f=0,p=h.length;if(a.lineJoin="round",a.lineCap=this._lineCap||"butt",h.length>1)for(f=0;fe){n=[n[0]+(i[0]-n[0])*(e-s)/o,n[1]+(i[1]-n[1])*(e-s)/o],o=Mp(n,a),t?(r.push(i),r.push(n),r.push([n[0]+(a[0]-n[0])/o,n[1]+(a[1]-n[1])/o])):(r.unshift(i),r.unshift(n),r.unshift([n[0]+(a[0]-n[0])/o,n[1]+(a[1]-n[1])/o]));break}s+=o,n=i}return[a,n]};Ci.prototype._splitInto=function(r,e,t){var n,i,a=this._noOverlap?1:.9,o=[],s,A=0;for(n=1;i=r[n];n++)A+=Mp(r[n-1],i);var l=Math.max(t||2,A/(e||255)),u=r[0];A=0;var c=[u];for(n=1,i=r[1];nl){var p=(l-A)/s;c.push([u[0]+h*p,u[1]+f*p]),o.push(c),u=[u[0]+h*p*a,u[1]+f*p*a],c=[u],A=0}else A+=s,u=i,c.push(u),n++,i=r[n]}return o.push(c),o};const aut={name:"ol-style-flowline",setup(r){const e=Ce("stylable",null),{properties:t}=vr(r);let n=hr(()=>new Ci(t));const i=o=>{if(e instanceof dF||e instanceof vF){e.getOverlay().setStyle(o),e.value.dispatchEvent("styleChanged");return}try{e.value.setStyle(o),e.value.changed(),e.value.dispatchEvent("styleChanged")}catch{e.value.style_=o,e.value.values_.style=o,e.value.changed(),e.value.dispatchEvent("styleChanged")}},a=hr(()=>o=>(t.overrideStyleFunction!=null&&t.overrideStyleFunction(o,n.value),n.value));return he(t,()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),Ze(()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),ir(()=>{i(null)}),{style:n}},props:{color:{type:[String,Function]},color2:{type:String},width:{type:[Number,Function]},width2:{type:Number},arrow:{type:Number},arrowColor:{type:String}}};function out(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var gx=le(aut,[["render",out]]);function Z_(r){Z_.installed||(Z_.installed=!0,r.component(cx.name,cx),r.component(hx.name,hx),r.component(fx.name,fx),r.component(px.name,px),r.component(dx.name,dx),r.component(vx.name,vx),r.component(gx.name,gx))}var sut=Object.freeze(Object.defineProperty({__proto__:null,default:Z_,install:Z_,Style:cx,Stroke:fx,Fill:px,Icon:dx,Text:vx,FlowLine:gx,Circle:hx},Symbol.toStringTag,{value:"Module"}));const Aut={name:"ol-interaction-select",emits:["select"],setup(r,{emit:e}){const t=Ce("map"),{properties:n}=vr(r);let i=hr(()=>{let a=new sw(Os(Un({},n),{style:new oa}));return a.on("select",o=>{e("select",o)}),a});return he(i,(a,o)=>{t.removeInteraction(o),t.addInteraction(a),t.changed()}),Ze(()=>{t.addInteraction(i.value)}),ir(()=>{t.removeInteraction(i.value)}),Mr("stylable",i),{select:i}},props:{multi:{type:Boolean,default:!1},condition:{type:Function},filter:{type:Function},features:{type:[si,Object]},hitTolerance:{type:Number,default:0,validator:r=>r>=0}}};function lut(r,e,t,n,i,a){return mr(r.$slots,"default")}var yx=le(Aut,[["render",lut]]),tc=function(r){r=r||{},this.pointRadius=r.pointRadius||12,this.circleMaxObjects=r.circleMaxObjects||10,this.maxObjects=r.maxObjects||60,this.spiral=r.spiral!==!1,this.animate=r.animate,this.animationDuration=r.animationDuration||500,this.selectCluster_=r.selectCluster!==!1,this._autoClose=r.autoClose!==!1;var e=this.overlayLayer_=new hA({source:new _l({features:new si,wrapX:r.wrapX,useSpatialIndex:!0}),name:"Cluster overlay",updateWhileAnimating:!0,updateWhileInteracting:!0,displayInLayerSwitcher:!1,style:r.featureStyle});if(r.layers)if(typeof r.layers=="function"){var t=r.layers;r.layers=function(i){return i===e||t(i)}}else r.layers.push&&r.layers.push(this.overlayLayer_);if(r.filter){var n=r.filter;r.filter=function(i,a){return!a&&i.get("selectclusterlink")?!1:n(i,a)}}else r.filter=function(i,a){return!(!a&&i.get("selectclusterlink"))};this.filter_=r.filter,!this._autoClose&&!r.toggleCondition&&(r.toggleCondition=nw),sw.call(this,r),this.on("select",this.selectCluster.bind(this))};Cr(tc,sw);tc.prototype.setMap=function(r){this.getMap()&&this.getMap().removeLayer(this.overlayLayer_),this._listener&&No(this._listener),this._listener=null,sw.prototype.setMap.call(this,r),this.overlayLayer_.setMap(r),r&&r.getView()&&(this._listener=r.getView().on("change:resolution",this.clear.bind(this)))};tc.prototype.clear=function(){this.getFeatures().clear(),this.overlayLayer_.getSource().clear()};tc.prototype.getLayer=function(){return this.overlayLayer_};tc.prototype.selectCluster=function(r){if(r instanceof or&&(r={selected:[r]}),!r.selected.length){this._autoClose?this.clear():r.deselected.forEach(_=>{_.get("selectcluserfeatures").forEach(B=>{this.overlayLayer_.getSource().removeFeature(B)})});return}var e=r.selected[0];if(!e.get("selectclusterfeature")){var t=this.overlayLayer_.getSource();this._autoClose&&t.clear();var n=e.get("features");if(!(!n||n.length==1)){this.selectCluster_||this.getFeatures().clear();var i=e.getGeometry().getCoordinates(),a=this.getMap().getView().getResolution(),o,s,A,l,u,c,h,f=[];if(!this.spiral||n.length<=this.circleMaxObjects)for(l=Math.min(n.length,this.circleMaxObjects),o=a*this.pointRadius*(.5+l/4),A=0;A1){No(this.listenerKey_),this.overlayLayer_.getSource().addFeatures(e),this.overlayLayer_.changed();return}A.frameState.animate=!0}this.listenerKey_=this.overlayLayer_.on(["postcompose","postrender"],o.bind(this));var s=new or(new fr(this.getMap().getView().getCenter()));s.setStyle(new oa({image:new ty({})})),this.overlayLayer_.getSource().addFeature(s)};tc.prototype.getClusterExtent=function(r){if(!r.get("features"))return null;var e=_i();return r.get("features").forEach(function(t){e=Uu(e,t.getGeometry().getExtent())}),e[0]===e[2]&&e[1]===e[3]?null:e};const uut={name:"ol-interaction-clusterselect",emits:["select"],setup(r,{emit:e}){const t=Ce("map"),{properties:n}=vr(r);let i=hr(()=>{let a=new tc(Os(Un({},n),{style:new oa}));return a.on("select",o=>{e("select",o)}),a});he(i,(a,o)=>{t.removeInteraction(o),t.addInteraction(a),t.changed()}),Ze(()=>{t.addInteraction(i.value)}),ir(()=>{t.removeInteraction(i.value)}),Mr("stylable",i)},props:{multi:{type:Boolean,default:!1},condition:{type:Function},filter:{type:Function},pointRadius:{type:Number,default:7},animate:{type:Boolean,default:!0},featureStyle:{type:Function},style:{type:Function}}};function cut(r,e,t,n,i,a){return mr(r.$slots,"default")}var mx=le(uut,[["render",cut]]);const hut={name:"ol-interaction-draw",emits:["drawstart","drawend"],setup(r,{emit:e}){const t=Ce("map"),n=Ce("vectorSource"),{type:i,clickTolerance:a,dragVertexDelay:o,snapTolerance:s,stopClick:A,maxPoints:l,minPoints:u,finishCondition:c,geometryFunction:h,geometryName:f,condition:p,freehand:v,freehandCondition:m,wrapX:g}=Lu(r);let _=()=>{let B=new dF({source:n.value,type:i.value,clickTolerance:a.value,dragVertexDelay:o.value,snapTolerance:s.value,stopClick:A.value,maxPoints:l.value,minPoints:u.value,finishCondition:c.value,geometryFunction:h.value,geometryName:f.value,condition:p.value,freehand:v.value,freehandCondition:m.value,wrapX:g.value});return B.on("drawstart",L=>{e("drawstart",L)}),B.on("drawend",L=>{e("drawend",L)}),B},E=_();he([i,a,o,s,A,l,u,c,h,f,p,v,m,g],()=>{t.removeInteraction(E),E=_(),t.addInteraction(E),E.changed(),t.changed()}),Ze(()=>{t.addInteraction(E)}),ir(()=>{t.removeInteraction(E)}),Mr("stylable",E)},props:{type:{type:String,required:!0},clickTolerance:{type:Number,default:6},dragVertexDelay:{type:Number,default:500},snapTolerance:{type:Number,default:12},stopClick:{type:Boolean,default:!1},maxPoints:{type:Number},minPoints:{type:Number},finishCondition:{type:Function},geometryFunction:{type:Function},geometryName:{type:String},condition:{type:Function},freehand:{type:Boolean,default:!1},freehandCondition:{type:Function},wrapX:{type:Boolean,default:!1}}};function fut(r,e,t,n,i,a){return mr(r.$slots,"default")}var _x=le(hut,[["render",fut]]);const put={name:"ol-interaction-snap",setup(r){const e=Ce("map"),t=Ce("vectorSource"),{properties:n}=vr(r);let i=()=>new BJ(Os(Un({},n),{source:t.value})),a=i();he(n,()=>{e.removeInteraction(a),a=i(),e.addInteraction(a),e.changed()}),Ze(()=>{e.addInteraction(a)}),ir(()=>{e.removeInteraction(a)})},props:{vertex:{type:Boolean,default:!0},edge:{type:Boolean,default:!0},pixelTolerance:{type:Number,default:10}}};function dut(r,e,t,n,i,a){return mr(r.$slots,"default")}var wx=le(put,[["render",dut]]);const vut={name:"ol-interaction-modify",emits:["modifystart","modifyend"],setup(r,{emit:e}){const t=Ce("map"),n=Ce("vectorSource"),{features:i,condition:a,deleteCondition:o,insertVertexCondition:s,pixelTolerance:A,wrapX:l,hitDetection:u}=Lu(r);let c=()=>{let f=new vF({source:n.value,features:i.value,condition:a.value,deleteCondition:o.value,insertVertexCondition:s.value,pixelTolerance:A.value,wrapX:l.value,hitDetection:u.value});return f.on("modifystart",p=>{e("modifystart",p)}),f.on("modifyend",p=>{e("modifyend",p)}),f},h=c();he([a,o,s,A,l,u],()=>{t.removeInteraction(h),h=c(),t.addInteraction(h),h.changed(),t.changed()}),Ze(()=>{t.addInteraction(h)}),ir(()=>{t.removeInteraction(h)}),Mr("stylable",h)},props:{condition:{type:Function},deleteCondition:{type:Function},insertVertexCondition:{type:Function},pixelTolerance:{type:Number,default:10},wrapX:{type:Boolean,default:!1},hitDetection:{type:Boolean},features:{type:[si,Object]}}};function gut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Ex=le(vut,[["render",gut]]),zn=function(r){r||(r={});var e=this;this.selection_=new si,this.handles_=new si,this.overlayLayer_=new hA({source:new _l({features:this.handles_,useSpatialIndex:!1,wrapX:!1}),name:"Transform overlay",displayInLayerSwitcher:!1,style:function(t){return e.style[(t.get("handle")||"default")+(t.get("constraint")||"")+(t.get("option")||"")]}}),Po.call(this,{handleDownEvent:this.handleDownEvent_,handleDragEvent:this.handleDragEvent_,handleMoveEvent:this.handleMoveEvent_,handleUpEvent:this.handleUpEvent_}),this.features_=r.features,typeof r.filter=="function"&&(this._filter=r.filter),this.layers_=r.layers?r.layers instanceof Array?r.layers:[r.layers]:null,this._handleEvent=r.condition||function(){return!0},this.addFn_=r.addCondition||function(){return!1},this.set("translateFeature",r.translateFeature!==!1),this.set("translate",r.translate!==!1),this.set("translateBBox",r.translateBBox===!0),this.set("stretch",r.stretch!==!1),this.set("scale",r.scale!==!1),this.set("rotate",r.rotate!==!1),this.set("keepAspectRatio",r.keepAspectRatio||function(t){return t.originalEvent.shiftKey}),this.set("modifyCenter",r.modifyCenter||function(t){return t.originalEvent.metaKey||t.originalEvent.ctrlKey}),this.set("noFlip",r.noFlip||!1),this.set("selection",r.selection!==!1),this.set("hitTolerance",r.hitTolerance||0),this.set("enableRotatedTransform",r.enableRotatedTransform||!1),this.set("keepRectangle",r.keepRectangle||!1),this.on("propertychange",function(){this.drawSketch_()}),this.setDefaultStyle()};Cr(zn,Po);zn.prototype.Cursors={default:"auto",select:"pointer",translate:"move",rotate:"move",rotate0:"move",scale:"nesw-resize",scale1:"nwse-resize",scale2:"nesw-resize",scale3:"nwse-resize",scalev:"ew-resize",scaleh1:"ns-resize",scalev2:"ew-resize",scaleh3:"ns-resize"};zn.prototype.setMap=function(r){var e=this.getMap();if(e){var t=e.getTargetElement();e.removeLayer(this.overlayLayer_),this.previousCursor_&&t&&(t.style.cursor=this.previousCursor_),this.previousCursor_=void 0}Po.prototype.setMap.call(this,r),this.overlayLayer_.setMap(r),r===null&&this.select(null),r!==null&&(this.isTouch=/touch/.test(r.getViewport().className),this.setDefaultStyle())};zn.prototype.setActive=function(r){this.select(null),this.overlayLayer_.setVisible(r),Po.prototype.setActive.call(this,r)};zn.prototype.setDefaultStyle=function(r){r=r||{};var e=r.pointStroke||new Ui({color:[255,0,0,1],width:1}),t=r.stroke||new Ui({color:[255,0,0,1],width:1,lineDash:[4,4]}),n=r.fill||new Aa({color:[255,0,0,.01]}),i=r.pointFill||new Aa({color:[255,255,255,.8]}),a=new R0({fill:i,stroke:e,radius:this.isTouch?12:6,displacement:this.isTouch?[24,-24]:[12,-12],points:15});a.setDisplacement||(a.getAnchor()[0]=this.isTouch?-10:-5);var o=new R0({fill:i,stroke:e,radius:this.isTouch?16:8,points:4,angle:Math.PI/4}),s=new R0({fill:i,stroke:e,radius:this.isTouch?12:6,points:4,angle:Math.PI/4});function A(l,u,c){return[new oa({image:l,stroke:u,fill:c})]}this.style={default:A(o,t,n),translate:A(o,e,i),rotate:A(a,e,i),rotate0:A(o,e,i),scale:A(o,e,i),scale1:A(o,e,i),scale2:A(o,e,i),scale3:A(o,e,i),scalev:A(s,e,i),scaleh1:A(s,e,i),scalev2:A(s,e,i),scaleh3:A(s,e,i)},this.drawSketch_()};zn.prototype.setStyle=function(r,e){if(e){e instanceof Array?this.style[r]=e:this.style[r]=[e];for(var t=0;t=0&&(this.ispt_&&this.get("translate")||this.get("translateFeature"))&&(e.handle="translate"),e.handle){this.mode_=e.handle,this.opt_=e.option,this.constraint_=e.constraint;var n=this.getMap().getView().getRotation();this.coordinate_=r.coordinate,this.pixel_=r.pixel,this.geoms_=[],this.rotatedGeoms_=[];for(var i=_i(),a=_i(),o=0,s;s=this.selection_.item(o);o++)if(this.geoms_.push(s.getGeometry().clone()),i=Uu(i,s.getGeometry().getExtent()),this.get("enableRotatedTransform")&&n!==0){var A=this.getGeometryRotateToZero_(s,!0);this.rotatedGeoms_.push(A),a=Uu(a,A.getExtent())}if(this.extent_=Hu(i).getCoordinates()[0],this.get("enableRotatedTransform")&&n!==0&&(this.rotatedExtent_=Hu(a).getCoordinates()[0]),this.mode_==="rotate"){this.center_=this.getCenter()||Sa(i);var l=r.map.getTargetElement();l.style.cursor=this.Cursors.rotate0,this.previousCursor_=l.style.cursor}else this.center_=Sa(i);return this.angle_=Math.atan2(this.center_[1]-r.coordinate[1],this.center_[0]-r.coordinate[0]),this.dispatchEvent({type:this.mode_+"start",feature:this.selection_.item(0),features:this.selection_,pixel:r.pixel,coordinate:r.coordinate}),!0}else if(this.get("selection")){if(t){this.addFn_(r)||this.selection_.clear();var u=this.selection_.getArray().indexOf(t);u<0?this.selection_.push(t):this.selection_.removeAt(u)}else this.selection_.clear();return this.ispt_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Point":!1,this.iscircle_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Circle":!1,this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",feature:t,features:this.selection_,pixel:r.pixel,coordinate:r.coordinate}),!1}}};zn.prototype.getFeatures=function(){return this.selection_};zn.prototype.getCenter=function(){return this.get("center")};zn.prototype.setCenter=function(r){return this.set("center",r)};function UA(r,e){var t=(r[0]*e[0]+r[1]*e[1])/(e[0]*e[0]+e[1]*e[1]);return[e[0]*t,e[1]*t]}function Ja(r,e){return[e[0]-r[0],e[1]-r[1]]}function Oa(r,e){return[r[0]+e[0],r[1]+e[1]]}zn.prototype.handleDragEvent_=function(r){if(this._handleEvent(r,this.features_)){var e=this.getMap().getView().getRotation(),t,n,i,a,o=[this.coordinate_[0],this.coordinate_[1]],s=[r.coordinate[0],r.coordinate[1]];switch(this.isUpdating_=!0,this.mode_){case"rotate":{var A=Math.atan2(this.center_[1]-s[1],this.center_[0]-s[0]);if(!this.ispt)for(t=0,i;i=this.selection_.item(t);t++)a=this.geoms_[t].clone(),a.rotate(A-this.angle_,this.center_),a.getType()=="Circle"&&a.setCenterAndRadius(a.getCenter(),a.getRadius()),i.setGeometry(a);this.drawSketch_(!0),this.dispatchEvent({type:"rotating",feature:this.selection_.item(0),features:this.selection_,angle:A-this.angle_,pixel:r.pixel,coordinate:r.coordinate});break}case"translate":{var l=s[0]-o[0],u=s[1]-o[1];for(t=0,i;i=this.selection_.item(t);t++)i.getGeometry().translate(l,u);this.handles_.forEach(function(T){T.getGeometry().translate(l,u)}),this.coordinate_=r.coordinate,this.dispatchEvent({type:"translating",feature:this.selection_.item(0),features:this.selection_,delta:[l,u],pixel:r.pixel,coordinate:r.coordinate});break}case"scale":{var c=this.center_;if(this.get("modifyCenter")(r)){var h=this.extent_;this.get("enableRotatedTransform")&&e!==0&&(h=this.rotatedExtent_),c=h[(Number(this.opt_)+2)%4]}var f=this.geoms_.length==1&&this._isRectangle(this.geoms_[0]),p=this.constraint_,v=this.opt_,m=this.coordinate_,g=r.coordinate;if(this.get("enableRotatedTransform")&&e!==0){var _=new fr(this.coordinate_);_.rotate(e*-1,c),m=_.getCoordinates();var E=new fr(r.coordinate);E.rotate(e*-1,c),g=E.getCoordinates()}var B=(g[0]-c[0])/(m[0]-c[0]),L=(g[1]-c[1])/(m[1]-c[1]),O=[g[0]-m[0],g[1]-m[1]];if(this.get("enableRotatedTransform")&&e!==0){var b=new fr(c);b.rotate(e*-1,this.getMap().getView().getCenter()),c=b.getCoordinates()}for(this.get("noFlip")&&(B<0&&(B=-B),L<0&&(L=-L)),this.constraint_?this.constraint_=="h"?B=1:L=1:this.get("keepAspectRatio")(r)&&(B=L=Math.min(B,L)),t=0,i;i=this.selection_.item(t);t++)a=e===0||!this.get("enableRotatedTransform")?this.geoms_[t].clone():this.rotatedGeoms_[t].clone(),a.applyTransform(function(T,I,M){if(M<2)return I;if(f){var x=[[6],[0,8],[2],[4]],S=[T[0],T[1]],N=[T[2],T[3]],P=[T[4],T[5]],X=[T[6],T[7]],z=[T[8],T[9]];if(p){var tt=v%2===0?Ja(S,N):Ja(X,S),J=UA(O,tt),nt=v+1new zn(Un({},t)));he(n,(i,a)=>{e.removeInteraction(a),e.addInteraction(i),e.changed()}),Ze(()=>{e.addInteraction(n.value)}),ir(()=>{e.removeInteraction(n.value)}),Mr("stylable",n)},props:{enableRotatedTransform:{type:Boolean,default:!1},condition:{type:Function},addCondition:{type:Function},filter:{type:Function},layers:{type:Array},hitTolerance:{type:Number,default:2},translateFeature:{type:Boolean,default:!0},scale:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},keepAspectRatio:{type:Boolean,default:!1},translate:{type:Boolean,default:!0},stretch:{type:Boolean,default:!0}}};function mut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Cx=le(yut,[["render",mut]]);const _ut={name:"ol-interaction-dragrotatezoom",setup(r){const e=Ce("map"),{properties:t}=vr(r);let n=hr(()=>new w3(Un({},t)));he(n,(i,a)=>{e.removeInteraction(a),e.addInteraction(i),e.changed()}),Ze(()=>{e.addInteraction(n.value)}),ir(()=>{e.removeInteraction(n.value)})},props:{condition:{type:Function},duration:{type:Number,default:400}}};function wut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Bx=le(_ut,[["render",wut]]);function J_(r){J_.installed||(J_.installed=!0,r.component(yx.name,yx),r.component(mx.name,mx),r.component(_x.name,_x),r.component(wx.name,wx),r.component(Ex.name,Ex),r.component(Cx.name,Cx),r.component(Bx.name,Bx))}var Eut=Object.freeze(Object.defineProperty({__proto__:null,default:J_,install:J_,SelectInteraction:yx,ClusterSelectInteraction:mx,DrawInteraction:_x,SnapInteraction:wx,ModifyInteraction:Ex,TransformInteraction:Cx,DragRotateAndZoomInteraction:Bx},Symbol.toStringTag,{value:"Module"}));const Cut={setup(){const r=Ce("map"),e=Ce("vectorLayer");return{map:r,vectorLayer:e}},props:{duration:{type:Number,default:1e3},revers:{type:Boolean,default:!1},repeat:{type:Number,default:0},fade:{type:Function},easing:{type:Function,default:ts}}};function But(r,e,t,n,i,a){return mr(r.$slots,"default")}var Fs=le(Cut,[["render",But]]),Hi=function(r){r=r||{},this.duration_=typeof r.duration=="number"?r.duration>=0?r.duration:0:1e3,this.fade_=typeof r.fade=="function"?r.fade:null,this.repeat_=Number(r.repeat);var e=typeof r.easing=="function"?r.easing:YI;r.revers?this.easing_=function(t){return 1-e(t)}:this.easing_=e,this.hiddenStyle=r.hiddenStyle,li.call(this)};Cr(Hi,li);Hi.hiddenStyle=new oa({image:new ty({}),stroke:new Ui({color:"transparent"})});Hi.prototype.drawGeom_=function(r,e,t){this.fade_&&(r.context.globalAlpha=this.fade_(1-r.elapsed));for(var n=r.style,i=0;i=0;A--)e[A].duration_===0&&e.splice(A,1);var l=0,u=0,c=t&&this.getFilters?this.getFilters():[];function h(v){s.type=v.type;try{s.vectorContext=v.vectorContext||mw(v)}catch{}if(s.frameState=v.frameState,s.inversePixelTransform=v.inversePixelTransform,s.extent||(s.extent=v.frameState.extent,s.start=v.frameState.time,s.context=v.context),s.time=v.frameState.time-s.start,s.elapsed=s.time/e[u].duration_,s.elapsed>1&&(s.elapsed=1),v.context.save(),c.forEach(function(g){g.get("active")&&g.precompose(v)}),this.getOpacity&&(v.context.globalAlpha=this.getOpacity()),!e[u].animate(s))l++,lnew r(Un({},i)));return Mr("animation",a),{map:t,vectorLayer:n,animation:a,properties:i}}const Tut={name:"ol-animation-drop",extends:Fs,setup(r){const{map:e,vectorLayer:t,properties:n}=Nh(MF,r);return{map:e,vectorLayer:t,properties:n}},props:{side:{type:Number,default:0},speed:{type:Number,default:0}}};function Sut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Tx=le(Tut,[["render",Sut]]),NF=function(r){r=r||{},Hi.call(this,r),this.amplitude_=r.amplitude||40,this.bounce_=-Math.PI*(r.bounce||6),this.horizontal_=r.horizontal};Cr(NF,Hi);NF.prototype.animate=function(r){var e=r.geom.clone(),t=r.geom.clone(),n=this.easing_(r.elapsed);return n=Math.sin(this.bounce_*n)*this.amplitude_*(1-n)*r.frameState.viewState.resolution,this.horizontal_?(e.translate(n,0),t.translate(n,0)):e.translate(0,n),this.drawGeom_(r,e,t),r.time<=this.duration_};const xut={name:"ol-animation-shake",extends:Fs,setup(r){const{map:e,vectorLayer:t,properties:n,animation:i}=Nh(NF,r);return{map:e,vectorLayer:t,properties:n,animation:i}},props:{bounce:{type:Number,default:6},amplitude:{type:Number,default:40},horizontal:{type:Boolean,default:!1}}};function but(r,e,t,n,i,a){return mr(r.$slots,"default")}var Sx=le(xut,[["render",but]]),ly=function(r){r=r||{},Hi.call(this,r),this.set("zoomout",r.zoomOut)};Cr(ly,Hi);var Iut=function(r){r=r||{},r.zoomOut=!0,ly.call(this,r)};Cr(Iut,ly);ly.prototype.animate=function(r){var e=this.easing_(r.elapsed);if(e){this.get("zoomout")&&(e=1/e);var t=r.style,n,i,a=[];for(n=0;n0&&(this.duration_=this.dist_/this.speed_)};Cr(QF,Hi);QF.prototype.animate=function(r){if(!r.time&&!this.dist_)return!1;var e=this.dist_*this.easing_(r.elapsed),t,n,i,a,o,s,A=0;n=this.path_[0];for(var l=1;l=e){i=(e-A)/s,n=[t[0]+(n[0]-t[0])*i,t[1]+(n[1]-t[1])*i];break}A+=s}var u=r.style;if(r.rotation=Math.PI/2+Math.atan2(t[1]-n[1],t[0]-n[0]),this.rotate_!==!1){var c=[],h=this.rotate_-r.rotation+r.frameState.viewState.rotation;r.rotation=Math.PI/2+Math.atan2(t[1]-n[1],t[0]-n[0]);for(var f=0;i=r.style[f];f++)i.getImage()&&i.getImage().setRotation(h),c.push(i);r.style=c}return r.geom.setCoordinates(n),this.drawGeom_(r,r.geom),r.style=u,r.time<=this.duration_};const Dut={name:"ol-animation-path",extends:Fs,setup(r){const{map:e,vectorLayer:t,properties:n}=Nh(QF,r);return{map:e,vectorLayer:t,properties:n}},props:{rotate:{type:Boolean,default:!1},speed:{type:Number,default:0},path:{type:Object}}};function Qut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Lx=le(Dut,[["render",Qut]]);function t1(r){t1.installed||(t1.installed=!0,r.component(Fs.name,Fs),r.component(Tx.name,Tx),r.component(Sx.name,Sx),r.component(xx.name,xx),r.component(bx.name,bx),r.component(Ix.name,Ix),r.component(Fx.name,Fx),r.component(Lx.name,Lx))}var Hut=Object.freeze(Object.defineProperty({__proto__:null,default:t1,install:t1,FeatureAnimation:Fs,DropAnimation:Tx,ShakeAnimation:Sx,ZoomAnimation:xx,TeleportAnimation:bx,FadeAnimation:Ix,PathAnimation:Lx,SlideAnimation:Fx},Symbol.toStringTag,{value:"Module"})),Gut=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kut=function(r){Gut(e,r);function e(t){var n=r.call(this)||this;return n.geometries_=t||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(Rr),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,n=this.geometries_.length;t=0;a--){var u=n[a][0],c=Fo(new bp(u).getExtent(),new bp(A).getExtent());if(c){n[a].push(A),l=!0;break}}l||n.push([A.reverse()])}return n}function Wut(r){var e;return r.m!==void 0&&r.z!==void 0?e=new fr([r.x,r.y,r.z,r.m],Wt.XYZM):r.z!==void 0?e=new fr([r.x,r.y,r.z],Wt.XYZ):r.m!==void 0?e=new fr([r.x,r.y,r.m],Wt.XYM):e=new fr([r.x,r.y]),e}function qut(r){var e=Xp(r);return new Hr(r.paths[0],e)}function Zut(r){var e=Xp(r);return new xa(r.paths,e)}function Xp(r){var e=Wt.XY;return r.hasZ===!0&&r.hasM===!0?e=Wt.XYZM:r.hasZ===!0?e=Wt.XYZ:r.hasM===!0&&(e=Wt.XYM),e}function Jut(r){var e=Xp(r);return new es(r.points,e)}function tct(r){var e=Xp(r);return new ba(r.rings,e)}function ect(r){var e=Xp(r);return new bn(r.rings,e)}function rct(r,e){var t=r.getCoordinates(),n,i=r.getLayout();return i===Wt.XYZ?n={x:t[0],y:t[1],z:t[2]}:i===Wt.XYM?n={x:t[0],y:t[1],m:t[2]}:i===Wt.XYZM?n={x:t[0],y:t[1],z:t[2],m:t[3]}:i===Wt.XY?n={x:t[0],y:t[1]}:_e(!1,34),n}function cy(r){var e=r.getLayout();return{hasZ:e===Wt.XYZ||e===Wt.XYZM,hasM:e===Wt.XYM||e===Wt.XYZM}}function nct(r,e){var t=cy(r);return{hasZ:t.hasZ,hasM:t.hasM,paths:[r.getCoordinates()]}}function ict(r,e){var t=cy(r);return{hasZ:t.hasZ,hasM:t.hasM,rings:r.getCoordinates(!1)}}function act(r,e){var t=cy(r);return{hasZ:t.hasZ,hasM:t.hasM,paths:r.getCoordinates()}}function oct(r,e){var t=cy(r);return{hasZ:t.hasZ,hasM:t.hasM,points:r.getCoordinates()}}function sct(r,e){for(var t=cy(r),n=r.getCoordinates(!1),i=[],a=0;a=0;o--)i.push(n[a][o]);return{hasZ:t.hasZ,hasM:t.hasM,rings:i}}function RN(r,e){var t=Uh[r.getType()];return t(Ln(r,!0,e),e)}var Act=Yut,lct=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),uct=function(r){lct(e,r);function e(t){var n=this,i=t||{};return n=r.call(this)||this,n.dataProjection=Oe(i.dataProjection?i.dataProjection:"EPSG:4326"),i.featureProjection&&(n.defaultFeatureProjection=Oe(i.featureProjection)),n.geometryName_=i.geometryName,n.extractGeometryName_=i.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return e.prototype.readFeatureFromObject=function(t,n){var i=null;t.type==="Feature"?i=t:i={type:"Feature",geometry:t,properties:null};var a=Ox(i.geometry,n),o=new or;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in i!==void 0&&o.setGeometryName(i.geometry_name),o.setGeometry(a),"id"in i&&o.setId(i.id),i.properties&&o.setProperties(i.properties,!0),o},e.prototype.readFeaturesFromObject=function(t,n){var i=t,a=null;if(i.type==="FeatureCollection"){var o=t;a=[];for(var s=o.features,A=0,l=s.length;A0?i[0]:null},e.prototype.readFeatureFromNode=function(t,n){return null},e.prototype.readFeatures=function(t,n){if(t)if(typeof t=="string"){var i=nA(t);return this.readFeaturesFromDocument(i,n)}else return rA(t)?this.readFeaturesFromDocument(t,n):this.readFeaturesFromNode(t,n);else return[]},e.prototype.readFeaturesFromDocument=function(t,n){for(var i=[],a=t.firstChild;a;a=a.nextSibling)a.nodeType==Node.ELEMENT_NODE&&Qr(i,this.readFeaturesFromNode(a,n));return i},e.prototype.readFeaturesFromNode=function(t,n){return Be()},e.prototype.readGeometry=function(t,n){if(t)if(typeof t=="string"){var i=nA(t);return this.readGeometryFromDocument(i,n)}else return rA(t)?this.readGeometryFromDocument(t,n):this.readGeometryFromNode(t,n);else return null},e.prototype.readGeometryFromDocument=function(t,n){return null},e.prototype.readGeometryFromNode=function(t,n){return null},e.prototype.readProjection=function(t){if(t)if(typeof t=="string"){var n=nA(t);return this.readProjectionFromDocument(n)}else return rA(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t);else return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,n){var i=this.writeFeatureNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeFeatureNode=function(t,n){return null},e.prototype.writeFeatures=function(t,n){var i=this.writeFeaturesNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeFeaturesNode=function(t,n){return null},e.prototype.writeGeometry=function(t,n){var i=this.writeGeometryNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeGeometryNode=function(t,n){return null},e}(uy),hy=Ict,Fct=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nl="http://www.opengis.net/gml",Lct=/^[\s\xa0]*$/,jn=function(r){Fct(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.featureType=i.featureType,n.featureNS=i.featureNS,n.srsName=i.srsName,n.schemaLocation="",n.FEATURE_COLLECTION_PARSERS={},n.FEATURE_COLLECTION_PARSERS[n.namespace]={featureMember:me(n.readFeaturesInternal),featureMembers:Le(n.readFeaturesInternal)},n.supportedMediaTypes=["application/gml+xml"],n}return e.prototype.readFeaturesInternal=function(t,n){var i=t.localName,a=null;if(i=="FeatureCollection")a=Gt([],this.FEATURE_COLLECTION_PARSERS,t,n,this);else if(i=="featureMembers"||i=="featureMember"||i=="member"){var o=n[0],s=o.featureType,A=o.featureNS,l="p",u="p0";if(!s&&t.childNodes){s=[],A={};for(var c=0,h=t.childNodes.length;c0){o[l]={_content_:o[l]};for(var c=0;c1?s.Document=t:t.length==1&&(s.Placemark=t[0]);var A=Nht[i.namespaceURI],l=ho(s,A);return Ge(o,Pht,qi,l,[n],A,this),i},e}(hy);function Hht(r,e){var t=[0,0],n="start",i=r.getImage();if(i){var a=i.getSize();if(a&&a.length==2){var o=i.getScaleArray(),s=i.getAnchor();t[0]=o[0]*(a[0]-s[0]),t[1]=o[1]*(a[1]/2-s[1]),n="left"}}var A=r.getText();A?(A=A.clone(),A.setFont(A.getFont()||Hc.getFont()),A.setScale(A.getScale()||Hc.getScale()),A.setFill(A.getFill()||Hc.getFill()),A.setStroke(A.getStroke()||Ux)):A=Hc.clone(),A.setText(e),A.setOffsetX(t[0]),A.setOffsetY(t[1]),A.setTextAlign(n);var l=new oa({image:i,text:A});return l}function Ght(r,e,t,n,i){return function(a,o){var s=i,A="",l=[];if(s){var u=a.getGeometry();if(u)if(u instanceof sa)l=u.getGeometriesArrayRecursive().filter(function(v){var m=v.getType();return m===st.POINT||m===st.MULTI_POINT}),s=l.length>0;else{var c=u.getType();s=c===st.POINT||c===st.MULTI_POINT}}s&&(A=a.get("name"),s=s&&!!A,s&&A.search(/&[^&]+;/)>-1&&($m||($m=document.createElement("textarea")),$m.innerHTML=A,A=$m.value));var h=t;if(r?h=r:e&&(h=D8(e,t,n)),s){var f=Hht(h[0],A);if(l.length>0){f.setGeometry(new sa(l));var p=new oa({geometry:h[0].getGeometry(),image:null,fill:h[0].getFill(),stroke:h[0].getStroke(),text:null});return[f,p].concat(h.slice(1))}return f}return h}}function D8(r,e,t){return Array.isArray(r)?r:typeof r=="string"?D8(t[r],e,t):e}function Tw(r){var e=Ka(r,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(t){var n=t[1];return[parseInt(n.substr(6,2),16),parseInt(n.substr(4,2),16),parseInt(n.substr(2,2),16),parseInt(n.substr(0,2),16)/255]}else return}function Q8(r){var e=Ka(r,!1),t=[];e=e.replace(/\s*,\s*/g,",");for(var n=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i,i;i=n.exec(e);){var a=parseFloat(i[1]),o=parseFloat(i[2]),s=i[3]?parseFloat(i[3]):0;t.push(a,o,s),e=e.substr(i[0].length)}if(e==="")return t}function H8(r){var e=Ka(r,!1).trim(),t=r.baseURI;if((!t||t=="about:blank")&&(t=window.location.href),t){var n=new URL(e,t);return n.href}else return e}function G8(r){var e=Ka(r,!1).trim().replace(/^(?!.*#)/,"#"),t=r.baseURI;if((!t||t=="about:blank")&&(t=window.location.href),t){var n=new URL(e,t);return n.href}else return e}function kht(r){var e=r.getAttribute("xunits"),t=r.getAttribute("yunits"),n;return e!=="insetPixels"?t!=="insetPixels"?n=Li.BOTTOM_LEFT:n=Li.TOP_LEFT:t!=="insetPixels"?n=Li.BOTTOM_RIGHT:n=Li.TOP_RIGHT,{x:parseFloat(r.getAttribute("x")),xunits:NN[e],y:parseFloat(r.getAttribute("y")),yunits:NN[t],origin:n}}function k8(r){return Ir(r)}var $ht=Nt(Te,{Pair:fft});function $8(r,e){return Gt(void 0,$ht,r,e,this)}var Vht=Nt(Te,{Icon:ot(ift),color:ot(Tw),heading:ot(Ir),hotSpot:ot(kht),scale:ot(k8)});function jht(r,e){var t=Gt({},Vht,r,e);if(t){var n=e[e.length-1],i="Icon"in t?t.Icon:{},a=!("Icon"in t)||Object.keys(i).length>0,o,s=i.href;s?o=s:a&&(o=r1);var A,l,u,c=Li.BOTTOM_LEFT,h=t.hotSpot;h?(A=[h.x,h.y],l=h.xunits,u=h.yunits,c=h.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(o)&&(/pushpin/.test(o)?(A=Mx,l=kv,u=$v):/arrow-reverse/.test(o)?(A=[54,42],l=kv,u=$v):/paddle/.test(o)&&(A=[32,1],l=kv,u=$v));var f,p=i.x,v=i.y;p!==void 0&&v!==void 0&&(f=[p,v]);var m,g=i.w,_=i.h;g!==void 0&&_!==void 0&&(m=[g,_]);var E,B=t.heading;B!==void 0&&(E=Cu(B));var L=t.scale,O=t.color;if(a){o==r1&&(m=Vv);var b=new ny({anchor:A,anchorOrigin:c,anchorXUnits:l,anchorYUnits:u,crossOrigin:this.crossOrigin_,offset:f,offsetOrigin:Li.BOTTOM_LEFT,rotation:E,scale:L,size:m,src:this.iconUrlFunction_(o),color:O}),T=b.getScaleArray()[0],I=b.getSize();if(I===null){var M=b.getImageState();if(M===$e.IDLE||M===$e.LOADING){var x=function(){var N=b.getImageState();if(!(N===$e.IDLE||N===$e.LOADING)){var P=b.getSize();if(P&&P.length==2){var X=n1(P);b.setScale(T*X)}b.unlistenImageChange(x)}};b.listenImageChange(x),M===$e.IDLE&&b.load()}}else if(I.length==2){var S=n1(I);b.setScale(T*S)}n.imageStyle=b}else n.imageStyle=qF}}var Kht=Nt(Te,{color:ot(Tw),scale:ot(k8)});function zht(r,e){var t=Gt({},Kht,r,e);if(t){var n=e[e.length-1],i=new bh({fill:new Aa({color:"color"in t?t.color:dp}),scale:t.scale});n.textStyle=i}}var Yht=Nt(Te,{color:ot(Tw),width:ot(Ir)});function Xht(r,e){var t=Gt({},Yht,r,e);if(t){var n=e[e.length-1],i=new Ui({color:"color"in t?t.color:dp,width:"width"in t?t.width:1});n.strokeStyle=i}}var Wht=Nt(Te,{color:ot(Tw),fill:ot(ju),outline:ot(ju)});function qht(r,e){var t=Gt({},Wht,r,e);if(t){var n=e[e.length-1],i=new Aa({color:"color"in t?t.color:dp});n.fillStyle=i;var a=t.fill;a!==void 0&&(n.fill=a);var o=t.outline;o!==void 0&&(n.outline=o)}}var Zht=Nt(Te,{coordinates:Le(Q8)});function V8(r,e){return Gt(null,Zht,r,e)}function Jht(r,e){var t=e[e.length-1],n=t.coordinates,i=Ka(r,!1),a=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i,o=a.exec(i);if(o){var s=parseFloat(o[1]),A=parseFloat(o[2]),l=parseFloat(o[3]);n.push([s,A,l])}else n.push([])}var tft=Nt(Cl,{Track:me(j8)});function eft(r,e){var t=Gt([],tft,r,e);if(t)return new xa(t)}var rft=Nt(Te,{when:xft},Nt(Cl,{coord:Jht}));function j8(r,e){var t=Gt({coordinates:[],whens:[]},rft,r,e);if(t){for(var n=[],i=t.coordinates,a=t.whens,o=0,s=Math.min(i.length,a.length);o0){var n=e[e.length-1];n.push.apply(n,t)}}var Bft=Nt(Te,{LinearRing:Le(V8)});function Tft(r,e){var t=Gt(void 0,Bft,r,e);if(t){var n=e[e.length-1];n[0]=t}}function Sft(r,e){Ao(Mht,r,e)}function xft(r,e){var t=e[e.length-1],n=t.whens,i=Ka(r,!1),a=Date.parse(i);n.push(isNaN(a)?0:a)}function xw(r,e){for(var t=Du(e),n=t.length==4?t[3]:1,i=[n*255,t[2],t[1],t[0]],a=0;a<4;++a){var o=Math.floor(i[a]).toString(16);i[a]=o.length==1?"0"+o:o}De(r,i.join(""))}function bft(r,e,t){var n=t[t.length-1],i=n.layout,a=n.stride,o;i==Wt.XY||i==Wt.XYM?o=2:i==Wt.XYZ||i==Wt.XYZM?o=3:_e(!1,34);var s=e.length,A="";if(s>0){A+=e[0];for(var l=1;l0){var g=ho(i,o),_={names:o,values:g};Ge(n,WC,rpt,[_],t)}var E=t[0],B=e.getGeometry();B&&(B=Ln(B,!0,E)),Ge(n,WC,J8,[B],t)}var npt=Nt(Te,["extrude","tessellate","altitudeMode","coordinates"]),ipt=Nt(Te,{extrude:At(Np),tessellate:At(Np),altitudeMode:At(De),coordinates:At(bft)});function vp(r,e,t){var n=e.getFlatCoordinates(),i={node:r};i.layout=e.getLayout(),i.stride=e.getStride();var a=e.getProperties();a.coordinates=n;var o=t[t.length-1].node,s=npt[o.namespaceURI],A=ho(a,s);Ge(i,ipt,qi,A,t,s)}var apt=Nt(Te,["color","fill","outline"]),HN=Nt(Te,{outerBoundaryIs:At(QN),innerBoundaryIs:At(QN)}),opt=Nn("innerBoundaryIs"),spt=Nn("outerBoundaryIs");function rH(r,e,t){var n=e.getLinearRings(),i=n.shift(),a={node:r};Ge(a,HN,opt,n,t),Ge(a,HN,spt,[i],t)}var Apt=Nt(Te,{color:At(xw),fill:At(Np),outline:At(Np)});function lpt(r,e,t){var n={node:r},i=e.getFill(),a=e.getStroke(),o={color:i?i.getColor():void 0,fill:i?void 0:!1,outline:a?void 0:!1},s=t[t.length-1].node,A=apt[s.namespaceURI],l=ho(o,A);Ge(n,Apt,qi,l,t,A)}function nH(r,e){no(r,Math.round(e*1e6)/1e6)}var upt=Nt(Te,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),cpt=Nt(Te,{IconStyle:At(Gft),LabelStyle:At(Vft),LineStyle:At(zft),PolyStyle:At(lpt)});function hpt(r,e,t){var n={node:r},i={};if(e.pointStyles.length){var a=e.pointStyles[0].getText();a&&(i.LabelStyle=a);var o=e.pointStyles[0].getImage();o&&typeof o.getSrc=="function"&&(i.IconStyle=o)}if(e.lineStyles.length){var s=e.lineStyles[0].getStroke();s&&(i.LineStyle=s)}if(e.polyStyles.length){var s=e.polyStyles[0].getStroke();s&&!i.LineStyle&&(i.LineStyle=s),i.PolyStyle=e.polyStyles[0]}var A=t[t.length-1].node,l=upt[A.namespaceURI],u=ho(i,l);Ge(n,cpt,qi,u,t,l)}function fpt(r,e){r.setAttribute("x",String(e.x)),r.setAttribute("y",String(e.y)),r.setAttribute("xunits",e.xunits),r.setAttribute("yunits",e.yunits)}var ppt=Qht,tL={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */tL.read=function(r,e,t,n,i){var a,o,s=i*8-n-1,A=(1<>1,u=-7,c=t?i-1:0,h=t?-1:1,f=r[e+c];for(c+=h,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=a*256+r[e+c],c+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=o*256+r[e+c],c+=h,u-=8);if(a===0)a=1-l;else{if(a===A)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(f?-1:1)*o*Math.pow(2,a-n)};tL.write=function(r,e,t,n,i,a){var o,s,A,l=a*8-i-1,u=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,p=n?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(A=Math.pow(2,-o))<1&&(o--,A*=2),o+c>=1?e+=h/A:e+=h*Math.pow(2,1-c),e*A>=2&&(o++,A/=2),o+c>=u?(s=0,o=u):o+c>=1?(s=(e*A-1)*Math.pow(2,i),o=o+c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;r[t+f]=s&255,f+=p,s/=256,i-=8);for(o=o<0;r[t+f]=o&255,f+=p,o/=256,l-=8);r[t+f-p]|=v*128};var dpt=Pr,Vm=tL;function Pr(r){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(r)?r:new Uint8Array(r||0),this.pos=0,this.type=0,this.length=this.buf.length}Pr.Varint=0;Pr.Fixed64=1;Pr.Bytes=2;Pr.Fixed32=5;var Qx=(1<<16)*(1<<16),GN=1/Qx,vpt=12,iH=typeof TextDecoder>"u"?null:new TextDecoder("utf8");Pr.prototype={destroy:function(){this.buf=null},readFields:function(r,e,t){for(t=t||this.length;this.pos>3,a=this.pos;this.type=n&7,r(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(r,e){return this.readFields(r,e,this.readVarint()+this.pos)},readFixed32:function(){var r=jm(this.buf,this.pos);return this.pos+=4,r},readSFixed32:function(){var r=$N(this.buf,this.pos);return this.pos+=4,r},readFixed64:function(){var r=jm(this.buf,this.pos)+jm(this.buf,this.pos+4)*Qx;return this.pos+=8,r},readSFixed64:function(){var r=jm(this.buf,this.pos)+$N(this.buf,this.pos+4)*Qx;return this.pos+=8,r},readFloat:function(){var r=Vm.read(this.buf,this.pos,!0,23,4);return this.pos+=4,r},readDouble:function(){var r=Vm.read(this.buf,this.pos,!0,52,8);return this.pos+=8,r},readVarint:function(r){var e=this.buf,t,n;return n=e[this.pos++],t=n&127,n<128||(n=e[this.pos++],t|=(n&127)<<7,n<128)||(n=e[this.pos++],t|=(n&127)<<14,n<128)||(n=e[this.pos++],t|=(n&127)<<21,n<128)?t:(n=e[this.pos],t|=(n&15)<<28,gpt(t,r,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var r=this.readVarint();return r%2===1?(r+1)/-2:r/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var r=this.readVarint()+this.pos,e=this.pos;return this.pos=r,r-e>=vpt&&iH?Lpt(this.buf,e,r):Fpt(this.buf,e,r)},readBytes:function(){var r=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,r);return this.pos=r,e},readPackedVarint:function(r,e){if(this.type!==Pr.Bytes)return r.push(this.readVarint(e));var t=DA(this);for(r=r||[];this.pos127;);else if(e===Pr.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Pr.Fixed32)this.pos+=4;else if(e===Pr.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(r,e){this.writeVarint(r<<3|e)},realloc:function(r){for(var e=this.length||16;e268435455||r<0){ypt(r,this);return}this.realloc(4),this.buf[this.pos++]=r&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=(r>>>=7)&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=(r>>>=7)&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=r>>>7&127)))},writeSVarint:function(r){this.writeVarint(r<0?-r*2-1:r*2)},writeBoolean:function(r){this.writeVarint(Boolean(r))},writeString:function(r){r=String(r),this.realloc(r.length*4),this.pos++;var e=this.pos;this.pos=Opt(this.buf,r,this.pos);var t=this.pos-e;t>=128&&kN(e,t,this),this.pos=e-1,this.writeVarint(t),this.pos+=t},writeFloat:function(r){this.realloc(4),Vm.write(this.buf,r,this.pos,!0,23,4),this.pos+=4},writeDouble:function(r){this.realloc(8),Vm.write(this.buf,r,this.pos,!0,52,8),this.pos+=8},writeBytes:function(r){var e=r.length;this.writeVarint(e),this.realloc(e);for(var t=0;t=128&&kN(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeMessage:function(r,e,t){this.writeTag(r,Pr.Bytes),this.writeRawMessage(e,t)},writePackedVarint:function(r,e){e.length&&this.writeMessage(r,wpt,e)},writePackedSVarint:function(r,e){e.length&&this.writeMessage(r,Ept,e)},writePackedBoolean:function(r,e){e.length&&this.writeMessage(r,Tpt,e)},writePackedFloat:function(r,e){e.length&&this.writeMessage(r,Cpt,e)},writePackedDouble:function(r,e){e.length&&this.writeMessage(r,Bpt,e)},writePackedFixed32:function(r,e){e.length&&this.writeMessage(r,Spt,e)},writePackedSFixed32:function(r,e){e.length&&this.writeMessage(r,xpt,e)},writePackedFixed64:function(r,e){e.length&&this.writeMessage(r,bpt,e)},writePackedSFixed64:function(r,e){e.length&&this.writeMessage(r,Ipt,e)},writeBytesField:function(r,e){this.writeTag(r,Pr.Bytes),this.writeBytes(e)},writeFixed32Field:function(r,e){this.writeTag(r,Pr.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(r,e){this.writeTag(r,Pr.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(r,e){this.writeTag(r,Pr.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(r,e){this.writeTag(r,Pr.Fixed64),this.writeSFixed64(e)},writeVarintField:function(r,e){this.writeTag(r,Pr.Varint),this.writeVarint(e)},writeSVarintField:function(r,e){this.writeTag(r,Pr.Varint),this.writeSVarint(e)},writeStringField:function(r,e){this.writeTag(r,Pr.Bytes),this.writeString(e)},writeFloatField:function(r,e){this.writeTag(r,Pr.Fixed32),this.writeFloat(e)},writeDoubleField:function(r,e){this.writeTag(r,Pr.Fixed64),this.writeDouble(e)},writeBooleanField:function(r,e){this.writeVarintField(r,Boolean(e))}};function gpt(r,e,t){var n=t.buf,i,a;if(a=n[t.pos++],i=(a&112)>>4,a<128||(a=n[t.pos++],i|=(a&127)<<3,a<128)||(a=n[t.pos++],i|=(a&127)<<10,a<128)||(a=n[t.pos++],i|=(a&127)<<17,a<128)||(a=n[t.pos++],i|=(a&127)<<24,a<128)||(a=n[t.pos++],i|=(a&1)<<31,a<128))return gf(r,i,e);throw new Error("Expected varint not more than 10 bytes")}function DA(r){return r.type===Pr.Bytes?r.readVarint()+r.pos:r.pos+1}function gf(r,e,t){return t?e*4294967296+(r>>>0):(e>>>0)*4294967296+(r>>>0)}function ypt(r,e){var t,n;if(r>=0?(t=r%4294967296|0,n=r/4294967296|0):(t=~(-r%4294967296),n=~(-r/4294967296),t^4294967295?t=t+1|0:(t=0,n=n+1|0)),r>=18446744073709552e3||r<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),mpt(t,n,e),_pt(n,e)}function mpt(r,e,t){t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos]=r&127}function _pt(r,e){var t=(r&7)<<4;e.buf[e.pos++]|=t|((r>>>=3)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127)))))}function kN(r,e,t){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));t.realloc(n);for(var i=t.pos-1;i>=r;i--)t.buf[i+n]=t.buf[i]}function wpt(r,e){for(var t=0;t>>8,r[t+2]=e>>>16,r[t+3]=e>>>24}function $N(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16)+(r[e+3]<<24)}function Fpt(r,e,t){for(var n="",i=e;i239?4:a>223?3:a>191?2:1;if(i+s>t)break;var A,l,u;s===1?a<128&&(o=a):s===2?(A=r[i+1],(A&192)===128&&(o=(a&31)<<6|A&63,o<=127&&(o=null))):s===3?(A=r[i+1],l=r[i+2],(A&192)===128&&(l&192)===128&&(o=(a&15)<<12|(A&63)<<6|l&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(A=r[i+1],l=r[i+2],u=r[i+3],(A&192)===128&&(l&192)===128&&(u&192)===128&&(o=(a&15)<<18|(A&63)<<12|(l&63)<<6|u&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,n+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),n+=String.fromCharCode(o),i+=s}return n}function Lpt(r,e,t){return iH.decode(r.subarray(e,t))}function Opt(r,e,t){for(var n=0,i,a;n55295&&i<57344)if(a)if(i<56320){r[t++]=239,r[t++]=191,r[t++]=189,a=i;continue}else i=a-55296<<10|i-56320|65536,a=null;else{i>56319||n+1===e.length?(r[t++]=239,r[t++]=191,r[t++]=189):a=i;continue}else a&&(r[t++]=239,r[t++]=191,r[t++]=189,a=null);i<128?r[t++]=i:(i<2048?r[t++]=i>>6|192:(i<65536?r[t++]=i>>12|224:(r[t++]=i>>18|240,r[t++]=i>>12&63|128),r[t++]=i>>6&63|128),r[t++]=i&63|128)}return t}var VN=oi(),xg=function(){function r(e,t,n,i,a){this.styleFunction,this.extent_,this.id_=a,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=i}return r.prototype.get=function(e){return this.properties_[e]},r.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===st.POINT?zc(this.flatCoordinates_):Y1(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},r.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var e=Sa(this.getExtent());this.flatInteriorPoints_=nF(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_},r.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var e=NQ(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=pQ(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_},r.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=I_(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},r.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var e=this.flatCoordinates_,t=0,n=this.ends_,i=0,a=n.length;i>3}A--,s===1||s===2?(l+=t.readSVarint(),u+=t.readSVarint(),s===1&&c>h&&(a.push(c),h=c),i.push(l,u),c+=2):s===7?c>h&&(i.push(i[h],i[h+1]),c+=2):_e(!1,59)}c>h&&(a.push(c),h=c)},e.prototype.createFeature_=function(t,n,i){var a=n.type;if(a===0)return null;var o,s=n.properties,A;this.idProperty_?(A=s[this.idProperty_],delete s[this.idProperty_]):A=n.id,s[this.layerName_]=n.layer.name;var l=[],u=[];this.readRawGeometry_(t,n,l,u);var c=Qpt(a,u.length);if(this.featureClass_===jN)o=new this.featureClass_(c,l,u,s,A),o.transform(i.dataProjection);else{var h=void 0;if(c==st.POLYGON){var f=MW(l,u);h=f.length>1?new ba(l,Wt.XY,f):new bn(l,Wt.XY,u)}else h=c===st.POINT?new fr(l,Wt.XY):c===st.LINE_STRING?new Hr(l,Wt.XY):c===st.POLYGON?new bn(l,Wt.XY,u):c===st.MULTI_POINT?new es(l,Wt.XY):c===st.MULTI_LINE_STRING?new xa(l,Wt.XY,u):null;var p=this.featureClass_;o=new p,this.geometryName_&&o.setGeometryName(this.geometryName_);var v=Ln(h,!1,i);o.setGeometry(v),A!==void 0&&o.setId(A),o.setProperties(s,!0)}return o},e.prototype.getType=function(){return Cs.ARRAY_BUFFER},e.prototype.readFeatures=function(t,n){var i=this.layers_,a=this.adaptOptions(n),o=Oe(a.dataProjection);o.setWorldExtent(a.extent),a.dataProjection=o;var s=new dpt(t),A=s.readFields(Npt,{}),l=[];for(var u in A)if(!(i&&i.indexOf(u)==-1)){var c=A[u],h=c?[0,0,c.extent,c.extent]:null;o.setExtent(h);for(var f=0,p=c.length;f>3,n=r===1?t.readString():r===2?t.readFloat():r===3?t.readDouble():r===4?t.readVarint64():r===5?t.readVarint():r===6?t.readSVarint():r===7?t.readBoolean():null;e.values.push(n)}}function Upt(r,e,t){if(r==1)e.id=t.readVarint();else if(r==2)for(var n=t.readVarint()+t.pos;t.pos>1):i>>1}return e}function xdt(r){for(var e="",t=0,n=r.length;t=32;)e=(32|r&31)+63,t+=String.fromCharCode(e),r>>=5;return e=r+63,t+=String.fromCharCode(e),t}var Fdt=_dt,Ldt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Odt=function(r){Ldt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.layerName_=i.layerName,n.layers_=i.layers?i.layers:null,n.dataProjection=Oe(i.dataProjection?i.dataProjection:"EPSG:4326"),n}return e.prototype.readFeaturesFromObject=function(t,n){if(t.type=="Topology"){var i=t,a=void 0,o=null,s=null;i.transform&&(a=i.transform,o=a.scale,s=a.translate);var A=i.arcs;a&&Gdt(A,o,s);var l=[],u=i.objects,c=this.layerName_,h=void 0;for(var f in u)this.layers_&&this.layers_.indexOf(f)==-1||(u[f].type==="GeometryCollection"?(h=u[f],l.push.apply(l,Hdt(h,A,o,s,c,f,n))):(h=u[f],l.push(oH(h,A,o,s,c,f,n))));return l}else return[]},e.prototype.readProjectionFromObject=function(t){return this.dataProjection},e}(GF),Rdt={Point:Mdt,LineString:Pdt,Polygon:Ddt,MultiPoint:Ndt,MultiLineString:Udt,MultiPolygon:Qdt};function bw(r,e){for(var t=[],n,i=0,a=r.length;i0&&t.pop(),n>=0)for(var o=e[n],s=0,A=o.length;s=0;--s)t.push(o[s].slice(0));return t}function Mdt(r,e,t){var n=r.coordinates;return e&&t&&rL(n,e,t),new fr(n)}function Ndt(r,e,t){var n=r.coordinates;if(e&&t)for(var i=0,a=n.length;i=2,57),i}return e}(sH),Ydt=zdt,Xdt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wdt=function(r){Xdt(e,r);function e(t){return r.call(this,"And",Array.prototype.slice.call(arguments))||this}return e}(Ydt),qdt=Wdt,Zdt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Jdt=function(r){Zdt(e,r);function e(t,n,i){var a=r.call(this,"BBOX")||this;if(a.geometryName=t,a.extent=n,n.length!==4)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");return a.srsName=i,a}return e}(sH),tvt=Jdt;function evt(r){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(qdt,e))}function rvt(r,e,t){return new tvt(r,e,t)}var nvt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zN={"http://www.opengis.net/gml":{boundedBy:ot(lr.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:me(lr.prototype.readFeaturesInternal)}},ivt={"http://www.opengis.net/wfs":{totalInserted:ot(ai),totalUpdated:ot(ai),totalDeleted:ot(ai)},"http://www.opengis.net/wfs/2.0":{totalInserted:ot(ai),totalUpdated:ot(ai),totalDeleted:ot(ai)}},avt={"http://www.opengis.net/wfs":{TransactionSummary:ot(XN,"transactionSummary"),InsertResults:ot(qN,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:ot(XN,"transactionSummary"),InsertResults:ot(qN,"insertIds")}},ovt={"http://www.opengis.net/wfs":{PropertyName:At(De)},"http://www.opengis.net/wfs/2.0":{PropertyName:At(De)}},AH={"http://www.opengis.net/wfs":{Insert:At(ZN),Update:At(tP),Delete:At(JN),Property:At(eP),Native:At(rP)},"http://www.opengis.net/wfs/2.0":{Insert:At(ZN),Update:At(tP),Delete:At(JN),Property:At(eP),Native:At(rP)}},lH="feature",iL="http://www.w3.org/2000/xmlns/",aL={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},Hx={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},oL={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},YN={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},sL={"2.0.0":nL,"1.1.0":rr,"1.0.0":qp},svt="1.1.0",Avt=function(r){nvt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.version_=i.version?i.version:svt,n.featureType_=i.featureType,n.featureNS_=i.featureNS,n.gmlFormat_=i.gmlFormat?i.gmlFormat:new sL[n.version_],n.schemaLocation_=i.schemaLocation?i.schemaLocation:YN[n.version_],n}return e.prototype.getFeatureType=function(){return this.featureType_},e.prototype.setFeatureType=function(t){this.featureType_=t},e.prototype.readFeaturesFromNode=function(t,n){var i={node:t};de(i,{featureType:this.featureType_,featureNS:this.featureNS_}),de(i,this.getReadOptions(t,n||{}));var a=[i],o;this.version_==="2.0.0"?o=zN:o=this.gmlFormat_.FEATURE_COLLECTION_PARSERS;var s=Gt([],o,t,a,this.gmlFormat_);return s||(s=[]),s},e.prototype.readTransactionResponse=function(t){if(t)if(typeof t=="string"){var n=nA(t);return this.readTransactionResponseFromDocument(n)}else return rA(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t);else return},e.prototype.readFeatureCollectionMetadata=function(t){if(t)if(typeof t=="string"){var n=nA(t);return this.readFeatureCollectionMetadataFromDocument(n)}else return rA(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t);else return},e.prototype.readFeatureCollectionMetadataFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(n)},e.prototype.readFeatureCollectionMetadataFromNode=function(t){var n={},i=ZA(t.getAttribute("numberOfFeatures"));return n.numberOfFeatures=i,Gt(n,zN,t,[],this.gmlFormat_)},e.prototype.readTransactionResponseFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(n)},e.prototype.readTransactionResponseFromNode=function(t){return Gt({},avt,t,[])},e.prototype.writeGetFeature=function(t){var n=this,i=ke(Hx[this.version_],"GetFeature");i.setAttribute("service","WFS"),i.setAttribute("version",this.version_),t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),t.maxFeatures!==void 0&&i.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&i.setAttribute("resultType",t.resultType),t.startIndex!==void 0&&i.setAttribute("startIndex",String(t.startIndex)),t.count!==void 0&&i.setAttribute("count",String(t.count)),t.viewParams!==void 0&&i.setAttribute("viewParams",t.viewParams),i.setAttributeNS(yh,"xsi:schemaLocation",this.schemaLocation_);var a={node:i};if(de(a,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),_e(Array.isArray(t.featureTypes),11),typeof t.featureTypes[0]=="string"){var o=t.filter;t.bbox&&(_e(t.geometryName,12),o=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,o)),de(a,{geometryName:t.geometryName,filter:o}),hP(i,t.featureTypes,[a])}else t.featureTypes.forEach(function(s){var A=n.combineBboxAndFilter(s.geometryName,s.bbox,t.srsName,t.filter);de(a,{geometryName:s.geometryName,filter:A}),hP(i,[s.name],[a])});return i},e.prototype.combineBboxAndFilter=function(t,n,i,a){var o=rvt(t,n,i);return a?evt(a,o):o},e.prototype.writeTransaction=function(t,n,i,a){var o=[],s=a.version?a.version:this.version_,A=ke(Hx[s],"Transaction");A.setAttribute("service","WFS"),A.setAttribute("version",s);var l;a&&(l=a.gmlOptions?a.gmlOptions:{},a.handle&&A.setAttribute("handle",a.handle)),A.setAttributeNS(yh,"xsi:schemaLocation",YN[s]);var u=lvt(A,l,s,a);return t&&Km("Insert",t,o,u),n&&Km("Update",n,o,u),i&&Km("Delete",i,o,u),a.nativeElements&&Km("Native",a.nativeElements,o,u),A},e.prototype.readProjectionFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(n);return null},e.prototype.readProjectionFromNode=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild){t=t.firstElementChild.firstElementChild;for(var n=t.firstElementChild;n;n=n.nextElementSibling)if(!(n.childNodes.length===0||n.childNodes.length===1&&n.firstChild.nodeType===3)){var i=[{}];return this.gmlFormat_.readGeometryElement(n,i),Oe(i.pop().srsName)}}return null},e}(hy);function lvt(r,e,t,n){var i=n.featurePrefix?n.featurePrefix:lH,a;t==="1.0.0"?a=2:t==="1.1.0"?a=3:t==="2.0.0"&&(a=3.2);var o=de({node:r},{version:t,featureNS:n.featureNS,featureType:n.featureType,featurePrefix:i,gmlVersion:a,hasZ:n.hasZ,srsName:n.srsName},e);return o}function Km(r,e,t,n){Ge(n,AH,Nn(r),e,t)}function XN(r,e){return Gt({},ivt,r,e)}var uvt={"http://www.opengis.net/ogc":{FeatureId:me(function(r,e){return r.getAttribute("fid")})},"http://www.opengis.net/ogc/1.1":{FeatureId:me(function(r,e){return r.getAttribute("fid")})}};function WN(r,e){Ao(uvt,r,e)}var cvt={"http://www.opengis.net/wfs":{Feature:WN},"http://www.opengis.net/wfs/2.0":{Feature:WN}};function qN(r,e){return Gt([],cvt,r,e)}function ZN(r,e,t){var n=t[t.length-1],i=n.featureType,a=n.featureNS,o=n.gmlVersion,s=ke(a,i);r.appendChild(s),o===2?qp.prototype.writeFeatureElement(s,e,t):o===3?rr.prototype.writeFeatureElement(s,e,t):nL.prototype.writeFeatureElement(s,e,t)}function uH(r,e,t){var n=t[t.length-1],i=n.version,a=aL[i],o=ke(a,"Filter"),s=ke(a,"FeatureId");o.appendChild(s),s.setAttribute("fid",e),r.appendChild(o)}function AL(r,e){r=r||lH;var t=r+":";return e.indexOf(t)===0?e:t+e}function JN(r,e,t){var n=t[t.length-1];_e(e.getId()!==void 0,26);var i=n.featureType,a=n.featurePrefix,o=n.featureNS,s=AL(a,i);r.setAttribute("typeName",s),r.setAttributeNS(iL,"xmlns:"+a,o);var A=e.getId();A!==void 0&&uH(r,A,t)}function tP(r,e,t){var n=t[t.length-1];_e(e.getId()!==void 0,27);var i=n.version,a=n.featureType,o=n.featurePrefix,s=n.featureNS,A=AL(o,a),l=e.getGeometryName();r.setAttribute("typeName",A),r.setAttributeNS(iL,"xmlns:"+o,s);var u=e.getId();if(u!==void 0){for(var c=e.getKeys(),h=[],f=0,p=c.length;f0,i=this.readUint32(n),a=Math.floor((i&268435455)/1e3),o=Boolean(i&2147483648)||a===1||a===3,s=Boolean(i&1073741824)||a===2||a===3,A=Boolean(i&536870912),l=(i&268435455)%1e3,u=["XY",o?"Z":"",s?"M":""].join(""),c=A?this.readUint32(n):null;if(e!==void 0&&e!==l)throw new Error("Unexpected WKB geometry type "+l);if(this.initialized_){if(this.isLittleEndian_!==n)throw new Error("Inconsistent endian");if(this.layout_!==u)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=n,this.hasZ_=o,this.hasM_=s,this.layout_=u,this.srid_=c,this.initialized_=!0;return l},r.prototype.readWkbPayload=function(e){switch(e){case Kr.POINT:return this.readPoint();case Kr.LINE_STRING:return this.readLineString();case Kr.POLYGON:case Kr.TRIANGLE:return this.readPolygon();case Kr.MULTI_POINT:return this.readMultiPoint();case Kr.MULTI_LINE_STRING:return this.readMultiLineString();case Kr.MULTI_POLYGON:case Kr.POLYHEDRAL_SURFACE:case Kr.TIN:return this.readMultiPolygon();case Kr.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+e+" is found")}},r.prototype.readWkbBlock=function(e){return this.readWkbPayload(this.readWkbHeader(e))},r.prototype.readWkbCollection=function(e,t){for(var n=this.readUint32(),i=[],a=0;a=0&&(e+=this.isEWKB_?2147483648:1e3),this.layout_.indexOf("M")>=0&&(e+=this.isEWKB_?1073741824:2e3),this.isEWKB_&&Number.isInteger(t)&&(e|=536870912),this.writeUint8(this.isLittleEndian_?1:0),this.writeUint32(e),this.isEWKB_&&Number.isInteger(t)&&this.writeUint32(t)},r.prototype.writeMultiPoint=function(e,t){this.writeUint32(e.length);for(var n=0;n="a"&&e<="z"||e>="A"&&e<="Z"},r.prototype.isNumeric_=function(e,t){var n=t!==void 0?t:!1;return e>="0"&&e<="9"||e=="."&&!n},r.prototype.isWhiteSpace_=function(e){return e==" "||e==" "||e=="\r"||e==` -`},r.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},r.prototype.nextToken=function(){var e=this.nextChar_(),t=this.index_,n=e,i;if(e=="(")i=Ur.LEFT_PAREN;else if(e==",")i=Ur.COMMA;else if(e==")")i=Ur.RIGHT_PAREN;else if(this.isNumeric_(e)||e=="-")i=Ur.NUMBER,n=this.readNumber_();else if(this.isAlpha_(e))i=Ur.TEXT,n=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(e==="")i=Ur.EOF;else throw new Error("Unexpected character: "+e)}return{position:t,value:n,type:i}},r.prototype.readNumber_=function(){var e,t=this.index_,n=!1,i=!1;do e=="."?n=!0:(e=="e"||e=="E")&&(i=!0),e=this.nextChar_();while(this.isNumeric_(e,n)||!i&&(e=="e"||e=="E")||i&&(e=="-"||e=="+"));return parseFloat(this.wkt.substring(t,this.index_--))},r.prototype.readText_=function(){var e,t=this.index_;do e=this.nextChar_();while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()},r}(),Svt=function(){function r(e){this.lexer_=e,this.token_={position:0,type:Ur.START},this.layout_=Wt.XY}return r.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},r.prototype.isTokenType=function(e){return this.token_.type==e},r.prototype.match=function(e){var t=this.isTokenType(e);return t&&this.consume_(),t},r.prototype.parse=function(){return this.consume_(),this.parseGeometry_()},r.prototype.parseGeometryLayout_=function(){var e=Wt.XY,t=this.token_;if(this.isTokenType(Ur.TEXT)){var n=t.value;n===hH?e=Wt.XYZ:n===fH?e=Wt.XYM:n===Cvt&&(e=Wt.XYZM),e!==Wt.XY&&this.consume_()}return e},r.prototype.parseGeometryCollectionText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=[];do e.push(this.parseGeometry_());while(this.match(Ur.COMMA));if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePointText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parsePoint_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseLineStringText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parsePointList_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePolygonText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parseLineStringTextList_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiPointText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=void 0;if(this.token_.type==Ur.LEFT_PAREN?e=this.parsePointTextList_():e=this.parsePointList_(),this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiLineStringText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parseLineStringTextList_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiPolygonText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parsePolygonTextList_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePoint_=function(){for(var e=[],t=this.layout_.length,n=0;n0&&(e+=" "+i)}return n.length===0?e+" "+cH:e+"("+n+")"}var Mvt=xvt,Nvt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ua=[null,"http://www.opengis.net/wms"],Pvt=Nt(ua,{Service:ot(ngt),Capability:ot(rgt)}),Uvt=Nt(ua,{Request:ot(ugt),Exception:ot(sgt),Layer:ot(Agt)}),Dvt=function(r){Nvt(e,r);function e(){var t=r.call(this)||this;return t.version=void 0,t}return e.prototype.readFromNode=function(t){this.version=t.getAttribute("version").trim();var n=Gt({version:this.version},Pvt,t,[]);return n||null},e}(eL),Qvt=Nt(ua,{Name:ot($t),Title:ot($t),Abstract:ot($t),KeywordList:ot(_H),OnlineResource:ot(Zp),ContactInformation:ot(igt),Fees:ot($t),AccessConstraints:ot($t),LayerLimit:ot(ai),MaxWidth:ot(ai),MaxHeight:ot(ai)}),Hvt=Nt(ua,{ContactPersonPrimary:ot(agt),ContactPosition:ot($t),ContactAddress:ot(ogt),ContactVoiceTelephone:ot($t),ContactFacsimileTelephone:ot($t),ContactElectronicMailAddress:ot($t)}),Gvt=Nt(ua,{ContactPerson:ot($t),ContactOrganization:ot($t)}),kvt=Nt(ua,{AddressType:ot($t),Address:ot($t),City:ot($t),StateOrProvince:ot($t),PostCode:ot($t),Country:ot($t)}),$vt=Nt(ua,{Format:me($t)}),gH=Nt(ua,{Name:ot($t),Title:ot($t),Abstract:ot($t),KeywordList:ot(_H),CRS:vn($t),EX_GeographicBoundingBox:ot(egt),BoundingBox:vn(tgt),Dimension:vn(lgt),Attribution:ot(Jvt),AuthorityURL:vn(fgt),Identifier:vn($t),MetadataURL:vn(pgt),DataURL:vn(cl),FeatureListURL:vn(cl),Style:vn(dgt),MinScaleDenominator:ot(Ir),MaxScaleDenominator:ot(Ir),Layer:vn(yH)}),Vvt=Nt(ua,{Title:ot($t),OnlineResource:ot(Zp),LogoURL:ot(mH)}),jvt=Nt(ua,{westBoundLongitude:ot(Ir),eastBoundLongitude:ot(Ir),southBoundLatitude:ot(Ir),northBoundLatitude:ot(Ir)}),Kvt=Nt(ua,{GetCapabilities:ot(qC),GetMap:ot(qC),GetFeatureInfo:ot(qC)}),zvt=Nt(ua,{Format:vn($t),DCPType:vn(cgt)}),Yvt=Nt(ua,{HTTP:ot(hgt)}),Xvt=Nt(ua,{Get:ot(cl),Post:ot(cl)}),Wvt=Nt(ua,{Name:ot($t),Title:ot($t),Abstract:ot($t),LegendURL:vn(mH),StyleSheetURL:ot(cl),StyleURL:ot(cl)}),qvt=Nt(ua,{Format:ot($t),OnlineResource:ot(Zp)}),Zvt=Nt(ua,{Keyword:me($t)});function Jvt(r,e){return Gt({},Vvt,r,e)}function tgt(r,e){var t=[XA(r.getAttribute("minx")),XA(r.getAttribute("miny")),XA(r.getAttribute("maxx")),XA(r.getAttribute("maxy"))],n=[XA(r.getAttribute("resx")),XA(r.getAttribute("resy"))];return{crs:r.getAttribute("CRS"),extent:t,res:n}}function egt(r,e){var t=Gt({},jvt,r,e);if(t){var n=t.westBoundLongitude,i=t.southBoundLatitude,a=t.eastBoundLongitude,o=t.northBoundLatitude;if(!(n===void 0||i===void 0||a===void 0||o===void 0))return[n,i,a,o]}}function rgt(r,e){return Gt({},Uvt,r,e)}function ngt(r,e){return Gt({},Qvt,r,e)}function igt(r,e){return Gt({},Hvt,r,e)}function agt(r,e){return Gt({},Gvt,r,e)}function ogt(r,e){return Gt({},kvt,r,e)}function sgt(r,e){return Gt([],$vt,r,e)}function Agt(r,e){var t=Gt({},gH,r,e);return t.Layer===void 0?Object.assign(t,yH(r,e)):t}function yH(r,e){var t=e[e.length-1],n=Gt({},gH,r,e);if(n){var i=Jc(r.getAttribute("queryable"));i===void 0&&(i=t.queryable),n.queryable=i!==void 0?i:!1;var a=ZA(r.getAttribute("cascaded"));a===void 0&&(a=t.cascaded),n.cascaded=a;var o=Jc(r.getAttribute("opaque"));o===void 0&&(o=t.opaque),n.opaque=o!==void 0?o:!1;var s=Jc(r.getAttribute("noSubsets"));s===void 0&&(s=t.noSubsets),n.noSubsets=s!==void 0?s:!1;var A=XA(r.getAttribute("fixedWidth"));A||(A=t.fixedWidth),n.fixedWidth=A;var l=XA(r.getAttribute("fixedHeight"));l||(l=t.fixedHeight),n.fixedHeight=l;var u=["Style","CRS","AuthorityURL"];u.forEach(function(h){if(h in t){var f=n[h]||[];n[h]=f.concat(t[h])}});var c=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];return c.forEach(function(h){if(!(h in n)){var f=t[h];n[h]=f}}),n}}function lgt(r,e){var t={name:r.getAttribute("name"),units:r.getAttribute("units"),unitSymbol:r.getAttribute("unitSymbol"),default:r.getAttribute("default"),multipleValues:Jc(r.getAttribute("multipleValues")),nearestValue:Jc(r.getAttribute("nearestValue")),current:Jc(r.getAttribute("current")),values:$t(r)};return t}function cl(r,e){return Gt({},qvt,r,e)}function ugt(r,e){return Gt({},Kvt,r,e)}function cgt(r,e){return Gt({},Yvt,r,e)}function hgt(r,e){return Gt({},Xvt,r,e)}function qC(r,e){return Gt({},zvt,r,e)}function mH(r,e){var t=cl(r,e);if(t){var n=[ZA(r.getAttribute("width")),ZA(r.getAttribute("height"))];return t.size=n,t}}function fgt(r,e){var t=cl(r,e);if(t)return t.name=r.getAttribute("name"),t}function pgt(r,e){var t=cl(r,e);if(t)return t.type=r.getAttribute("type"),t}function dgt(r,e){return Gt({},Wvt,r,e)}function _H(r,e){return Gt([],Zvt,r,e)}var vgt=Dvt,ggt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ygt="_feature",mgt="_layer",_gt=function(r){ggt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.featureNS_="http://mapserver.gis.umn.edu/mapserver",n.gmlFormat_=new qp,n.layers_=i.layers?i.layers:null,n}return e.prototype.getLayers=function(){return this.layers_},e.prototype.setLayers=function(t){this.layers_=t},e.prototype.readFeatures_=function(t,n){t.setAttribute("namespaceURI",this.featureNS_);var i=t.localName,a=[];if(t.childNodes.length===0)return a;if(i=="msGMLOutput")for(var o=0,s=t.childNodes.length;o>"),A("endobj");var _=l();A("<<"),A("/Type /Font"),A("/BaseFont /"+Df(s.fontName)),A("/FontDescriptor "+g+" 0 R"),A("/W "+r.API.PDFObject.convert(c)),A("/CIDToGIDMap /Identity"),A("/DW 1000"),A("/Subtype /CIDFontType2"),A("/CIDSystemInfo"),A("<<"),A("/Supplement 0"),A("/Registry (Adobe)"),A("/Ordering ("+s.encoding+")"),A(">>"),A(">>"),A("endobj"),s.objectNumber=l(),A("<<"),A("/Type /Font"),A("/Subtype /Type0"),A("/ToUnicode "+m+" 0 R"),A("/BaseFont /"+Df(s.fontName)),A("/Encoding /"+s.encoding),A("/DescendantFonts ["+_+" 0 R]"),A(">>"),A("endobj"),s.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(o){var s=o.font,A=o.out,l=o.newObject,u=o.putStream;if(s.metadata instanceof r.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var c=s.metadata.rawData,h="",f=0;f>"),A("endobj"),s.objectNumber=l();for(var g=0;g>"),A("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var o,s=a.text||"",A=a.x,l=a.y,u=a.options||{},c=a.mutex||{},h=c.pdfEscape,f=c.activeFontKey,p=c.fonts,v=f,m="",g=0,_="",E=p[v].encoding;if(p[v].encoding!=="Identity-H")return{text:s,x:A,y:l,options:u,mutex:c};for(_=s,v=f,Array.isArray(s)&&(_=s[0]),g=0;g<_.length;g+=1)p[v].metadata.hasOwnProperty("cmap")&&(o=p[v].metadata.cmap.unicode.codeMap[_[g].charCodeAt(0)]),o||_[g].charCodeAt(0)<256&&p[v].metadata.hasOwnProperty("Unicode")?m+=_[g]:m+="";var B="";return parseInt(v.slice(1))<14||E==="WinAnsiEncoding"?B=h(m,v).split("").map(function(L){return L.charCodeAt(0).toString(16)}).join(""):E==="Identity-H"&&(B=t(m,p[v])),c.isHex=!0,{text:B,x:A,y:l,options:u,mutex:c}};e.events.push(["postProcessText",function(a){var o=a.text||"",s=[],A={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var l=0;for(l=0;l","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),_=!1,E=0;this.__bidiEngine__={};var B=function(x){var S=x.charCodeAt(),N=S>>8,P=v[N];return P!==void 0?c[256*P+(255&S)]:N===252||N===253?"AL":g.test(N)?"L":N===8?"R":"N"},L=function(x){for(var S,N=0;N=S.length||(X=N[P-1])!=="EN"&&X!=="AN"||(z=S[P+1])!=="EN"&&z!=="AN"?nt="N":_&&(z="AN"),nt=z===X?z:"N";break;case"ES":nt=(X=P>0?N[P-1]:"B")==="EN"&&P+10&&N[P-1]==="EN"){nt="EN";break}if(_){nt="N";break}for(tt=P+1,J=S.length;tt=1425&&it<=2303||it===64286;if(X=S[tt],_t&&(X==="R"||X==="AL")){nt="R";break}}}nt=P<1||(X=S[P-1])==="B"?"N":N[P-1];break;case"B":_=!1,i=!0,nt=E;break;case"S":a=!0,nt="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":_=!1;break;case"BN":nt="N"}return nt},b=function(x,S,N){var P=x.split("");return N&&T(P,N,{hiLevel:E}),P.reverse(),S&&S.reverse(),P.join("")},T=function(x,S,N){var P,X,z,tt,J,nt=-1,it=x.length,_t=0,R=[],$=E?f:h,K=[];for(_=!1,i=!1,a=!1,X=0;X0)if(P===16){for(X=nt;X-1){for(X=nt;X=0&&q[W]==="WS";W--)at[W]=E}}(K,S,it)},I=function(x,S,N,P,X){if(!(X.hiLevel=x){for(J=_t+1;J=x;)J++;for(nt=_t,tt=J-1;nt=0&&(z[it]=m[nt+1])}(P,N,X),I(2,P,S,N,X),I(1,P,S,N,X),P.join("")};return this.__bidiEngine__.doBidiReorder=function(x,S,N){if(function(X,z){if(z)for(var tt=0;tt>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},r.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},r.prototype.widthOfString=function(e,t,n){var i,a,o,s;for(o=0,a=0,s=(e=""+e).length;0<=s?as;a=0<=s?++a:--a)i=e.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/t)||0;return o*(t/1e3)},r.prototype.lineHeight=function(e,t){var n;return t==null&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},r}();var Ps,Vu=function(){function r(e){this.data=e??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(e){return this.data[this.pos++]=e},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},r.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},r.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},r.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?te;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},r.prototype.writeString=function(e){var t,n,i;for(i=[],t=0,n=e.length;0<=n?tn;t=0<=n?++t:--t)i.push(this.writeByte(e.charCodeAt(t)));return i},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(e){return this.writeInt16(e)},r.prototype.readLongLong=function(){var e,t,n,i,a,o,s,A;return e=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),A=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^A)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*i+16777216*a+65536*o+256*s+A},r.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(e){return this.writeInt32(e)},r.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?ne;n=0<=e?++n:--n)t.push(this.readByte());return t},r.prototype.write=function(e){var t,n,i,a;for(a=[],n=0,i=e.length;na;i=0<=a?++i:--i)n={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[n.tag]=n}return e.prototype.encode=function(t){var n,i,a,o,s,A,l,u,c,h,f,p,v;for(v in f=Object.keys(t).length,A=Math.log(2),c=16*Math.floor(Math.log(f)/A),o=Math.floor(c/A),u=16*f-c,(i=new Vu).writeInt(this.scalarType),i.writeShort(f),i.writeShort(c),i.writeShort(o),i.writeShort(u),a=16*f,l=i.pos+a,s=null,p=[],t)for(h=t[v],i.writeString(v),i.writeInt(r(h)),i.writeInt(l),i.writeInt(h.length),p=p.concat(h),v==="head"&&(s=l),l+=h.length;l%4;)p.push(0),l++;return i.write(p),n=2981146554-r(i.data),i.pos=s+8,i.writeUInt32(n),i.data},r=function(t){var n,i,a,o;for(t=F8.call(t);t.length%4;)t.push(0);for(a=new Vu(t),i=0,n=0,o=t.length;nh;A=0<=h?++B:--B)L.push(e.readUInt16());return L}(),e.pos+=2,v=function(){var B,L;for(L=[],A=B=0;0<=h?Bh;A=0<=h?++B:--B)L.push(e.readUInt16());return L}(),l=function(){var B,L;for(L=[],A=B=0;0<=h?Bh;A=0<=h?++B:--B)L.push(e.readUInt16());return L}(),u=function(){var B,L;for(L=[],A=B=0;0<=h?Bh;A=0<=h?++B:--B)L.push(e.readUInt16());return L}(),i=(this.length-e.pos+this.offset)/2,s=function(){var B,L;for(L=[],A=B=0;0<=i?Bi;A=0<=i?++B:--B)L.push(e.readUInt16());return L}(),A=g=0,E=a.length;g=m;n=p<=m?++_:--_)u[A]===0?o=n+l[A]:(o=s[u[A]/2+(n-p)-(h-A)]||0)!==0&&(o+=l[A]),this.codeMap[n]=65535&o}e.pos=c}return r.encode=function(e,t){var n,i,a,o,s,A,l,u,c,h,f,p,v,m,g,_,E,B,L,O,b,T,I,M,x,S,N,P,X,z,tt,J,nt,it,_t,R,$,K,q,at,vt,wt,W,It,Ot,j;switch(P=new Vu,o=Object.keys(e).sort(function(Z,ut){return Z-ut}),t){case"macroman":for(v=0,m=function(){var Z=[];for(p=0;p<256;++p)Z.push(0);return Z}(),_={0:0},a={},X=0,nt=o.length;X=32768)for(A.push(0),O.push(2*(f.length+I-p)),i=J=x;x<=u?J<=u:J>=u;i=x<=u?++J:--J)f.push(n[i].new);else A.push(N-x),O.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*I+2*f.length),P.writeUInt16(0),P.writeUInt16(M),P.writeUInt16(T),P.writeUInt16(h),P.writeUInt16(b),vt=0,R=c.length;vta;i=0<=a?++i:--i)n=new FN(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var i,a;return n==null&&(n="macroman"),i=FN.encode(t,n),(a=new Vu).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},e}(),ilt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),alt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var n,i;for(i=[],n=0;n<10;++n)i.push(t.readByte());return i}(),this.charRange=function(){var n,i;for(i=[],n=0;n<4;++n)i.push(t.readInt());return i}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(t.readInt());return i}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),olt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="post",e.prototype.parse=function(t){var n,i,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var o;for(i=t.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?oi;o=0<=i?++o:--o)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.posA;o=0<=A?++s:--s)l.push(t.readUInt32());return l}.call(this)}},e}(),slt=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Alt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="name",e.prototype.parse=function(t){var n,i,a,o,s,A,l,u,c,h,f;for(t.pos=this.offset,t.readShort(),n=t.readShort(),A=t.readShort(),i=[],o=0;0<=n?on;o=0<=n?++o:--o)i.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+A+t.readShort()});for(l={},o=c=0,h=i.length;cA;n=0<=A?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,c;for(c=[],n=u=0;0<=a?ua;n=0<=a?++u:--u)c.push(t.readInt16());return c}(),this.widths=function(){var u,c,h,f;for(f=[],u=0,c=(h=this.metrics).length;ua;n=0<=a?++s:--s)l.push(this.widths.push(i));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),F8=[].slice,clt=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return fA(e,Ps),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,i,a,o,s,A,l,u,c,h;return t in this.cache?this.cache[t]:(o=this.file.loca,n=this.file.contents,i=o.indexOf(t),(a=o.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+i,s=(A=new Vu(n.read(a))).readShort(),u=A.readShort(),h=A.readShort(),l=A.readShort(),c=A.readShort(),this.cache[t]=s===-1?new flt(A,u,h,l,c):new hlt(A,s,u,h,l,c),this.cache[t]))},e.prototype.encode=function(t,n,i){var a,o,s,A,l;for(s=[],o=[],A=0,l=n.length;A0&&(a+=l)}for(var u=new Array(4*i.length),c=0;c>8,u[4*c+1]=(16711680&i[c])>>16,u[4*c]=(4278190080&i[c])>>24;return u},e}(),dlt=function(){function r(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var e,t,n,i,a;for(t in i=this.font.cmap.tables[0].codeMap,e={},a=this.subset)n=a[t],e[t]=i[n];return e},r.prototype.glyphsFor=function(e){var t,n,i,a,o,s,A;for(i={},o=0,s=e.length;o0)for(a in A=this.glyphsFor(t))n=A[a],i[a]=n;return i},r.prototype.encode=function(e,t){var n,i,a,o,s,A,l,u,c,h,f,p,v,m,g;for(i in n=I8.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),f={0:0},g=n.charMap)f[(A=g[i]).old]=A.new;for(p in h=n.maxGlyphID,o)p in f||(f[p]=h++);return u=function(_){var E,B;for(E in B={},_)B[_[E]]=E;return B}(f),c=Object.keys(u).sort(function(_,E){return _-E}),v=function(){var _,E,B;for(B=[],_=0,E=c.length;_>"),a.join(` +`)}return""+t},e}();const vlt={name:"ol-control-printdialog",setup(r,e){const{control:t}=Di(In,r,e);return t.value.on(["print","error"],function(n){if(n.image)if(n.pdf){var i=new Ue({orientation:n.print.orientation,unit:n.print.unit,format:n.print.size});i.addImage(n.image,"JPEG",n.print.position[0],n.print.position[0],n.print.imageWidth,n.print.imageHeight),i.save(n.print.legend?"legend.pdf":"map.pdf")}else n.canvas.toBlob(function(a){var o=(n.print.legend?"legend.":"map.")+n.imageType.replace("image/","");LF.exports.saveAs(a,o)},n.imageType,n.quality);else console.warn("No canvas to export")}),{control:t}},props:{lang:{type:String}}};function glt(r,e,t,n,i,a){return dr("",!0)}var ex=le(vlt,[["render",glt]]),Mh=function(r){r||(r={});var e=ct.create("DIV",{className:(r.className||"ol-videorec")+" ol-unselectable ol-control"});ct.create("BUTTON",{type:"button",className:"ol-start",title:"start",click:function(){this.start()}.bind(this),parent:e}),ct.create("BUTTON",{type:"button",className:"ol-stop",title:"stop",click:function(){this.stop()}.bind(this),parent:e}),ct.create("BUTTON",{type:"button",className:"ol-pause",title:"pause",click:function(){this.pause()}.bind(this),parent:e}),ct.create("BUTTON",{type:"button",className:"ol-resume",title:"resume",click:function(){this.resume()}.bind(this),parent:e}),_r.call(this,{element:e,target:r.target}),this.set("framerate",30),this.set("videoBitsPerSecond",5e6),r.videoTarget==="DIALOG"?(this._dialog=new Ia({className:"ol-fullscreen-dialog",target:document.body,closeBox:!0}),this._videoTarget=this._dialog.getContentElement()):this._videoTarget=r.videoTarget,this._printCtrl=new Zu({target:ct.create("DIV")})};Cr(Mh,_r);Mh.prototype.setMap=function(r){this.getMap()&&(this.getMap().removeControl(this._printCtrl),this._dialog&&this.getMap().removeControl(this._dialog)),_r.prototype.setMap.call(this,r),this.getMap()&&(this.getMap().addControl(this._printCtrl),this._dialog&&this.getMap().addControl(this._dialog))};Mh.prototype.start=function(){var r=this._printCtrl,e=!1;function t(n){e||r.fastPrint({canvas:n},t)}r.fastPrint({},function(n){var i;try{i=n.captureStream(this.get("framerate")||30)}catch(o){this.dispatchEvent({type:"error",error:o});return}this._mediaRecorder=new MediaRecorder(i,{videoBitsPerSecond:this.get("videoBitsPerSecond")||5e6});var a=[];this._mediaRecorder.ondataavailable=function(o){a.push(o.data)},this._mediaRecorder.onstop=function(){e=!0;var o=new Blob(a,{type:"video/mp4"});if(a=[],this._videoTarget instanceof Element){var s;this._videoTarget.tagName==="VIDEO"?s=this._videoTarget:(s=this._videoTarget.querySelector("video"),s||(s=ct.create("VIDEO",{controls:"",parent:this._videoTarget}))),this._dialog&&this._dialog.show(),s.src=URL.createObjectURL(o),this.dispatchEvent({type:"stop",videoURL:s.src})}else this.dispatchEvent({type:"stop",videoURL:URL.createObjectURL(o)})}.bind(this),this._mediaRecorder.onpause=function(){e=!0,this.dispatchEvent({type:"pause"})}.bind(this),this._mediaRecorder.onresume=function(){e=!1,t(n),this.dispatchEvent({type:"resume"})}.bind(this),this._mediaRecorder.onerror=function(o){this.dispatchEvent({type:"error",error:o})}.bind(this),e=!1,t(n),this._mediaRecorder.start(),this.dispatchEvent({type:"start",canvas:n}),this.element.setAttribute("data-state","rec")}.bind(this))};Mh.prototype.stop=function(){this._mediaRecorder&&(this._mediaRecorder.stop(),this._mediaRecorder=null,this.element.setAttribute("data-state","inactive"))};Mh.prototype.pause=function(){this._mediaRecorder&&(this._mediaRecorder.pause(),this.element.setAttribute("data-state","pause"))};Mh.prototype.resume=function(){this._mediaRecorder&&(this._mediaRecorder.resume(),this.element.setAttribute("data-state","rec"))};const ylt={name:"ol-control-videorecorder",emits:["start","stop"],setup(r,e){const{control:t}=Di(Mh,r,e),{downloadName:n}=Lu(r);return t.value.on("start",i=>{e.emit("start",i)}),t.value.on("stop",i=>{e.emit("stop",i),LF.exports.saveAs(i.videoURL,n.value)}),{control:t}},props:{className:{type:String},framerate:{type:Number,default:30},videoBitsPerSecond:{type:Number,default:5e6},videoTarget:{type:String},downloadName:{type:String,default:"mapVideo.mp4"}}};function mlt(r,e,t,n,i,a){return dr("",!0)}var rx=le(ylt,[["render",mlt]]),du={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},_lt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wlt={image:[Ar.POLYGON,Ar.CIRCLE,Ar.LINE_STRING,Ar.IMAGE,Ar.TEXT],hybrid:[Ar.POLYGON,Ar.LINE_STRING],vector:[]},Elt={hybrid:[Ar.IMAGE,Ar.TEXT,Ar.DEFAULT],vector:[Ar.POLYGON,Ar.CIRCLE,Ar.LINE_STRING,Ar.IMAGE,Ar.TEXT,Ar.DEFAULT]},Clt=function(r){_lt(e,r);function e(t){var n=r.call(this,t)||this;return n.boundHandleStyleImageChange_=n.handleStyleImageChange_.bind(n),n.dirty_=!1,n.renderedLayerRevision_,n.renderedPixelToCoordinateTransform_=null,n.renderedRotation_,n.tmpTransform_=oi(),n}return e.prototype.prepareTile=function(t,n,i){var a,o=t.getState();return(o===ge.LOADED||o===ge.ERROR)&&(this.updateExecutorGroup_(t,n,i),this.tileImageNeedsRender_(t)&&(a=!0)),a},e.prototype.getTile=function(t,n,i,a){var o=a.pixelRatio,s=a.viewState,A=s.resolution,l=s.projection,u=this.getLayer(),c=u.getSource().getTile(t,n,i,o,l),h=a.viewHints,f=!(h[gn.ANIMATING]||h[gn.INTERACTING]);(f||!c.wantedResolution)&&(c.wantedResolution=A);var p=this.prepareTile(c,o,l);return p&&(f||Date.now()-a.time<8)&&u.getRenderMode()!==du.VECTOR&&this.renderTileImage_(c,a),r.prototype.getTile.call(this,t,n,i,a)},e.prototype.isDrawableTile=function(t){var n=this.getLayer();return r.prototype.isDrawableTile.call(this,t)&&(n.getRenderMode()===du.VECTOR?pe(n)in t.executorGroups:t.hasContext(n))},e.prototype.getTileImage=function(t){return t.getImage(this.getLayer())},e.prototype.prepareFrame=function(t){var n=this.getLayer().getRevision();return this.renderedLayerRevision_!=n&&(this.renderedTiles.length=0),this.renderedLayerRevision_=n,r.prototype.prepareFrame.call(this,t)},e.prototype.updateExecutorGroup_=function(t,n,i){var a=this.getLayer(),o=a.getRevision(),s=a.getRenderOrder()||null,A=t.wantedResolution,l=t.getReplayState(a);if(!(!l.dirty&&l.renderedResolution===A&&l.renderedRevision==o&&l.renderedRenderOrder==s)){var u=a.getSource(),c=a.getDeclutter(),h=u.getTileGrid(),f=u.getTileGridForProjection(i),p=f.getTileCoordExtent(t.wrappedTileCoord),v=u.getSourceTiles(n,i,t),m=pe(a);delete t.hitDetectionImageData[m],t.executorGroups[m]=[],c&&(t.declutterExecutorGroups[m]=[]);for(var g=function(L,O){var b=v[L];if(b.getState()!=ge.LOADED)return"continue";var T=b.tileCoord,I=h.getTileCoordExtent(T),M=Jo(p,I),x=Va(M,a.getRenderBuffer()*A,_.tmpExtent),S=AA(I,M)?null:x;l.dirty=!1;var N=new L_(0,x,A,n),P=c?new L_(0,M,A,n):void 0,X=YQ(A,n),z=function(q){var at,vt=q.getStyleFunction()||a.getStyleFunction();if(vt&&(at=vt(q,A)),at){var wt=this.renderFeature(q,X,at,N,P);this.dirty_=this.dirty_||wt,l.dirty=l.dirty||wt}},tt=b.getFeatures();s&&s!==l.renderedRenderOrder&&tt.sort(s);for(var J=0,nt=tt.length;J0){n([]);return}var _=c.getTileCoordExtent(p.wrappedTileCoord),E=Rs(_),B=[(h[0]-E[0])/u,(E[1]-h[1])/u],L=p.getSourceTiles().reduce(function(M,x){return M.concat(x.getFeatures())},[]),O=p.hitDetectionImageData[o];if(!O&&!this.animatingOrInteracting_){var b=Pi(c.getTileSize(c.getZForResolution(u))),T=this.renderedRotation_,I=[this.getRenderTransform(c.getTileCoordCenter(p.wrappedTileCoord),u,0,Io,b[0]*Io,b[1]*Io,0)];O=jQ(b,I,L,a.getStyleFunction(),c.getTileCoordExtent(p.wrappedTileCoord),p.getReplayState(a).renderedResolution,T),p.hitDetectionImageData[o]=O}n(KQ(B,L,O))}.bind(this))},e.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.renderedLayerRevision_!==void 0&&t.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.renderDeclutter=function(t){var n=this.context,i=n.globalAlpha;n.globalAlpha=this.getLayer().getOpacity();for(var a=t.viewHints,o=!(a[gn.ANIMATING]||a[gn.INTERACTING]),s=this.renderedTiles,A=0,l=s.length;A=0;--h)c[h].execute(this.context,1,this.getTileRenderTransform(u,t),t.viewState.rotation,o,void 0,t.declutterTree)}n.globalAlpha=i},e.prototype.getTileRenderTransform=function(t,n){var i=n.pixelRatio,a=n.viewState,o=a.center,s=a.resolution,A=a.rotation,l=n.size,u=Math.round(l[0]*i),c=Math.round(l[1]*i),h=this.getLayer().getSource(),f=h.getTileGridForProjection(n.viewState.projection),p=t.tileCoord,v=f.getTileCoordExtent(t.wrappedTileCoord),m=f.getTileCoordExtent(p,this.tmpExtent)[0]-v[0],g=kp(Pv(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(o,s,A,i,u,c,m));return g},e.prototype.renderFrame=function(t,n){var i=t.viewHints,a=!(i[gn.ANIMATING]||i[gn.INTERACTING]);r.prototype.renderFrame.call(this,t,n),this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation;var o=this.getLayer(),s=o.getRenderMode(),A=this.context,l=A.globalAlpha;A.globalAlpha=o.getOpacity();for(var u=Elt[s],c=t.viewState,h=c.rotation,f=o.getSource(),p=f.getTileGridForProjection(c.projection),v=p.getZForResolution(c.resolution,f.zDirection),m=this.renderedTiles,g=[],_=[],E=m.length-1;E>=0;--E){var B=m[E],L=B.executorGroups[pe(o)].filter(function(z){return z.hasExecutors(u)});if(L.length!==0){for(var O=this.getTileRenderTransform(B,t),b=B.tileCoord[0],T=!1,I=L[0].getClipCoords(O),M=0,x=g.length;Me-n){ct.setStyle(this.element,{height:"100%"});var a=this.panel_.querySelectorAll("li.visible .li-content")[0],o=a?2*ct.getStyle(a,"height"):0;switch(r){case 1:i+=o;break;case-1:i-=o;break;case"+50%":i+=Math.round(e/2);break;case"-50%":i-=Math.round(e/2);break}return i+t<=e-3*n/2?(i=e-3*n/2-t,ct.hide(this.botv)):ct.show(this.botv),i>=0?(i=0,ct.hide(this.topv)):ct.show(this.topv),ct.setStyle(this.panel_,{top:i+"px"}),!0}else return ct.setStyle(this.element,{height:"auto"}),ct.setStyle(this.panel_,{top:0}),ct.hide(this.botv),ct.hide(this.topv),!1}else return!1};kr.prototype._setLayerForLI=function(r,e){var t=[];e.getLayers&&t.push(e.getLayers().on("change:length",this.drawPanel.bind(this))),r&&(t.push(e.on("change:opacity",function(){this.setLayerOpacity(e,r)}.bind(this))),t.push(e.on("change:visible",function(){this.setLayerVisibility(e,r)}.bind(this)))),t.push(e.on("propertychange",function(n){(n.key==="displayInLayerSwitcher"||n.key==="openInLayerSwitcher")&&this.drawPanel(n)}.bind(this))),this._layers.push({li:r,layer:e,listeners:t})};kr.prototype.setLayerOpacity=function(r,e){var t=e.querySelector(".layerswitcher-opacity-cursor");t&&(t.style.left=r.getOpacity()*100+"%"),this.dispatchEvent({type:"layer:opacity",layer:r})};kr.prototype.setLayerVisibility=function(r,e){var t=e.querySelector(".ol-visibility");t&&(t.checked=r.getVisible()),r.getVisible()?e.classList.add("ol-visible"):e.classList.remove("ol-visible"),this.dispatchEvent({type:"layer:visible",layer:r})};kr.prototype._clearLayerForLI=function(){this._layers.forEach(function(r){r.listeners.forEach(function(e){No(e)})}),this._layers=[]};kr.prototype._getLayerForLI=function(r){for(var e=0,t;t=this._layers[e];e++)if(t.li===r)return t.layer;return null};kr.prototype.viewChange=function(){this.panel_.querySelectorAll("li").forEach(function(r){var e=this._getLayerForLI(r);e&&(this.testLayerVisibility(e)?r.classList.remove("ol-layer-hidden"):r.classList.add("ol-layer-hidden"))}.bind(this))};kr.prototype.getPanel=function(){return this.panelContainer_};kr.prototype.drawPanel=function(){if(this.getMap()){var r=this;this.dcount++,setTimeout(function(){r.drawPanel_()},this.get("drawDelay")||0)}};kr.prototype.drawPanel_=function(){if(!(--this.dcount||this.dragging_)){var r=this.panelContainer_.scrollTop;this._clearLayerForLI(),this.panel_.querySelectorAll("li").forEach(function(e){e.classList.contains("ol-header")||e.remove()}.bind(this)),this._layerGroup?this.drawList(this.panel_,this._layerGroup.getLayers()):this.getMap()&&this.drawList(this.panel_,this.getMap().getLayers()),this.panelContainer_.scrollTop=r}};kr.prototype.switchLayerVisibility=function(r,e){r.get("baseLayer")?(r.getVisible()||r.setVisible(!0),e.forEach(function(t){r!==t&&t.get("baseLayer")&&t.getVisible()&&t.setVisible(!1)})):r.setVisible(!r.getVisible())};kr.prototype.testLayerVisibility=function(r){if(!this.getMap())return!0;var e=this.getMap().getView().getResolution(),t=this.getMap().getView().getZoom();if(r.getMaxResolution()<=e||r.getMinResolution()>=e)return!1;if(r.getMinZoom&&(r.getMinZoom()>=t||r.getMaxZoom()_?v.insertAt(_,f):v.insertAt(_+1,f);break}}p&&e.selectLayer(f),e.dispatchEvent({type:"reorder-end",layer:f,group:u})}t.parentNode.querySelectorAll("li").forEach(function(E){E.classList.remove("dropover"),E.classList.remove("dropover-after"),E.classList.remove("dropover-before")}),t.classList.remove("drag"),t.parentNode.classList.remove("drag"),e.element.classList.remove("drag"),A&&A.remove(),ct.removeListener(document,"mousemove touchmove",h),ct.removeListener(document,"mouseup touchend touchcancel",c)}function h(f){if(a=f.pageY||f.touches&&f.touches.length&&f.touches[0].pageY||f.changedTouches&&f.changedTouches.length&&f.changedTouches[0].pageY,n&&Math.abs(o-a)>2&&(n=!1,t.classList.add("drag"),l=e._getLayerForLI(t),s=!1,u=e._getLayerForLI(t.parentNode.parentNode),A=ct.create("LI",{className:"ol-dragover",html:t.innerHTML,style:{position:"absolute","z-index":1e4,left:t.offsetLeft,opacity:.5,width:ct.outerWidth(t),height:ct.getStyle(t,"height")},parent:i}),e.element.classList.add("drag"),e.dispatchEvent({type:"reorder-start",layer:l,group:u})),!n){f.preventDefault(),f.stopPropagation(),ct.setStyle(A,{top:a-ct.offsetRect(i).top+i.scrollTop+5});var p;for(f.touches?p=document.elementFromPoint(f.touches[0].clientX,f.touches[0].clientY):p=f.target,p.classList.contains("ol-switcherbottomdiv")?e.overflow(-1):p.classList.contains("ol-switchertopdiv")&&e.overflow(1);p&&p.tagName!=="LI";)p=p.parentNode;(!p||!p.classList.contains("dropover"))&&t.parentNode.querySelectorAll("li").forEach(function(v){v.classList.remove("dropover"),v.classList.remove("dropover-after"),v.classList.remove("dropover-before")}),p&&p.parentNode.classList.contains("drag")&&p!==t?(s=e._getLayerForLI(p),s&&!s.get("allwaysOnTop")==!l.get("allwaysOnTop")?(p.classList.add("dropover"),p.classList.add(t.offsetTop0&&(!u.get("allwaysOnTop")||n[l-1].get("allwaysOnTop")))&&ct.create("DIV",{className:"layerup ol-noscroll",title:this.tip.up,on:{"mousedown touchstart":function(B){t.dragOrdering_(B)}},parent:h}),u.getLayers){var v=0;u.getLayers().forEach(function(B){t.displayInLayerSwitcher(B)&&v++}),v&&ct.create("DIV",{className:u.get("openInLayerSwitcher")?"collapse-layers":"expend-layers",title:this.tip.plus,click:function(){var B=t._getLayerForLI(this.parentNode.parentNode);B.set("openInLayerSwitcher",!B.get("openInLayerSwitcher"))},parent:h})}if(this.oninfo&&ct.create("DIV",{className:"layerInfo",title:this.tip.info,click:a,parent:h}),this.hastrash&&!u.get("noSwitcherDelete")&&ct.create("DIV",{className:"layerTrash",title:this.tip.trash,click:s,parent:h}),this.hasextent&&n[l].getExtent()){var m=n[l].getExtent();m.length==4&&m[0]=0;l--)A.call(this,n[l]);this.viewChange(),r===this.panel_&&this.overflow()};kr.prototype.getLayerClass=function(r){return r?r.getLayers?"ol-layer-group":r instanceof hA?"ol-layer-vector":r instanceof xlt?"ol-layer-vectortile":r instanceof TF?"ol-layer-tile":r instanceof Y4?"ol-layer-image":r instanceof u8?"ol-layer-heatmap":r.getFeatures?"ol-layer-vectorimage":"unknown":"none"};kr.prototype.selectLayer=function(r,e){if(!r){if(!this.getMap())return;r=this.getMap().getLayers().item(this.getMap().getLayers().getLength()-1)}this._selectedLayer=r,this.drawPanel(),e||this.dispatchEvent({type:"select",layer:r})};kr.prototype.getSelection=function(){return this._selectedLayer};kr.prototype.setprogress_=function(r){if(!r.layerswitcher_progress){var e=0,t=0,n=function(){t===e?(t=e=0,ct.setStyle(r.layerswitcher_progress,{width:0})):ct.setStyle(r.layerswitcher_progress,{width:(e/t*100).toFixed(1)+"%"})};r.getSource().on("tileloadstart",function(){t++,n()}),r.getSource().on("tileloadend",function(){e++,n()}),r.getSource().on("tileloaderror",function(){e++,n()})}};const blt={name:"ol-layerswitcher-control",setup(r,e){const{control:t}=Di(kr,r,e);return{control:t}},props:{selection:{type:Boolean},displayInLayerSwitcher:{type:Function},show_progress:{type:Boolean,default:!1},mouseover:{type:Boolean,default:!1},reordering:{type:Boolean,default:!0},trash:{type:Boolean,default:!1},oninfo:{type:Function},extent:{type:Boolean},onextent:{type:Function},drawDelay:{type:Number},collapsed:{type:Boolean,default:!0},layerGroup:{type:Object},noScroll:{type:Boolean,default:!1}}};function Ilt(r,e,t,n,i,a){return dr("",!0)}var X_=le(blt,[["render",Ilt]]);ow.prototype.getPreview=function(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAk6QAAJOkBUCTn+AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANeSURBVHic7ZpPiE1RHMc/780MBhkik79JSUlIUbOxI+wkI2yRhYSUlJLNpJF/xcpiJBmZGBZsNM1CkmhKITGkGbH0/BuPmXnP4rxbb/TOn3fvOffeec6nfqvb/b7f93fveeec37ng8Xg8Ho/nf6Uu4d+fDswFssCvhHOJhaXAMeApMAQUyyIPPAdOAiuTStAVy4EHjDWsix5gdRLJ2mY34ulWYz6IEeA4kIk9awtkgTOEM/5vdAKT4k0/Ou3YMR/ELcbRm9AKFLBbgCJwNE4TYZkJfMG++SIwDCyLz0o4bI17WdyJz0r1TAZ+oDcxCBwAFgIzEIuhvcBbg3sLwOK4DFXLFvQGniCGSSUagS4DjUPOHESkA3XiOWCORqMR6Nfo9DjI3QqPUSd+ylBnv0Zn0GrWFvmIOvGNhjqrNDp/EAutyFgRKUM2tgO+Gur81FxvAKYZaimxXYBvmuuLDHWWaK4X0RfJCNsF6NdcbzXU2a65PohYFKWOc+jn8PUajbWIXaBKp9NB7lZYh34OzwFbFfd/NtDYYSth27urLGIm0M31AL3APWAAmIooymaDnPIl/Vz4NN1yHrd7gcvxWQnHAuA3bsyPop8hUsE13BSgK04TUViBeFo2zedJ8S6wElexW4D2eNOPTjNi6WvD/DtEr8E6tk6GGoAmxFY2iFHE9NZiQf8gogiB9gTEH23izAZuE77vHyU+ANucO1QwD3hD/MbLowAcdm20EmkwXx4n3NodS9rMB2HabYpEWs0HcRqHp0fNwAvJD+eBTZr7p6BvmQVxUaEzEbiruNfJekH15L8jtrEm7JJolEcOmKXRqQOuKDQuY7HZY8s8iNfzkSLxIuI43FTrkkLnOlBfRW4VsWk+oAX5weknxFAxJQNckGgVgZuIRVoomoGXEmGTMa+iQ6K7M4SW7k24QYgiuDQPYinbhugiF4H3RGtzZYCzyIvQXfpNI1ybLyeLpf5+iTbkRbiP2EcocTHm4+YI8iI8RFHwWjAfsA95Q+YZFU6wasl8wB7kReijtNbIILa0vcg/PRlGfPQwHmlCviDqAzaA+OREtzqr1ejOIDorxlNEjTGUBV4nnUWCvAJxGDlA8q9j3DEArAn2zvXAfOwfl6eVAmJrPpJ0Ih6Px+PxeJLjLwPul3vj5d0eAAAAAElFTkSuQmCC"};t8.prototype.getPreview=function(r,e){r||(r=[21020,6355964]),e||(e=150);var t=this.getTileGrid().getTileCoordForCoordAndResolution(r,e),n=this.getTileUrlFunction();return n.call(this,t,this.getProjection())};zot.prototype.getPreview=function(r,e){r||(r=[21020,6355964]),e||(e=150);var t=this.getTileUrlFunction();if(t){var n=this.getTileGrid()||this.getTileGridForProjection(this.getProjection()),i=n.getTileCoordForCoordAndResolution(r,e);return t.call(this,i,1,this.getProjection())}var a=this.getGetFeatureInfoUrl?this.getGetFeatureInfoUrl(r,e,this.getProjection()||"EPSG:3857",{}):this.getFeatureInfoUrl(r,e,this.getProjection()||"EPSG:3857",{});return a=a.replace(/getfeatureinfo/i,"GetMap"),a};Sh.prototype.getPreview=function(r,e,t){if(this.get("preview"))return[this.get("preview")];if(e||(e=150),ethis.getMaxResolution()){var n=this.getMinResolution(),i=this.getMaxResolution();for(i>1e5&&(i=156543),n<.15&&(n=.15),e=i;i>n;)n*=2,i/=2,e=n}var a=this.getExtent();return r||(r=[21020,6355964]),a&&!xs(a,r)&&(r=[(a[0]+a[2])/2,(a[1]+a[3])/2]),t&&(r=Qu(r,t,this.getSource().getProjection())),this.getSource&&this.getSource()?[this.getSource().getPreview(r,e)]:[]};Wg.prototype.getPreview=function(r,e){if(this.get("preview"))return[this.get("preview")];var t=[];if(this.getLayers)for(var n=this.getLayers().getArray(),i=0;inew r(...Object.values(n)));return he(n,()=>{t.value.setGeometry(i.value),t.value.changed()}),he(t,()=>{t.value.setGeometry(i.value)}),Ze(()=>{t.value.setGeometry(i.value)}),ir(()=>{t.value.setGeometry(null)}),{geometry:i}}const Nlt={name:"ol-geom-point",setup(r){const{geometry:e}=Yp(fr,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Plt(r,e,t,n,i,a){return dr("",!0)}var ax=le(Nlt,[["render",Plt]]);const Ult={name:"ol-geom-line-string",setup(r){const{geometry:e}=Yp(Hr,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Dlt(r,e,t,n,i,a){return dr("",!0)}var ox=le(Ult,[["render",Dlt]]);const Qlt={name:"ol-geom-polygon",setup(r){const{geometry:e}=Yp(bn,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Hlt(r,e,t,n,i,a){return dr("",!0)}var sx=le(Qlt,[["render",Hlt]]);const Glt={name:"ol-geom-multi-point",setup(r){const{geometry:e}=Yp(es,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function klt(r,e,t,n,i,a){return dr("",!0)}var Ax=le(Glt,[["render",klt]]);const $lt={name:"ol-geom-multi-line-string",setup(r){const{geometry:e}=Yp(xa,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Vlt(r,e,t,n,i,a){return dr("",!0)}var lx=le($lt,[["render",Vlt]]);const jlt={name:"ol-geom-multi-polygon",setup(r){const{geometry:e}=Yp(ba,r);return{geometry:e}},props:{coordinates:{type:Array},opt_layout:{type:String,default:"XY"}}};function Klt(r,e,t,n,i,a){return dr("",!0)}var ux=le(jlt,[["render",Klt]]);function q_(r){q_.installed||(q_.installed=!0,r.component(ax.name,ax),r.component(ox.name,ox),r.component(sx.name,sx),r.component(Ax.name,Ax),r.component(lx.name,lx),r.component(ux.name,ux))}var zlt=Object.freeze(Object.defineProperty({__proto__:null,default:q_,install:q_,Point:ax,LineString:ox,Polygon:sx,MultiPoint:Ax,MultiLineString:lx,MultiPolygon:ux},Symbol.toStringTag,{value:"Module"}));const Ylt={name:"ol-style",setup(r){const e=Ce("stylable",null),{properties:t}=vr(r);let n=hr(()=>new oa(t));const i=o=>{if(e instanceof dF||e instanceof vF){e.getOverlay().setStyle(o),e.value.dispatchEvent("styleChanged");return}try{e.value.setStyle(o),e.value.changed(),e.value.dispatchEvent("styleChanged")}catch{e.value.style_=o,e.value.values_.style=o,e.value.changed(),e.value.dispatchEvent("styleChanged")}},a=hr(()=>o=>(t.overrideStyleFunction!=null&&t.overrideStyleFunction(o,n.value),n.value));return he(t,()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),Ze(()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),ir(()=>{i(null)}),Mr("style",n),Mr("styledObj",e),{style:n}},props:{zIndex:{type:Number},overrideStyleFunction:{type:Function}}};function Xlt(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var cx=le(Ylt,[["render",Xlt]]);const Wlt={name:"ol-style-circle",setup(r){const e=Ce("style",null),t=Ce("styledObj",null),{properties:n}=vr(r),i=s=>new ty(Os(Un({},s),{fill:new Aa,stroke:new Ui}));let a=hr(()=>i(n));const o=()=>{e.value.setImage(null),e.value.setImage(a.value),t.value.changed()};he(n,()=>{o()}),he(e,()=>{o()}),Ze(()=>{e.value.setImage(a.value)}),ir(()=>{e.value.setImage(null)}),Mr("circle",a),Mr("styledObj",t)},props:{radius:{type:Number},scale:{type:Number}}};function qlt(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var hx=le(Wlt,[["render",qlt]]);const Zlt={name:"ol-style-stroke",setup(r){const e=Ce("style",null),t=Ce("circle",null),n=Ce("styledObj",null),{properties:i}=vr(r);if(e!=null&&t==null){let a=new Ui(i);e.value.setStroke(a);const o=()=>{e.value.setStroke(null),a=new Ui(i),e.value.setStroke(a)};he(i,()=>{o()}),he(e,()=>{o()}),Ze(()=>{e.value.setStroke(a)}),ir(()=>{e.value.setStroke(null)})}else if(t!=null){const a=o=>{t.value.getStroke().setColor(o.color),t.value.getStroke().setLineCap(o.lineCap),t.value.getStroke().setLineDash(o.lineDash),t.value.getStroke().setLineDashOffset(o.lineDashOffset),t.value.getStroke().setLineJoin(o.lineJoin),t.value.getStroke().setMiterLimit(o.miterLimit),t.value.getStroke().setWidth(o.width),t.value.setRadius(t.value.getRadius());try{n.value.changed()}catch{n.changed()}};a(i),he(i,o=>{a(o)}),he(t,()=>{a(i)})}},props:{color:{type:String},lineCap:{type:String,default:"round"},lineJoin:{type:String,default:"round"},lineDash:{type:Array},lineDashOffset:{type:Number,default:0},miterLimit:{type:Number,default:10},width:{type:Number,default:1}}};function Jlt(r,e,t,n,i,a){return dr("",!0)}var fx=le(Zlt,[["render",Jlt]]);const tut={name:"ol-style-fill",setup(r){const e=Ce("style",null),t=Ce("circle",null),n=Ce("styledObj",null),{properties:i}=vr(r);if(e!=null&&t==null){let a=new Aa(i);e.value.setFill(a);const o=()=>{e.value.setFill(null),a=new Aa(i),e.value.setFill(a)};he(i,()=>{o()}),he(e,()=>{o()}),Ze(()=>{e.value.setFill(a)}),ir(()=>{e.value.setFill(null)})}else if(t!=null){const a=o=>{t.value.getFill().setColor(o),t.value.setRadius(t.value.getRadius());try{n.value.changed()}catch{n.changed()}};a(i.color),he(i,()=>{a(i.color)}),he(t,()=>{a(i.color)})}},props:{color:{type:String}}};function eut(r,e,t,n,i,a){return dr("",!0)}var px=le(tut,[["render",eut]]);const rut={name:"ol-style-icon",setup(r){const e=Ce("style",null),t=Ce("styledObj",null),{properties:n}=vr(r);let i=hr(()=>{let o=new ny(n);return o.load(),o});const a=()=>{e.value.setImage(null),e.value.setImage(i.value),t.value.changed()};he(n,()=>{a()}),he(e,()=>{a()}),Ze(()=>{e.value.setImage(i.value)}),ir(()=>{e.value.setImage(null)})},props:{anchor:{type:Array},anchorOrigin:{type:String,default:"top-left"},anchorXUnits:{type:String,default:"fraction"},color:{type:String},crossOrigin:{type:String},img:{type:[HTMLImageElement,HTMLCanvasElement]},offset:{type:Array,default:()=>[0,0]},displacement:{type:Array,default:()=>[0,0]},offsetOrigin:{type:String,default:"top-left"},opacity:{type:Number,default:1},scale:{type:Number,default:1},rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0},size:{type:Array},imgSize:{type:Array},src:{type:String}}};function nut(r,e,t,n,i,a){return dr("",!0)}var dx=le(rut,[["render",nut]]);const iut={name:"ol-style-text",setup(r){const e=Ce("style",null),t=Ce("styledObj",null),{properties:n}=vr(r),i=s=>new bh(Os(Un({},s),{fill:new Aa,stroke:new Ui}));let a=hr(()=>i(n));const o=()=>{e.value.setText(null),e.value.setText(a.value),t.value.changed()};he(n,()=>{o()}),he(e,()=>{o()}),Ze(()=>{e.value.setText(a.value)}),ir(()=>{e.value.setText(null)}),Mr("style",a),Mr("styledObj",t)},props:{font:{type:String},maxAngle:{type:Number,default:Math.PI/4},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},overflow:{type:Boolean,default:!1},placement:{type:String,default:"point"},scale:{type:Number},rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0},text:{type:String},textAlign:{type:String},textBaseline:{type:String,default:"middle"},padding:{type:Array,default:()=>[0,0,0,0]}}};function aut(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var vx=le(iut,[["render",aut]]),Mp=function(r,e){var t=r[0]-e[0],n=r[1]-e[1];return Math.sqrt(t*t+n*n)},Yd=function(r,e){return r[0]==e[0]&&r[1]==e[1]},L8;(function(){function r(t,n){var i;for(let a=t.length-1;a>0;a--)(t[a][0]>n&&t[a-1][0]n)&&(i=[n,(n-t[a][0])/(t[a-1][0]-t[a][0])*(t[a-1][1]-t[a][1])+t[a][1]],t.splice(a,0,i))}function e(t,n){var i;for(let a=t.length-1;a>0;a--)(t[a][1]>n&&t[a-1][1]n)&&(i=[(n-t[a][1])/(t[a-1][1]-t[a][1])*(t[a-1][0]-t[a][0])+t[a][0],n],t.splice(a,0,i))}L8=function(t,n){var i=n.getType()==="Polygon";if(!i&&n.getType()!=="MultiPolygon")return null;var a=n.getCoordinates();return i&&(a=[a]),a.forEach(function(o){o.forEach(function(s){r(s,t[0]),r(s,t[2]),e(s,t[1]),e(s,t[3])})}),a.forEach(function(o){o.forEach(function(s){s.forEach(function(A){A[0]t[2]&&(A[0]=t[2]),A[1]t[3]&&(A[1]=t[3])})})}),i?new bn(a[0]):new ba(a)}})();var Bw=function(r,e,t,n){var i=[];n!==!1&&i.push(r);var a=Mp(r,e);if(a){var o=Math.round(a/t);if(o>1)for(var s=(e[0]-r[0])/o,A=(e[1]-r[1])/o,l=1;li?(o=!0,c.push([n[0]+i/f*(h[0]-n[0]),n[1]+i/f*(h[1]-n[1])])):c.push(h)})})}),o?r.getType()==="Polygon"?new bn(s[0]):new ba(s):r}}}else console.warn("[ol/geom/Circle~intersection] Unsupported geometry type: "+r.getType());return r};Hr.prototype.splitAt=function(r,e){var t;if(!r)return[this];if(e||(e=1e-10),r.length&&r[0].length){var n=[this];for(t=0;t1&&l.push(new Hr(A)),l.length?l:[this]};var Ci=function(r){r||(r={}),oa.call(this,{renderer:this._render.bind(this),stroke:r.stroke,text:r.text,zIndex:r.zIndex,geometry:r.geometry}),this._visible=r.visible!==!1,typeof r.width=="function"?this._widthFn=r.width:this.setWidth(r.width),this.setWidth2(r.width2),typeof r.color=="function"?this._colorFn=r.color:this.setColor(r.color),this.setColor2(r.color2),this.setLineCap(r.lineCap),this.setArrow(r.arrow),this.setArrowSize(r.arrowSize),this.setArrowColor(r.arrowColor),this._offset=[0,0],this.setOffset(r.offset0,0),this.setOffset(r.offset1,1),this._noOverlap=r.noOverlap};Cr(Ci,oa);Ci.prototype.setWidth=function(r){this._width=r||0};Ci.prototype.setWidth2=function(r){this._width2=r};Ci.prototype.getOffset=function(r){return this._offset[r]};Ci.prototype.setOffset=function(r,e){switch(r=Math.max(0,parseFloat(r)),e){case 0:{this._offset[0]=r;break}case 1:{this._offset[1]=r;break}}};Ci.prototype.setLineCap=function(r){this._lineCap=r==="round"?"round":"butt"};Ci.prototype.getWidth=function(r,e){if(this._widthFn)return this._widthFn(r,e);var t=typeof this._width2=="number"?this._width2:this._width;return this._width+(t-this._width)*e};Ci.prototype.setColor=function(r){try{this._color=Du(r)}catch{this._color=[0,0,0,1]}};Ci.prototype.setColor2=function(r){try{this._color2=Du(r)}catch{this._color2=null}};Ci.prototype.setArrowColor=function(r){try{this._acolor=tl(r)}catch{this._acolor=null}};Ci.prototype.getColor=function(r,e){if(this._colorFn)return tl(this._colorFn(r,e));var t=this._color,n=this._color2||this._color;return"rgba("+ +Math.round(t[0]+(n[0]-t[0])*e)+","+Math.round(t[1]+(n[1]-t[1])*e)+","+Math.round(t[2]+(n[2]-t[2])*e)+","+(t[3]+(n[3]-t[3])*e)+")"};Ci.prototype.getArrow=function(){return this._arrow};Ci.prototype.setArrow=function(r){this._arrow=parseInt(r),(this._arrow<-1||this._arrow>2)&&(this._arrow=0)};Ci.prototype.getArrowSize=function(){return this._arrowSize||[16,16]};Ci.prototype.setArrowSize=function(r){Array.isArray(r)?this._arrowSize=r:typeof r=="number"&&(this._arrowSize=[r,r])};Ci.prototype.drawArrow=function(r,e,t,n,i){var a=this.getArrowSize()[0]*i,o=Mp(e,t),s=(e[0]-t[0])/o,A=(e[1]-t[1])/o;n=Math.max(this.getArrowSize()[1]/2,n/2)*i,r.beginPath(),r.moveTo(e[0],e[1]),r.lineTo(e[0]-a*s+n*A,e[1]-a*A-n*s),r.lineTo(e[0]-a*s-n*A,e[1]-a*A+n*s),r.lineTo(e[0],e[1]),r.fill()};Ci.prototype._render=function(r,e){if(e.geometry.getType()==="LineString"){var t,n,i,a=e.context;if(!this._visible){var o=e.pixelRatio/e.resolution,s=Math.cos(e.rotation),A=Math.sin(e.rotation);n=e.geometry.getCoordinates();var l=r[0][0]-n[0][0]*o*s-n[0][1]*o*A,u=r[0][1]-n[0][0]*o*A+n[0][1]*o*s;for(r=[],t=0;i=n[t];t++)r[t]=[l+i[0]*o*s+i[1]*o*A,u+i[0]*o*A-i[1]*o*s,i[2]]}var c=this.getArrowSize()[0]*e.pixelRatio;a.save(),this.getOffset(0)&&this._splitAsize(r,this.getOffset(0)*e.pixelRatio),this.getOffset(1)&&this._splitAsize(r,this.getOffset(1)*e.pixelRatio,!0),r.length>1&&(this.getArrow()===-1||this.getArrow()===2)&&(i=this._splitAsize(r,c),this._acolor?a.fillStyle=this._acolor:a.fillStyle=this.getColor(e.feature,0),this.drawArrow(a,i[0],i[1],this.getWidth(e.feature,0),e.pixelRatio)),r.length>1&&this.getArrow()>0&&(i=this._splitAsize(r,c,!0),this._acolor?a.fillStyle=this._acolor:a.fillStyle=this.getColor(e.feature,1),this.drawArrow(a,i[0],i[1],this.getWidth(e.feature,1),e.pixelRatio));var h=this._splitInto(r,255,2),f=0,p=h.length;if(a.lineJoin="round",a.lineCap=this._lineCap||"butt",h.length>1)for(f=0;fe){n=[n[0]+(i[0]-n[0])*(e-s)/o,n[1]+(i[1]-n[1])*(e-s)/o],o=Mp(n,a),t?(r.push(i),r.push(n),r.push([n[0]+(a[0]-n[0])/o,n[1]+(a[1]-n[1])/o])):(r.unshift(i),r.unshift(n),r.unshift([n[0]+(a[0]-n[0])/o,n[1]+(a[1]-n[1])/o]));break}s+=o,n=i}return[a,n]};Ci.prototype._splitInto=function(r,e,t){var n,i,a=this._noOverlap?1:.9,o=[],s,A=0;for(n=1;i=r[n];n++)A+=Mp(r[n-1],i);var l=Math.max(t||2,A/(e||255)),u=r[0];A=0;var c=[u];for(n=1,i=r[1];nl){var p=(l-A)/s;c.push([u[0]+h*p,u[1]+f*p]),o.push(c),u=[u[0]+h*p*a,u[1]+f*p*a],c=[u],A=0}else A+=s,u=i,c.push(u),n++,i=r[n]}return o.push(c),o};const out={name:"ol-style-flowline",setup(r){const e=Ce("stylable",null),{properties:t}=vr(r);let n=hr(()=>new Ci(t));const i=o=>{if(e instanceof dF||e instanceof vF){e.getOverlay().setStyle(o),e.value.dispatchEvent("styleChanged");return}try{e.value.setStyle(o),e.value.changed(),e.value.dispatchEvent("styleChanged")}catch{e.value.style_=o,e.value.values_.style=o,e.value.changed(),e.value.dispatchEvent("styleChanged")}},a=hr(()=>o=>(t.overrideStyleFunction!=null&&t.overrideStyleFunction(o,n.value),n.value));return he(t,()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),Ze(()=>{t.overrideStyleFunction==null?i(n.value):i(a.value)}),ir(()=>{i(null)}),{style:n}},props:{color:{type:[String,Function]},color2:{type:String},width:{type:[Number,Function]},width2:{type:Number},arrow:{type:Number},arrowColor:{type:String}}};function sut(r,e,t,n,i,a){return cn(),Vn("div",null,[mr(r.$slots,"default")])}var gx=le(out,[["render",sut]]);function Z_(r){Z_.installed||(Z_.installed=!0,r.component(cx.name,cx),r.component(hx.name,hx),r.component(fx.name,fx),r.component(px.name,px),r.component(dx.name,dx),r.component(vx.name,vx),r.component(gx.name,gx))}var Aut=Object.freeze(Object.defineProperty({__proto__:null,default:Z_,install:Z_,Style:cx,Stroke:fx,Fill:px,Icon:dx,Text:vx,FlowLine:gx,Circle:hx},Symbol.toStringTag,{value:"Module"}));const lut={name:"ol-interaction-select",emits:["select"],setup(r,{emit:e}){const t=Ce("map"),{properties:n}=vr(r);let i=hr(()=>{let a=new sw(Os(Un({},n),{style:new oa}));return a.on("select",o=>{e("select",o)}),a});return he(i,(a,o)=>{t.removeInteraction(o),t.addInteraction(a),t.changed()}),Ze(()=>{t.addInteraction(i.value)}),ir(()=>{t.removeInteraction(i.value)}),Mr("stylable",i),{select:i}},props:{multi:{type:Boolean,default:!1},condition:{type:Function},filter:{type:Function},features:{type:[si,Object]},hitTolerance:{type:Number,default:0,validator:r=>r>=0}}};function uut(r,e,t,n,i,a){return mr(r.$slots,"default")}var yx=le(lut,[["render",uut]]),tc=function(r){r=r||{},this.pointRadius=r.pointRadius||12,this.circleMaxObjects=r.circleMaxObjects||10,this.maxObjects=r.maxObjects||60,this.spiral=r.spiral!==!1,this.animate=r.animate,this.animationDuration=r.animationDuration||500,this.selectCluster_=r.selectCluster!==!1,this._autoClose=r.autoClose!==!1;var e=this.overlayLayer_=new hA({source:new _l({features:new si,wrapX:r.wrapX,useSpatialIndex:!0}),name:"Cluster overlay",updateWhileAnimating:!0,updateWhileInteracting:!0,displayInLayerSwitcher:!1,style:r.featureStyle});if(r.layers)if(typeof r.layers=="function"){var t=r.layers;r.layers=function(i){return i===e||t(i)}}else r.layers.push&&r.layers.push(this.overlayLayer_);if(r.filter){var n=r.filter;r.filter=function(i,a){return!a&&i.get("selectclusterlink")?!1:n(i,a)}}else r.filter=function(i,a){return!(!a&&i.get("selectclusterlink"))};this.filter_=r.filter,!this._autoClose&&!r.toggleCondition&&(r.toggleCondition=nw),sw.call(this,r),this.on("select",this.selectCluster.bind(this))};Cr(tc,sw);tc.prototype.setMap=function(r){this.getMap()&&this.getMap().removeLayer(this.overlayLayer_),this._listener&&No(this._listener),this._listener=null,sw.prototype.setMap.call(this,r),this.overlayLayer_.setMap(r),r&&r.getView()&&(this._listener=r.getView().on("change:resolution",this.clear.bind(this)))};tc.prototype.clear=function(){this.getFeatures().clear(),this.overlayLayer_.getSource().clear()};tc.prototype.getLayer=function(){return this.overlayLayer_};tc.prototype.selectCluster=function(r){if(r instanceof or&&(r={selected:[r]}),!r.selected.length){this._autoClose?this.clear():r.deselected.forEach(_=>{_.get("selectcluserfeatures").forEach(B=>{this.overlayLayer_.getSource().removeFeature(B)})});return}var e=r.selected[0];if(!e.get("selectclusterfeature")){var t=this.overlayLayer_.getSource();this._autoClose&&t.clear();var n=e.get("features");if(!(!n||n.length==1)){this.selectCluster_||this.getFeatures().clear();var i=e.getGeometry().getCoordinates(),a=this.getMap().getView().getResolution(),o,s,A,l,u,c,h,f=[];if(!this.spiral||n.length<=this.circleMaxObjects)for(l=Math.min(n.length,this.circleMaxObjects),o=a*this.pointRadius*(.5+l/4),A=0;A1){No(this.listenerKey_),this.overlayLayer_.getSource().addFeatures(e),this.overlayLayer_.changed();return}A.frameState.animate=!0}this.listenerKey_=this.overlayLayer_.on(["postcompose","postrender"],o.bind(this));var s=new or(new fr(this.getMap().getView().getCenter()));s.setStyle(new oa({image:new ty({})})),this.overlayLayer_.getSource().addFeature(s)};tc.prototype.getClusterExtent=function(r){if(!r.get("features"))return null;var e=_i();return r.get("features").forEach(function(t){e=Uu(e,t.getGeometry().getExtent())}),e[0]===e[2]&&e[1]===e[3]?null:e};const cut={name:"ol-interaction-clusterselect",emits:["select"],setup(r,{emit:e}){const t=Ce("map"),{properties:n}=vr(r);let i=hr(()=>{let a=new tc(Os(Un({},n),{style:new oa}));return a.on("select",o=>{e("select",o)}),a});he(i,(a,o)=>{t.removeInteraction(o),t.addInteraction(a),t.changed()}),Ze(()=>{t.addInteraction(i.value)}),ir(()=>{t.removeInteraction(i.value)}),Mr("stylable",i)},props:{multi:{type:Boolean,default:!1},condition:{type:Function},filter:{type:Function},pointRadius:{type:Number,default:7},animate:{type:Boolean,default:!0},featureStyle:{type:Function},style:{type:Function}}};function hut(r,e,t,n,i,a){return mr(r.$slots,"default")}var mx=le(cut,[["render",hut]]);const fut={name:"ol-interaction-draw",emits:["drawstart","drawend"],setup(r,{emit:e}){const t=Ce("map"),n=Ce("vectorSource"),{type:i,clickTolerance:a,dragVertexDelay:o,snapTolerance:s,stopClick:A,maxPoints:l,minPoints:u,finishCondition:c,geometryFunction:h,geometryName:f,condition:p,freehand:v,freehandCondition:m,wrapX:g}=Lu(r);let _=()=>{let B=new dF({source:n.value,type:i.value,clickTolerance:a.value,dragVertexDelay:o.value,snapTolerance:s.value,stopClick:A.value,maxPoints:l.value,minPoints:u.value,finishCondition:c.value,geometryFunction:h.value,geometryName:f.value,condition:p.value,freehand:v.value,freehandCondition:m.value,wrapX:g.value});return B.on("drawstart",L=>{e("drawstart",L)}),B.on("drawend",L=>{e("drawend",L)}),B},E=_();he([i,a,o,s,A,l,u,c,h,f,p,v,m,g],()=>{t.removeInteraction(E),E=_(),t.addInteraction(E),E.changed(),t.changed()}),Ze(()=>{t.addInteraction(E)}),ir(()=>{t.removeInteraction(E)}),Mr("stylable",E)},props:{type:{type:String,required:!0},clickTolerance:{type:Number,default:6},dragVertexDelay:{type:Number,default:500},snapTolerance:{type:Number,default:12},stopClick:{type:Boolean,default:!1},maxPoints:{type:Number},minPoints:{type:Number},finishCondition:{type:Function},geometryFunction:{type:Function},geometryName:{type:String},condition:{type:Function},freehand:{type:Boolean,default:!1},freehandCondition:{type:Function},wrapX:{type:Boolean,default:!1}}};function put(r,e,t,n,i,a){return mr(r.$slots,"default")}var _x=le(fut,[["render",put]]);const dut={name:"ol-interaction-snap",setup(r){const e=Ce("map"),t=Ce("vectorSource"),{properties:n}=vr(r);let i=()=>new TJ(Os(Un({},n),{source:t.value})),a=i();he(n,()=>{e.removeInteraction(a),a=i(),e.addInteraction(a),e.changed()}),Ze(()=>{e.addInteraction(a)}),ir(()=>{e.removeInteraction(a)})},props:{vertex:{type:Boolean,default:!0},edge:{type:Boolean,default:!0},pixelTolerance:{type:Number,default:10}}};function vut(r,e,t,n,i,a){return mr(r.$slots,"default")}var wx=le(dut,[["render",vut]]);const gut={name:"ol-interaction-modify",emits:["modifystart","modifyend"],setup(r,{emit:e}){const t=Ce("map"),n=Ce("vectorSource"),{features:i,condition:a,deleteCondition:o,insertVertexCondition:s,pixelTolerance:A,wrapX:l,hitDetection:u}=Lu(r);let c=()=>{let f=new vF({source:n.value,features:i.value,condition:a.value,deleteCondition:o.value,insertVertexCondition:s.value,pixelTolerance:A.value,wrapX:l.value,hitDetection:u.value});return f.on("modifystart",p=>{e("modifystart",p)}),f.on("modifyend",p=>{e("modifyend",p)}),f},h=c();he([a,o,s,A,l,u],()=>{t.removeInteraction(h),h=c(),t.addInteraction(h),h.changed(),t.changed()}),Ze(()=>{t.addInteraction(h)}),ir(()=>{t.removeInteraction(h)}),Mr("stylable",h)},props:{condition:{type:Function},deleteCondition:{type:Function},insertVertexCondition:{type:Function},pixelTolerance:{type:Number,default:10},wrapX:{type:Boolean,default:!1},hitDetection:{type:Boolean},features:{type:[si,Object]}}};function yut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Ex=le(gut,[["render",yut]]),zn=function(r){r||(r={});var e=this;this.selection_=new si,this.handles_=new si,this.overlayLayer_=new hA({source:new _l({features:this.handles_,useSpatialIndex:!1,wrapX:!1}),name:"Transform overlay",displayInLayerSwitcher:!1,style:function(t){return e.style[(t.get("handle")||"default")+(t.get("constraint")||"")+(t.get("option")||"")]}}),Po.call(this,{handleDownEvent:this.handleDownEvent_,handleDragEvent:this.handleDragEvent_,handleMoveEvent:this.handleMoveEvent_,handleUpEvent:this.handleUpEvent_}),this.features_=r.features,typeof r.filter=="function"&&(this._filter=r.filter),this.layers_=r.layers?r.layers instanceof Array?r.layers:[r.layers]:null,this._handleEvent=r.condition||function(){return!0},this.addFn_=r.addCondition||function(){return!1},this.set("translateFeature",r.translateFeature!==!1),this.set("translate",r.translate!==!1),this.set("translateBBox",r.translateBBox===!0),this.set("stretch",r.stretch!==!1),this.set("scale",r.scale!==!1),this.set("rotate",r.rotate!==!1),this.set("keepAspectRatio",r.keepAspectRatio||function(t){return t.originalEvent.shiftKey}),this.set("modifyCenter",r.modifyCenter||function(t){return t.originalEvent.metaKey||t.originalEvent.ctrlKey}),this.set("noFlip",r.noFlip||!1),this.set("selection",r.selection!==!1),this.set("hitTolerance",r.hitTolerance||0),this.set("enableRotatedTransform",r.enableRotatedTransform||!1),this.set("keepRectangle",r.keepRectangle||!1),this.on("propertychange",function(){this.drawSketch_()}),this.setDefaultStyle()};Cr(zn,Po);zn.prototype.Cursors={default:"auto",select:"pointer",translate:"move",rotate:"move",rotate0:"move",scale:"nesw-resize",scale1:"nwse-resize",scale2:"nesw-resize",scale3:"nwse-resize",scalev:"ew-resize",scaleh1:"ns-resize",scalev2:"ew-resize",scaleh3:"ns-resize"};zn.prototype.setMap=function(r){var e=this.getMap();if(e){var t=e.getTargetElement();e.removeLayer(this.overlayLayer_),this.previousCursor_&&t&&(t.style.cursor=this.previousCursor_),this.previousCursor_=void 0}Po.prototype.setMap.call(this,r),this.overlayLayer_.setMap(r),r===null&&this.select(null),r!==null&&(this.isTouch=/touch/.test(r.getViewport().className),this.setDefaultStyle())};zn.prototype.setActive=function(r){this.select(null),this.overlayLayer_.setVisible(r),Po.prototype.setActive.call(this,r)};zn.prototype.setDefaultStyle=function(r){r=r||{};var e=r.pointStroke||new Ui({color:[255,0,0,1],width:1}),t=r.stroke||new Ui({color:[255,0,0,1],width:1,lineDash:[4,4]}),n=r.fill||new Aa({color:[255,0,0,.01]}),i=r.pointFill||new Aa({color:[255,255,255,.8]}),a=new R0({fill:i,stroke:e,radius:this.isTouch?12:6,displacement:this.isTouch?[24,-24]:[12,-12],points:15});a.setDisplacement||(a.getAnchor()[0]=this.isTouch?-10:-5);var o=new R0({fill:i,stroke:e,radius:this.isTouch?16:8,points:4,angle:Math.PI/4}),s=new R0({fill:i,stroke:e,radius:this.isTouch?12:6,points:4,angle:Math.PI/4});function A(l,u,c){return[new oa({image:l,stroke:u,fill:c})]}this.style={default:A(o,t,n),translate:A(o,e,i),rotate:A(a,e,i),rotate0:A(o,e,i),scale:A(o,e,i),scale1:A(o,e,i),scale2:A(o,e,i),scale3:A(o,e,i),scalev:A(s,e,i),scaleh1:A(s,e,i),scalev2:A(s,e,i),scaleh3:A(s,e,i)},this.drawSketch_()};zn.prototype.setStyle=function(r,e){if(e){e instanceof Array?this.style[r]=e:this.style[r]=[e];for(var t=0;t=0&&(this.ispt_&&this.get("translate")||this.get("translateFeature"))&&(e.handle="translate"),e.handle){this.mode_=e.handle,this.opt_=e.option,this.constraint_=e.constraint;var n=this.getMap().getView().getRotation();this.coordinate_=r.coordinate,this.pixel_=r.pixel,this.geoms_=[],this.rotatedGeoms_=[];for(var i=_i(),a=_i(),o=0,s;s=this.selection_.item(o);o++)if(this.geoms_.push(s.getGeometry().clone()),i=Uu(i,s.getGeometry().getExtent()),this.get("enableRotatedTransform")&&n!==0){var A=this.getGeometryRotateToZero_(s,!0);this.rotatedGeoms_.push(A),a=Uu(a,A.getExtent())}if(this.extent_=Hu(i).getCoordinates()[0],this.get("enableRotatedTransform")&&n!==0&&(this.rotatedExtent_=Hu(a).getCoordinates()[0]),this.mode_==="rotate"){this.center_=this.getCenter()||Sa(i);var l=r.map.getTargetElement();l.style.cursor=this.Cursors.rotate0,this.previousCursor_=l.style.cursor}else this.center_=Sa(i);return this.angle_=Math.atan2(this.center_[1]-r.coordinate[1],this.center_[0]-r.coordinate[0]),this.dispatchEvent({type:this.mode_+"start",feature:this.selection_.item(0),features:this.selection_,pixel:r.pixel,coordinate:r.coordinate}),!0}else if(this.get("selection")){if(t){this.addFn_(r)||this.selection_.clear();var u=this.selection_.getArray().indexOf(t);u<0?this.selection_.push(t):this.selection_.removeAt(u)}else this.selection_.clear();return this.ispt_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Point":!1,this.iscircle_=this.selection_.getLength()===1?this.selection_.item(0).getGeometry().getType()=="Circle":!1,this.drawSketch_(),this.watchFeatures_(),this.dispatchEvent({type:"select",feature:t,features:this.selection_,pixel:r.pixel,coordinate:r.coordinate}),!1}}};zn.prototype.getFeatures=function(){return this.selection_};zn.prototype.getCenter=function(){return this.get("center")};zn.prototype.setCenter=function(r){return this.set("center",r)};function UA(r,e){var t=(r[0]*e[0]+r[1]*e[1])/(e[0]*e[0]+e[1]*e[1]);return[e[0]*t,e[1]*t]}function Ja(r,e){return[e[0]-r[0],e[1]-r[1]]}function Oa(r,e){return[r[0]+e[0],r[1]+e[1]]}zn.prototype.handleDragEvent_=function(r){if(this._handleEvent(r,this.features_)){var e=this.getMap().getView().getRotation(),t,n,i,a,o=[this.coordinate_[0],this.coordinate_[1]],s=[r.coordinate[0],r.coordinate[1]];switch(this.isUpdating_=!0,this.mode_){case"rotate":{var A=Math.atan2(this.center_[1]-s[1],this.center_[0]-s[0]);if(!this.ispt)for(t=0,i;i=this.selection_.item(t);t++)a=this.geoms_[t].clone(),a.rotate(A-this.angle_,this.center_),a.getType()=="Circle"&&a.setCenterAndRadius(a.getCenter(),a.getRadius()),i.setGeometry(a);this.drawSketch_(!0),this.dispatchEvent({type:"rotating",feature:this.selection_.item(0),features:this.selection_,angle:A-this.angle_,pixel:r.pixel,coordinate:r.coordinate});break}case"translate":{var l=s[0]-o[0],u=s[1]-o[1];for(t=0,i;i=this.selection_.item(t);t++)i.getGeometry().translate(l,u);this.handles_.forEach(function(T){T.getGeometry().translate(l,u)}),this.coordinate_=r.coordinate,this.dispatchEvent({type:"translating",feature:this.selection_.item(0),features:this.selection_,delta:[l,u],pixel:r.pixel,coordinate:r.coordinate});break}case"scale":{var c=this.center_;if(this.get("modifyCenter")(r)){var h=this.extent_;this.get("enableRotatedTransform")&&e!==0&&(h=this.rotatedExtent_),c=h[(Number(this.opt_)+2)%4]}var f=this.geoms_.length==1&&this._isRectangle(this.geoms_[0]),p=this.constraint_,v=this.opt_,m=this.coordinate_,g=r.coordinate;if(this.get("enableRotatedTransform")&&e!==0){var _=new fr(this.coordinate_);_.rotate(e*-1,c),m=_.getCoordinates();var E=new fr(r.coordinate);E.rotate(e*-1,c),g=E.getCoordinates()}var B=(g[0]-c[0])/(m[0]-c[0]),L=(g[1]-c[1])/(m[1]-c[1]),O=[g[0]-m[0],g[1]-m[1]];if(this.get("enableRotatedTransform")&&e!==0){var b=new fr(c);b.rotate(e*-1,this.getMap().getView().getCenter()),c=b.getCoordinates()}for(this.get("noFlip")&&(B<0&&(B=-B),L<0&&(L=-L)),this.constraint_?this.constraint_=="h"?B=1:L=1:this.get("keepAspectRatio")(r)&&(B=L=Math.min(B,L)),t=0,i;i=this.selection_.item(t);t++)a=e===0||!this.get("enableRotatedTransform")?this.geoms_[t].clone():this.rotatedGeoms_[t].clone(),a.applyTransform(function(T,I,M){if(M<2)return I;if(f){var x=[[6],[0,8],[2],[4]],S=[T[0],T[1]],N=[T[2],T[3]],P=[T[4],T[5]],X=[T[6],T[7]],z=[T[8],T[9]];if(p){var tt=v%2===0?Ja(S,N):Ja(X,S),J=UA(O,tt),nt=v+1new zn(Un({},t)));he(n,(i,a)=>{e.removeInteraction(a),e.addInteraction(i),e.changed()}),Ze(()=>{e.addInteraction(n.value)}),ir(()=>{e.removeInteraction(n.value)}),Mr("stylable",n)},props:{enableRotatedTransform:{type:Boolean,default:!1},condition:{type:Function},addCondition:{type:Function},filter:{type:Function},layers:{type:Array},hitTolerance:{type:Number,default:2},translateFeature:{type:Boolean,default:!0},scale:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},keepAspectRatio:{type:Boolean,default:!1},translate:{type:Boolean,default:!0},stretch:{type:Boolean,default:!0}}};function _ut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Cx=le(mut,[["render",_ut]]);const wut={name:"ol-interaction-dragrotatezoom",setup(r){const e=Ce("map"),{properties:t}=vr(r);let n=hr(()=>new E3(Un({},t)));he(n,(i,a)=>{e.removeInteraction(a),e.addInteraction(i),e.changed()}),Ze(()=>{e.addInteraction(n.value)}),ir(()=>{e.removeInteraction(n.value)})},props:{condition:{type:Function},duration:{type:Number,default:400}}};function Eut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Bx=le(wut,[["render",Eut]]);function J_(r){J_.installed||(J_.installed=!0,r.component(yx.name,yx),r.component(mx.name,mx),r.component(_x.name,_x),r.component(wx.name,wx),r.component(Ex.name,Ex),r.component(Cx.name,Cx),r.component(Bx.name,Bx))}var Cut=Object.freeze(Object.defineProperty({__proto__:null,default:J_,install:J_,SelectInteraction:yx,ClusterSelectInteraction:mx,DrawInteraction:_x,SnapInteraction:wx,ModifyInteraction:Ex,TransformInteraction:Cx,DragRotateAndZoomInteraction:Bx},Symbol.toStringTag,{value:"Module"}));const But={setup(){const r=Ce("map"),e=Ce("vectorLayer");return{map:r,vectorLayer:e}},props:{duration:{type:Number,default:1e3},revers:{type:Boolean,default:!1},repeat:{type:Number,default:0},fade:{type:Function},easing:{type:Function,default:ts}}};function Tut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Fs=le(But,[["render",Tut]]),Hi=function(r){r=r||{},this.duration_=typeof r.duration=="number"?r.duration>=0?r.duration:0:1e3,this.fade_=typeof r.fade=="function"?r.fade:null,this.repeat_=Number(r.repeat);var e=typeof r.easing=="function"?r.easing:YI;r.revers?this.easing_=function(t){return 1-e(t)}:this.easing_=e,this.hiddenStyle=r.hiddenStyle,li.call(this)};Cr(Hi,li);Hi.hiddenStyle=new oa({image:new ty({}),stroke:new Ui({color:"transparent"})});Hi.prototype.drawGeom_=function(r,e,t){this.fade_&&(r.context.globalAlpha=this.fade_(1-r.elapsed));for(var n=r.style,i=0;i=0;A--)e[A].duration_===0&&e.splice(A,1);var l=0,u=0,c=t&&this.getFilters?this.getFilters():[];function h(v){s.type=v.type;try{s.vectorContext=v.vectorContext||mw(v)}catch{}if(s.frameState=v.frameState,s.inversePixelTransform=v.inversePixelTransform,s.extent||(s.extent=v.frameState.extent,s.start=v.frameState.time,s.context=v.context),s.time=v.frameState.time-s.start,s.elapsed=s.time/e[u].duration_,s.elapsed>1&&(s.elapsed=1),v.context.save(),c.forEach(function(g){g.get("active")&&g.precompose(v)}),this.getOpacity&&(v.context.globalAlpha=this.getOpacity()),!e[u].animate(s))l++,lnew r(Un({},i)));return Mr("animation",a),{map:t,vectorLayer:n,animation:a,properties:i}}const Sut={name:"ol-animation-drop",extends:Fs,setup(r){const{map:e,vectorLayer:t,properties:n}=Nh(MF,r);return{map:e,vectorLayer:t,properties:n}},props:{side:{type:Number,default:0},speed:{type:Number,default:0}}};function xut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Tx=le(Sut,[["render",xut]]),NF=function(r){r=r||{},Hi.call(this,r),this.amplitude_=r.amplitude||40,this.bounce_=-Math.PI*(r.bounce||6),this.horizontal_=r.horizontal};Cr(NF,Hi);NF.prototype.animate=function(r){var e=r.geom.clone(),t=r.geom.clone(),n=this.easing_(r.elapsed);return n=Math.sin(this.bounce_*n)*this.amplitude_*(1-n)*r.frameState.viewState.resolution,this.horizontal_?(e.translate(n,0),t.translate(n,0)):e.translate(0,n),this.drawGeom_(r,e,t),r.time<=this.duration_};const but={name:"ol-animation-shake",extends:Fs,setup(r){const{map:e,vectorLayer:t,properties:n,animation:i}=Nh(NF,r);return{map:e,vectorLayer:t,properties:n,animation:i}},props:{bounce:{type:Number,default:6},amplitude:{type:Number,default:40},horizontal:{type:Boolean,default:!1}}};function Iut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Sx=le(but,[["render",Iut]]),ly=function(r){r=r||{},Hi.call(this,r),this.set("zoomout",r.zoomOut)};Cr(ly,Hi);var Fut=function(r){r=r||{},r.zoomOut=!0,ly.call(this,r)};Cr(Fut,ly);ly.prototype.animate=function(r){var e=this.easing_(r.elapsed);if(e){this.get("zoomout")&&(e=1/e);var t=r.style,n,i,a=[];for(n=0;n0&&(this.duration_=this.dist_/this.speed_)};Cr(QF,Hi);QF.prototype.animate=function(r){if(!r.time&&!this.dist_)return!1;var e=this.dist_*this.easing_(r.elapsed),t,n,i,a,o,s,A=0;n=this.path_[0];for(var l=1;l=e){i=(e-A)/s,n=[t[0]+(n[0]-t[0])*i,t[1]+(n[1]-t[1])*i];break}A+=s}var u=r.style;if(r.rotation=Math.PI/2+Math.atan2(t[1]-n[1],t[0]-n[0]),this.rotate_!==!1){var c=[],h=this.rotate_-r.rotation+r.frameState.viewState.rotation;r.rotation=Math.PI/2+Math.atan2(t[1]-n[1],t[0]-n[0]);for(var f=0;i=r.style[f];f++)i.getImage()&&i.getImage().setRotation(h),c.push(i);r.style=c}return r.geom.setCoordinates(n),this.drawGeom_(r,r.geom),r.style=u,r.time<=this.duration_};const Qut={name:"ol-animation-path",extends:Fs,setup(r){const{map:e,vectorLayer:t,properties:n}=Nh(QF,r);return{map:e,vectorLayer:t,properties:n}},props:{rotate:{type:Boolean,default:!1},speed:{type:Number,default:0},path:{type:Object}}};function Hut(r,e,t,n,i,a){return mr(r.$slots,"default")}var Lx=le(Qut,[["render",Hut]]);function t1(r){t1.installed||(t1.installed=!0,r.component(Fs.name,Fs),r.component(Tx.name,Tx),r.component(Sx.name,Sx),r.component(xx.name,xx),r.component(bx.name,bx),r.component(Ix.name,Ix),r.component(Fx.name,Fx),r.component(Lx.name,Lx))}var Gut=Object.freeze(Object.defineProperty({__proto__:null,default:t1,install:t1,FeatureAnimation:Fs,DropAnimation:Tx,ShakeAnimation:Sx,ZoomAnimation:xx,TeleportAnimation:bx,FadeAnimation:Ix,PathAnimation:Lx,SlideAnimation:Fx},Symbol.toStringTag,{value:"Module"})),kut=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),$ut=function(r){kut(e,r);function e(t){var n=r.call(this)||this;return n.geometries_=t||null,n.changeEventsKeys_=[],n.listenGeometriesChange_(),n}return e.prototype.unlistenGeometriesChange_=function(){this.changeEventsKeys_.forEach(Rr),this.changeEventsKeys_.length=0},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,n=this.geometries_.length;t=0;a--){var u=n[a][0],c=Fo(new bp(u).getExtent(),new bp(A).getExtent());if(c){n[a].push(A),l=!0;break}}l||n.push([A.reverse()])}return n}function qut(r){var e;return r.m!==void 0&&r.z!==void 0?e=new fr([r.x,r.y,r.z,r.m],Wt.XYZM):r.z!==void 0?e=new fr([r.x,r.y,r.z],Wt.XYZ):r.m!==void 0?e=new fr([r.x,r.y,r.m],Wt.XYM):e=new fr([r.x,r.y]),e}function Zut(r){var e=Xp(r);return new Hr(r.paths[0],e)}function Jut(r){var e=Xp(r);return new xa(r.paths,e)}function Xp(r){var e=Wt.XY;return r.hasZ===!0&&r.hasM===!0?e=Wt.XYZM:r.hasZ===!0?e=Wt.XYZ:r.hasM===!0&&(e=Wt.XYM),e}function tct(r){var e=Xp(r);return new es(r.points,e)}function ect(r){var e=Xp(r);return new ba(r.rings,e)}function rct(r){var e=Xp(r);return new bn(r.rings,e)}function nct(r,e){var t=r.getCoordinates(),n,i=r.getLayout();return i===Wt.XYZ?n={x:t[0],y:t[1],z:t[2]}:i===Wt.XYM?n={x:t[0],y:t[1],m:t[2]}:i===Wt.XYZM?n={x:t[0],y:t[1],z:t[2],m:t[3]}:i===Wt.XY?n={x:t[0],y:t[1]}:_e(!1,34),n}function cy(r){var e=r.getLayout();return{hasZ:e===Wt.XYZ||e===Wt.XYZM,hasM:e===Wt.XYM||e===Wt.XYZM}}function ict(r,e){var t=cy(r);return{hasZ:t.hasZ,hasM:t.hasM,paths:[r.getCoordinates()]}}function act(r,e){var t=cy(r);return{hasZ:t.hasZ,hasM:t.hasM,rings:r.getCoordinates(!1)}}function oct(r,e){var t=cy(r);return{hasZ:t.hasZ,hasM:t.hasM,paths:r.getCoordinates()}}function sct(r,e){var t=cy(r);return{hasZ:t.hasZ,hasM:t.hasM,points:r.getCoordinates()}}function Act(r,e){for(var t=cy(r),n=r.getCoordinates(!1),i=[],a=0;a=0;o--)i.push(n[a][o]);return{hasZ:t.hasZ,hasM:t.hasM,rings:i}}function RN(r,e){var t=Uh[r.getType()];return t(Ln(r,!0,e),e)}var lct=Xut,uct=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cct=function(r){uct(e,r);function e(t){var n=this,i=t||{};return n=r.call(this)||this,n.dataProjection=Oe(i.dataProjection?i.dataProjection:"EPSG:4326"),i.featureProjection&&(n.defaultFeatureProjection=Oe(i.featureProjection)),n.geometryName_=i.geometryName,n.extractGeometryName_=i.extractGeometryName,n.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"],n}return e.prototype.readFeatureFromObject=function(t,n){var i=null;t.type==="Feature"?i=t:i={type:"Feature",geometry:t,properties:null};var a=Ox(i.geometry,n),o=new or;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in i!==void 0&&o.setGeometryName(i.geometry_name),o.setGeometry(a),"id"in i&&o.setId(i.id),i.properties&&o.setProperties(i.properties,!0),o},e.prototype.readFeaturesFromObject=function(t,n){var i=t,a=null;if(i.type==="FeatureCollection"){var o=t;a=[];for(var s=o.features,A=0,l=s.length;A0?i[0]:null},e.prototype.readFeatureFromNode=function(t,n){return null},e.prototype.readFeatures=function(t,n){if(t)if(typeof t=="string"){var i=nA(t);return this.readFeaturesFromDocument(i,n)}else return rA(t)?this.readFeaturesFromDocument(t,n):this.readFeaturesFromNode(t,n);else return[]},e.prototype.readFeaturesFromDocument=function(t,n){for(var i=[],a=t.firstChild;a;a=a.nextSibling)a.nodeType==Node.ELEMENT_NODE&&Qr(i,this.readFeaturesFromNode(a,n));return i},e.prototype.readFeaturesFromNode=function(t,n){return Be()},e.prototype.readGeometry=function(t,n){if(t)if(typeof t=="string"){var i=nA(t);return this.readGeometryFromDocument(i,n)}else return rA(t)?this.readGeometryFromDocument(t,n):this.readGeometryFromNode(t,n);else return null},e.prototype.readGeometryFromDocument=function(t,n){return null},e.prototype.readGeometryFromNode=function(t,n){return null},e.prototype.readProjection=function(t){if(t)if(typeof t=="string"){var n=nA(t);return this.readProjectionFromDocument(n)}else return rA(t)?this.readProjectionFromDocument(t):this.readProjectionFromNode(t);else return null},e.prototype.readProjectionFromDocument=function(t){return this.dataProjection},e.prototype.readProjectionFromNode=function(t){return this.dataProjection},e.prototype.writeFeature=function(t,n){var i=this.writeFeatureNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeFeatureNode=function(t,n){return null},e.prototype.writeFeatures=function(t,n){var i=this.writeFeaturesNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeFeaturesNode=function(t,n){return null},e.prototype.writeGeometry=function(t,n){var i=this.writeGeometryNode(t,n);return this.xmlSerializer_.serializeToString(i)},e.prototype.writeGeometryNode=function(t,n){return null},e}(uy),hy=Fct,Lct=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nl="http://www.opengis.net/gml",Oct=/^[\s\xa0]*$/,jn=function(r){Lct(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.featureType=i.featureType,n.featureNS=i.featureNS,n.srsName=i.srsName,n.schemaLocation="",n.FEATURE_COLLECTION_PARSERS={},n.FEATURE_COLLECTION_PARSERS[n.namespace]={featureMember:me(n.readFeaturesInternal),featureMembers:Le(n.readFeaturesInternal)},n.supportedMediaTypes=["application/gml+xml"],n}return e.prototype.readFeaturesInternal=function(t,n){var i=t.localName,a=null;if(i=="FeatureCollection")a=Gt([],this.FEATURE_COLLECTION_PARSERS,t,n,this);else if(i=="featureMembers"||i=="featureMember"||i=="member"){var o=n[0],s=o.featureType,A=o.featureNS,l="p",u="p0";if(!s&&t.childNodes){s=[],A={};for(var c=0,h=t.childNodes.length;c0){o[l]={_content_:o[l]};for(var c=0;c1?s.Document=t:t.length==1&&(s.Placemark=t[0]);var A=Pht[i.namespaceURI],l=ho(s,A);return Ge(o,Uht,qi,l,[n],A,this),i},e}(hy);function Ght(r,e){var t=[0,0],n="start",i=r.getImage();if(i){var a=i.getSize();if(a&&a.length==2){var o=i.getScaleArray(),s=i.getAnchor();t[0]=o[0]*(a[0]-s[0]),t[1]=o[1]*(a[1]/2-s[1]),n="left"}}var A=r.getText();A?(A=A.clone(),A.setFont(A.getFont()||Hc.getFont()),A.setScale(A.getScale()||Hc.getScale()),A.setFill(A.getFill()||Hc.getFill()),A.setStroke(A.getStroke()||Ux)):A=Hc.clone(),A.setText(e),A.setOffsetX(t[0]),A.setOffsetY(t[1]),A.setTextAlign(n);var l=new oa({image:i,text:A});return l}function kht(r,e,t,n,i){return function(a,o){var s=i,A="",l=[];if(s){var u=a.getGeometry();if(u)if(u instanceof sa)l=u.getGeometriesArrayRecursive().filter(function(v){var m=v.getType();return m===st.POINT||m===st.MULTI_POINT}),s=l.length>0;else{var c=u.getType();s=c===st.POINT||c===st.MULTI_POINT}}s&&(A=a.get("name"),s=s&&!!A,s&&A.search(/&[^&]+;/)>-1&&($m||($m=document.createElement("textarea")),$m.innerHTML=A,A=$m.value));var h=t;if(r?h=r:e&&(h=Q8(e,t,n)),s){var f=Ght(h[0],A);if(l.length>0){f.setGeometry(new sa(l));var p=new oa({geometry:h[0].getGeometry(),image:null,fill:h[0].getFill(),stroke:h[0].getStroke(),text:null});return[f,p].concat(h.slice(1))}return f}return h}}function Q8(r,e,t){return Array.isArray(r)?r:typeof r=="string"?Q8(t[r],e,t):e}function Tw(r){var e=Ka(r,!1),t=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(e);if(t){var n=t[1];return[parseInt(n.substr(6,2),16),parseInt(n.substr(4,2),16),parseInt(n.substr(2,2),16),parseInt(n.substr(0,2),16)/255]}else return}function H8(r){var e=Ka(r,!1),t=[];e=e.replace(/\s*,\s*/g,",");for(var n=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?),([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|,|$)(?:([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s+|$))?\s*/i,i;i=n.exec(e);){var a=parseFloat(i[1]),o=parseFloat(i[2]),s=i[3]?parseFloat(i[3]):0;t.push(a,o,s),e=e.substr(i[0].length)}if(e==="")return t}function G8(r){var e=Ka(r,!1).trim(),t=r.baseURI;if((!t||t=="about:blank")&&(t=window.location.href),t){var n=new URL(e,t);return n.href}else return e}function k8(r){var e=Ka(r,!1).trim().replace(/^(?!.*#)/,"#"),t=r.baseURI;if((!t||t=="about:blank")&&(t=window.location.href),t){var n=new URL(e,t);return n.href}else return e}function $ht(r){var e=r.getAttribute("xunits"),t=r.getAttribute("yunits"),n;return e!=="insetPixels"?t!=="insetPixels"?n=Li.BOTTOM_LEFT:n=Li.TOP_LEFT:t!=="insetPixels"?n=Li.BOTTOM_RIGHT:n=Li.TOP_RIGHT,{x:parseFloat(r.getAttribute("x")),xunits:NN[e],y:parseFloat(r.getAttribute("y")),yunits:NN[t],origin:n}}function $8(r){return Ir(r)}var Vht=Nt(Te,{Pair:pft});function V8(r,e){return Gt(void 0,Vht,r,e,this)}var jht=Nt(Te,{Icon:ot(aft),color:ot(Tw),heading:ot(Ir),hotSpot:ot($ht),scale:ot($8)});function Kht(r,e){var t=Gt({},jht,r,e);if(t){var n=e[e.length-1],i="Icon"in t?t.Icon:{},a=!("Icon"in t)||Object.keys(i).length>0,o,s=i.href;s?o=s:a&&(o=r1);var A,l,u,c=Li.BOTTOM_LEFT,h=t.hotSpot;h?(A=[h.x,h.y],l=h.xunits,u=h.yunits,c=h.origin):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(o)&&(/pushpin/.test(o)?(A=Mx,l=kv,u=$v):/arrow-reverse/.test(o)?(A=[54,42],l=kv,u=$v):/paddle/.test(o)&&(A=[32,1],l=kv,u=$v));var f,p=i.x,v=i.y;p!==void 0&&v!==void 0&&(f=[p,v]);var m,g=i.w,_=i.h;g!==void 0&&_!==void 0&&(m=[g,_]);var E,B=t.heading;B!==void 0&&(E=Cu(B));var L=t.scale,O=t.color;if(a){o==r1&&(m=Vv);var b=new ny({anchor:A,anchorOrigin:c,anchorXUnits:l,anchorYUnits:u,crossOrigin:this.crossOrigin_,offset:f,offsetOrigin:Li.BOTTOM_LEFT,rotation:E,scale:L,size:m,src:this.iconUrlFunction_(o),color:O}),T=b.getScaleArray()[0],I=b.getSize();if(I===null){var M=b.getImageState();if(M===$e.IDLE||M===$e.LOADING){var x=function(){var N=b.getImageState();if(!(N===$e.IDLE||N===$e.LOADING)){var P=b.getSize();if(P&&P.length==2){var X=n1(P);b.setScale(T*X)}b.unlistenImageChange(x)}};b.listenImageChange(x),M===$e.IDLE&&b.load()}}else if(I.length==2){var S=n1(I);b.setScale(T*S)}n.imageStyle=b}else n.imageStyle=qF}}var zht=Nt(Te,{color:ot(Tw),scale:ot($8)});function Yht(r,e){var t=Gt({},zht,r,e);if(t){var n=e[e.length-1],i=new bh({fill:new Aa({color:"color"in t?t.color:dp}),scale:t.scale});n.textStyle=i}}var Xht=Nt(Te,{color:ot(Tw),width:ot(Ir)});function Wht(r,e){var t=Gt({},Xht,r,e);if(t){var n=e[e.length-1],i=new Ui({color:"color"in t?t.color:dp,width:"width"in t?t.width:1});n.strokeStyle=i}}var qht=Nt(Te,{color:ot(Tw),fill:ot(ju),outline:ot(ju)});function Zht(r,e){var t=Gt({},qht,r,e);if(t){var n=e[e.length-1],i=new Aa({color:"color"in t?t.color:dp});n.fillStyle=i;var a=t.fill;a!==void 0&&(n.fill=a);var o=t.outline;o!==void 0&&(n.outline=o)}}var Jht=Nt(Te,{coordinates:Le(H8)});function j8(r,e){return Gt(null,Jht,r,e)}function tft(r,e){var t=e[e.length-1],n=t.coordinates,i=Ka(r,!1),a=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i,o=a.exec(i);if(o){var s=parseFloat(o[1]),A=parseFloat(o[2]),l=parseFloat(o[3]);n.push([s,A,l])}else n.push([])}var eft=Nt(Cl,{Track:me(K8)});function rft(r,e){var t=Gt([],eft,r,e);if(t)return new xa(t)}var nft=Nt(Te,{when:bft},Nt(Cl,{coord:tft}));function K8(r,e){var t=Gt({coordinates:[],whens:[]},nft,r,e);if(t){for(var n=[],i=t.coordinates,a=t.whens,o=0,s=Math.min(i.length,a.length);o0){var n=e[e.length-1];n.push.apply(n,t)}}var Tft=Nt(Te,{LinearRing:Le(j8)});function Sft(r,e){var t=Gt(void 0,Tft,r,e);if(t){var n=e[e.length-1];n[0]=t}}function xft(r,e){Ao(Nht,r,e)}function bft(r,e){var t=e[e.length-1],n=t.whens,i=Ka(r,!1),a=Date.parse(i);n.push(isNaN(a)?0:a)}function xw(r,e){for(var t=Du(e),n=t.length==4?t[3]:1,i=[n*255,t[2],t[1],t[0]],a=0;a<4;++a){var o=Math.floor(i[a]).toString(16);i[a]=o.length==1?"0"+o:o}De(r,i.join(""))}function Ift(r,e,t){var n=t[t.length-1],i=n.layout,a=n.stride,o;i==Wt.XY||i==Wt.XYM?o=2:i==Wt.XYZ||i==Wt.XYZM?o=3:_e(!1,34);var s=e.length,A="";if(s>0){A+=e[0];for(var l=1;l0){var g=ho(i,o),_={names:o,values:g};Ge(n,WC,npt,[_],t)}var E=t[0],B=e.getGeometry();B&&(B=Ln(B,!0,E)),Ge(n,WC,tH,[B],t)}var ipt=Nt(Te,["extrude","tessellate","altitudeMode","coordinates"]),apt=Nt(Te,{extrude:At(Np),tessellate:At(Np),altitudeMode:At(De),coordinates:At(Ift)});function vp(r,e,t){var n=e.getFlatCoordinates(),i={node:r};i.layout=e.getLayout(),i.stride=e.getStride();var a=e.getProperties();a.coordinates=n;var o=t[t.length-1].node,s=ipt[o.namespaceURI],A=ho(a,s);Ge(i,apt,qi,A,t,s)}var opt=Nt(Te,["color","fill","outline"]),HN=Nt(Te,{outerBoundaryIs:At(QN),innerBoundaryIs:At(QN)}),spt=Nn("innerBoundaryIs"),Apt=Nn("outerBoundaryIs");function nH(r,e,t){var n=e.getLinearRings(),i=n.shift(),a={node:r};Ge(a,HN,spt,n,t),Ge(a,HN,Apt,[i],t)}var lpt=Nt(Te,{color:At(xw),fill:At(Np),outline:At(Np)});function upt(r,e,t){var n={node:r},i=e.getFill(),a=e.getStroke(),o={color:i?i.getColor():void 0,fill:i?void 0:!1,outline:a?void 0:!1},s=t[t.length-1].node,A=opt[s.namespaceURI],l=ho(o,A);Ge(n,lpt,qi,l,t,A)}function iH(r,e){no(r,Math.round(e*1e6)/1e6)}var cpt=Nt(Te,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),hpt=Nt(Te,{IconStyle:At(kft),LabelStyle:At(jft),LineStyle:At(Yft),PolyStyle:At(upt)});function fpt(r,e,t){var n={node:r},i={};if(e.pointStyles.length){var a=e.pointStyles[0].getText();a&&(i.LabelStyle=a);var o=e.pointStyles[0].getImage();o&&typeof o.getSrc=="function"&&(i.IconStyle=o)}if(e.lineStyles.length){var s=e.lineStyles[0].getStroke();s&&(i.LineStyle=s)}if(e.polyStyles.length){var s=e.polyStyles[0].getStroke();s&&!i.LineStyle&&(i.LineStyle=s),i.PolyStyle=e.polyStyles[0]}var A=t[t.length-1].node,l=cpt[A.namespaceURI],u=ho(i,l);Ge(n,hpt,qi,u,t,l)}function ppt(r,e){r.setAttribute("x",String(e.x)),r.setAttribute("y",String(e.y)),r.setAttribute("xunits",e.xunits),r.setAttribute("yunits",e.yunits)}var dpt=Hht,tL={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */tL.read=function(r,e,t,n,i){var a,o,s=i*8-n-1,A=(1<>1,u=-7,c=t?i-1:0,h=t?-1:1,f=r[e+c];for(c+=h,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=a*256+r[e+c],c+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=n;u>0;o=o*256+r[e+c],c+=h,u-=8);if(a===0)a=1-l;else{if(a===A)return o?NaN:(f?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-l}return(f?-1:1)*o*Math.pow(2,a-n)};tL.write=function(r,e,t,n,i,a){var o,s,A,l=a*8-i-1,u=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,p=n?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(A=Math.pow(2,-o))<1&&(o--,A*=2),o+c>=1?e+=h/A:e+=h*Math.pow(2,1-c),e*A>=2&&(o++,A/=2),o+c>=u?(s=0,o=u):o+c>=1?(s=(e*A-1)*Math.pow(2,i),o=o+c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;r[t+f]=s&255,f+=p,s/=256,i-=8);for(o=o<0;r[t+f]=o&255,f+=p,o/=256,l-=8);r[t+f-p]|=v*128};var vpt=Pr,Vm=tL;function Pr(r){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(r)?r:new Uint8Array(r||0),this.pos=0,this.type=0,this.length=this.buf.length}Pr.Varint=0;Pr.Fixed64=1;Pr.Bytes=2;Pr.Fixed32=5;var Qx=(1<<16)*(1<<16),GN=1/Qx,gpt=12,aH=typeof TextDecoder>"u"?null:new TextDecoder("utf8");Pr.prototype={destroy:function(){this.buf=null},readFields:function(r,e,t){for(t=t||this.length;this.pos>3,a=this.pos;this.type=n&7,r(i,e,this),this.pos===a&&this.skip(n)}return e},readMessage:function(r,e){return this.readFields(r,e,this.readVarint()+this.pos)},readFixed32:function(){var r=jm(this.buf,this.pos);return this.pos+=4,r},readSFixed32:function(){var r=$N(this.buf,this.pos);return this.pos+=4,r},readFixed64:function(){var r=jm(this.buf,this.pos)+jm(this.buf,this.pos+4)*Qx;return this.pos+=8,r},readSFixed64:function(){var r=jm(this.buf,this.pos)+$N(this.buf,this.pos+4)*Qx;return this.pos+=8,r},readFloat:function(){var r=Vm.read(this.buf,this.pos,!0,23,4);return this.pos+=4,r},readDouble:function(){var r=Vm.read(this.buf,this.pos,!0,52,8);return this.pos+=8,r},readVarint:function(r){var e=this.buf,t,n;return n=e[this.pos++],t=n&127,n<128||(n=e[this.pos++],t|=(n&127)<<7,n<128)||(n=e[this.pos++],t|=(n&127)<<14,n<128)||(n=e[this.pos++],t|=(n&127)<<21,n<128)?t:(n=e[this.pos],t|=(n&15)<<28,ypt(t,r,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var r=this.readVarint();return r%2===1?(r+1)/-2:r/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var r=this.readVarint()+this.pos,e=this.pos;return this.pos=r,r-e>=gpt&&aH?Opt(this.buf,e,r):Lpt(this.buf,e,r)},readBytes:function(){var r=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,r);return this.pos=r,e},readPackedVarint:function(r,e){if(this.type!==Pr.Bytes)return r.push(this.readVarint(e));var t=DA(this);for(r=r||[];this.pos127;);else if(e===Pr.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Pr.Fixed32)this.pos+=4;else if(e===Pr.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(r,e){this.writeVarint(r<<3|e)},realloc:function(r){for(var e=this.length||16;e268435455||r<0){mpt(r,this);return}this.realloc(4),this.buf[this.pos++]=r&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=(r>>>=7)&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=(r>>>=7)&127|(r>127?128:0),!(r<=127)&&(this.buf[this.pos++]=r>>>7&127)))},writeSVarint:function(r){this.writeVarint(r<0?-r*2-1:r*2)},writeBoolean:function(r){this.writeVarint(Boolean(r))},writeString:function(r){r=String(r),this.realloc(r.length*4),this.pos++;var e=this.pos;this.pos=Rpt(this.buf,r,this.pos);var t=this.pos-e;t>=128&&kN(e,t,this),this.pos=e-1,this.writeVarint(t),this.pos+=t},writeFloat:function(r){this.realloc(4),Vm.write(this.buf,r,this.pos,!0,23,4),this.pos+=4},writeDouble:function(r){this.realloc(8),Vm.write(this.buf,r,this.pos,!0,52,8),this.pos+=8},writeBytes:function(r){var e=r.length;this.writeVarint(e),this.realloc(e);for(var t=0;t=128&&kN(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeMessage:function(r,e,t){this.writeTag(r,Pr.Bytes),this.writeRawMessage(e,t)},writePackedVarint:function(r,e){e.length&&this.writeMessage(r,Ept,e)},writePackedSVarint:function(r,e){e.length&&this.writeMessage(r,Cpt,e)},writePackedBoolean:function(r,e){e.length&&this.writeMessage(r,Spt,e)},writePackedFloat:function(r,e){e.length&&this.writeMessage(r,Bpt,e)},writePackedDouble:function(r,e){e.length&&this.writeMessage(r,Tpt,e)},writePackedFixed32:function(r,e){e.length&&this.writeMessage(r,xpt,e)},writePackedSFixed32:function(r,e){e.length&&this.writeMessage(r,bpt,e)},writePackedFixed64:function(r,e){e.length&&this.writeMessage(r,Ipt,e)},writePackedSFixed64:function(r,e){e.length&&this.writeMessage(r,Fpt,e)},writeBytesField:function(r,e){this.writeTag(r,Pr.Bytes),this.writeBytes(e)},writeFixed32Field:function(r,e){this.writeTag(r,Pr.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(r,e){this.writeTag(r,Pr.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(r,e){this.writeTag(r,Pr.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(r,e){this.writeTag(r,Pr.Fixed64),this.writeSFixed64(e)},writeVarintField:function(r,e){this.writeTag(r,Pr.Varint),this.writeVarint(e)},writeSVarintField:function(r,e){this.writeTag(r,Pr.Varint),this.writeSVarint(e)},writeStringField:function(r,e){this.writeTag(r,Pr.Bytes),this.writeString(e)},writeFloatField:function(r,e){this.writeTag(r,Pr.Fixed32),this.writeFloat(e)},writeDoubleField:function(r,e){this.writeTag(r,Pr.Fixed64),this.writeDouble(e)},writeBooleanField:function(r,e){this.writeVarintField(r,Boolean(e))}};function ypt(r,e,t){var n=t.buf,i,a;if(a=n[t.pos++],i=(a&112)>>4,a<128||(a=n[t.pos++],i|=(a&127)<<3,a<128)||(a=n[t.pos++],i|=(a&127)<<10,a<128)||(a=n[t.pos++],i|=(a&127)<<17,a<128)||(a=n[t.pos++],i|=(a&127)<<24,a<128)||(a=n[t.pos++],i|=(a&1)<<31,a<128))return gf(r,i,e);throw new Error("Expected varint not more than 10 bytes")}function DA(r){return r.type===Pr.Bytes?r.readVarint()+r.pos:r.pos+1}function gf(r,e,t){return t?e*4294967296+(r>>>0):(e>>>0)*4294967296+(r>>>0)}function mpt(r,e){var t,n;if(r>=0?(t=r%4294967296|0,n=r/4294967296|0):(t=~(-r%4294967296),n=~(-r/4294967296),t^4294967295?t=t+1|0:(t=0,n=n+1|0)),r>=18446744073709552e3||r<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),_pt(t,n,e),wpt(n,e)}function _pt(r,e,t){t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos++]=r&127|128,r>>>=7,t.buf[t.pos]=r&127}function wpt(r,e){var t=(r&7)<<4;e.buf[e.pos++]|=t|((r>>>=3)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127|((r>>>=7)?128:0),r&&(e.buf[e.pos++]=r&127)))))}function kN(r,e,t){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));t.realloc(n);for(var i=t.pos-1;i>=r;i--)t.buf[i+n]=t.buf[i]}function Ept(r,e){for(var t=0;t>>8,r[t+2]=e>>>16,r[t+3]=e>>>24}function $N(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16)+(r[e+3]<<24)}function Lpt(r,e,t){for(var n="",i=e;i239?4:a>223?3:a>191?2:1;if(i+s>t)break;var A,l,u;s===1?a<128&&(o=a):s===2?(A=r[i+1],(A&192)===128&&(o=(a&31)<<6|A&63,o<=127&&(o=null))):s===3?(A=r[i+1],l=r[i+2],(A&192)===128&&(l&192)===128&&(o=(a&15)<<12|(A&63)<<6|l&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(A=r[i+1],l=r[i+2],u=r[i+3],(A&192)===128&&(l&192)===128&&(u&192)===128&&(o=(a&15)<<18|(A&63)<<12|(l&63)<<6|u&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,n+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),n+=String.fromCharCode(o),i+=s}return n}function Opt(r,e,t){return aH.decode(r.subarray(e,t))}function Rpt(r,e,t){for(var n=0,i,a;n55295&&i<57344)if(a)if(i<56320){r[t++]=239,r[t++]=191,r[t++]=189,a=i;continue}else i=a-55296<<10|i-56320|65536,a=null;else{i>56319||n+1===e.length?(r[t++]=239,r[t++]=191,r[t++]=189):a=i;continue}else a&&(r[t++]=239,r[t++]=191,r[t++]=189,a=null);i<128?r[t++]=i:(i<2048?r[t++]=i>>6|192:(i<65536?r[t++]=i>>12|224:(r[t++]=i>>18|240,r[t++]=i>>12&63|128),r[t++]=i>>6&63|128),r[t++]=i&63|128)}return t}var VN=oi(),xg=function(){function r(e,t,n,i,a){this.styleFunction,this.extent_,this.id_=a,this.type_=e,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=n,this.properties_=i}return r.prototype.get=function(e){return this.properties_[e]},r.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===st.POINT?zc(this.flatCoordinates_):Y1(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},r.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var e=Sa(this.getExtent());this.flatInteriorPoints_=nF(this.flatCoordinates_,0,this.ends_,2,e,0)}return this.flatInteriorPoints_},r.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var e=PQ(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=dQ(this.flatCoordinates_,0,this.ends_,2,e)}return this.flatInteriorPoints_},r.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=I_(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},r.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var e=this.flatCoordinates_,t=0,n=this.ends_,i=0,a=n.length;i>3}A--,s===1||s===2?(l+=t.readSVarint(),u+=t.readSVarint(),s===1&&c>h&&(a.push(c),h=c),i.push(l,u),c+=2):s===7?c>h&&(i.push(i[h],i[h+1]),c+=2):_e(!1,59)}c>h&&(a.push(c),h=c)},e.prototype.createFeature_=function(t,n,i){var a=n.type;if(a===0)return null;var o,s=n.properties,A;this.idProperty_?(A=s[this.idProperty_],delete s[this.idProperty_]):A=n.id,s[this.layerName_]=n.layer.name;var l=[],u=[];this.readRawGeometry_(t,n,l,u);var c=Hpt(a,u.length);if(this.featureClass_===jN)o=new this.featureClass_(c,l,u,s,A),o.transform(i.dataProjection);else{var h=void 0;if(c==st.POLYGON){var f=NW(l,u);h=f.length>1?new ba(l,Wt.XY,f):new bn(l,Wt.XY,u)}else h=c===st.POINT?new fr(l,Wt.XY):c===st.LINE_STRING?new Hr(l,Wt.XY):c===st.POLYGON?new bn(l,Wt.XY,u):c===st.MULTI_POINT?new es(l,Wt.XY):c===st.MULTI_LINE_STRING?new xa(l,Wt.XY,u):null;var p=this.featureClass_;o=new p,this.geometryName_&&o.setGeometryName(this.geometryName_);var v=Ln(h,!1,i);o.setGeometry(v),A!==void 0&&o.setId(A),o.setProperties(s,!0)}return o},e.prototype.getType=function(){return Cs.ARRAY_BUFFER},e.prototype.readFeatures=function(t,n){var i=this.layers_,a=this.adaptOptions(n),o=Oe(a.dataProjection);o.setWorldExtent(a.extent),a.dataProjection=o;var s=new vpt(t),A=s.readFields(Ppt,{}),l=[];for(var u in A)if(!(i&&i.indexOf(u)==-1)){var c=A[u],h=c?[0,0,c.extent,c.extent]:null;o.setExtent(h);for(var f=0,p=c.length;f>3,n=r===1?t.readString():r===2?t.readFloat():r===3?t.readDouble():r===4?t.readVarint64():r===5?t.readVarint():r===6?t.readSVarint():r===7?t.readBoolean():null;e.values.push(n)}}function Dpt(r,e,t){if(r==1)e.id=t.readVarint();else if(r==2)for(var n=t.readVarint()+t.pos;t.pos>1):i>>1}return e}function bdt(r){for(var e="",t=0,n=r.length;t=32;)e=(32|r&31)+63,t+=String.fromCharCode(e),r>>=5;return e=r+63,t+=String.fromCharCode(e),t}var Ldt=wdt,Odt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Rdt=function(r){Odt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.layerName_=i.layerName,n.layers_=i.layers?i.layers:null,n.dataProjection=Oe(i.dataProjection?i.dataProjection:"EPSG:4326"),n}return e.prototype.readFeaturesFromObject=function(t,n){if(t.type=="Topology"){var i=t,a=void 0,o=null,s=null;i.transform&&(a=i.transform,o=a.scale,s=a.translate);var A=i.arcs;a&&kdt(A,o,s);var l=[],u=i.objects,c=this.layerName_,h=void 0;for(var f in u)this.layers_&&this.layers_.indexOf(f)==-1||(u[f].type==="GeometryCollection"?(h=u[f],l.push.apply(l,Gdt(h,A,o,s,c,f,n))):(h=u[f],l.push(sH(h,A,o,s,c,f,n))));return l}else return[]},e.prototype.readProjectionFromObject=function(t){return this.dataProjection},e}(GF),Mdt={Point:Ndt,LineString:Udt,Polygon:Qdt,MultiPoint:Pdt,MultiLineString:Ddt,MultiPolygon:Hdt};function bw(r,e){for(var t=[],n,i=0,a=r.length;i0&&t.pop(),n>=0)for(var o=e[n],s=0,A=o.length;s=0;--s)t.push(o[s].slice(0));return t}function Ndt(r,e,t){var n=r.coordinates;return e&&t&&rL(n,e,t),new fr(n)}function Pdt(r,e,t){var n=r.coordinates;if(e&&t)for(var i=0,a=n.length;i=2,57),i}return e}(AH),Xdt=Ydt,Wdt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qdt=function(r){Wdt(e,r);function e(t){return r.call(this,"And",Array.prototype.slice.call(arguments))||this}return e}(Xdt),Zdt=qdt,Jdt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),tvt=function(r){Jdt(e,r);function e(t,n,i){var a=r.call(this,"BBOX")||this;if(a.geometryName=t,a.extent=n,n.length!==4)throw new Error("Expected an extent with four values ([minX, minY, maxX, maxY])");return a.srsName=i,a}return e}(AH),evt=tvt;function rvt(r){var e=[null].concat(Array.prototype.slice.call(arguments));return new(Function.prototype.bind.apply(Zdt,e))}function nvt(r,e,t){return new evt(r,e,t)}var ivt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zN={"http://www.opengis.net/gml":{boundedBy:ot(lr.prototype.readExtentElement,"bounds")},"http://www.opengis.net/wfs/2.0":{member:me(lr.prototype.readFeaturesInternal)}},avt={"http://www.opengis.net/wfs":{totalInserted:ot(ai),totalUpdated:ot(ai),totalDeleted:ot(ai)},"http://www.opengis.net/wfs/2.0":{totalInserted:ot(ai),totalUpdated:ot(ai),totalDeleted:ot(ai)}},ovt={"http://www.opengis.net/wfs":{TransactionSummary:ot(XN,"transactionSummary"),InsertResults:ot(qN,"insertIds")},"http://www.opengis.net/wfs/2.0":{TransactionSummary:ot(XN,"transactionSummary"),InsertResults:ot(qN,"insertIds")}},svt={"http://www.opengis.net/wfs":{PropertyName:At(De)},"http://www.opengis.net/wfs/2.0":{PropertyName:At(De)}},lH={"http://www.opengis.net/wfs":{Insert:At(ZN),Update:At(tP),Delete:At(JN),Property:At(eP),Native:At(rP)},"http://www.opengis.net/wfs/2.0":{Insert:At(ZN),Update:At(tP),Delete:At(JN),Property:At(eP),Native:At(rP)}},uH="feature",iL="http://www.w3.org/2000/xmlns/",aL={"2.0.0":"http://www.opengis.net/ogc/1.1","1.1.0":"http://www.opengis.net/ogc","1.0.0":"http://www.opengis.net/ogc"},Hx={"2.0.0":"http://www.opengis.net/wfs/2.0","1.1.0":"http://www.opengis.net/wfs","1.0.0":"http://www.opengis.net/wfs"},oL={"2.0.0":"http://www.opengis.net/fes/2.0","1.1.0":"http://www.opengis.net/fes","1.0.0":"http://www.opengis.net/fes"},YN={"2.0.0":"http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd","1.1.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd","1.0.0":"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"},sL={"2.0.0":nL,"1.1.0":rr,"1.0.0":qp},Avt="1.1.0",lvt=function(r){ivt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.version_=i.version?i.version:Avt,n.featureType_=i.featureType,n.featureNS_=i.featureNS,n.gmlFormat_=i.gmlFormat?i.gmlFormat:new sL[n.version_],n.schemaLocation_=i.schemaLocation?i.schemaLocation:YN[n.version_],n}return e.prototype.getFeatureType=function(){return this.featureType_},e.prototype.setFeatureType=function(t){this.featureType_=t},e.prototype.readFeaturesFromNode=function(t,n){var i={node:t};de(i,{featureType:this.featureType_,featureNS:this.featureNS_}),de(i,this.getReadOptions(t,n||{}));var a=[i],o;this.version_==="2.0.0"?o=zN:o=this.gmlFormat_.FEATURE_COLLECTION_PARSERS;var s=Gt([],o,t,a,this.gmlFormat_);return s||(s=[]),s},e.prototype.readTransactionResponse=function(t){if(t)if(typeof t=="string"){var n=nA(t);return this.readTransactionResponseFromDocument(n)}else return rA(t)?this.readTransactionResponseFromDocument(t):this.readTransactionResponseFromNode(t);else return},e.prototype.readFeatureCollectionMetadata=function(t){if(t)if(typeof t=="string"){var n=nA(t);return this.readFeatureCollectionMetadataFromDocument(n)}else return rA(t)?this.readFeatureCollectionMetadataFromDocument(t):this.readFeatureCollectionMetadataFromNode(t);else return},e.prototype.readFeatureCollectionMetadataFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readFeatureCollectionMetadataFromNode(n)},e.prototype.readFeatureCollectionMetadataFromNode=function(t){var n={},i=ZA(t.getAttribute("numberOfFeatures"));return n.numberOfFeatures=i,Gt(n,zN,t,[],this.gmlFormat_)},e.prototype.readTransactionResponseFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readTransactionResponseFromNode(n)},e.prototype.readTransactionResponseFromNode=function(t){return Gt({},ovt,t,[])},e.prototype.writeGetFeature=function(t){var n=this,i=ke(Hx[this.version_],"GetFeature");i.setAttribute("service","WFS"),i.setAttribute("version",this.version_),t.handle&&i.setAttribute("handle",t.handle),t.outputFormat&&i.setAttribute("outputFormat",t.outputFormat),t.maxFeatures!==void 0&&i.setAttribute("maxFeatures",String(t.maxFeatures)),t.resultType&&i.setAttribute("resultType",t.resultType),t.startIndex!==void 0&&i.setAttribute("startIndex",String(t.startIndex)),t.count!==void 0&&i.setAttribute("count",String(t.count)),t.viewParams!==void 0&&i.setAttribute("viewParams",t.viewParams),i.setAttributeNS(yh,"xsi:schemaLocation",this.schemaLocation_);var a={node:i};if(de(a,{version:this.version_,srsName:t.srsName,featureNS:t.featureNS?t.featureNS:this.featureNS_,featurePrefix:t.featurePrefix,propertyNames:t.propertyNames?t.propertyNames:[]}),_e(Array.isArray(t.featureTypes),11),typeof t.featureTypes[0]=="string"){var o=t.filter;t.bbox&&(_e(t.geometryName,12),o=this.combineBboxAndFilter(t.geometryName,t.bbox,t.srsName,o)),de(a,{geometryName:t.geometryName,filter:o}),hP(i,t.featureTypes,[a])}else t.featureTypes.forEach(function(s){var A=n.combineBboxAndFilter(s.geometryName,s.bbox,t.srsName,t.filter);de(a,{geometryName:s.geometryName,filter:A}),hP(i,[s.name],[a])});return i},e.prototype.combineBboxAndFilter=function(t,n,i,a){var o=nvt(t,n,i);return a?rvt(a,o):o},e.prototype.writeTransaction=function(t,n,i,a){var o=[],s=a.version?a.version:this.version_,A=ke(Hx[s],"Transaction");A.setAttribute("service","WFS"),A.setAttribute("version",s);var l;a&&(l=a.gmlOptions?a.gmlOptions:{},a.handle&&A.setAttribute("handle",a.handle)),A.setAttributeNS(yh,"xsi:schemaLocation",YN[s]);var u=uvt(A,l,s,a);return t&&Km("Insert",t,o,u),n&&Km("Update",n,o,u),i&&Km("Delete",i,o,u),a.nativeElements&&Km("Native",a.nativeElements,o,u),A},e.prototype.readProjectionFromDocument=function(t){for(var n=t.firstChild;n;n=n.nextSibling)if(n.nodeType==Node.ELEMENT_NODE)return this.readProjectionFromNode(n);return null},e.prototype.readProjectionFromNode=function(t){if(t.firstElementChild&&t.firstElementChild.firstElementChild){t=t.firstElementChild.firstElementChild;for(var n=t.firstElementChild;n;n=n.nextElementSibling)if(!(n.childNodes.length===0||n.childNodes.length===1&&n.firstChild.nodeType===3)){var i=[{}];return this.gmlFormat_.readGeometryElement(n,i),Oe(i.pop().srsName)}}return null},e}(hy);function uvt(r,e,t,n){var i=n.featurePrefix?n.featurePrefix:uH,a;t==="1.0.0"?a=2:t==="1.1.0"?a=3:t==="2.0.0"&&(a=3.2);var o=de({node:r},{version:t,featureNS:n.featureNS,featureType:n.featureType,featurePrefix:i,gmlVersion:a,hasZ:n.hasZ,srsName:n.srsName},e);return o}function Km(r,e,t,n){Ge(n,lH,Nn(r),e,t)}function XN(r,e){return Gt({},avt,r,e)}var cvt={"http://www.opengis.net/ogc":{FeatureId:me(function(r,e){return r.getAttribute("fid")})},"http://www.opengis.net/ogc/1.1":{FeatureId:me(function(r,e){return r.getAttribute("fid")})}};function WN(r,e){Ao(cvt,r,e)}var hvt={"http://www.opengis.net/wfs":{Feature:WN},"http://www.opengis.net/wfs/2.0":{Feature:WN}};function qN(r,e){return Gt([],hvt,r,e)}function ZN(r,e,t){var n=t[t.length-1],i=n.featureType,a=n.featureNS,o=n.gmlVersion,s=ke(a,i);r.appendChild(s),o===2?qp.prototype.writeFeatureElement(s,e,t):o===3?rr.prototype.writeFeatureElement(s,e,t):nL.prototype.writeFeatureElement(s,e,t)}function cH(r,e,t){var n=t[t.length-1],i=n.version,a=aL[i],o=ke(a,"Filter"),s=ke(a,"FeatureId");o.appendChild(s),s.setAttribute("fid",e),r.appendChild(o)}function AL(r,e){r=r||uH;var t=r+":";return e.indexOf(t)===0?e:t+e}function JN(r,e,t){var n=t[t.length-1];_e(e.getId()!==void 0,26);var i=n.featureType,a=n.featurePrefix,o=n.featureNS,s=AL(a,i);r.setAttribute("typeName",s),r.setAttributeNS(iL,"xmlns:"+a,o);var A=e.getId();A!==void 0&&cH(r,A,t)}function tP(r,e,t){var n=t[t.length-1];_e(e.getId()!==void 0,27);var i=n.version,a=n.featureType,o=n.featurePrefix,s=n.featureNS,A=AL(o,a),l=e.getGeometryName();r.setAttribute("typeName",A),r.setAttributeNS(iL,"xmlns:"+o,s);var u=e.getId();if(u!==void 0){for(var c=e.getKeys(),h=[],f=0,p=c.length;f0,i=this.readUint32(n),a=Math.floor((i&268435455)/1e3),o=Boolean(i&2147483648)||a===1||a===3,s=Boolean(i&1073741824)||a===2||a===3,A=Boolean(i&536870912),l=(i&268435455)%1e3,u=["XY",o?"Z":"",s?"M":""].join(""),c=A?this.readUint32(n):null;if(e!==void 0&&e!==l)throw new Error("Unexpected WKB geometry type "+l);if(this.initialized_){if(this.isLittleEndian_!==n)throw new Error("Inconsistent endian");if(this.layout_!==u)throw new Error("Inconsistent geometry layout");if(c&&this.srid_!==c)throw new Error("Inconsistent coordinate system (SRID)")}else this.isLittleEndian_=n,this.hasZ_=o,this.hasM_=s,this.layout_=u,this.srid_=c,this.initialized_=!0;return l},r.prototype.readWkbPayload=function(e){switch(e){case Kr.POINT:return this.readPoint();case Kr.LINE_STRING:return this.readLineString();case Kr.POLYGON:case Kr.TRIANGLE:return this.readPolygon();case Kr.MULTI_POINT:return this.readMultiPoint();case Kr.MULTI_LINE_STRING:return this.readMultiLineString();case Kr.MULTI_POLYGON:case Kr.POLYHEDRAL_SURFACE:case Kr.TIN:return this.readMultiPolygon();case Kr.GEOMETRY_COLLECTION:return this.readGeometryCollection();default:throw new Error("Unsupported WKB geometry type "+e+" is found")}},r.prototype.readWkbBlock=function(e){return this.readWkbPayload(this.readWkbHeader(e))},r.prototype.readWkbCollection=function(e,t){for(var n=this.readUint32(),i=[],a=0;a=0&&(e+=this.isEWKB_?2147483648:1e3),this.layout_.indexOf("M")>=0&&(e+=this.isEWKB_?1073741824:2e3),this.isEWKB_&&Number.isInteger(t)&&(e|=536870912),this.writeUint8(this.isLittleEndian_?1:0),this.writeUint32(e),this.isEWKB_&&Number.isInteger(t)&&this.writeUint32(t)},r.prototype.writeMultiPoint=function(e,t){this.writeUint32(e.length);for(var n=0;n="a"&&e<="z"||e>="A"&&e<="Z"},r.prototype.isNumeric_=function(e,t){var n=t!==void 0?t:!1;return e>="0"&&e<="9"||e=="."&&!n},r.prototype.isWhiteSpace_=function(e){return e==" "||e==" "||e=="\r"||e==` +`},r.prototype.nextChar_=function(){return this.wkt.charAt(++this.index_)},r.prototype.nextToken=function(){var e=this.nextChar_(),t=this.index_,n=e,i;if(e=="(")i=Ur.LEFT_PAREN;else if(e==",")i=Ur.COMMA;else if(e==")")i=Ur.RIGHT_PAREN;else if(this.isNumeric_(e)||e=="-")i=Ur.NUMBER,n=this.readNumber_();else if(this.isAlpha_(e))i=Ur.TEXT,n=this.readText_();else{if(this.isWhiteSpace_(e))return this.nextToken();if(e==="")i=Ur.EOF;else throw new Error("Unexpected character: "+e)}return{position:t,value:n,type:i}},r.prototype.readNumber_=function(){var e,t=this.index_,n=!1,i=!1;do e=="."?n=!0:(e=="e"||e=="E")&&(i=!0),e=this.nextChar_();while(this.isNumeric_(e,n)||!i&&(e=="e"||e=="E")||i&&(e=="-"||e=="+"));return parseFloat(this.wkt.substring(t,this.index_--))},r.prototype.readText_=function(){var e,t=this.index_;do e=this.nextChar_();while(this.isAlpha_(e));return this.wkt.substring(t,this.index_--).toUpperCase()},r}(),xvt=function(){function r(e){this.lexer_=e,this.token_={position:0,type:Ur.START},this.layout_=Wt.XY}return r.prototype.consume_=function(){this.token_=this.lexer_.nextToken()},r.prototype.isTokenType=function(e){return this.token_.type==e},r.prototype.match=function(e){var t=this.isTokenType(e);return t&&this.consume_(),t},r.prototype.parse=function(){return this.consume_(),this.parseGeometry_()},r.prototype.parseGeometryLayout_=function(){var e=Wt.XY,t=this.token_;if(this.isTokenType(Ur.TEXT)){var n=t.value;n===fH?e=Wt.XYZ:n===pH?e=Wt.XYM:n===Bvt&&(e=Wt.XYZM),e!==Wt.XY&&this.consume_()}return e},r.prototype.parseGeometryCollectionText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=[];do e.push(this.parseGeometry_());while(this.match(Ur.COMMA));if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePointText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parsePoint_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseLineStringText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parsePointList_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePolygonText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parseLineStringTextList_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiPointText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=void 0;if(this.token_.type==Ur.LEFT_PAREN?e=this.parsePointTextList_():e=this.parsePointList_(),this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiLineStringText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parseLineStringTextList_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parseMultiPolygonText_=function(){if(this.match(Ur.LEFT_PAREN)){var e=this.parsePolygonTextList_();if(this.match(Ur.RIGHT_PAREN))return e}throw new Error(this.formatErrorMessage_())},r.prototype.parsePoint_=function(){for(var e=[],t=this.layout_.length,n=0;n0&&(e+=" "+i)}return n.length===0?e+" "+hH:e+"("+n+")"}var Nvt=bvt,Pvt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ua=[null,"http://www.opengis.net/wms"],Uvt=Nt(ua,{Service:ot(igt),Capability:ot(ngt)}),Dvt=Nt(ua,{Request:ot(cgt),Exception:ot(Agt),Layer:ot(lgt)}),Qvt=function(r){Pvt(e,r);function e(){var t=r.call(this)||this;return t.version=void 0,t}return e.prototype.readFromNode=function(t){this.version=t.getAttribute("version").trim();var n=Gt({version:this.version},Uvt,t,[]);return n||null},e}(eL),Hvt=Nt(ua,{Name:ot($t),Title:ot($t),Abstract:ot($t),KeywordList:ot(wH),OnlineResource:ot(Zp),ContactInformation:ot(agt),Fees:ot($t),AccessConstraints:ot($t),LayerLimit:ot(ai),MaxWidth:ot(ai),MaxHeight:ot(ai)}),Gvt=Nt(ua,{ContactPersonPrimary:ot(ogt),ContactPosition:ot($t),ContactAddress:ot(sgt),ContactVoiceTelephone:ot($t),ContactFacsimileTelephone:ot($t),ContactElectronicMailAddress:ot($t)}),kvt=Nt(ua,{ContactPerson:ot($t),ContactOrganization:ot($t)}),$vt=Nt(ua,{AddressType:ot($t),Address:ot($t),City:ot($t),StateOrProvince:ot($t),PostCode:ot($t),Country:ot($t)}),Vvt=Nt(ua,{Format:me($t)}),yH=Nt(ua,{Name:ot($t),Title:ot($t),Abstract:ot($t),KeywordList:ot(wH),CRS:vn($t),EX_GeographicBoundingBox:ot(rgt),BoundingBox:vn(egt),Dimension:vn(ugt),Attribution:ot(tgt),AuthorityURL:vn(pgt),Identifier:vn($t),MetadataURL:vn(dgt),DataURL:vn(cl),FeatureListURL:vn(cl),Style:vn(vgt),MinScaleDenominator:ot(Ir),MaxScaleDenominator:ot(Ir),Layer:vn(mH)}),jvt=Nt(ua,{Title:ot($t),OnlineResource:ot(Zp),LogoURL:ot(_H)}),Kvt=Nt(ua,{westBoundLongitude:ot(Ir),eastBoundLongitude:ot(Ir),southBoundLatitude:ot(Ir),northBoundLatitude:ot(Ir)}),zvt=Nt(ua,{GetCapabilities:ot(qC),GetMap:ot(qC),GetFeatureInfo:ot(qC)}),Yvt=Nt(ua,{Format:vn($t),DCPType:vn(hgt)}),Xvt=Nt(ua,{HTTP:ot(fgt)}),Wvt=Nt(ua,{Get:ot(cl),Post:ot(cl)}),qvt=Nt(ua,{Name:ot($t),Title:ot($t),Abstract:ot($t),LegendURL:vn(_H),StyleSheetURL:ot(cl),StyleURL:ot(cl)}),Zvt=Nt(ua,{Format:ot($t),OnlineResource:ot(Zp)}),Jvt=Nt(ua,{Keyword:me($t)});function tgt(r,e){return Gt({},jvt,r,e)}function egt(r,e){var t=[XA(r.getAttribute("minx")),XA(r.getAttribute("miny")),XA(r.getAttribute("maxx")),XA(r.getAttribute("maxy"))],n=[XA(r.getAttribute("resx")),XA(r.getAttribute("resy"))];return{crs:r.getAttribute("CRS"),extent:t,res:n}}function rgt(r,e){var t=Gt({},Kvt,r,e);if(t){var n=t.westBoundLongitude,i=t.southBoundLatitude,a=t.eastBoundLongitude,o=t.northBoundLatitude;if(!(n===void 0||i===void 0||a===void 0||o===void 0))return[n,i,a,o]}}function ngt(r,e){return Gt({},Dvt,r,e)}function igt(r,e){return Gt({},Hvt,r,e)}function agt(r,e){return Gt({},Gvt,r,e)}function ogt(r,e){return Gt({},kvt,r,e)}function sgt(r,e){return Gt({},$vt,r,e)}function Agt(r,e){return Gt([],Vvt,r,e)}function lgt(r,e){var t=Gt({},yH,r,e);return t.Layer===void 0?Object.assign(t,mH(r,e)):t}function mH(r,e){var t=e[e.length-1],n=Gt({},yH,r,e);if(n){var i=Jc(r.getAttribute("queryable"));i===void 0&&(i=t.queryable),n.queryable=i!==void 0?i:!1;var a=ZA(r.getAttribute("cascaded"));a===void 0&&(a=t.cascaded),n.cascaded=a;var o=Jc(r.getAttribute("opaque"));o===void 0&&(o=t.opaque),n.opaque=o!==void 0?o:!1;var s=Jc(r.getAttribute("noSubsets"));s===void 0&&(s=t.noSubsets),n.noSubsets=s!==void 0?s:!1;var A=XA(r.getAttribute("fixedWidth"));A||(A=t.fixedWidth),n.fixedWidth=A;var l=XA(r.getAttribute("fixedHeight"));l||(l=t.fixedHeight),n.fixedHeight=l;var u=["Style","CRS","AuthorityURL"];u.forEach(function(h){if(h in t){var f=n[h]||[];n[h]=f.concat(t[h])}});var c=["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"];return c.forEach(function(h){if(!(h in n)){var f=t[h];n[h]=f}}),n}}function ugt(r,e){var t={name:r.getAttribute("name"),units:r.getAttribute("units"),unitSymbol:r.getAttribute("unitSymbol"),default:r.getAttribute("default"),multipleValues:Jc(r.getAttribute("multipleValues")),nearestValue:Jc(r.getAttribute("nearestValue")),current:Jc(r.getAttribute("current")),values:$t(r)};return t}function cl(r,e){return Gt({},Zvt,r,e)}function cgt(r,e){return Gt({},zvt,r,e)}function hgt(r,e){return Gt({},Xvt,r,e)}function fgt(r,e){return Gt({},Wvt,r,e)}function qC(r,e){return Gt({},Yvt,r,e)}function _H(r,e){var t=cl(r,e);if(t){var n=[ZA(r.getAttribute("width")),ZA(r.getAttribute("height"))];return t.size=n,t}}function pgt(r,e){var t=cl(r,e);if(t)return t.name=r.getAttribute("name"),t}function dgt(r,e){var t=cl(r,e);if(t)return t.type=r.getAttribute("type"),t}function vgt(r,e){return Gt({},qvt,r,e)}function wH(r,e){return Gt([],Jvt,r,e)}var ggt=Qvt,ygt=globalThis&&globalThis.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),mgt="_feature",_gt="_layer",wgt=function(r){ygt(e,r);function e(t){var n=r.call(this)||this,i=t||{};return n.featureNS_="http://mapserver.gis.umn.edu/mapserver",n.gmlFormat_=new qp,n.layers_=i.layers?i.layers:null,n}return e.prototype.getLayers=function(){return this.layers_},e.prototype.setLayers=function(t){this.layers_=t},e.prototype.readFeatures_=function(t,n){t.setAttribute("namespaceURI",this.featureNS_);var i=t.localName,a=[];if(t.childNodes.length===0)return a;if(i=="msGMLOutput")for(var o=0,s=t.childNodes.length;o * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License @@ -963,14 +963,14 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var $x=function(r,e){return $x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},$x(r,e)};function Us(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$x(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Vx=function(){return Vx=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=55296&&i<=56319&&t>10)+55296,o%1024+56320)),(i+1===t||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},dP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xgt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xm=0;Xm"u"?[]:new Uint8Array(256);for(var Wm=0;Wm>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|A&63;return l},qgt=function(r){for(var e=r.length,t=[],n=0;n>th,tyt=1<>th,ryt=EH+eyt,nyt=ryt,iyt=32,ayt=nyt+iyt,oyt=65536>>uL,syt=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>th],t=(t<>th)],t=(t<>uL),t=this.index[t],t+=e>>th&Ayt,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var qm=0;qmmP?(i.push(!0),s-=mP):i.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(o),t.push(zx);if(s===dyt||s===jx){if(o===0)return n.push(o),t.push(Rc);var A=t[o-1];return Cyt.indexOf(A)===-1?(n.push(n[o-1]),t.push(A)):(n.push(o),t.push(Rc))}if(n.push(o),s===_yt)return t.push(e==="strict"?Yx:bg);if(s===SH||s===myt)return t.push(Rc);if(s===wyt)return a>=131072&&a<=196605||a>=196608&&a<=262141?t.push(bg):t.push(Rc);t.push(s)}),[n,t,i]},rB=function(r,e,t,n){var i=n[t];if(Array.isArray(r)?r.indexOf(i)!==-1:r===i)for(var a=t;a<=n.length;){a++;var o=n[a];if(o===e)return!0;if(o!==vu)break}if(i===vu)for(var a=t;a>0;){a--;var s=n[a];if(Array.isArray(r)?r.indexOf(s)!==-1:r===s)for(var A=t;A<=n.length;){A++;var o=n[A];if(o===e)return!0;if(o!==vu)break}if(s!==vu)break}return!1},SP=function(r,e){for(var t=r;t>=0;){var n=e[t];if(n===vu)t--;else return n}return 0},Syt=function(r,e,t,n,i){if(t[n]===0)return yr;var a=n-1;if(Array.isArray(i)&&i[a]===!0)return yr;var o=a-1,s=a+1,A=e[a],l=o>=0?e[o]:0,u=e[s];if(A===CH&&u===BH)return yr;if(tb.indexOf(A)!==-1)return xH;if(tb.indexOf(u)!==-1||bH.indexOf(u)!==-1)return yr;if(SP(a,e)===TH)return e0;if(Jx.get(r[a])===jx||(A===Jm||A===t0)&&Jx.get(r[s])===jx||A===_P||u===_P||A===wP||[vu,Kx,_v].indexOf(A)===-1&&u===wP||[Zm,Wd,yyt,mf,_f].indexOf(u)!==-1||SP(a,e)===qd||rB(tB,qd,a,e)||rB([Zm,Wd],Yx,a,e)||rB(EP,EP,a,e))return yr;if(A===vu)return e0;if(A===tB||u===tB)return yr;if(u===zx||A===zx)return e0;if([Kx,_v,Yx].indexOf(u)!==-1||A===gyt||l===qx&&Byt.indexOf(A)!==-1||A===_f&&u===qx||u===CP||QA.indexOf(u)!==-1&&A===To||QA.indexOf(A)!==-1&&u===To||A===Ev&&[bg,Jm,t0].indexOf(u)!==-1||[bg,Jm,t0].indexOf(A)!==-1&&u===wv||QA.indexOf(A)!==-1&&BP.indexOf(u)!==-1||BP.indexOf(A)!==-1&&QA.indexOf(u)!==-1||[Ev,wv].indexOf(A)!==-1&&(u===To||[qd,_v].indexOf(u)!==-1&&e[s+1]===To)||[qd,_v].indexOf(A)!==-1&&u===To||A===To&&[To,_f,mf].indexOf(u)!==-1)return yr;if([To,_f,mf,Zm,Wd].indexOf(u)!==-1)for(var c=a;c>=0;){var h=e[c];if(h===To)return yr;if([_f,mf].indexOf(h)!==-1)c--;else break}if([Ev,wv].indexOf(u)!==-1)for(var c=[Zm,Wd].indexOf(A)!==-1?o:a;c>=0;){var h=e[c];if(h===To)return yr;if([_f,mf].indexOf(h)!==-1)c--;else break}if(Zx===A&&[Zx,X0,Xx,Wx].indexOf(u)!==-1||[X0,Xx].indexOf(A)!==-1&&[X0,W0].indexOf(u)!==-1||[W0,Wx].indexOf(A)!==-1&&u===W0||TP.indexOf(A)!==-1&&[CP,wv].indexOf(u)!==-1||TP.indexOf(u)!==-1&&A===Ev||QA.indexOf(A)!==-1&&QA.indexOf(u)!==-1||A===mf&&QA.indexOf(u)!==-1||QA.concat(To).indexOf(A)!==-1&&u===qd&&Eyt.indexOf(r[s])===-1||QA.concat(To).indexOf(u)!==-1&&A===Wd)return yr;if(A===eB&&u===eB){for(var f=t[a],p=1;f>0&&(f--,e[f]===eB);)p++;if(p%2!==0)return yr}return A===Jm&&u===t0?yr:e0},xyt=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Tyt(r,e.lineBreak),n=t[0],i=t[1],a=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(i=i.map(function(s){return[To,Rc,SH].indexOf(s)!==-1?bg:s}));var o=e.wordBreak==="keep-all"?a.map(function(s,A){return s&&r[A]>=19968&&r[A]<=40959}):void 0;return[n,i,o]},byt=function(){function r(e,t,n,i){this.codePoints=e,this.required=t===xH,this.start=n,this.end=i}return r.prototype.slice=function(){return ti.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),Iyt=function(r,e){var t=Ow(r),n=xyt(t,e),i=n[0],a=n[1],o=n[2],s=t.length,A=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var u=yr;l=IH&&r<=57},lmt=function(r){return r>=55296&&r<=57343},wf=function(r){return _a(r)||r>=OH&&r<=MH||r>=FH&&r<=imt},umt=function(r){return r>=FH&&r<=omt},cmt=function(r){return r>=OH&&r<=Amt},hmt=function(r){return umt(r)||cmt(r)},fmt=function(r){return r>=Yyt},o0=function(r){return r===o1||r===Oyt||r===Ryt},s1=function(r){return hmt(r)||fmt(r)||r===Uyt},LP=function(r){return s1(r)||_a(r)||r===io},pmt=function(r){return r>=Zyt&&r<=Jyt||r===tmt||r>=emt&&r<=rmt||r===nmt},su=function(r,e){return r!==jv?!1:e!==o1},s0=function(r,e,t){return r===io?s1(e)||su(e,t):s1(r)?!0:!!(r===jv&&su(r,e))},iB=function(r,e,t){return r===Gc||r===io?_a(e)?!0:e===Ig&&_a(t):_a(r===Ig?e:r)},dmt=function(r){var e=0,t=1;(r[e]===Gc||r[e]===io)&&(r[e]===io&&(t=-1),e++);for(var n=[];_a(r[e]);)n.push(r[e++]);var i=n.length?parseInt(ti.apply(void 0,n),10):0;r[e]===Ig&&e++;for(var a=[];_a(r[e]);)a.push(r[e++]);var o=a.length,s=o?parseInt(ti.apply(void 0,a),10):0;(r[e]===RH||r[e]===LH)&&e++;var A=1;(r[e]===Gc||r[e]===io)&&(r[e]===io&&(A=-1),e++);for(var l=[];_a(r[e]);)l.push(r[e++]);var u=l.length?parseInt(ti.apply(void 0,l),10):0;return t*(i+s*Math.pow(10,-o))*Math.pow(10,A*u)},vmt={type:2},gmt={type:3},ymt={type:4},mmt={type:13},_mt={type:8},wmt={type:21},Emt={type:9},Cmt={type:10},Bmt={type:11},Tmt={type:12},Smt={type:14},A0={type:23},xmt={type:1},bmt={type:25},Imt={type:24},Fmt={type:26},Lmt={type:27},Omt={type:28},Rmt={type:29},Mmt={type:31},eb={type:32},NH=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(Ow(e))},r.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==eb;)e.push(t),t=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case r0:return this.consumeStringToken(r0);case Myt:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(LP(t)||su(n,i)){var a=s0(t,n,i)?Lyt:Fyt,o=this.consumeName();return{type:5,value:o,flags:a}}break;case Nyt:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),mmt;break;case n0:return this.consumeStringToken(n0);case i0:return vmt;case Jd:return gmt;case nB:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),Smt;break;case Gc:if(iB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Xyt:return ymt;case io:var s=e,A=this.peekCodePoint(0),l=this.peekCodePoint(1);if(iB(s,A,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(s0(s,A,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(A===io&&l===Hyt)return this.consumeCodePoint(),this.consumeCodePoint(),Imt;break;case Ig:if(iB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case bP:if(this.peekCodePoint(0)===nB)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===nB&&(u=this.consumeCodePoint(),u===bP))return this.consumeToken();if(u===ks)return this.consumeToken()}break;case Wyt:return Fmt;case qyt:return Lmt;case Qyt:if(this.peekCodePoint(0)===Dyt&&this.peekCodePoint(1)===io&&this.peekCodePoint(2)===io)return this.consumeCodePoint(),this.consumeCodePoint(),bmt;break;case Gyt:var c=this.peekCodePoint(0),h=this.peekCodePoint(1),f=this.peekCodePoint(2);if(s0(c,h,f)){var o=this.consumeName();return{type:7,value:o}}break;case kyt:return Omt;case jv:if(su(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case $yt:return Rmt;case Vyt:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),_mt;break;case jyt:return Bmt;case Kyt:return Tmt;case amt:case smt:var p=this.peekCodePoint(0),v=this.peekCodePoint(1);return p===Gc&&(wf(v)||v===a0)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case IP:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),Emt;if(this.peekCodePoint(0)===IP)return this.consumeCodePoint(),wmt;break;case zyt:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),Cmt;break;case ks:return eb}return o0(e)?(this.consumeWhiteSpace(),Mmt):_a(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):s1(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:ti(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},r.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},r.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},r.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();wf(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===a0&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(ti.apply(void 0,e.map(function(A){return A===a0?IH:A})),16),a=parseInt(ti.apply(void 0,e.map(function(A){return A===a0?MH:A})),16);return{type:30,start:i,end:a}}var o=parseInt(ti.apply(void 0,e),16);if(this.peekCodePoint(0)===io&&wf(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];wf(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var a=parseInt(ti.apply(void 0,s),16);return{type:30,start:o,end:a}}else return{type:30,start:o,end:o}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===i0?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===i0?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ks)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===n0||t===r0){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ks||this.peekCodePoint(0)===Jd)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),A0)}for(;;){var i=this.consumeCodePoint();if(i===ks||i===Jd)return{type:22,value:ti.apply(void 0,e)};if(o0(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ks||this.peekCodePoint(0)===Jd?(this.consumeCodePoint(),{type:22,value:ti.apply(void 0,e)}):(this.consumeBadUrlRemnants(),A0);if(i===r0||i===n0||i===i0||pmt(i))return this.consumeBadUrlRemnants(),A0;if(i===jv)if(su(i,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),A0;else e.push(i)}},r.prototype.consumeWhiteSpace=function(){for(;o0(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Jd||e===ks)return;su(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var i=Math.min(t,e);n+=ti.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var t="",n=0;do{var i=this._value[n];if(i===ks||i===void 0||i===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(i===o1)return this._value.splice(0,n),xmt;if(i===jv){var a=this._value[n+1];a!==ks&&a!==void 0&&(a===o1?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):su(i,a)&&(t+=this.consumeStringSlice(n),t+=ti(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],t=fy,n=this.peekCodePoint(0);for((n===Gc||n===io)&&e.push(this.consumeCodePoint());_a(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===Ig&&_a(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=xP;_a(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===RH||n===LH)&&((i===Gc||i===io)&&_a(a)||_a(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=xP;_a(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[dmt(e),t]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(s0(i,a,o)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return i===Pyt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(wf(e)){for(var t=ti(e);wf(this.peekCodePoint(0))&&t.length<6;)t+=ti(this.consumeCodePoint());o0(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||lmt(n)||n>1114111?FP:n}return e===ks?FP:e},r.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(LP(t))e+=ti(t);else if(su(t,this.peekCodePoint(0)))e+=ti(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},r}(),PH=function(){function r(e){this._tokens=e}return r.create=function(e){var t=new NH;return t.write(e),new r(t.read())},r.parseValue=function(e){return r.create(e).parseComponentValue()},r.parseValues=function(e){return r.create(e).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},r.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},r.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||Pmt(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?eb:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),py=function(r){return r.type===15},ed=function(r){return r.type===17},an=function(r){return r.type===20},Nmt=function(r){return r.type===0},rb=function(r,e){return an(r)&&r.value===e},UH=function(r){return r.type!==31},Pp=function(r){return r.type!==31&&r.type!==4},dA=function(r){var e=[],t=[];return r.forEach(function(n){if(n.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},Pmt=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},Ku=function(r){return r.type===17||r.type===15},mi=function(r){return r.type===16||Ku(r)},DH=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},aa={type:17,number:0,flags:fy},cL={type:16,number:50,flags:fy},gu={type:16,number:100,flags:fy},Cv=function(r,e,t){var n=r[0],i=r[1];return[yn(n,e),yn(typeof i<"u"?i:n,t)]},yn=function(r,e){if(r.type===16)return r.number/100*e;if(py(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},QH="deg",HH="grad",GH="rad",kH="turn",Rw={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case QH:return Math.PI*e.number/180;case HH:return Math.PI/200*e.number;case GH:return e.number;case kH:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},$H=function(r){return r.type===15&&(r.unit===QH||r.unit===HH||r.unit===GH||r.unit===kH)},VH=function(r){var e=r.filter(an).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[aa,aa];case"to top":case"bottom":return qo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[aa,gu];case"to right":case"left":return qo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[gu,gu];case"to bottom":case"top":return qo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[gu,aa];case"to left":case"right":return qo(270)}return 0},qo=function(r){return Math.PI*r/180},xu={name:"color",parse:function(r,e){if(e.type===18){var t=Umt[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(r,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return yu(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3),o=e.value.substring(3,4);return yu(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6);return yu(parseInt(n,16),parseInt(i,16),parseInt(a,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8);return yu(parseInt(n,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}}if(e.type===20){var s=il[e.value.toUpperCase()];if(typeof s<"u")return s}return il.TRANSPARENT}},bu=function(r){return(255&r)===0},ji=function(r){var e=255&r,t=255&r>>8,n=255&r>>16,i=255&r>>24;return e<255?"rgba("+i+","+n+","+t+","+e/255+")":"rgb("+i+","+n+","+t+")"},yu=function(r,e,t,n){return(r<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0},OP=function(r,e){if(r.type===17)return r.number;if(r.type===16){var t=e===3?1:255;return e===3?r.number/100*t:Math.round(r.number/100*t)}return 0},RP=function(r,e){var t=e.filter(Pp);if(t.length===3){var n=t.map(OP),i=n[0],a=n[1],o=n[2];return yu(i,a,o,1)}if(t.length===4){var s=t.map(OP),i=s[0],a=s[1],o=s[2],A=s[3];return yu(i,a,o,A)}return 0};function aB(r,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-r)*t*6+r:t<1/2?e:t<2/3?(e-r)*6*(2/3-t)+r:r}var MP=function(r,e){var t=e.filter(Pp),n=t[0],i=t[1],a=t[2],o=t[3],s=(n.type===17?qo(n.number):Rw.parse(r,n))/(Math.PI*2),A=mi(i)?i.number/100:0,l=mi(a)?a.number/100:0,u=typeof o<"u"&&mi(o)?yn(o,1):1;if(A===0)return yu(l*255,l*255,l*255,1);var c=l<=.5?l*(A+1):l+A-l*A,h=l*2-c,f=aB(h,c,s+1/3),p=aB(h,c,s),v=aB(h,c,s-1/3);return yu(f*255,p*255,v*255,u)},Umt={hsl:MP,hsla:MP,rgb:RP,rgba:RP},Kv=function(r,e){return xu.parse(r,PH.create(e).parseComponentValue())},il={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Dmt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(an(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Qmt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Mw=function(r,e){var t=xu.parse(r,e[0]),n=e[1];return n&&mi(n)?{color:t,stop:n}:{color:t,stop:null}},NP=function(r,e){var t=r[0],n=r[r.length-1];t.stop===null&&(t.stop=aa),n.stop===null&&(n.stop=gu);for(var i=[],a=0,o=0;oa?i.push(A):i.push(a),a=A}else i.push(null)}for(var l=null,o=0;oo.optimumDistance)?{optimumCorner:s,optimumDistance:u}:o},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},kmt=function(r,e,t,n,i){var a=0,o=0;switch(r.size){case 0:r.shape===0?a=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-i)):r.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-i)));break;case 2:if(r.shape===0)a=o=Math.min(ys(e,t),ys(e,t-i),ys(e-n,t),ys(e-n,t-i));else if(r.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-i))/Math.min(Math.abs(e),Math.abs(e-n)),A=PP(n,i,e,t,!0),l=A[0],u=A[1];a=ys(l-e,(u-t)/s),o=s*a}break;case 1:r.shape===0?a=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-i)):r.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-i)));break;case 3:if(r.shape===0)a=o=Math.max(ys(e,t),ys(e,t-i),ys(e-n,t),ys(e-n,t-i));else if(r.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-i))/Math.max(Math.abs(e),Math.abs(e-n)),c=PP(n,i,e,t,!1),l=c[0],u=c[1];a=ys(l-e,(u-t)/s),o=s*a}break}return Array.isArray(r.size)&&(a=yn(r.size[0],n),o=r.size.length===2?yn(r.size[1],i):a),[a,o]},$mt=function(r,e){var t=qo(180),n=[];return dA(e).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&o.value==="to"){t=VH(i);return}else if($H(o)){t=Rw.parse(r,o);return}}var s=Mw(r,i);n.push(s)}),{angle:t,stops:n,type:1}},l0=function(r,e){var t=qo(180),n=[];return dA(e).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){t=VH(i);return}else if($H(o)){t=(Rw.parse(r,o)+qo(270))%qo(360);return}}var s=Mw(r,i);n.push(s)}),{angle:t,stops:n,type:1}},Vmt=function(r,e){var t=qo(180),n=[],i=1,a=0,o=3,s=[];return dA(e).forEach(function(A,l){var u=A[0];if(l===0){if(an(u)&&u.value==="linear"){i=1;return}else if(an(u)&&u.value==="radial"){i=2;return}}if(u.type===18){if(u.name==="from"){var c=xu.parse(r,u.values[0]);n.push({stop:aa,color:c})}else if(u.name==="to"){var c=xu.parse(r,u.values[0]);n.push({stop:gu,color:c})}else if(u.name==="color-stop"){var h=u.values.filter(Pp);if(h.length===2){var c=xu.parse(r,h[1]),f=h[0];ed(f)&&n.push({stop:{type:16,number:f.number*100,flags:f.flags},color:c})}}}}),i===1?{angle:(t+qo(180))%qo(360),stops:n,type:i}:{size:o,shape:a,stops:n,position:s,type:i}},jH="closest-side",KH="farthest-side",zH="closest-corner",YH="farthest-corner",XH="circle",WH="ellipse",qH="cover",ZH="contain",jmt=function(r,e){var t=0,n=3,i=[],a=[];return dA(e).forEach(function(o,s){var A=!0;if(s===0){var l=!1;A=o.reduce(function(c,h){if(l)if(an(h))switch(h.value){case"center":return a.push(cL),c;case"top":case"left":return a.push(aa),c;case"right":case"bottom":return a.push(gu),c}else(mi(h)||Ku(h))&&a.push(h);else if(an(h))switch(h.value){case XH:return t=0,!1;case WH:return t=1,!1;case"at":return l=!0,!1;case jH:return n=0,!1;case qH:case KH:return n=1,!1;case ZH:case zH:return n=2,!1;case YH:return n=3,!1}else if(Ku(h)||mi(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return c},A)}if(A){var u=Mw(r,o);i.push(u)}}),{size:n,shape:t,stops:i,position:a,type:2}},u0=function(r,e){var t=0,n=3,i=[],a=[];return dA(e).forEach(function(o,s){var A=!0;if(s===0?A=o.reduce(function(u,c){if(an(c))switch(c.value){case"center":return a.push(cL),!1;case"top":case"left":return a.push(aa),!1;case"right":case"bottom":return a.push(gu),!1}else if(mi(c)||Ku(c))return a.push(c),!1;return u},A):s===1&&(A=o.reduce(function(u,c){if(an(c))switch(c.value){case XH:return t=0,!1;case WH:return t=1,!1;case ZH:case jH:return n=0,!1;case KH:return n=1,!1;case zH:return n=2,!1;case qH:case YH:return n=3,!1}else if(Ku(c)||mi(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return u},A)),A){var l=Mw(r,o);i.push(l)}}),{size:n,shape:t,stops:i,position:a,type:2}},Kmt=function(r){return r.type===1},zmt=function(r){return r.type===2},hL={name:"image",parse:function(r,e){if(e.type===22){var t={url:e.value,type:0};return r.cache.addImage(e.value),t}if(e.type===18){var n=JH[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(r,e.values)}throw new Error("Unsupported image type "+e.type)}};function Ymt(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!JH[r.name])}var JH={"linear-gradient":$mt,"-moz-linear-gradient":l0,"-ms-linear-gradient":l0,"-o-linear-gradient":l0,"-webkit-linear-gradient":l0,"radial-gradient":jmt,"-moz-radial-gradient":u0,"-ms-radial-gradient":u0,"-o-radial-gradient":u0,"-webkit-radial-gradient":u0,"-webkit-gradient":Vmt},Xmt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(n){return Pp(n)&&Ymt(n)}).map(function(n){return hL.parse(r,n)})}},Wmt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(an(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qmt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return dA(e).map(function(t){return t.filter(mi)}).map(DH)}},Zmt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return dA(e).map(function(t){return t.filter(an).map(function(n){return n.value}).join(" ")}).map(Jmt)}},Jmt=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},gp;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(gp||(gp={}));var t0t={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return dA(e).map(function(t){return t.filter(e0t)})}},e0t=function(r){return an(r)||mi(r)},Nw=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},r0t=Nw("top"),n0t=Nw("right"),i0t=Nw("bottom"),a0t=Nw("left"),Pw=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return DH(t.filter(mi))}}},o0t=Pw("top-left"),s0t=Pw("top-right"),A0t=Pw("bottom-right"),l0t=Pw("bottom-left"),Uw=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},u0t=Uw("top"),c0t=Uw("right"),h0t=Uw("bottom"),f0t=Uw("left"),Dw=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return py(t)?t.number:0}}},p0t=Dw("top"),d0t=Dw("right"),v0t=Dw("bottom"),g0t=Dw("left"),y0t={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},m0t={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},_0t={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(an).reduce(function(t,n){return t|w0t(n.value)},0)}},w0t=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},E0t={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},C0t={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},A1;(function(r){r.NORMAL="normal",r.STRICT="strict"})(A1||(A1={}));var B0t={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return A1.STRICT;case"normal":default:return A1.NORMAL}}},T0t={name:"line-height",initialValue:"normal",prefix:!1,type:4},UP=function(r,e){return an(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:mi(r)?yn(r,e):e},S0t={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:hL.parse(r,e)}},x0t={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},nb={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Qw=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},b0t=Qw("top"),I0t=Qw("right"),F0t=Qw("bottom"),L0t=Qw("left"),O0t={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(an).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},R0t={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Hw=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},M0t=Hw("top"),N0t=Hw("right"),P0t=Hw("bottom"),U0t=Hw("left"),D0t={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Q0t={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},H0t={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&rb(e[0],"none")?[]:dA(e).map(function(t){for(var n={color:il.TRANSPARENT,offsetX:aa,offsetY:aa,blur:aa},i=0,a=0;a"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},$0t=function(r){var e=r.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},V0t=function(r){var e=r.filter(function(A){return A.type===17}).map(function(A){return A.number}),t=e[0],n=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],e.length===16?[t,n,i,a,o,s]:null},j0t={matrix:$0t,matrix3d:V0t},DP={type:16,number:50,flags:fy},K0t=[DP,DP],z0t={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,e){var t=e.filter(mi);return t.length!==2?K0t:[t[0],t[1]]}},Y0t={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},zv;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(zv||(zv={}));var X0t={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-all":return zv.BREAK_ALL;case"keep-all":return zv.KEEP_ALL;case"normal":default:return zv.NORMAL}}},W0t={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,e){if(e.type===20)return{auto:!0,order:0};if(ed(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},t7={name:"time",parse:function(r,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},q0t={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,e){return ed(e)?e.number:1}},Z0t={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},J0t={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,e){return e.filter(an).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},t_t={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,e){var t=[],n=[];return e.forEach(function(i){switch(i.type){case 20:case 0:t.push(i.value);break;case 17:t.push(i.number.toString());break;case 4:n.push(t.join(" ")),t.length=0;break}}),t.length&&n.push(t.join(" ")),n.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},e_t={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},r_t={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,e){if(ed(e))return e.number;if(an(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},n_t={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.filter(an).map(function(t){return t.value})}},i_t={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Mi=function(r,e){return(r&e)!==0},a_t={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},o_t={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var n=[],i=e.filter(UH),a=0;a1?1:0],this.overflowWrap=ce(e,R0t,t.overflowWrap),this.paddingTop=ce(e,M0t,t.paddingTop),this.paddingRight=ce(e,N0t,t.paddingRight),this.paddingBottom=ce(e,P0t,t.paddingBottom),this.paddingLeft=ce(e,U0t,t.paddingLeft),this.paintOrder=ce(e,c_t,t.paintOrder),this.position=ce(e,Q0t,t.position),this.textAlign=ce(e,D0t,t.textAlign),this.textDecorationColor=ce(e,Z0t,(n=t.textDecorationColor)!==null&&n!==void 0?n:t.color),this.textDecorationLine=ce(e,J0t,(i=t.textDecorationLine)!==null&&i!==void 0?i:t.textDecoration),this.textShadow=ce(e,H0t,t.textShadow),this.textTransform=ce(e,G0t,t.textTransform),this.transform=ce(e,k0t,t.transform),this.transformOrigin=ce(e,z0t,t.transformOrigin),this.visibility=ce(e,Y0t,t.visibility),this.webkitTextStrokeColor=ce(e,h_t,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=ce(e,f_t,t.webkitTextStrokeWidth),this.wordBreak=ce(e,X0t,t.wordBreak),this.zIndex=ce(e,W0t,t.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return bu(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Mi(this.display,4)||Mi(this.display,33554432)||Mi(this.display,268435456)||Mi(this.display,536870912)||Mi(this.display,67108864)||Mi(this.display,134217728)},r}(),d_t=function(){function r(e,t){this.content=ce(e,a_t,t.content),this.quotes=ce(e,l_t,t.quotes)}return r}(),HP=function(){function r(e,t){this.counterIncrement=ce(e,o_t,t.counterIncrement),this.counterReset=ce(e,s_t,t.counterReset)}return r}(),ce=function(r,e,t){var n=new NH,i=t!==null&&typeof t<"u"?t.toString():e.initialValue;n.write(i);var a=new PH(n.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(r,an(o)?o.value:e.initialValue);case 0:return e.parse(r,a.parseComponentValue());case 1:return e.parse(r,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return Rw.parse(r,a.parseComponentValue());case"color":return xu.parse(r,a.parseComponentValue());case"image":return hL.parse(r,a.parseComponentValue());case"length":var s=a.parseComponentValue();return Ku(s)?s:aa;case"length-percentage":var A=a.parseComponentValue();return mi(A)?A:aa;case"time":return t7.parse(r,a.parseComponentValue())}break}},v_t="data-html2canvas-debug",g_t=function(r){var e=r.getAttribute(v_t);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ib=function(r,e){var t=g_t(r);return t===1||e===t},vA=function(){function r(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ib(t,3))debugger;this.styles=new p_t(e,window.getComputedStyle(t,null)),sb(t)&&(this.styles.animationDuration.some(function(n){return n>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Lw(this.context,t),ib(t,4)&&(this.flags|=16)}return r}(),y_t="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",GP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bv=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var c0=0;c0>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|A&63;return l},__t=function(r){for(var e=r.length,t=[],n=0;n>eh,C_t=1<>eh,T_t=e7+B_t,S_t=T_t,x_t=32,b_t=S_t+x_t,I_t=65536>>fL,F_t=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>eh],t=(t<>eh)],t=(t<>fL),t=this.index[t],t+=e>>eh&L_t,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var h0=0;h0<$P.length;h0++)N_t[$P.charCodeAt(h0)]=h0;var P_t=1,AB=2,lB=3,VP=4,jP=5,U_t=7,KP=8,uB=9,cB=10,zP=11,YP=12,XP=13,WP=14,hB=15,D_t=function(r){for(var e=[],t=0,n=r.length;t=55296&&i<=56319&&t>10)+55296,o%1024+56320)),(i+1===t||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},H_t=R_t(y_t),zo="×",fB="÷",G_t=function(r){return H_t.get(r)},k_t=function(r,e,t){var n=t-2,i=e[n],a=e[t-1],o=e[t];if(a===AB&&o===lB)return zo;if(a===AB||a===lB||a===VP||o===AB||o===lB||o===VP)return fB;if(a===KP&&[KP,uB,zP,YP].indexOf(o)!==-1||(a===zP||a===uB)&&(o===uB||o===cB)||(a===YP||a===cB)&&o===cB||o===XP||o===jP||o===U_t||a===P_t)return zo;if(a===XP&&o===WP){for(;i===jP;)i=e[--n];if(i===WP)return zo}if(a===hB&&o===hB){for(var s=0;i===hB;)s++,i=e[--n];if(s%2===0)return zo}return fB},$_t=function(r){var e=D_t(r),t=e.length,n=0,i=0,a=e.map(G_t);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=zo;no.x||u.y>o.y;return o=u,l===0?!0:c});return r.body.removeChild(e),s},z_t=function(){return typeof new Image().crossOrigin<"u"},Y_t=function(){return typeof new XMLHttpRequest().responseType=="string"},X_t=function(r){var e=new Image,t=r.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},qP=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},W_t=function(r){var e=r.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var i=new Image,a=e.toDataURL();i.src=a;var o=ab(t,t,0,0,i);return n.fillStyle="red",n.fillRect(0,0,t,t),ZP(o).then(function(s){n.drawImage(s,0,0);var A=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var l=r.createElement("div");return l.style.backgroundImage="url("+a+")",l.style.height=t+"px",qP(A)?ZP(ab(t,t,0,0,l)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),qP(n.getImageData(0,0,t,t).data)}).catch(function(){return!1})},ab=function(r,e,t,n,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",r.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},ZP=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},na={get SUPPORT_RANGE_BOUNDS(){var r=j_t(document);return Object.defineProperty(na,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=na.SUPPORT_RANGE_BOUNDS&&K_t(document);return Object.defineProperty(na,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=X_t(document);return Object.defineProperty(na,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?W_t(document):Promise.resolve(!1);return Object.defineProperty(na,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=z_t();return Object.defineProperty(na,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Y_t();return Object.defineProperty(na,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(na,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(na,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Yv=function(){function r(e,t){this.text=e,this.bounds=t}return r}(),q_t=function(r,e,t,n){var i=t1t(e,t),a=[],o=0;return i.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(na.SUPPORT_RANGE_BOUNDS){var A=JP(n,o,s.length).getClientRects();if(A.length>1){var l=pL(s),u=0;l.forEach(function(h){a.push(new Yv(h,hl.fromDOMRectList(r,JP(n,u+o,h.length).getClientRects()))),u+=h.length})}else a.push(new Yv(s,hl.fromDOMRectList(r,A)))}else{var c=n.splitText(s.length);a.push(new Yv(s,Z_t(r,n))),n=c}else na.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));o+=s.length}),a},Z_t=function(r,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(n,e);var a=Lw(r,n);return n.firstChild&&i.replaceChild(n.firstChild,n),a}}return hl.EMPTY},JP=function(r,e,t){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(r,e),i.setEnd(r,e+t),i},pL=function(r){if(na.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(r)).map(function(t){return t.segment})}return V_t(r)},J_t=function(r,e){if(na.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(r)).map(function(n){return n.segment})}return r1t(r,e)},t1t=function(r,e){return e.letterSpacing!==0?pL(r):J_t(r,e)},e1t=[32,160,4961,65792,65793,4153,4241],r1t=function(r,e){for(var t=Iyt(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],i,a=function(){if(i.value){var o=i.value.slice(),s=Ow(o),A="";s.forEach(function(l){e1t.indexOf(l)===-1?A+=ti(l):(A.length&&n.push(A),n.push(ti(l)),A="")}),A.length&&n.push(A)}};!(i=t.next()).done;)a();return n},n1t=function(){function r(e,t,n){this.text=i1t(t.data,n.textTransform),this.textBounds=q_t(e,this.text,n,t)}return r}(),i1t=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(a1t,o1t);case 2:return r.toUpperCase();default:return r}},a1t=/(^|\s|:|-|\(|\))([a-z])/g,o1t=function(r,e,t){return r.length>0?e+t.toUpperCase():r},r7=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return e}(vA),n7=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return e}(vA),i7=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this,a=new XMLSerializer,o=Lw(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return e}(vA),a7=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.value=n.value,i}return e}(vA),ob=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.start=n.start,i.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,i}return e}(vA),s1t=[{type:15,flags:0,unit:"px",number:3}],A1t=[{type:16,flags:0,number:50}],l1t=function(r){return r.width>r.height?new hl(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)t.textNodes.push(new n1t(r,i,t.styles));else if(qf(i))if(d7(i)&&i.assignedNodes)i.assignedNodes().forEach(function(s){return q0(r,s,t,n)});else{var o=l7(r,i);o.styles.isVisible()&&(f1t(i,o,n)?o.flags|=4:p1t(o.styles)&&(o.flags|=2),h1t.indexOf(i.tagName)!==-1&&(o.flags|=8),t.elements.push(o),i.slot,i.shadowRoot?q0(r,i.shadowRoot,o,n):!c1(i)&&!h7(i)&&!h1(i)&&q0(r,i,o,n))}},l7=function(r,e){return Ab(e)?new r7(r,e):f7(e)?new n7(r,e):h7(e)?new i7(r,e):d1t(e)?new a7(r,e):v1t(e)?new ob(r,e):g1t(e)?new dL(r,e):h1(e)?new o7(r,e):c1(e)?new s7(r,e):p7(e)?new A7(r,e):new vA(r,e)},u7=function(r,e){var t=l7(r,e);return t.flags|=4,q0(r,e,t,t),t},f1t=function(r,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||vL(r)&&t.styles.isTransparent()},p1t=function(r){return r.isPositioned()||r.isFloating()},c7=function(r){return r.nodeType===Node.TEXT_NODE},qf=function(r){return r.nodeType===Node.ELEMENT_NODE},sb=function(r){return qf(r)&&typeof r.style<"u"&&!Z0(r)},Z0=function(r){return typeof r.className=="object"},d1t=function(r){return r.tagName==="LI"},v1t=function(r){return r.tagName==="OL"},g1t=function(r){return r.tagName==="INPUT"},y1t=function(r){return r.tagName==="HTML"},h7=function(r){return r.tagName==="svg"},vL=function(r){return r.tagName==="BODY"},f7=function(r){return r.tagName==="CANVAS"},e5=function(r){return r.tagName==="VIDEO"},Ab=function(r){return r.tagName==="IMG"},p7=function(r){return r.tagName==="IFRAME"},r5=function(r){return r.tagName==="STYLE"},m1t=function(r){return r.tagName==="SCRIPT"},c1=function(r){return r.tagName==="TEXTAREA"},h1=function(r){return r.tagName==="SELECT"},d7=function(r){return r.tagName==="SLOT"},n5=function(r){return r.tagName.indexOf("-")>0},_1t=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},r.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},r.prototype.pop=function(e){var t=this;e.forEach(function(n){return t.counters[n].pop()})},r.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,a=!0;n!==null&&n.forEach(function(s){var A=t.counters[s.counter];A&&s.increment!==0&&(a=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=s.increment)});var o=[];return a&&i.forEach(function(s){var A=t.counters[s.counter];o.push(s.counter),A||(A=t.counters[s.counter]=[]),A.push(s.reset)}),o},r}(),i5={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},a5={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},w1t={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},E1t={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ef=function(r,e,t,n,i,a){return rt?Fg(r,i,a.length>0):n.integers.reduce(function(o,s,A){for(;r>=s;)r-=s,o+=n.values[A];return o},"")+a},v7=function(r,e,t,n){var i="";do t||r--,i=n(r)+i,r/=e;while(r*e>=e);return i},Zn=function(r,e,t,n,i){var a=t-e+1;return(r<0?"-":"")+(v7(Math.abs(r),a,n,function(o){return ti(Math.floor(o%a)+e)})+i)},yc=function(r,e,t){t===void 0&&(t=". ");var n=e.length;return v7(Math.abs(r),n,!1,function(i){return e[Math.floor(i%n)]})+t},Qf=1<<0,nu=1<<1,iu=1<<2,Tv=1<<3,HA=function(r,e,t,n,i,a){if(r<-9999||r>9999)return Fg(r,4,i.length>0);var o=Math.abs(r),s=i;if(o===0)return e[0]+s;for(var A=0;o>0&&A<=4;A++){var l=o%10;l===0&&Mi(a,Qf)&&s!==""?s=e[l]+s:l>1||l===1&&A===0||l===1&&A===1&&Mi(a,nu)||l===1&&A===1&&Mi(a,iu)&&r>100||l===1&&A>1&&Mi(a,Tv)?s=e[l]+(A>0?t[A-1]:"")+s:l===1&&A>0&&(s=t[A-1]+s),o=Math.floor(o/10)}return(r<0?n:"")+s},o5="十百千萬",s5="拾佰仟萬",A5="マイナス",pB="마이너스",Fg=function(r,e,t){var n=t?". ":"",i=t?"、":"",a=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Zn(r,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return yc(r,"〇一二三四五六七八九",i);case 6:return Ef(r,1,3999,i5,3,n).toLowerCase();case 7:return Ef(r,1,3999,i5,3,n);case 8:return Zn(r,945,969,!1,n);case 9:return Zn(r,97,122,!1,n);case 10:return Zn(r,65,90,!1,n);case 11:return Zn(r,1632,1641,!0,n);case 12:case 49:return Ef(r,1,9999,a5,3,n);case 35:return Ef(r,1,9999,a5,3,n).toLowerCase();case 13:return Zn(r,2534,2543,!0,n);case 14:case 30:return Zn(r,6112,6121,!0,n);case 15:return yc(r,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return yc(r,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return HA(r,"零一二三四五六七八九",o5,"負",i,nu|iu|Tv);case 47:return HA(r,"零壹貳參肆伍陸柒捌玖",s5,"負",i,Qf|nu|iu|Tv);case 42:return HA(r,"零一二三四五六七八九",o5,"负",i,nu|iu|Tv);case 41:return HA(r,"零壹贰叁肆伍陆柒捌玖",s5,"负",i,Qf|nu|iu|Tv);case 26:return HA(r,"〇一二三四五六七八九","十百千万",A5,i,0);case 25:return HA(r,"零壱弐参四伍六七八九","拾百千万",A5,i,Qf|nu|iu);case 31:return HA(r,"영일이삼사오육칠팔구","십백천만",pB,a,Qf|nu|iu);case 33:return HA(r,"零一二三四五六七八九","十百千萬",pB,a,0);case 32:return HA(r,"零壹貳參四五六七八九","拾百千",pB,a,Qf|nu|iu);case 18:return Zn(r,2406,2415,!0,n);case 20:return Ef(r,1,19999,E1t,3,n);case 21:return Zn(r,2790,2799,!0,n);case 22:return Zn(r,2662,2671,!0,n);case 22:return Ef(r,1,10999,w1t,3,n);case 23:return yc(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return yc(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Zn(r,3302,3311,!0,n);case 28:return yc(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return yc(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Zn(r,3792,3801,!0,n);case 37:return Zn(r,6160,6169,!0,n);case 38:return Zn(r,4160,4169,!0,n);case 39:return Zn(r,2918,2927,!0,n);case 40:return Zn(r,1776,1785,!0,n);case 43:return Zn(r,3046,3055,!0,n);case 44:return Zn(r,3174,3183,!0,n);case 45:return Zn(r,3664,3673,!0,n);case 46:return Zn(r,3872,3881,!0,n);case 3:default:return Zn(r,48,57,!0,n)}},g7="data-html2canvas-ignore",l5=function(){function r(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new _1t,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(e,t){var n=this,i=C1t(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=i.contentWindow,A=s.document,l=S1t(i).then(function(){return Ma(n,void 0,void 0,function(){var u,c;return ya(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(F1t),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,T1t(A)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(A,c)}).then(function(){return i})]:[2,i]}})})});return A.open(),A.write(b1t(document.doctype)+""),I1t(this.referenceElement.ownerDocument,a,o),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),l},r.prototype.createElementClone=function(e){if(ib(e,2))debugger;if(f7(e))return this.createCanvasClone(e);if(e5(e))return this.createVideoClone(e);if(r5(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ab(t)&&(Ab(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),n5(t)?this.createCustomElementClone(t):t},r.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return dB(e.style,t),t},r.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(a,o){return o&&typeof o.cssText=="string"?a+o.cssText:a},""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},r.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var a=e.getContext("2d"),o=i.getContext("2d");if(o)if(!this.options.allowTaint&&a)o.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var s=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(s){var A=s.getContextAttributes();(A==null?void 0:A.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},r.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},r.prototype.appendChildNode=function(e,t,n){(!qf(t)||!m1t(t)&&!t.hasAttribute(g7)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!qf(t)||!r5(t))&&e.appendChild(this.cloneNode(t,n))},r.prototype.cloneChildNodes=function(e,t,n){for(var i=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(qf(a)&&d7(a)&&typeof a.assignedNodes=="function"){var o=a.assignedNodes();o.length&&o.forEach(function(s){return i.appendChildNode(t,s,n)})}else this.appendChildNode(t,a,n)},r.prototype.cloneNode=function(e,t){if(c7(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&qf(e)&&(sb(e)||Z0(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var a=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&sb(i)&&(this.clonedReferenceElement=i),vL(i)&&R1t(i);var A=this.counters.parse(new HP(this.context,a)),l=this.resolvePseudoContent(e,i,o,Xv.BEFORE);n5(e)&&(t=!0),e5(e)||this.cloneChildNodes(e,i,t),l&&i.insertBefore(l,i.firstChild);var u=this.resolvePseudoContent(e,i,s,Xv.AFTER);return u&&i.appendChild(u),this.counters.pop(A),(a&&(this.options.copyStyles||Z0(e))&&!p7(e)||t)&&dB(a,i),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(c1(e)||h1(e))&&(c1(i)||h1(i))&&(i.value=e.value),i}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,t,n,i){var a=this;if(n){var o=n.content,s=t.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new HP(this.context,n));var A=new d_t(this.context,n),l=s.createElement("html2canvaspseudoelement");dB(n,l),A.content.forEach(function(c){if(c.type===0)l.appendChild(s.createTextNode(c.value));else if(c.type===22){var h=s.createElement("img");h.src=c.value,h.style.opacity="1",l.appendChild(h)}else if(c.type===18){if(c.name==="attr"){var f=c.values.filter(an);f.length&&l.appendChild(s.createTextNode(e.getAttribute(f[0].value)||""))}else if(c.name==="counter"){var p=c.values.filter(Pp),v=p[0],m=p[1];if(v&&an(v)){var g=a.counters.getCounterValue(v.value),_=m&&an(m)?nb.parse(a.context,m.value):3;l.appendChild(s.createTextNode(Fg(g,_,!1)))}}else if(c.name==="counters"){var E=c.values.filter(Pp),v=E[0],B=E[1],m=E[2];if(v&&an(v)){var L=a.counters.getCounterValues(v.value),O=m&&an(m)?nb.parse(a.context,m.value):3,b=B&&B.type===0?B.value:"",T=L.map(function(x){return Fg(x,O,!1)}).join(b);l.appendChild(s.createTextNode(T))}}}else if(c.type===20)switch(c.value){case"open-quote":l.appendChild(s.createTextNode(QP(A.quotes,a.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(QP(A.quotes,--a.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(c.value))}}),l.className=lb+" "+ub;var u=i===Xv.BEFORE?" "+lb:" "+ub;return Z0(t)?t.className.baseValue+=u:t.className+=u,l}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),Xv;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Xv||(Xv={}));var C1t=function(r,e){var t=r.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(g7,"true"),r.body.appendChild(t),t},B1t=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},T1t=function(r){return Promise.all([].slice.call(r.images,0).map(B1t))},S1t=function(r){return new Promise(function(e,t){var n=r.contentWindow;if(!n)return t("No window assigned for iframe");var i=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var a=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(a),e(r))},50)}})},x1t=["all","d","content"],dB=function(r,e){for(var t=r.length-1;t>=0;t--){var n=r.item(t);x1t.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},b1t=function(r){var e="";return r&&(e+=""),e},I1t=function(r,e,t){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||t!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,t)},F1t=function(r){var e=r[0],t=r[1],n=r[2];e.scrollLeft=t,e.scrollTop=n},L1t=":before",O1t=":after",lb="___html2canvas___pseudoelement_before",ub="___html2canvas___pseudoelement_after",u5=`{ +***************************************************************************** */var $x=function(r,e){return $x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},$x(r,e)};function Us(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$x(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Vx=function(){return Vx=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=55296&&i<=56319&&t>10)+55296,o%1024+56320)),(i+1===t||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},dP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wgt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Xm=0;Xm"u"?[]:new Uint8Array(256);for(var Wm=0;Wm>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|A&63;return l},Zgt=function(r){for(var e=r.length,t=[],n=0;n>th,eyt=1<>th,nyt=CH+ryt,iyt=nyt,ayt=32,oyt=iyt+ayt,syt=65536>>uL,Ayt=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>th],t=(t<>th)],t=(t<>uL),t=this.index[t],t+=e>>th&lyt,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var qm=0;qmmP?(i.push(!0),s-=mP):i.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(o),t.push(zx);if(s===vyt||s===jx){if(o===0)return n.push(o),t.push(Rc);var A=t[o-1];return Byt.indexOf(A)===-1?(n.push(n[o-1]),t.push(A)):(n.push(o),t.push(Rc))}if(n.push(o),s===wyt)return t.push(e==="strict"?Yx:bg);if(s===xH||s===_yt)return t.push(Rc);if(s===Eyt)return a>=131072&&a<=196605||a>=196608&&a<=262141?t.push(bg):t.push(Rc);t.push(s)}),[n,t,i]},rB=function(r,e,t,n){var i=n[t];if(Array.isArray(r)?r.indexOf(i)!==-1:r===i)for(var a=t;a<=n.length;){a++;var o=n[a];if(o===e)return!0;if(o!==vu)break}if(i===vu)for(var a=t;a>0;){a--;var s=n[a];if(Array.isArray(r)?r.indexOf(s)!==-1:r===s)for(var A=t;A<=n.length;){A++;var o=n[A];if(o===e)return!0;if(o!==vu)break}if(s!==vu)break}return!1},SP=function(r,e){for(var t=r;t>=0;){var n=e[t];if(n===vu)t--;else return n}return 0},xyt=function(r,e,t,n,i){if(t[n]===0)return yr;var a=n-1;if(Array.isArray(i)&&i[a]===!0)return yr;var o=a-1,s=a+1,A=e[a],l=o>=0?e[o]:0,u=e[s];if(A===BH&&u===TH)return yr;if(tb.indexOf(A)!==-1)return bH;if(tb.indexOf(u)!==-1||IH.indexOf(u)!==-1)return yr;if(SP(a,e)===SH)return e0;if(Jx.get(r[a])===jx||(A===Jm||A===t0)&&Jx.get(r[s])===jx||A===_P||u===_P||A===wP||[vu,Kx,_v].indexOf(A)===-1&&u===wP||[Zm,Wd,myt,mf,_f].indexOf(u)!==-1||SP(a,e)===qd||rB(tB,qd,a,e)||rB([Zm,Wd],Yx,a,e)||rB(EP,EP,a,e))return yr;if(A===vu)return e0;if(A===tB||u===tB)return yr;if(u===zx||A===zx)return e0;if([Kx,_v,Yx].indexOf(u)!==-1||A===yyt||l===qx&&Tyt.indexOf(A)!==-1||A===_f&&u===qx||u===CP||QA.indexOf(u)!==-1&&A===To||QA.indexOf(A)!==-1&&u===To||A===Ev&&[bg,Jm,t0].indexOf(u)!==-1||[bg,Jm,t0].indexOf(A)!==-1&&u===wv||QA.indexOf(A)!==-1&&BP.indexOf(u)!==-1||BP.indexOf(A)!==-1&&QA.indexOf(u)!==-1||[Ev,wv].indexOf(A)!==-1&&(u===To||[qd,_v].indexOf(u)!==-1&&e[s+1]===To)||[qd,_v].indexOf(A)!==-1&&u===To||A===To&&[To,_f,mf].indexOf(u)!==-1)return yr;if([To,_f,mf,Zm,Wd].indexOf(u)!==-1)for(var c=a;c>=0;){var h=e[c];if(h===To)return yr;if([_f,mf].indexOf(h)!==-1)c--;else break}if([Ev,wv].indexOf(u)!==-1)for(var c=[Zm,Wd].indexOf(A)!==-1?o:a;c>=0;){var h=e[c];if(h===To)return yr;if([_f,mf].indexOf(h)!==-1)c--;else break}if(Zx===A&&[Zx,X0,Xx,Wx].indexOf(u)!==-1||[X0,Xx].indexOf(A)!==-1&&[X0,W0].indexOf(u)!==-1||[W0,Wx].indexOf(A)!==-1&&u===W0||TP.indexOf(A)!==-1&&[CP,wv].indexOf(u)!==-1||TP.indexOf(u)!==-1&&A===Ev||QA.indexOf(A)!==-1&&QA.indexOf(u)!==-1||A===mf&&QA.indexOf(u)!==-1||QA.concat(To).indexOf(A)!==-1&&u===qd&&Cyt.indexOf(r[s])===-1||QA.concat(To).indexOf(u)!==-1&&A===Wd)return yr;if(A===eB&&u===eB){for(var f=t[a],p=1;f>0&&(f--,e[f]===eB);)p++;if(p%2!==0)return yr}return A===Jm&&u===t0?yr:e0},byt=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Syt(r,e.lineBreak),n=t[0],i=t[1],a=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(i=i.map(function(s){return[To,Rc,xH].indexOf(s)!==-1?bg:s}));var o=e.wordBreak==="keep-all"?a.map(function(s,A){return s&&r[A]>=19968&&r[A]<=40959}):void 0;return[n,i,o]},Iyt=function(){function r(e,t,n,i){this.codePoints=e,this.required=t===bH,this.start=n,this.end=i}return r.prototype.slice=function(){return ti.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),Fyt=function(r,e){var t=Ow(r),n=byt(t,e),i=n[0],a=n[1],o=n[2],s=t.length,A=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var u=yr;l=FH&&r<=57},umt=function(r){return r>=55296&&r<=57343},wf=function(r){return _a(r)||r>=RH&&r<=NH||r>=LH&&r<=amt},cmt=function(r){return r>=LH&&r<=smt},hmt=function(r){return r>=RH&&r<=lmt},fmt=function(r){return cmt(r)||hmt(r)},pmt=function(r){return r>=Xyt},o0=function(r){return r===o1||r===Ryt||r===Myt},s1=function(r){return fmt(r)||pmt(r)||r===Dyt},LP=function(r){return s1(r)||_a(r)||r===io},dmt=function(r){return r>=Jyt&&r<=tmt||r===emt||r>=rmt&&r<=nmt||r===imt},su=function(r,e){return r!==jv?!1:e!==o1},s0=function(r,e,t){return r===io?s1(e)||su(e,t):s1(r)?!0:!!(r===jv&&su(r,e))},iB=function(r,e,t){return r===Gc||r===io?_a(e)?!0:e===Ig&&_a(t):_a(r===Ig?e:r)},vmt=function(r){var e=0,t=1;(r[e]===Gc||r[e]===io)&&(r[e]===io&&(t=-1),e++);for(var n=[];_a(r[e]);)n.push(r[e++]);var i=n.length?parseInt(ti.apply(void 0,n),10):0;r[e]===Ig&&e++;for(var a=[];_a(r[e]);)a.push(r[e++]);var o=a.length,s=o?parseInt(ti.apply(void 0,a),10):0;(r[e]===MH||r[e]===OH)&&e++;var A=1;(r[e]===Gc||r[e]===io)&&(r[e]===io&&(A=-1),e++);for(var l=[];_a(r[e]);)l.push(r[e++]);var u=l.length?parseInt(ti.apply(void 0,l),10):0;return t*(i+s*Math.pow(10,-o))*Math.pow(10,A*u)},gmt={type:2},ymt={type:3},mmt={type:4},_mt={type:13},wmt={type:8},Emt={type:21},Cmt={type:9},Bmt={type:10},Tmt={type:11},Smt={type:12},xmt={type:14},A0={type:23},bmt={type:1},Imt={type:25},Fmt={type:24},Lmt={type:26},Omt={type:27},Rmt={type:28},Mmt={type:29},Nmt={type:31},eb={type:32},PH=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(Ow(e))},r.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==eb;)e.push(t),t=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case r0:return this.consumeStringToken(r0);case Nyt:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(LP(t)||su(n,i)){var a=s0(t,n,i)?Oyt:Lyt,o=this.consumeName();return{type:5,value:o,flags:a}}break;case Pyt:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),_mt;break;case n0:return this.consumeStringToken(n0);case i0:return gmt;case Jd:return ymt;case nB:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),xmt;break;case Gc:if(iB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Wyt:return mmt;case io:var s=e,A=this.peekCodePoint(0),l=this.peekCodePoint(1);if(iB(s,A,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(s0(s,A,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(A===io&&l===Gyt)return this.consumeCodePoint(),this.consumeCodePoint(),Fmt;break;case Ig:if(iB(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case bP:if(this.peekCodePoint(0)===nB)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===nB&&(u=this.consumeCodePoint(),u===bP))return this.consumeToken();if(u===ks)return this.consumeToken()}break;case qyt:return Lmt;case Zyt:return Omt;case Hyt:if(this.peekCodePoint(0)===Qyt&&this.peekCodePoint(1)===io&&this.peekCodePoint(2)===io)return this.consumeCodePoint(),this.consumeCodePoint(),Imt;break;case kyt:var c=this.peekCodePoint(0),h=this.peekCodePoint(1),f=this.peekCodePoint(2);if(s0(c,h,f)){var o=this.consumeName();return{type:7,value:o}}break;case $yt:return Rmt;case jv:if(su(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Vyt:return Mmt;case jyt:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),wmt;break;case Kyt:return Tmt;case zyt:return Smt;case omt:case Amt:var p=this.peekCodePoint(0),v=this.peekCodePoint(1);return p===Gc&&(wf(v)||v===a0)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case IP:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),Cmt;if(this.peekCodePoint(0)===IP)return this.consumeCodePoint(),Emt;break;case Yyt:if(this.peekCodePoint(0)===Zd)return this.consumeCodePoint(),Bmt;break;case ks:return eb}return o0(e)?(this.consumeWhiteSpace(),Nmt):_a(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):s1(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:ti(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},r.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},r.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},r.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();wf(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===a0&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(ti.apply(void 0,e.map(function(A){return A===a0?FH:A})),16),a=parseInt(ti.apply(void 0,e.map(function(A){return A===a0?NH:A})),16);return{type:30,start:i,end:a}}var o=parseInt(ti.apply(void 0,e),16);if(this.peekCodePoint(0)===io&&wf(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];wf(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var a=parseInt(ti.apply(void 0,s),16);return{type:30,start:o,end:a}}else return{type:30,start:o,end:o}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===i0?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===i0?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ks)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===n0||t===r0){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ks||this.peekCodePoint(0)===Jd)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),A0)}for(;;){var i=this.consumeCodePoint();if(i===ks||i===Jd)return{type:22,value:ti.apply(void 0,e)};if(o0(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ks||this.peekCodePoint(0)===Jd?(this.consumeCodePoint(),{type:22,value:ti.apply(void 0,e)}):(this.consumeBadUrlRemnants(),A0);if(i===r0||i===n0||i===i0||dmt(i))return this.consumeBadUrlRemnants(),A0;if(i===jv)if(su(i,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),A0;else e.push(i)}},r.prototype.consumeWhiteSpace=function(){for(;o0(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Jd||e===ks)return;su(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var i=Math.min(t,e);n+=ti.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var t="",n=0;do{var i=this._value[n];if(i===ks||i===void 0||i===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(i===o1)return this._value.splice(0,n),bmt;if(i===jv){var a=this._value[n+1];a!==ks&&a!==void 0&&(a===o1?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):su(i,a)&&(t+=this.consumeStringSlice(n),t+=ti(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],t=fy,n=this.peekCodePoint(0);for((n===Gc||n===io)&&e.push(this.consumeCodePoint());_a(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===Ig&&_a(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=xP;_a(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===MH||n===OH)&&((i===Gc||i===io)&&_a(a)||_a(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=xP;_a(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[vmt(e),t]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(s0(i,a,o)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return i===Uyt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(wf(e)){for(var t=ti(e);wf(this.peekCodePoint(0))&&t.length<6;)t+=ti(this.consumeCodePoint());o0(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||umt(n)||n>1114111?FP:n}return e===ks?FP:e},r.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(LP(t))e+=ti(t);else if(su(t,this.peekCodePoint(0)))e+=ti(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},r}(),UH=function(){function r(e){this._tokens=e}return r.create=function(e){var t=new PH;return t.write(e),new r(t.read())},r.parseValue=function(e){return r.create(e).parseComponentValue()},r.parseValues=function(e){return r.create(e).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},r.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},r.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||Umt(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?eb:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),py=function(r){return r.type===15},ed=function(r){return r.type===17},an=function(r){return r.type===20},Pmt=function(r){return r.type===0},rb=function(r,e){return an(r)&&r.value===e},DH=function(r){return r.type!==31},Pp=function(r){return r.type!==31&&r.type!==4},dA=function(r){var e=[],t=[];return r.forEach(function(n){if(n.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}n.type!==31&&t.push(n)}),t.length&&e.push(t),e},Umt=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},Ku=function(r){return r.type===17||r.type===15},mi=function(r){return r.type===16||Ku(r)},QH=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},aa={type:17,number:0,flags:fy},cL={type:16,number:50,flags:fy},gu={type:16,number:100,flags:fy},Cv=function(r,e,t){var n=r[0],i=r[1];return[yn(n,e),yn(typeof i<"u"?i:n,t)]},yn=function(r,e){if(r.type===16)return r.number/100*e;if(py(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},HH="deg",GH="grad",kH="rad",$H="turn",Rw={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case HH:return Math.PI*e.number/180;case GH:return Math.PI/200*e.number;case kH:return e.number;case $H:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},VH=function(r){return r.type===15&&(r.unit===HH||r.unit===GH||r.unit===kH||r.unit===$H)},jH=function(r){var e=r.filter(an).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[aa,aa];case"to top":case"bottom":return qo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[aa,gu];case"to right":case"left":return qo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[gu,gu];case"to bottom":case"top":return qo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[gu,aa];case"to left":case"right":return qo(270)}return 0},qo=function(r){return Math.PI*r/180},xu={name:"color",parse:function(r,e){if(e.type===18){var t=Dmt[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(r,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return yu(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3),o=e.value.substring(3,4);return yu(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6);return yu(parseInt(n,16),parseInt(i,16),parseInt(a,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8);return yu(parseInt(n,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}}if(e.type===20){var s=il[e.value.toUpperCase()];if(typeof s<"u")return s}return il.TRANSPARENT}},bu=function(r){return(255&r)===0},ji=function(r){var e=255&r,t=255&r>>8,n=255&r>>16,i=255&r>>24;return e<255?"rgba("+i+","+n+","+t+","+e/255+")":"rgb("+i+","+n+","+t+")"},yu=function(r,e,t,n){return(r<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0},OP=function(r,e){if(r.type===17)return r.number;if(r.type===16){var t=e===3?1:255;return e===3?r.number/100*t:Math.round(r.number/100*t)}return 0},RP=function(r,e){var t=e.filter(Pp);if(t.length===3){var n=t.map(OP),i=n[0],a=n[1],o=n[2];return yu(i,a,o,1)}if(t.length===4){var s=t.map(OP),i=s[0],a=s[1],o=s[2],A=s[3];return yu(i,a,o,A)}return 0};function aB(r,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-r)*t*6+r:t<1/2?e:t<2/3?(e-r)*6*(2/3-t)+r:r}var MP=function(r,e){var t=e.filter(Pp),n=t[0],i=t[1],a=t[2],o=t[3],s=(n.type===17?qo(n.number):Rw.parse(r,n))/(Math.PI*2),A=mi(i)?i.number/100:0,l=mi(a)?a.number/100:0,u=typeof o<"u"&&mi(o)?yn(o,1):1;if(A===0)return yu(l*255,l*255,l*255,1);var c=l<=.5?l*(A+1):l+A-l*A,h=l*2-c,f=aB(h,c,s+1/3),p=aB(h,c,s),v=aB(h,c,s-1/3);return yu(f*255,p*255,v*255,u)},Dmt={hsl:MP,hsla:MP,rgb:RP,rgba:RP},Kv=function(r,e){return xu.parse(r,UH.create(e).parseComponentValue())},il={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Qmt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(an(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Hmt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Mw=function(r,e){var t=xu.parse(r,e[0]),n=e[1];return n&&mi(n)?{color:t,stop:n}:{color:t,stop:null}},NP=function(r,e){var t=r[0],n=r[r.length-1];t.stop===null&&(t.stop=aa),n.stop===null&&(n.stop=gu);for(var i=[],a=0,o=0;oa?i.push(A):i.push(a),a=A}else i.push(null)}for(var l=null,o=0;oo.optimumDistance)?{optimumCorner:s,optimumDistance:u}:o},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},$mt=function(r,e,t,n,i){var a=0,o=0;switch(r.size){case 0:r.shape===0?a=o=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-i)):r.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-n)),o=Math.min(Math.abs(t),Math.abs(t-i)));break;case 2:if(r.shape===0)a=o=Math.min(ys(e,t),ys(e,t-i),ys(e-n,t),ys(e-n,t-i));else if(r.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-i))/Math.min(Math.abs(e),Math.abs(e-n)),A=PP(n,i,e,t,!0),l=A[0],u=A[1];a=ys(l-e,(u-t)/s),o=s*a}break;case 1:r.shape===0?a=o=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-i)):r.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-n)),o=Math.max(Math.abs(t),Math.abs(t-i)));break;case 3:if(r.shape===0)a=o=Math.max(ys(e,t),ys(e,t-i),ys(e-n,t),ys(e-n,t-i));else if(r.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-i))/Math.max(Math.abs(e),Math.abs(e-n)),c=PP(n,i,e,t,!1),l=c[0],u=c[1];a=ys(l-e,(u-t)/s),o=s*a}break}return Array.isArray(r.size)&&(a=yn(r.size[0],n),o=r.size.length===2?yn(r.size[1],i):a),[a,o]},Vmt=function(r,e){var t=qo(180),n=[];return dA(e).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&o.value==="to"){t=jH(i);return}else if(VH(o)){t=Rw.parse(r,o);return}}var s=Mw(r,i);n.push(s)}),{angle:t,stops:n,type:1}},l0=function(r,e){var t=qo(180),n=[];return dA(e).forEach(function(i,a){if(a===0){var o=i[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){t=jH(i);return}else if(VH(o)){t=(Rw.parse(r,o)+qo(270))%qo(360);return}}var s=Mw(r,i);n.push(s)}),{angle:t,stops:n,type:1}},jmt=function(r,e){var t=qo(180),n=[],i=1,a=0,o=3,s=[];return dA(e).forEach(function(A,l){var u=A[0];if(l===0){if(an(u)&&u.value==="linear"){i=1;return}else if(an(u)&&u.value==="radial"){i=2;return}}if(u.type===18){if(u.name==="from"){var c=xu.parse(r,u.values[0]);n.push({stop:aa,color:c})}else if(u.name==="to"){var c=xu.parse(r,u.values[0]);n.push({stop:gu,color:c})}else if(u.name==="color-stop"){var h=u.values.filter(Pp);if(h.length===2){var c=xu.parse(r,h[1]),f=h[0];ed(f)&&n.push({stop:{type:16,number:f.number*100,flags:f.flags},color:c})}}}}),i===1?{angle:(t+qo(180))%qo(360),stops:n,type:i}:{size:o,shape:a,stops:n,position:s,type:i}},KH="closest-side",zH="farthest-side",YH="closest-corner",XH="farthest-corner",WH="circle",qH="ellipse",ZH="cover",JH="contain",Kmt=function(r,e){var t=0,n=3,i=[],a=[];return dA(e).forEach(function(o,s){var A=!0;if(s===0){var l=!1;A=o.reduce(function(c,h){if(l)if(an(h))switch(h.value){case"center":return a.push(cL),c;case"top":case"left":return a.push(aa),c;case"right":case"bottom":return a.push(gu),c}else(mi(h)||Ku(h))&&a.push(h);else if(an(h))switch(h.value){case WH:return t=0,!1;case qH:return t=1,!1;case"at":return l=!0,!1;case KH:return n=0,!1;case ZH:case zH:return n=1,!1;case JH:case YH:return n=2,!1;case XH:return n=3,!1}else if(Ku(h)||mi(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return c},A)}if(A){var u=Mw(r,o);i.push(u)}}),{size:n,shape:t,stops:i,position:a,type:2}},u0=function(r,e){var t=0,n=3,i=[],a=[];return dA(e).forEach(function(o,s){var A=!0;if(s===0?A=o.reduce(function(u,c){if(an(c))switch(c.value){case"center":return a.push(cL),!1;case"top":case"left":return a.push(aa),!1;case"right":case"bottom":return a.push(gu),!1}else if(mi(c)||Ku(c))return a.push(c),!1;return u},A):s===1&&(A=o.reduce(function(u,c){if(an(c))switch(c.value){case WH:return t=0,!1;case qH:return t=1,!1;case JH:case KH:return n=0,!1;case zH:return n=1,!1;case YH:return n=2,!1;case ZH:case XH:return n=3,!1}else if(Ku(c)||mi(c))return Array.isArray(n)||(n=[]),n.push(c),!1;return u},A)),A){var l=Mw(r,o);i.push(l)}}),{size:n,shape:t,stops:i,position:a,type:2}},zmt=function(r){return r.type===1},Ymt=function(r){return r.type===2},hL={name:"image",parse:function(r,e){if(e.type===22){var t={url:e.value,type:0};return r.cache.addImage(e.value),t}if(e.type===18){var n=t7[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(r,e.values)}throw new Error("Unsupported image type "+e.type)}};function Xmt(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!t7[r.name])}var t7={"linear-gradient":Vmt,"-moz-linear-gradient":l0,"-ms-linear-gradient":l0,"-o-linear-gradient":l0,"-webkit-linear-gradient":l0,"radial-gradient":Kmt,"-moz-radial-gradient":u0,"-ms-radial-gradient":u0,"-o-radial-gradient":u0,"-webkit-radial-gradient":u0,"-webkit-gradient":jmt},Wmt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(n){return Pp(n)&&Xmt(n)}).map(function(n){return hL.parse(r,n)})}},qmt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(an(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Zmt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return dA(e).map(function(t){return t.filter(mi)}).map(QH)}},Jmt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return dA(e).map(function(t){return t.filter(an).map(function(n){return n.value}).join(" ")}).map(t0t)}},t0t=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},gp;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(gp||(gp={}));var e0t={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return dA(e).map(function(t){return t.filter(r0t)})}},r0t=function(r){return an(r)||mi(r)},Nw=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},n0t=Nw("top"),i0t=Nw("right"),a0t=Nw("bottom"),o0t=Nw("left"),Pw=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return QH(t.filter(mi))}}},s0t=Pw("top-left"),A0t=Pw("top-right"),l0t=Pw("bottom-right"),u0t=Pw("bottom-left"),Uw=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},c0t=Uw("top"),h0t=Uw("right"),f0t=Uw("bottom"),p0t=Uw("left"),Dw=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return py(t)?t.number:0}}},d0t=Dw("top"),v0t=Dw("right"),g0t=Dw("bottom"),y0t=Dw("left"),m0t={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_0t={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},w0t={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(an).reduce(function(t,n){return t|E0t(n.value)},0)}},E0t=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},C0t={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},B0t={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},A1;(function(r){r.NORMAL="normal",r.STRICT="strict"})(A1||(A1={}));var T0t={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return A1.STRICT;case"normal":default:return A1.NORMAL}}},S0t={name:"line-height",initialValue:"normal",prefix:!1,type:4},UP=function(r,e){return an(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:mi(r)?yn(r,e):e},x0t={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:hL.parse(r,e)}},b0t={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},nb={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Qw=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},I0t=Qw("top"),F0t=Qw("right"),L0t=Qw("bottom"),O0t=Qw("left"),R0t={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(an).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},M0t={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Hw=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},N0t=Hw("top"),P0t=Hw("right"),U0t=Hw("bottom"),D0t=Hw("left"),Q0t={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},H0t={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},G0t={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&rb(e[0],"none")?[]:dA(e).map(function(t){for(var n={color:il.TRANSPARENT,offsetX:aa,offsetY:aa,blur:aa},i=0,a=0;a"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},V0t=function(r){var e=r.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},j0t=function(r){var e=r.filter(function(A){return A.type===17}).map(function(A){return A.number}),t=e[0],n=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],e.length===16?[t,n,i,a,o,s]:null},K0t={matrix:V0t,matrix3d:j0t},DP={type:16,number:50,flags:fy},z0t=[DP,DP],Y0t={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,e){var t=e.filter(mi);return t.length!==2?z0t:[t[0],t[1]]}},X0t={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},zv;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(zv||(zv={}));var W0t={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-all":return zv.BREAK_ALL;case"keep-all":return zv.KEEP_ALL;case"normal":default:return zv.NORMAL}}},q0t={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,e){if(e.type===20)return{auto:!0,order:0};if(ed(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},e7={name:"time",parse:function(r,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},Z0t={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,e){return ed(e)?e.number:1}},J0t={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},t_t={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,e){return e.filter(an).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},e_t={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,e){var t=[],n=[];return e.forEach(function(i){switch(i.type){case 20:case 0:t.push(i.value);break;case 17:t.push(i.number.toString());break;case 4:n.push(t.join(" ")),t.length=0;break}}),t.length&&n.push(t.join(" ")),n.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},r_t={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},n_t={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,e){if(ed(e))return e.number;if(an(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},i_t={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.filter(an).map(function(t){return t.value})}},a_t={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Mi=function(r,e){return(r&e)!==0},o_t={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},s_t={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var n=[],i=e.filter(DH),a=0;a1?1:0],this.overflowWrap=ce(e,M0t,t.overflowWrap),this.paddingTop=ce(e,N0t,t.paddingTop),this.paddingRight=ce(e,P0t,t.paddingRight),this.paddingBottom=ce(e,U0t,t.paddingBottom),this.paddingLeft=ce(e,D0t,t.paddingLeft),this.paintOrder=ce(e,h_t,t.paintOrder),this.position=ce(e,H0t,t.position),this.textAlign=ce(e,Q0t,t.textAlign),this.textDecorationColor=ce(e,J0t,(n=t.textDecorationColor)!==null&&n!==void 0?n:t.color),this.textDecorationLine=ce(e,t_t,(i=t.textDecorationLine)!==null&&i!==void 0?i:t.textDecoration),this.textShadow=ce(e,G0t,t.textShadow),this.textTransform=ce(e,k0t,t.textTransform),this.transform=ce(e,$0t,t.transform),this.transformOrigin=ce(e,Y0t,t.transformOrigin),this.visibility=ce(e,X0t,t.visibility),this.webkitTextStrokeColor=ce(e,f_t,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=ce(e,p_t,t.webkitTextStrokeWidth),this.wordBreak=ce(e,W0t,t.wordBreak),this.zIndex=ce(e,q0t,t.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return bu(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Mi(this.display,4)||Mi(this.display,33554432)||Mi(this.display,268435456)||Mi(this.display,536870912)||Mi(this.display,67108864)||Mi(this.display,134217728)},r}(),v_t=function(){function r(e,t){this.content=ce(e,o_t,t.content),this.quotes=ce(e,u_t,t.quotes)}return r}(),HP=function(){function r(e,t){this.counterIncrement=ce(e,s_t,t.counterIncrement),this.counterReset=ce(e,A_t,t.counterReset)}return r}(),ce=function(r,e,t){var n=new PH,i=t!==null&&typeof t<"u"?t.toString():e.initialValue;n.write(i);var a=new UH(n.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(r,an(o)?o.value:e.initialValue);case 0:return e.parse(r,a.parseComponentValue());case 1:return e.parse(r,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return Rw.parse(r,a.parseComponentValue());case"color":return xu.parse(r,a.parseComponentValue());case"image":return hL.parse(r,a.parseComponentValue());case"length":var s=a.parseComponentValue();return Ku(s)?s:aa;case"length-percentage":var A=a.parseComponentValue();return mi(A)?A:aa;case"time":return e7.parse(r,a.parseComponentValue())}break}},g_t="data-html2canvas-debug",y_t=function(r){var e=r.getAttribute(g_t);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ib=function(r,e){var t=y_t(r);return t===1||e===t},vA=function(){function r(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ib(t,3))debugger;this.styles=new d_t(e,window.getComputedStyle(t,null)),sb(t)&&(this.styles.animationDuration.some(function(n){return n>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Lw(this.context,t),ib(t,4)&&(this.flags|=16)}return r}(),m_t="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",GP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bv=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var c0=0;c0>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|A&63;return l},w_t=function(r){for(var e=r.length,t=[],n=0;n>eh,B_t=1<>eh,S_t=r7+T_t,x_t=S_t,b_t=32,I_t=x_t+b_t,F_t=65536>>fL,L_t=1<=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>eh],t=(t<>eh)],t=(t<>fL),t=this.index[t],t+=e>>eh&O_t,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256);for(var h0=0;h0<$P.length;h0++)P_t[$P.charCodeAt(h0)]=h0;var U_t=1,AB=2,lB=3,VP=4,jP=5,D_t=7,KP=8,uB=9,cB=10,zP=11,YP=12,XP=13,WP=14,hB=15,Q_t=function(r){for(var e=[],t=0,n=r.length;t=55296&&i<=56319&&t>10)+55296,o%1024+56320)),(i+1===t||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},G_t=M_t(m_t),zo="×",fB="÷",k_t=function(r){return G_t.get(r)},$_t=function(r,e,t){var n=t-2,i=e[n],a=e[t-1],o=e[t];if(a===AB&&o===lB)return zo;if(a===AB||a===lB||a===VP||o===AB||o===lB||o===VP)return fB;if(a===KP&&[KP,uB,zP,YP].indexOf(o)!==-1||(a===zP||a===uB)&&(o===uB||o===cB)||(a===YP||a===cB)&&o===cB||o===XP||o===jP||o===D_t||a===U_t)return zo;if(a===XP&&o===WP){for(;i===jP;)i=e[--n];if(i===WP)return zo}if(a===hB&&o===hB){for(var s=0;i===hB;)s++,i=e[--n];if(s%2===0)return zo}return fB},V_t=function(r){var e=Q_t(r),t=e.length,n=0,i=0,a=e.map(k_t);return{next:function(){if(n>=t)return{done:!0,value:null};for(var o=zo;no.x||u.y>o.y;return o=u,l===0?!0:c});return r.body.removeChild(e),s},Y_t=function(){return typeof new Image().crossOrigin<"u"},X_t=function(){return typeof new XMLHttpRequest().responseType=="string"},W_t=function(r){var e=new Image,t=r.createElement("canvas"),n=t.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},qP=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},q_t=function(r){var e=r.createElement("canvas"),t=100;e.width=t,e.height=t;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,t,t);var i=new Image,a=e.toDataURL();i.src=a;var o=ab(t,t,0,0,i);return n.fillStyle="red",n.fillRect(0,0,t,t),ZP(o).then(function(s){n.drawImage(s,0,0);var A=n.getImageData(0,0,t,t).data;n.fillStyle="red",n.fillRect(0,0,t,t);var l=r.createElement("div");return l.style.backgroundImage="url("+a+")",l.style.height=t+"px",qP(A)?ZP(ab(t,t,0,0,l)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),qP(n.getImageData(0,0,t,t).data)}).catch(function(){return!1})},ab=function(r,e,t,n,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",r.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",n.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},ZP=function(r){return new Promise(function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},na={get SUPPORT_RANGE_BOUNDS(){var r=K_t(document);return Object.defineProperty(na,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=na.SUPPORT_RANGE_BOUNDS&&z_t(document);return Object.defineProperty(na,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=W_t(document);return Object.defineProperty(na,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?q_t(document):Promise.resolve(!1);return Object.defineProperty(na,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Y_t();return Object.defineProperty(na,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=X_t();return Object.defineProperty(na,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(na,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(na,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Yv=function(){function r(e,t){this.text=e,this.bounds=t}return r}(),Z_t=function(r,e,t,n){var i=e1t(e,t),a=[],o=0;return i.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(na.SUPPORT_RANGE_BOUNDS){var A=JP(n,o,s.length).getClientRects();if(A.length>1){var l=pL(s),u=0;l.forEach(function(h){a.push(new Yv(h,hl.fromDOMRectList(r,JP(n,u+o,h.length).getClientRects()))),u+=h.length})}else a.push(new Yv(s,hl.fromDOMRectList(r,A)))}else{var c=n.splitText(s.length);a.push(new Yv(s,J_t(r,n))),n=c}else na.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));o+=s.length}),a},J_t=function(r,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(n,e);var a=Lw(r,n);return n.firstChild&&i.replaceChild(n.firstChild,n),a}}return hl.EMPTY},JP=function(r,e,t){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(r,e),i.setEnd(r,e+t),i},pL=function(r){if(na.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(r)).map(function(t){return t.segment})}return j_t(r)},t1t=function(r,e){if(na.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(r)).map(function(n){return n.segment})}return n1t(r,e)},e1t=function(r,e){return e.letterSpacing!==0?pL(r):t1t(r,e)},r1t=[32,160,4961,65792,65793,4153,4241],n1t=function(r,e){for(var t=Fyt(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],i,a=function(){if(i.value){var o=i.value.slice(),s=Ow(o),A="";s.forEach(function(l){r1t.indexOf(l)===-1?A+=ti(l):(A.length&&n.push(A),n.push(ti(l)),A="")}),A.length&&n.push(A)}};!(i=t.next()).done;)a();return n},i1t=function(){function r(e,t,n){this.text=a1t(t.data,n.textTransform),this.textBounds=Z_t(e,this.text,n,t)}return r}(),a1t=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(o1t,s1t);case 2:return r.toUpperCase();default:return r}},o1t=/(^|\s|:|-|\(|\))([a-z])/g,s1t=function(r,e,t){return r.length>0?e+t.toUpperCase():r},n7=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return e}(vA),i7=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return e}(vA),a7=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this,a=new XMLSerializer,o=Lw(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return e}(vA),o7=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.value=n.value,i}return e}(vA),ob=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.start=n.start,i.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,i}return e}(vA),A1t=[{type:15,flags:0,unit:"px",number:3}],l1t=[{type:16,flags:0,number:50}],u1t=function(r){return r.width>r.height?new hl(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)t.textNodes.push(new i1t(r,i,t.styles));else if(qf(i))if(v7(i)&&i.assignedNodes)i.assignedNodes().forEach(function(s){return q0(r,s,t,n)});else{var o=u7(r,i);o.styles.isVisible()&&(p1t(i,o,n)?o.flags|=4:d1t(o.styles)&&(o.flags|=2),f1t.indexOf(i.tagName)!==-1&&(o.flags|=8),t.elements.push(o),i.slot,i.shadowRoot?q0(r,i.shadowRoot,o,n):!c1(i)&&!f7(i)&&!h1(i)&&q0(r,i,o,n))}},u7=function(r,e){return Ab(e)?new n7(r,e):p7(e)?new i7(r,e):f7(e)?new a7(r,e):v1t(e)?new o7(r,e):g1t(e)?new ob(r,e):y1t(e)?new dL(r,e):h1(e)?new s7(r,e):c1(e)?new A7(r,e):d7(e)?new l7(r,e):new vA(r,e)},c7=function(r,e){var t=u7(r,e);return t.flags|=4,q0(r,e,t,t),t},p1t=function(r,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||vL(r)&&t.styles.isTransparent()},d1t=function(r){return r.isPositioned()||r.isFloating()},h7=function(r){return r.nodeType===Node.TEXT_NODE},qf=function(r){return r.nodeType===Node.ELEMENT_NODE},sb=function(r){return qf(r)&&typeof r.style<"u"&&!Z0(r)},Z0=function(r){return typeof r.className=="object"},v1t=function(r){return r.tagName==="LI"},g1t=function(r){return r.tagName==="OL"},y1t=function(r){return r.tagName==="INPUT"},m1t=function(r){return r.tagName==="HTML"},f7=function(r){return r.tagName==="svg"},vL=function(r){return r.tagName==="BODY"},p7=function(r){return r.tagName==="CANVAS"},e5=function(r){return r.tagName==="VIDEO"},Ab=function(r){return r.tagName==="IMG"},d7=function(r){return r.tagName==="IFRAME"},r5=function(r){return r.tagName==="STYLE"},_1t=function(r){return r.tagName==="SCRIPT"},c1=function(r){return r.tagName==="TEXTAREA"},h1=function(r){return r.tagName==="SELECT"},v7=function(r){return r.tagName==="SLOT"},n5=function(r){return r.tagName.indexOf("-")>0},w1t=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},r.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},r.prototype.pop=function(e){var t=this;e.forEach(function(n){return t.counters[n].pop()})},r.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,a=!0;n!==null&&n.forEach(function(s){var A=t.counters[s.counter];A&&s.increment!==0&&(a=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=s.increment)});var o=[];return a&&i.forEach(function(s){var A=t.counters[s.counter];o.push(s.counter),A||(A=t.counters[s.counter]=[]),A.push(s.reset)}),o},r}(),i5={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},a5={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},E1t={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},C1t={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ef=function(r,e,t,n,i,a){return rt?Fg(r,i,a.length>0):n.integers.reduce(function(o,s,A){for(;r>=s;)r-=s,o+=n.values[A];return o},"")+a},g7=function(r,e,t,n){var i="";do t||r--,i=n(r)+i,r/=e;while(r*e>=e);return i},Zn=function(r,e,t,n,i){var a=t-e+1;return(r<0?"-":"")+(g7(Math.abs(r),a,n,function(o){return ti(Math.floor(o%a)+e)})+i)},yc=function(r,e,t){t===void 0&&(t=". ");var n=e.length;return g7(Math.abs(r),n,!1,function(i){return e[Math.floor(i%n)]})+t},Qf=1<<0,nu=1<<1,iu=1<<2,Tv=1<<3,HA=function(r,e,t,n,i,a){if(r<-9999||r>9999)return Fg(r,4,i.length>0);var o=Math.abs(r),s=i;if(o===0)return e[0]+s;for(var A=0;o>0&&A<=4;A++){var l=o%10;l===0&&Mi(a,Qf)&&s!==""?s=e[l]+s:l>1||l===1&&A===0||l===1&&A===1&&Mi(a,nu)||l===1&&A===1&&Mi(a,iu)&&r>100||l===1&&A>1&&Mi(a,Tv)?s=e[l]+(A>0?t[A-1]:"")+s:l===1&&A>0&&(s=t[A-1]+s),o=Math.floor(o/10)}return(r<0?n:"")+s},o5="十百千萬",s5="拾佰仟萬",A5="マイナス",pB="마이너스",Fg=function(r,e,t){var n=t?". ":"",i=t?"、":"",a=t?", ":"",o=t?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Zn(r,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return yc(r,"〇一二三四五六七八九",i);case 6:return Ef(r,1,3999,i5,3,n).toLowerCase();case 7:return Ef(r,1,3999,i5,3,n);case 8:return Zn(r,945,969,!1,n);case 9:return Zn(r,97,122,!1,n);case 10:return Zn(r,65,90,!1,n);case 11:return Zn(r,1632,1641,!0,n);case 12:case 49:return Ef(r,1,9999,a5,3,n);case 35:return Ef(r,1,9999,a5,3,n).toLowerCase();case 13:return Zn(r,2534,2543,!0,n);case 14:case 30:return Zn(r,6112,6121,!0,n);case 15:return yc(r,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return yc(r,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return HA(r,"零一二三四五六七八九",o5,"負",i,nu|iu|Tv);case 47:return HA(r,"零壹貳參肆伍陸柒捌玖",s5,"負",i,Qf|nu|iu|Tv);case 42:return HA(r,"零一二三四五六七八九",o5,"负",i,nu|iu|Tv);case 41:return HA(r,"零壹贰叁肆伍陆柒捌玖",s5,"负",i,Qf|nu|iu|Tv);case 26:return HA(r,"〇一二三四五六七八九","十百千万",A5,i,0);case 25:return HA(r,"零壱弐参四伍六七八九","拾百千万",A5,i,Qf|nu|iu);case 31:return HA(r,"영일이삼사오육칠팔구","십백천만",pB,a,Qf|nu|iu);case 33:return HA(r,"零一二三四五六七八九","十百千萬",pB,a,0);case 32:return HA(r,"零壹貳參四五六七八九","拾百千",pB,a,Qf|nu|iu);case 18:return Zn(r,2406,2415,!0,n);case 20:return Ef(r,1,19999,C1t,3,n);case 21:return Zn(r,2790,2799,!0,n);case 22:return Zn(r,2662,2671,!0,n);case 22:return Ef(r,1,10999,E1t,3,n);case 23:return yc(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return yc(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Zn(r,3302,3311,!0,n);case 28:return yc(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return yc(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Zn(r,3792,3801,!0,n);case 37:return Zn(r,6160,6169,!0,n);case 38:return Zn(r,4160,4169,!0,n);case 39:return Zn(r,2918,2927,!0,n);case 40:return Zn(r,1776,1785,!0,n);case 43:return Zn(r,3046,3055,!0,n);case 44:return Zn(r,3174,3183,!0,n);case 45:return Zn(r,3664,3673,!0,n);case 46:return Zn(r,3872,3881,!0,n);case 3:default:return Zn(r,48,57,!0,n)}},y7="data-html2canvas-ignore",l5=function(){function r(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new w1t,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(e,t){var n=this,i=B1t(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=i.contentWindow,A=s.document,l=x1t(i).then(function(){return Ma(n,void 0,void 0,function(){var u,c;return ya(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(L1t),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,S1t(A)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(A,c)}).then(function(){return i})]:[2,i]}})})});return A.open(),A.write(I1t(document.doctype)+""),F1t(this.referenceElement.ownerDocument,a,o),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),l},r.prototype.createElementClone=function(e){if(ib(e,2))debugger;if(p7(e))return this.createCanvasClone(e);if(e5(e))return this.createVideoClone(e);if(r5(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ab(t)&&(Ab(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),n5(t)?this.createCustomElementClone(t):t},r.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return dB(e.style,t),t},r.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(a,o){return o&&typeof o.cssText=="string"?a+o.cssText:a},""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},r.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var a=e.getContext("2d"),o=i.getContext("2d");if(o)if(!this.options.allowTaint&&a)o.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var s=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(s){var A=s.getContextAttributes();(A==null?void 0:A.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},r.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},r.prototype.appendChildNode=function(e,t,n){(!qf(t)||!_1t(t)&&!t.hasAttribute(y7)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!qf(t)||!r5(t))&&e.appendChild(this.cloneNode(t,n))},r.prototype.cloneChildNodes=function(e,t,n){for(var i=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(qf(a)&&v7(a)&&typeof a.assignedNodes=="function"){var o=a.assignedNodes();o.length&&o.forEach(function(s){return i.appendChildNode(t,s,n)})}else this.appendChildNode(t,a,n)},r.prototype.cloneNode=function(e,t){if(h7(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&qf(e)&&(sb(e)||Z0(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var a=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&sb(i)&&(this.clonedReferenceElement=i),vL(i)&&M1t(i);var A=this.counters.parse(new HP(this.context,a)),l=this.resolvePseudoContent(e,i,o,Xv.BEFORE);n5(e)&&(t=!0),e5(e)||this.cloneChildNodes(e,i,t),l&&i.insertBefore(l,i.firstChild);var u=this.resolvePseudoContent(e,i,s,Xv.AFTER);return u&&i.appendChild(u),this.counters.pop(A),(a&&(this.options.copyStyles||Z0(e))&&!d7(e)||t)&&dB(a,i),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(c1(e)||h1(e))&&(c1(i)||h1(i))&&(i.value=e.value),i}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,t,n,i){var a=this;if(n){var o=n.content,s=t.ownerDocument;if(!(!s||!o||o==="none"||o==="-moz-alt-content"||n.display==="none")){this.counters.parse(new HP(this.context,n));var A=new v_t(this.context,n),l=s.createElement("html2canvaspseudoelement");dB(n,l),A.content.forEach(function(c){if(c.type===0)l.appendChild(s.createTextNode(c.value));else if(c.type===22){var h=s.createElement("img");h.src=c.value,h.style.opacity="1",l.appendChild(h)}else if(c.type===18){if(c.name==="attr"){var f=c.values.filter(an);f.length&&l.appendChild(s.createTextNode(e.getAttribute(f[0].value)||""))}else if(c.name==="counter"){var p=c.values.filter(Pp),v=p[0],m=p[1];if(v&&an(v)){var g=a.counters.getCounterValue(v.value),_=m&&an(m)?nb.parse(a.context,m.value):3;l.appendChild(s.createTextNode(Fg(g,_,!1)))}}else if(c.name==="counters"){var E=c.values.filter(Pp),v=E[0],B=E[1],m=E[2];if(v&&an(v)){var L=a.counters.getCounterValues(v.value),O=m&&an(m)?nb.parse(a.context,m.value):3,b=B&&B.type===0?B.value:"",T=L.map(function(x){return Fg(x,O,!1)}).join(b);l.appendChild(s.createTextNode(T))}}}else if(c.type===20)switch(c.value){case"open-quote":l.appendChild(s.createTextNode(QP(A.quotes,a.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(QP(A.quotes,--a.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(c.value))}}),l.className=lb+" "+ub;var u=i===Xv.BEFORE?" "+lb:" "+ub;return Z0(t)?t.className.baseValue+=u:t.className+=u,l}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),Xv;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Xv||(Xv={}));var B1t=function(r,e){var t=r.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(y7,"true"),r.body.appendChild(t),t},T1t=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},S1t=function(r){return Promise.all([].slice.call(r.images,0).map(T1t))},x1t=function(r){return new Promise(function(e,t){var n=r.contentWindow;if(!n)return t("No window assigned for iframe");var i=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var a=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(a),e(r))},50)}})},b1t=["all","d","content"],dB=function(r,e){for(var t=r.length-1;t>=0;t--){var n=r.item(t);b1t.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},I1t=function(r){var e="";return r&&(e+=""),e},F1t=function(r,e,t){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||t!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,t)},L1t=function(r){var e=r[0],t=r[1],n=r[2];e.scrollLeft=t,e.scrollTop=n},O1t=":before",R1t=":after",lb="___html2canvas___pseudoelement_before",ub="___html2canvas___pseudoelement_after",u5=`{ content: "" !important; display: none !important; -}`,R1t=function(r){M1t(r,"."+lb+L1t+u5+` - .`+ub+O1t+u5)},M1t=function(r,e){var t=r.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,r.appendChild(n)}},y7=function(){function r(){}return r.getOrigin=function(e){var t=r._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),N1t=function(){function r(e,t){this.context=e,this._options=t,this._cache={}}return r.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(gB(e)||Q1t(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return Ma(this,void 0,void 0,function(){var t,n,i,a,o=this;return ya(this,function(s){switch(s.label){case 0:return t=y7.isSameOrigin(e),n=!vB(e)&&this._options.useCORS===!0&&na.SUPPORT_CORS_IMAGES&&!t,i=!vB(e)&&!t&&!gB(e)&&typeof this._options.proxy=="string"&&na.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!vB(e)&&!gB(e)&&!i&&!n?[2]:(a=e,i?[4,this.proxy(a)]:[3,2]);case 1:a=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(A,l){var u=new Image;u.onload=function(){return A(u)},u.onerror=l,(H1t(a)||n)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(function(){return A(u)},500),o._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise(function(a,o){var s=na.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(A.status===200)if(s==="text")a(A.response);else{var c=new FileReader;c.addEventListener("load",function(){return a(c.result)},!1),c.addEventListener("error",function(h){return o(h)},!1),c.readAsDataURL(A.response)}else o("Failed to proxy resource "+i+" with status code "+A.status)},A.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+s),s!=="text"&&A instanceof XMLHttpRequest&&(A.responseType=s),t._options.imageTimeout){var u=t._options.imageTimeout;A.timeout=u,A.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+i)}}A.send()})},r}(),P1t=/^data:image\/svg\+xml/i,U1t=/^data:image\/.*;base64,/i,D1t=/^data:image\/.*/i,Q1t=function(r){return na.SUPPORT_SVG_DRAWING||!G1t(r)},vB=function(r){return D1t.test(r)},H1t=function(r){return U1t.test(r)},gB=function(r){return r.substr(0,4)==="blob"},G1t=function(r){return r.substr(-3).toLowerCase()==="svg"||P1t.test(r)},ae=function(){function r(e,t){this.type=0,this.x=e,this.y=t}return r.prototype.add=function(e,t){return new r(this.x+e,this.y+t)},r}(),Cf=function(r,e,t){return new ae(r.x+(e.x-r.x)*t,r.y+(e.y-r.y)*t)},f0=function(){function r(e,t,n,i){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return r.prototype.subdivide=function(e,t){var n=Cf(this.start,this.startControl,e),i=Cf(this.startControl,this.endControl,e),a=Cf(this.endControl,this.end,e),o=Cf(n,i,e),s=Cf(i,a,e),A=Cf(o,s,e);return t?new r(this.start,n,o,A):new r(A,s,a,this.end)},r.prototype.add=function(e,t){return new r(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Xo=function(r){return r.type===1},k1t=function(){function r(e){var t=e.styles,n=e.bounds,i=Cv(t.borderTopLeftRadius,n.width,n.height),a=i[0],o=i[1],s=Cv(t.borderTopRightRadius,n.width,n.height),A=s[0],l=s[1],u=Cv(t.borderBottomRightRadius,n.width,n.height),c=u[0],h=u[1],f=Cv(t.borderBottomLeftRadius,n.width,n.height),p=f[0],v=f[1],m=[];m.push((a+A)/n.width),m.push((p+c)/n.width),m.push((o+v)/n.height),m.push((l+h)/n.height);var g=Math.max.apply(Math,m);g>1&&(a/=g,o/=g,A/=g,l/=g,c/=g,h/=g,p/=g,v/=g);var _=n.width-A,E=n.height-h,B=n.width-c,L=n.height-v,O=t.borderTopWidth,b=t.borderRightWidth,T=t.borderBottomWidth,I=t.borderLeftWidth,M=yn(t.paddingTop,e.bounds.width),x=yn(t.paddingRight,e.bounds.width),S=yn(t.paddingBottom,e.bounds.width),N=yn(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||o>0?Fn(n.left+I/3,n.top+O/3,a-I/3,o-O/3,jr.TOP_LEFT):new ae(n.left+I/3,n.top+O/3),this.topRightBorderDoubleOuterBox=a>0||o>0?Fn(n.left+_,n.top+O/3,A-b/3,l-O/3,jr.TOP_RIGHT):new ae(n.left+n.width-b/3,n.top+O/3),this.bottomRightBorderDoubleOuterBox=c>0||h>0?Fn(n.left+B,n.top+E,c-b/3,h-T/3,jr.BOTTOM_RIGHT):new ae(n.left+n.width-b/3,n.top+n.height-T/3),this.bottomLeftBorderDoubleOuterBox=p>0||v>0?Fn(n.left+I/3,n.top+L,p-I/3,v-T/3,jr.BOTTOM_LEFT):new ae(n.left+I/3,n.top+n.height-T/3),this.topLeftBorderDoubleInnerBox=a>0||o>0?Fn(n.left+I*2/3,n.top+O*2/3,a-I*2/3,o-O*2/3,jr.TOP_LEFT):new ae(n.left+I*2/3,n.top+O*2/3),this.topRightBorderDoubleInnerBox=a>0||o>0?Fn(n.left+_,n.top+O*2/3,A-b*2/3,l-O*2/3,jr.TOP_RIGHT):new ae(n.left+n.width-b*2/3,n.top+O*2/3),this.bottomRightBorderDoubleInnerBox=c>0||h>0?Fn(n.left+B,n.top+E,c-b*2/3,h-T*2/3,jr.BOTTOM_RIGHT):new ae(n.left+n.width-b*2/3,n.top+n.height-T*2/3),this.bottomLeftBorderDoubleInnerBox=p>0||v>0?Fn(n.left+I*2/3,n.top+L,p-I*2/3,v-T*2/3,jr.BOTTOM_LEFT):new ae(n.left+I*2/3,n.top+n.height-T*2/3),this.topLeftBorderStroke=a>0||o>0?Fn(n.left+I/2,n.top+O/2,a-I/2,o-O/2,jr.TOP_LEFT):new ae(n.left+I/2,n.top+O/2),this.topRightBorderStroke=a>0||o>0?Fn(n.left+_,n.top+O/2,A-b/2,l-O/2,jr.TOP_RIGHT):new ae(n.left+n.width-b/2,n.top+O/2),this.bottomRightBorderStroke=c>0||h>0?Fn(n.left+B,n.top+E,c-b/2,h-T/2,jr.BOTTOM_RIGHT):new ae(n.left+n.width-b/2,n.top+n.height-T/2),this.bottomLeftBorderStroke=p>0||v>0?Fn(n.left+I/2,n.top+L,p-I/2,v-T/2,jr.BOTTOM_LEFT):new ae(n.left+I/2,n.top+n.height-T/2),this.topLeftBorderBox=a>0||o>0?Fn(n.left,n.top,a,o,jr.TOP_LEFT):new ae(n.left,n.top),this.topRightBorderBox=A>0||l>0?Fn(n.left+_,n.top,A,l,jr.TOP_RIGHT):new ae(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||h>0?Fn(n.left+B,n.top+E,c,h,jr.BOTTOM_RIGHT):new ae(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||v>0?Fn(n.left,n.top+L,p,v,jr.BOTTOM_LEFT):new ae(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||o>0?Fn(n.left+I,n.top+O,Math.max(0,a-I),Math.max(0,o-O),jr.TOP_LEFT):new ae(n.left+I,n.top+O),this.topRightPaddingBox=A>0||l>0?Fn(n.left+Math.min(_,n.width-b),n.top+O,_>n.width+b?0:Math.max(0,A-b),Math.max(0,l-O),jr.TOP_RIGHT):new ae(n.left+n.width-b,n.top+O),this.bottomRightPaddingBox=c>0||h>0?Fn(n.left+Math.min(B,n.width-I),n.top+Math.min(E,n.height-T),Math.max(0,c-b),Math.max(0,h-T),jr.BOTTOM_RIGHT):new ae(n.left+n.width-b,n.top+n.height-T),this.bottomLeftPaddingBox=p>0||v>0?Fn(n.left+I,n.top+Math.min(L,n.height-T),Math.max(0,p-I),Math.max(0,v-T),jr.BOTTOM_LEFT):new ae(n.left+I,n.top+n.height-T),this.topLeftContentBox=a>0||o>0?Fn(n.left+I+N,n.top+O+M,Math.max(0,a-(I+N)),Math.max(0,o-(O+M)),jr.TOP_LEFT):new ae(n.left+I+N,n.top+O+M),this.topRightContentBox=A>0||l>0?Fn(n.left+Math.min(_,n.width+I+N),n.top+O+M,_>n.width+I+N?0:A-I+N,l-(O+M),jr.TOP_RIGHT):new ae(n.left+n.width-(b+x),n.top+O+M),this.bottomRightContentBox=c>0||h>0?Fn(n.left+Math.min(B,n.width-(I+N)),n.top+Math.min(E,n.height+O+M),Math.max(0,c-(b+x)),h-(T+S),jr.BOTTOM_RIGHT):new ae(n.left+n.width-(b+x),n.top+n.height-(T+S)),this.bottomLeftContentBox=p>0||v>0?Fn(n.left+I+N,n.top+L,Math.max(0,p-(I+N)),v-(T+S),jr.BOTTOM_LEFT):new ae(n.left+I+N,n.top+n.height-(T+S))}return r}(),jr;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(jr||(jr={}));var Fn=function(r,e,t,n,i){var a=4*((Math.sqrt(2)-1)/3),o=t*a,s=n*a,A=r+t,l=e+n;switch(i){case jr.TOP_LEFT:return new f0(new ae(r,l),new ae(r,l-s),new ae(A-o,e),new ae(A,e));case jr.TOP_RIGHT:return new f0(new ae(r,e),new ae(r+o,e),new ae(A,l-s),new ae(A,l));case jr.BOTTOM_RIGHT:return new f0(new ae(A,e),new ae(A,e+s),new ae(r+o,l),new ae(r,l));case jr.BOTTOM_LEFT:default:return new f0(new ae(A,l),new ae(A-o,l),new ae(r,e+s),new ae(r,e))}},f1=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},$1t=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},p1=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},V1t=function(){function r(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return r}(),p0=function(){function r(e,t){this.path=e,this.target=t,this.type=1}return r}(),j1t=function(){function r(e){this.opacity=e,this.type=2,this.target=6}return r}(),K1t=function(r){return r.type===0},m7=function(r){return r.type===1},z1t=function(r){return r.type===2},c5=function(r,e){return r.length===e.length?r.some(function(t,n){return t===e[n]}):!1},Y1t=function(r,e,t,n,i){return r.map(function(a,o){switch(o){case 0:return a.add(e,t);case 1:return a.add(e+n,t);case 2:return a.add(e+n,t+i);case 3:return a.add(e,t+i)}return a})},_7=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),w7=function(){function r(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new k1t(this.container),this.container.styles.opacity<1&&this.effects.push(new j1t(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new V1t(n,i,a))}if(this.container.styles.overflowX!==0){var o=f1(this.curves),s=p1(this.curves);c5(o,s)?this.effects.push(new p0(o,6)):(this.effects.push(new p0(o,2)),this.effects.push(new p0(s,4)))}}return r.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,i=this.effects.slice(0);n;){var a=n.effects.filter(function(A){return!m7(A)});if(t||n.container.styles.position!==0||!n.parent){if(i.unshift.apply(i,a),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var o=f1(n.curves),s=p1(n.curves);c5(o,s)||i.unshift(new p0(s,6))}}else i.unshift.apply(i,a);n=n.parent}return i.filter(function(A){return Mi(A.target,e)})},r}(),cb=function(r,e,t,n){r.container.elements.forEach(function(i){var a=Mi(i.flags,4),o=Mi(i.flags,2),s=new w7(i,r);Mi(i.styles.display,2048)&&n.push(s);var A=Mi(i.flags,8)?[]:n;if(a||o){var l=a||i.styles.isPositioned()?t:e,u=new _7(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var c=i.styles.zIndex.order;if(c<0){var h=0;l.negativeZIndex.some(function(p,v){return c>p.element.container.styles.zIndex.order?(h=v,!1):h>0}),l.negativeZIndex.splice(h,0,u)}else if(c>0){var f=0;l.positiveZIndex.some(function(p,v){return c>=p.element.container.styles.zIndex.order?(f=v+1,!1):f>0}),l.positiveZIndex.splice(f,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);cb(s,u,a?u:t,A)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),cb(s,e,t,A);Mi(i.flags,8)&&E7(i,A)})},E7=function(r,e){for(var t=r instanceof ob?r.start:1,n=r instanceof ob?r.reversed:!1,i=0;i"u"?r[0]:t},rwt=function(r,e,t,n,i){var a=e[0],o=e[1],s=t[0],A=t[1];switch(r){case 2:return[new ae(Math.round(n.left),Math.round(n.top+o)),new ae(Math.round(n.left+n.width),Math.round(n.top+o)),new ae(Math.round(n.left+n.width),Math.round(A+n.top+o)),new ae(Math.round(n.left),Math.round(A+n.top+o))];case 3:return[new ae(Math.round(n.left+a),Math.round(n.top)),new ae(Math.round(n.left+a+s),Math.round(n.top)),new ae(Math.round(n.left+a+s),Math.round(n.height+n.top)),new ae(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new ae(Math.round(n.left+a),Math.round(n.top+o)),new ae(Math.round(n.left+a+s),Math.round(n.top+o)),new ae(Math.round(n.left+a+s),Math.round(n.top+o+A)),new ae(Math.round(n.left+a),Math.round(n.top+o+A))];default:return[new ae(Math.round(i.left),Math.round(i.top)),new ae(Math.round(i.left+i.width),Math.round(i.top)),new ae(Math.round(i.left+i.width),Math.round(i.height+i.top)),new ae(Math.round(i.left),Math.round(i.height+i.top))]}},nwt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",f5="Hidden Text",iwt=function(){function r(e){this._data={},this._document=e}return r.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),i.src=nwt,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(f5)),n.appendChild(a),n.appendChild(i);var s=i.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(f5)),n.style.lineHeight="normal",i.style.verticalAlign="super";var A=i.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:A}},r.prototype.getMetrics=function(e,t){var n=e+" "+t;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},r}(),B7=function(){function r(e,t){this.context=e,this.options=t}return r}(),awt=1e4,owt=function(r){Us(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new iwt(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return e.prototype.applyEffects=function(t){for(var n=this;this._activeEffects.length;)this.popEffect();t.forEach(function(i){return n.applyEffect(i)})},e.prototype.applyEffect=function(t){this.ctx.save(),z1t(t)&&(this.ctx.globalAlpha=t.opacity),K1t(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),m7(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Ma(this,void 0,void 0,function(){var n;return ya(this,function(i){switch(i.label){case 0:return n=t.element.container.styles,n.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Ma(this,void 0,void 0,function(){return ya(this,function(n){switch(n.label){case 0:if(Mi(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(t)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,n,i){var a=this;if(n===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+i);else{var o=pL(t.text);o.reduce(function(s,A){return a.ctx.fillText(A,s,t.bounds.top+i),s+a.ctx.measureText(A).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var n=t.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),i=cwt(t.fontFamily).join(", "),a=py(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,n,t.fontWeight,a,i].join(" "),i,a]},e.prototype.renderTextNode=function(t,n){return Ma(this,void 0,void 0,function(){var i,a,o,s,A,l,u,c,h=this;return ya(this,function(f){return i=this.createFontStyle(n),a=i[0],o=i[1],s=i[2],this.ctx.font=a,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",A=this.fontMetrics.getMetrics(o,s),l=A.baseline,u=A.middle,c=n.paintOrder,t.textBounds.forEach(function(p){c.forEach(function(v){switch(v){case 0:h.ctx.fillStyle=ji(n.color),h.renderTextWithLetterSpacing(p,n.letterSpacing,l);var m=n.textShadow;m.length&&p.text.trim().length&&(m.slice(0).reverse().forEach(function(g){h.ctx.shadowColor=ji(g.color),h.ctx.shadowOffsetX=g.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=g.offsetY.number*h.options.scale,h.ctx.shadowBlur=g.blur.number,h.renderTextWithLetterSpacing(p,n.letterSpacing,l)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),n.textDecorationLine.length&&(h.ctx.fillStyle=ji(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(g){switch(g){case 1:h.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top+l),p.bounds.width,1);break;case 2:h.ctx.fillRect(p.bounds.left,Math.round(p.bounds.top),p.bounds.width,1);break;case 3:h.ctx.fillRect(p.bounds.left,Math.ceil(p.bounds.top+u),p.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&p.text.trim().length&&(h.ctx.strokeStyle=ji(n.webkitTextStrokeColor),h.ctx.lineWidth=n.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(p.text,p.bounds.left,p.bounds.top+l)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,n,i){if(i&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var a=d1(t),o=p1(n);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,t.intrinsicWidth,t.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Ma(this,void 0,void 0,function(){var n,i,a,o,s,A,_,_,l,u,c,h,B,f,p,L,v,m,g,_,E,B,L;return ya(this,function(O){switch(O.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,i=t.curves,a=n.styles,o=0,s=n.textNodes,O.label=1;case 1:return o0&&P>0&&(T=a.ctx.createPattern(L,"repeat"),a.renderRepeat(M,T,z,tt))):zmt(u)&&(I=yB(t,n,[null,null,null]),M=I[0],x=I[1],S=I[2],N=I[3],P=I[4],X=u.position.length===0?[cL]:u.position,z=yn(X[0],N),tt=yn(X[X.length-1],P),J=kmt(u,z,tt,N,P),nt=J[0],it=J[1],nt>0&&it>0&&(_t=a.ctx.createRadialGradient(x+z,S+tt,0,x+z,S+tt,nt),NP(u.stops,nt*2).forEach(function(vt){return _t.addColorStop(vt.stop,ji(vt.color))}),a.path(M),a.ctx.fillStyle=_t,nt!==it?(R=t.bounds.left+.5*t.bounds.width,$=t.bounds.top+.5*t.bounds.height,K=it/nt,q=1/K,a.ctx.save(),a.ctx.translate(R,$),a.ctx.transform(1,0,0,K,0,0),a.ctx.translate(-R,-$),a.ctx.fillRect(x,q*(S-$)+$,N,P*q),a.ctx.restore()):a.ctx.fill())),at.label=6;case 6:return n--,[2]}})},a=this,o=0,s=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,3)];case 6:return h.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,t.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,t.curves)];case 10:h.sent(),h.label=11;case 11:s++,h.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,n,i,a,o){return Ma(this,void 0,void 0,function(){var s,A,l,u,c,h,f,p,v,m,g,_,E,B,L,O,L,O;return ya(this,function(b){return this.ctx.save(),s=Z1t(a,i),A=h5(a,i),o===2&&(this.path(A),this.ctx.clip()),Xo(A[0])?(l=A[0].start.x,u=A[0].start.y):(l=A[0].x,u=A[0].y),Xo(A[1])?(c=A[1].end.x,h=A[1].end.y):(c=A[1].x,h=A[1].y),i===0||i===2?f=Math.abs(l-c):f=Math.abs(u-h),this.ctx.beginPath(),o===3?this.formatPath(s):this.formatPath(A.slice(0,2)),p=n<3?n*3:n*2,v=n<3?n*2:n,o===3&&(p=n,v=n),m=!0,f<=p*2?m=!1:f<=p*2+v?(g=f/(2*p+v),p*=g,v*=g):(_=Math.floor((f+v)/(p+v)),E=(f-_*p)/(_-1),B=(f-(_+1)*p)/_,v=B<=0||Math.abs(v-E)1?t-1:0),i=1;i/gm),Mwt=fl(/^data-[\-\w.\u00B7-\uFFFF]/),Nwt=fl(/^aria-[\-\w]+$/),Pwt=fl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Uwt=fl(/^(?:\w+script|data):/i),Dwt=fl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function $s(r){if(Array.isArray(r)){for(var e=0,t=Array(r.length);e"u"?null:window},Hwt=function(e,t){if((typeof e>"u"?"undefined":Sv(e))!=="object"||typeof e.createPolicy!="function")return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function S7(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qwt(),e=function(ht){return S7(ht)};if(e.version="2.3.5",e.removed=[],!r||!r.document||r.document.nodeType!==9)return e.isSupported=!1,e;var t=r.document,n=r.document,i=r.DocumentFragment,a=r.HTMLTemplateElement,o=r.Node,s=r.Element,A=r.NodeFilter,l=r.NamedNodeMap,u=l===void 0?r.NamedNodeMap||r.MozNamedAttrMap:l,c=r.HTMLFormElement,h=r.DOMParser,f=r.trustedTypes,p=s.prototype,v=g0(p,"cloneNode"),m=g0(p,"nextSibling"),g=g0(p,"childNodes"),_=g0(p,"parentNode");if(typeof a=="function"){var E=n.createElement("template");E.content&&E.content.ownerDocument&&(n=E.content.ownerDocument)}var B=Hwt(f,t),L=B?B.createHTML(""):"",O=n,b=O.implementation,T=O.createNodeIterator,I=O.createDocumentFragment,M=O.getElementsByTagName,x=t.importNode,S={};try{S=mc(n).documentMode?n.documentMode:{}}catch{}var N={};e.isSupported=typeof _=="function"&&b&&typeof b.createHTMLDocument<"u"&&S!==9;var P=Owt,X=Rwt,z=Mwt,tt=Nwt,J=Uwt,nt=Dwt,it=Pwt,_t=null,R=cr({},[].concat($s(g5),$s(_B),$s(wB),$s(EB),$s(y5))),$=null,K=cr({},[].concat($s(m5),$s(CB),$s(_5),$s(y0))),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),at=null,vt=null,wt=!0,W=!0,It=!1,Ot=!1,j=!1,Z=!1,ut=!1,rt=!1,G=!1,xt=!1,bt=!0,dt=!0,Et=!1,yt={},St=null,Ft=cr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Mt=null,Vt=cr({},["audio","video","img","source","image","track"]),Yt=null,ie=cr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",oe="http://www.w3.org/1999/xhtml",Kt=oe,Xe=!1,Re=void 0,pr=["application/xhtml+xml","text/html"],Ie="text/html",xe=void 0,on=null,sr=n.createElement("form"),Ti=function(ht){return ht instanceof RegExp||ht instanceof Function},Br=function(ht){on&&on===ht||((!ht||(typeof ht>"u"?"undefined":Sv(ht))!=="object")&&(ht={}),ht=mc(ht),_t="ALLOWED_TAGS"in ht?cr({},ht.ALLOWED_TAGS):R,$="ALLOWED_ATTR"in ht?cr({},ht.ALLOWED_ATTR):K,Yt="ADD_URI_SAFE_ATTR"in ht?cr(mc(ie),ht.ADD_URI_SAFE_ATTR):ie,Mt="ADD_DATA_URI_TAGS"in ht?cr(mc(Vt),ht.ADD_DATA_URI_TAGS):Vt,St="FORBID_CONTENTS"in ht?cr({},ht.FORBID_CONTENTS):Ft,at="FORBID_TAGS"in ht?cr({},ht.FORBID_TAGS):{},vt="FORBID_ATTR"in ht?cr({},ht.FORBID_ATTR):{},yt="USE_PROFILES"in ht?ht.USE_PROFILES:!1,wt=ht.ALLOW_ARIA_ATTR!==!1,W=ht.ALLOW_DATA_ATTR!==!1,It=ht.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=ht.SAFE_FOR_TEMPLATES||!1,j=ht.WHOLE_DOCUMENT||!1,rt=ht.RETURN_DOM||!1,G=ht.RETURN_DOM_FRAGMENT||!1,xt=ht.RETURN_TRUSTED_TYPE||!1,ut=ht.FORCE_BODY||!1,bt=ht.SANITIZE_DOM!==!1,dt=ht.KEEP_CONTENT!==!1,Et=ht.IN_PLACE||!1,it=ht.ALLOWED_URI_REGEXP||it,Kt=ht.NAMESPACE||oe,ht.CUSTOM_ELEMENT_HANDLING&&Ti(ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=ht.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ht.CUSTOM_ELEMENT_HANDLING&&Ti(ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=ht.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ht.CUSTOM_ELEMENT_HANDLING&&typeof ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=ht.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re=pr.indexOf(ht.PARSER_MEDIA_TYPE)===-1?Re=Ie:Re=ht.PARSER_MEDIA_TYPE,xe=Re==="application/xhtml+xml"?function(Qt){return Qt}:J0,Ot&&(W=!1),G&&(rt=!0),yt&&(_t=cr({},[].concat($s(y5))),$=[],yt.html===!0&&(cr(_t,g5),cr($,m5)),yt.svg===!0&&(cr(_t,_B),cr($,CB),cr($,y0)),yt.svgFilters===!0&&(cr(_t,wB),cr($,CB),cr($,y0)),yt.mathMl===!0&&(cr(_t,EB),cr($,_5),cr($,y0))),ht.ADD_TAGS&&(_t===R&&(_t=mc(_t)),cr(_t,ht.ADD_TAGS)),ht.ADD_ATTR&&($===K&&($=mc($)),cr($,ht.ADD_ATTR)),ht.ADD_URI_SAFE_ATTR&&cr(Yt,ht.ADD_URI_SAFE_ATTR),ht.FORBID_CONTENTS&&(St===Ft&&(St=mc(St)),cr(St,ht.FORBID_CONTENTS)),dt&&(_t["#text"]=!0),j&&cr(_t,["html","head","body"]),_t.table&&(cr(_t,["tbody"]),delete at.tbody),za&&za(ht),on=ht)},ci=cr({},["mi","mo","mn","ms","mtext"]),$r=cr({},["foreignobject","desc","title","annotation-xml"]),Vr=cr({},_B);cr(Vr,wB),cr(Vr,Fwt);var Me=cr({},EB);cr(Me,Lwt);var wr=function(ht){var Qt=_(ht);(!Qt||!Qt.tagName)&&(Qt={namespaceURI:oe,tagName:"template"});var qt=J0(ht.tagName),er=J0(Qt.tagName);if(ht.namespaceURI===Xt)return Qt.namespaceURI===oe?qt==="svg":Qt.namespaceURI===ee?qt==="svg"&&(er==="annotation-xml"||ci[er]):Boolean(Vr[qt]);if(ht.namespaceURI===ee)return Qt.namespaceURI===oe?qt==="math":Qt.namespaceURI===Xt?qt==="math"&&$r[er]:Boolean(Me[qt]);if(ht.namespaceURI===oe){if(Qt.namespaceURI===Xt&&!$r[er]||Qt.namespaceURI===ee&&!ci[er])return!1;var Or=cr({},["title","style","font","a","script"]);return!Me[qt]&&(Or[qt]||!Vr[qt])}return!1},Yn=function(ht){tv(e.removed,{element:ht});try{ht.parentNode.removeChild(ht)}catch{try{ht.outerHTML=L}catch{ht.remove()}}},fn=function(ht,Qt){try{tv(e.removed,{attribute:Qt.getAttributeNode(ht),from:Qt})}catch{tv(e.removed,{attribute:null,from:Qt})}if(Qt.removeAttribute(ht),ht==="is"&&!$[ht])if(rt||G)try{Yn(Qt)}catch{}else try{Qt.setAttribute(ht,"")}catch{}},Si=function(ht){var Qt=void 0,qt=void 0;if(ut)ht=""+ht;else{var er=v5(ht,/^[\r\n\t ]+/);qt=er&&er[0]}Re==="application/xhtml+xml"&&(ht=''+ht+"");var Or=B?B.createHTML(ht):ht;if(Kt===oe)try{Qt=new h().parseFromString(Or,Re)}catch{}if(!Qt||!Qt.documentElement){Qt=b.createDocument(Kt,"template",null);try{Qt.documentElement.innerHTML=Xe?"":Or}catch{}}var sn=Qt.body||Qt.documentElement;return ht&&qt&&sn.insertBefore(n.createTextNode(qt),sn.childNodes[0]||null),Kt===oe?M.call(Qt,j?"html":"body")[0]:j?Qt.documentElement:sn},xi=function(ht){return T.call(ht.ownerDocument||ht,ht,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT,null,!1)},be=function(ht){return ht instanceof c&&(typeof ht.nodeName!="string"||typeof ht.textContent!="string"||typeof ht.removeChild!="function"||!(ht.attributes instanceof u)||typeof ht.removeAttribute!="function"||typeof ht.setAttribute!="function"||typeof ht.namespaceURI!="string"||typeof ht.insertBefore!="function")},hi=function(ht){return(typeof o>"u"?"undefined":Sv(o))==="object"?ht instanceof o:ht&&(typeof ht>"u"?"undefined":Sv(ht))==="object"&&typeof ht.nodeType=="number"&&typeof ht.nodeName=="string"},Dn=function(ht,Qt,qt){N[ht]&&Swt(N[ht],function(er){er.call(e,Qt,qt,on)})},bi=function(ht){var Qt=void 0;if(Dn("beforeSanitizeElements",ht,null),be(ht)||v5(ht.nodeName,/[\u0080-\uFFFF]/))return Yn(ht),!0;var qt=xe(ht.nodeName);if(Dn("uponSanitizeElement",ht,{tagName:qt,allowedTags:_t}),!hi(ht.firstElementChild)&&(!hi(ht.content)||!hi(ht.content.firstElementChild))&&Bo(/<[/\w]/g,ht.innerHTML)&&Bo(/<[/\w]/g,ht.textContent)||qt==="select"&&Bo(/